summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-08-08 09:40:47 +0100
committerNoel Power <noel.power@novell.com>2012-08-08 09:50:36 +0100
commitf24cd7aadcd2eae3598f084804acb43c74835210 (patch)
tree6dc747528c8eff2187c7aa75a3df61ec45b75766 /basctl
parentcf7bd4852738deb16edc5a42966a0ab0a1707e67 (diff)
make property browser dockable in basic IDE
very basic support for this, basicially you can dock the browser anywhere now hence lots of behaviour niggles remain, e.g 1) it probably doesn't make sense to be able to dock the browser into top or bottom quadrants ( we need to implement the Docking ( maybe PrepareToggleFloating mode ) method(s) in PropBrw ( propbrw.cxx ) 2) open floating or not ( if propertybrowswer is open ) 3) should we leave the 'properties' context menu when selecting shapes in place or not 4) switching between Module and Dialog tabs, we probably should 'remember' docked position and state Change-Id: Ibea4be3397eeac613642934662c3a9868fdf783b
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/dlged/propbrw.cxx8
-rw-r--r--basctl/source/inc/propbrw.hxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx
index 3af451b85506..0c976baa71ea 100644
--- a/basctl/source/dlged/propbrw.cxx
+++ b/basctl/source/dlged/propbrw.cxx
@@ -62,7 +62,7 @@ PropBrwMgr::PropBrwMgr( Window* _pParent, sal_uInt16 nId,
);
eChildAlignment = SFX_ALIGN_NOALIGNMENT;
- ((SfxFloatingWindow*)pWindow)->Initialize( pInfo );
+ ((SfxDockingWindow*)pWindow)->Initialize( pInfo );
((PropBrw*)pWindow)->Update( pShell );
}
@@ -100,7 +100,7 @@ DBG_NAME(PropBrw)
PropBrw::PropBrw( const Reference< XMultiServiceFactory >& _xORB, SfxBindings* _pBindings, PropBrwMgr* _pMgr, Window* _pParent,
const Reference< XModel >& _rxContextDocument )
- :SfxFloatingWindow( _pBindings, _pMgr, _pParent, WinBits( WB_STDMODELESS | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE ) )
+ :SfxDockingWindow( _pBindings, _pMgr, _pParent, WinBits( WB_DOCKABLE | WB_STDMODELESS | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE ) )
,m_bInitialStateChange(true)
,m_xORB(_xORB)
,m_xContextDocument( _rxContextDocument )
@@ -257,7 +257,7 @@ sal_Bool PropBrw::Close()
if( IsRollUp() )
RollDown();
- return SfxFloatingWindow::Close();
+ return SfxDockingWindow::Close();
}
@@ -455,7 +455,7 @@ void PropBrw::FillInfo( SfxChildWinInfo& rInfo ) const
void PropBrw::Resize()
{
- SfxFloatingWindow::Resize();
+ SfxDockingWindow::Resize();
// adjust size
Size aSize_ = GetOutputSizePixel();
diff --git a/basctl/source/inc/propbrw.hxx b/basctl/source/inc/propbrw.hxx
index 87c2e6c8d94f..0e7c2fc579cb 100644
--- a/basctl/source/inc/propbrw.hxx
+++ b/basctl/source/inc/propbrw.hxx
@@ -23,7 +23,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <comphelper/stl_types.hxx>
#include <sfx2/basedlgs.hxx>
-#include <sfx2/childwin.hxx>
+#include <sfx2/dockwin.hxx>
#include <svl/lstner.hxx>
#include <svx/svdmark.hxx>
@@ -45,7 +45,7 @@ public:
class SfxBindings;
class SdrView;
-class PropBrw : public SfxFloatingWindow , public SfxListener, public SfxBroadcaster
+class PropBrw : public SfxDockingWindow , public SfxListener, public SfxBroadcaster
{
private:
bool m_bInitialStateChange;