include/sfx2/objsh.hxx | 12 ------------ include/vcl/dialog.hxx | 1 - include/vcl/edit.hxx | 6 +++--- include/vcl/toolbox.hxx | 7 +++---- instsetoo_native/CustomTarget_setup.mk | 9 +++++++++ instsetoo_native/Package_setup.mk | 1 + sfx2/source/inc/objshimp.hxx | 12 ++++++++++++ vcl/source/control/edit.cxx | 6 ++++++ vcl/source/window/toolbox.cxx | 9 +++++++-- 9 files changed, 41 insertions(+), 22 deletions(-)
New commits: commit 795c61e052671d4de6a3b9cf77f9c0ad117e064d Author: Michael Meeks <michael.me...@collabora.com> Date: Thu Nov 26 13:46:14 2015 +0000 gengal: create an ini / rc file - to bootstrap services properly. Change-Id: Ib2042d6419dafcd62aaec95efb844cb09833c266 diff --git a/instsetoo_native/CustomTarget_setup.mk b/instsetoo_native/CustomTarget_setup.mk index e4cdd53..3edf1b8 100644 --- a/instsetoo_native/CustomTarget_setup.mk +++ b/instsetoo_native/CustomTarget_setup.mk @@ -12,6 +12,7 @@ $(eval $(call gb_CustomTarget_CustomTarget,instsetoo_native/setup)) $(eval $(call gb_CustomTarget_register_targets,instsetoo_native/setup,\ $(call gb_Helper_get_rcfile,bootstrap) \ $(call gb_Helper_get_rcfile,fundamental) \ + $(call gb_Helper_get_rcfile,gengal) \ $(call gb_Helper_get_rcfile,louno) \ $(if $(filter DESKTOP,$(BUILD_TYPE)),$(if $(filter-out MACOSX,$(OS)), \ $(call gb_Helper_get_rcfile,redirect))) \ @@ -23,6 +24,7 @@ $(eval $(call gb_CustomTarget_register_targets,instsetoo_native/setup,\ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,bootstrap) \ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,fundamental) \ +$(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,gengal) \ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,louno) \ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,redirect) \ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,setup) \ @@ -120,6 +122,13 @@ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_ && echo 'URE_BOOTSTRAP=$${ORIGIN}/$(call gb_Helper_get_rcfile,fundamental)' \ ) > $@ +$(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,gengal) : + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) + ( \ + echo '[Bootstrap]' \ + && echo 'URE_BOOTSTRAP=$${ORIGIN}/$(call gb_Helper_get_rcfile,fundamental)' \ + ) > $@ + $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/$(call gb_Helper_get_rcfile,uno) : $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) ( \ diff --git a/instsetoo_native/Package_setup.mk b/instsetoo_native/Package_setup.mk index 5b1e427..2c67544 100644 --- a/instsetoo_native/Package_setup.mk +++ b/instsetoo_native/Package_setup.mk @@ -12,6 +12,7 @@ $(eval $(call gb_Package_Package,instsetoo_native_setup,$(call gb_CustomTarget_g $(eval $(call gb_Package_add_files,instsetoo_native_setup,$(LIBO_ETC_FOLDER),\ $(call gb_Helper_get_rcfile,bootstrap) \ $(call gb_Helper_get_rcfile,fundamental) \ + $(call gb_Helper_get_rcfile,gengal) \ $(if $(filter DESKTOP,$(BUILD_TYPE)),$(if $(filter-out MACOSX,$(OS)), \ $(call gb_Helper_get_rcfile,redirect))) \ $(call gb_Helper_get_rcfile,setup) \ commit ed6aceab08e1c3951e1e33aa3d8070c57589b5db Author: Michael Meeks <michael.me...@collabora.com> Date: Thu Nov 26 11:15:11 2015 +0000 vcl: reduce pointless timer / scheduler / idle includes. Change-Id: I8bf7f8d6ba1a54f2969e055956fadc52ff6c8673 diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index 8eca878..09f8f07 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -37,7 +37,6 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/document/CmisVersion.hpp> -#include <vcl/timer.hxx> #include <vcl/vclptr.hxx> #include <svl/poolitem.hxx> #include <vcl/bitmap.hxx> @@ -805,17 +804,6 @@ inline SfxObjectShellLock & SfxObjectShellLock:: inline SfxObjectShellLock & SfxObjectShellLock::operator = ( SfxObjectShell * pObjP ) { return *this = SfxObjectShellLock( pObjP ); } -class AutoReloadTimer_Impl : public Timer -{ - OUString aUrl; - SfxObjectShell* pObjSh; - -public: - AutoReloadTimer_Impl( const OUString& rURL, sal_uInt32 nTime, - SfxObjectShell* pSh ); - virtual void Invoke() override; -}; - class SFX2_DLLPUBLIC SfxObjectShellItem: public SfxPoolItem { SfxObjectShell* pObjSh; diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index d4bbe5c..eb4a2fd 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -23,7 +23,6 @@ #include <tools/solar.h> #include <vcl/dllapi.h> #include <vcl/syswin.hxx> -#include <vcl/timer.hxx> #include <vcl/vclptr.hxx> // - Dialog - diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx index da5dc16..3e6fbb7 100644 --- a/include/vcl/edit.hxx +++ b/include/vcl/edit.hxx @@ -27,8 +27,6 @@ #include <tools/solar.h> #include <vcl/dllapi.h> -#include <vcl/timer.hxx> -#include <vcl/idle.hxx> #include <vcl/menu.hxx> #include <vcl/dndhelp.hxx> #include <vcl/vclptr.hxx> @@ -70,6 +68,8 @@ public: enum AutocompleteAction{ AUTOCOMPLETE_KEYINPUT, AUTOCOMPLETE_TABFORWARD, AUTOCOMPLETE_TABBACKWARD }; +class Timer; + // - Edit - class VCL_DLLPUBLIC Edit : public Control, public vcl::unohelper::DragAndDropClient { @@ -205,7 +205,7 @@ public: virtual bool IsModified() const { return mpSubEdit ? mpSubEdit->mbModified : mbModified; } virtual void EnableUpdateData( sal_uLong nTimeout = EDIT_UPDATEDATA_TIMEOUT ); - virtual void DisableUpdateData() { delete mpUpdateDataTimer; mpUpdateDataTimer = nullptr; } + virtual void DisableUpdateData(); void SetEchoChar( sal_Unicode c ); sal_Unicode GetEchoChar() const { return mcEchoChar; } diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index a2e5a0a..e0b4fd7 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -25,12 +25,10 @@ #include <vcl/dllapi.h> #include <vcl/dockwin.hxx> #include <vcl/image.hxx> -#include <vcl/timer.hxx> -#include <vcl/idle.hxx> #include <vector> +class Timer; class UserDrawEvent; - struct ImplToolItem; struct ImplToolSize; struct ImplToolBoxPrivateData; @@ -67,6 +65,7 @@ struct ImplToolSize sal_uInt16 mnLines; }; +class Idle; class VCL_DLLPUBLIC ToolBox : public DockingWindow { friend class FloatingWindow; @@ -76,7 +75,7 @@ private: ImplToolBoxPrivateData* mpData; std::vector<ImplToolSize> maFloatSizes; ImageList maImageList; - Idle maIdle; + Idle *mpIdle; Rectangle maUpperRect; Rectangle maLowerRect; Rectangle maOutDockRect; diff --git a/sfx2/source/inc/objshimp.hxx b/sfx2/source/inc/objshimp.hxx index b7dbb0c..36f8bdf 100644 --- a/sfx2/source/inc/objshimp.hxx +++ b/sfx2/source/inc/objshimp.hxx @@ -30,6 +30,7 @@ #include <sfx2/objsh.hxx> #include <sfx2/docmacromode.hxx> #include "bitset.hxx" +#include <vcl/timer.hxx> #include <appbaslib.hxx> @@ -45,6 +46,17 @@ struct MarkData_Impl class SfxBasicManagerHolder; +class AutoReloadTimer_Impl : public Timer +{ + OUString aUrl; + SfxObjectShell* pObjSh; + +public: + AutoReloadTimer_Impl( const OUString& rURL, sal_uInt32 nTime, + SfxObjectShell* pSh ); + virtual void Invoke() override; +}; + struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess { ::comphelper::EmbeddedObjectContainer* mpObjectContainer; diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index dbd8233..4b1056c 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2463,6 +2463,12 @@ void Edit::EnableUpdateData( sal_uLong nTimeout ) } } +void Edit::DisableUpdateData() +{ + delete mpUpdateDataTimer; + mpUpdateDataTimer = nullptr; +} + void Edit::SetEchoChar( sal_Unicode c ) { mcEchoChar = c; diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 6b4db05..4105b58 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1398,8 +1398,9 @@ void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle ) mnKeyModifier = 0; mnActivateCount = 0; - maIdle.SetPriority( SchedulerPriority::RESIZE ); - maIdle.SetIdleHdl( LINK( this, ToolBox, ImplUpdateHdl ) ); + mpIdle = new Idle("toolbox update"); + mpIdle->SetPriority( SchedulerPriority::RESIZE ); + mpIdle->SetIdleHdl( LINK( this, ToolBox, ImplUpdateHdl ) ); // set timeout and handler for dropdown items mpData->maDropdownTimer.SetTimeout( 250 ); @@ -1657,6 +1658,10 @@ void ToolBox::dispose() } } mpFloatWin.clear(); + + delete mpIdle; + mpIdle = nullptr; + DockingWindow::dispose(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits