diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-08-31 12:44:47 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2012-09-07 09:13:03 +0000 |
commit | 7d5911e40855ac6234590e008927c9b819084ad0 (patch) | |
tree | 5c81cc167a05aed8cd70a69e110fd8752e11ac53 /basctl/source/inc | |
parent | 36bb1a3158a5d5a0ce35507799de794b80dfd080 (diff) |
Basic IDE: Docking property browser under object catalog
Now the property browser can be docked in the same way as all other
dialogs in the Basic IDE and the Dialog Editor.
The property browser (PropBrw, for which PropertyBrowser would be a
better and easier-to-remember name IMO) is derived from
basctl::DockingWindow instead of SfxDockingWindow. PropBrwMgr was
removed (it seemed to be only a wrapper), and PropBrw is now a data
member of DialogWindowLayout (aPropertyBrowser).
Change-Id: I06737a5cbc985888432630714cb919d1bbbcbb49
Reviewed-on: https://gerrit.libreoffice.org/518
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'basctl/source/inc')
-rw-r--r-- | basctl/source/inc/baside3.hxx | 11 | ||||
-rw-r--r-- | basctl/source/inc/dlged.hxx | 7 | ||||
-rw-r--r-- | basctl/source/inc/propbrw.hxx | 30 |
3 files changed, 20 insertions, 28 deletions
diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx index feb679dbcdb7..6f4d86e61335 100644 --- a/basctl/source/inc/baside3.hxx +++ b/basctl/source/inc/baside3.hxx @@ -21,7 +21,9 @@ #define BASCTL_BASIDE3_HXX #include "../basicide/layout.hxx" -#include <bastypes.hxx> +#include "bastypes.hxx" +#include "propbrw.hxx" + #include <svl/undo.hxx> #include <vcl/dialog.hxx> #include <vcl/button.hxx> @@ -126,6 +128,7 @@ public: // Layout: virtual void Activating (BaseWindow&); virtual void Deactivating (); + virtual void ExecuteGlobal (SfxRequest&); virtual void GetState (SfxItemSet&, unsigned nWhich); virtual void UpdateDebug (bool){}; protected: @@ -137,7 +140,11 @@ private: DialogWindow* pChild; // dockable windows ObjectCatalog& rObjectCatalog; - // TODO property browser + // property browser + PropBrw aPropertyBrowser; + +private: + friend class DialogWindow; }; diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx index a8e8fc3d7065..9f52cd4fd087 100644 --- a/basctl/source/inc/dlged.hxx +++ b/basctl/source/inc/dlged.hxx @@ -40,6 +40,8 @@ class Window; namespace basctl { +class PropBrw; + #define DLGED_PAGE_WIDTH_MIN 1280 #define DLGED_PAGE_HEIGHT_MIN 1024 @@ -102,7 +104,7 @@ private: void Print( Printer* pPrinter, const ::rtl::OUString& rTitle ); -protected: +private: ScrollBar* pHScroll; ScrollBar* pVScroll; DlgEdModel* pDlgEdModel; @@ -117,6 +119,7 @@ protected: DlgEdFactory* pObjFac; Window* pWindow; DlgEdFunc* pFunc; + PropBrw& rPropertyBrowser; Mode eMode; sal_uInt16 eActObj; bool bFirstDraw; @@ -133,7 +136,7 @@ protected: DlgEditor(); // not implemented public: - DlgEditor( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel ); + DlgEditor (com::sun::star::uno::Reference<com::sun::star::frame::XModel> const& xModel, PropBrw&); ~DlgEditor(); void SetWindow( Window* pWindow ); diff --git a/basctl/source/inc/propbrw.hxx b/basctl/source/inc/propbrw.hxx index ccf2a9ad4768..a3bbad99b862 100644 --- a/basctl/source/inc/propbrw.hxx +++ b/basctl/source/inc/propbrw.hxx @@ -22,33 +22,21 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <comphelper/stl_types.hxx> -#include <sfx2/basedlgs.hxx> -#include <sfx2/dockwin.hxx> #include <svl/lstner.hxx> +#include <svl/brdcst.hxx> #include <svx/svdmark.hxx> +#include "bastypes.hxx" class SfxBindings; class SdrView; +class SfxViewShell; namespace basctl { -//============================================================================ -// PropBrwMgr -//============================================================================ +class Layout; -class PropBrwMgr : public SfxChildWindow -{ -public: - PropBrwMgr(Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo); - SFX_DECL_CHILDWINDOW(PropBrwMgr); -}; - -//============================================================================ -// PropBrw -//============================================================================ - -class PropBrw : public SfxDockingWindow , public SfxListener, public SfxBroadcaster +class PropBrw : public DockingWindow, public SfxListener, public SfxBroadcaster { private: bool m_bInitialStateChange; @@ -67,7 +55,6 @@ private: protected: SdrView* pView; virtual void Resize(); - virtual void FillInfo( SfxChildWinInfo& rInfo ) const; virtual sal_Bool Close(); DECLARE_STL_VECTOR(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>, InterfaceArray); @@ -84,12 +71,7 @@ protected: const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject); public: - PropBrw( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB, - SfxBindings *pBindings, - PropBrwMgr* pMgr, - Window* pParent, - const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxContextDocument - ); + explicit PropBrw (Layout&); virtual ~PropBrw(); using Window::Update; // note: changing the Context document to an instance other than the one given in the ctor is not supported |