summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-07 17:26:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-03-08 16:23:45 +0000
commit68b5875647dd3f39f9e01eec75383a5b9b3ef3a6 (patch)
tree134049d495a93b6800c7eeddfebcc696e20d0ff7 /vcl
parentf14e5f5deaa49131e41300e9a7bf3ea54023b511 (diff)
convert custom bibliography toolbar to .ui format
Change-Id: I70eb0e2ff96879d1168b241852a0079f540b0319
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/toolbox.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 3037a581cc09..075e44e989b7 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1593,6 +1593,14 @@ void ToolBox::ImplLoadRes( const ResId& rResId )
}
}
+void ToolBox::doDeferredInit(WinBits nBits)
+{
+ VclPtr<vcl::Window> pParent = mpDialogParent;
+ mpDialogParent = nullptr;
+ ImplInit(pParent, nBits);
+ mbIsDefferedInit = false;
+}
+
ToolBox::ToolBox( vcl::Window* pParent, WinBits nStyle ) :
DockingWindow( WINDOW_TOOLBOX )
{
@@ -1620,6 +1628,23 @@ ToolBox::ToolBox( vcl::Window* pParent, const ResId& rResId ) :
Show();
}
+ToolBox::ToolBox(vcl::Window* pParent, const OString& rID,
+ const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame> &rFrame)
+ : DockingWindow(WINDOW_TOOLBOX)
+{
+ loadUI(pParent, rID, rUIXMLDescription, rFrame);
+
+ // calculate size of floating windows and switch if the
+ // toolbox is initially in floating mode
+ if ( ImplIsFloatingMode() )
+ mbHorz = true;
+ else
+ Resize();
+
+ if (!(GetStyle() & WB_HIDE))
+ Show();
+}
+
ToolBox::~ToolBox()
{
disposeOnce();