summaryrefslogtreecommitdiff
path: root/extensions/source/bibliography/bibbeam.cxx
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 /extensions/source/bibliography/bibbeam.cxx
parentf14e5f5deaa49131e41300e9a7bf3ea54023b511 (diff)
convert custom bibliography toolbar to .ui format
Change-Id: I70eb0e2ff96879d1168b241852a0079f540b0319
Diffstat (limited to 'extensions/source/bibliography/bibbeam.cxx')
-rw-r--r--extensions/source/bibliography/bibbeam.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx
index d54b24e87cb5..de5a3d513f06 100644
--- a/extensions/source/bibliography/bibbeam.cxx
+++ b/extensions/source/bibliography/bibbeam.cxx
@@ -30,7 +30,6 @@
#include <tools/debug.hxx>
#include "bibbeam.hxx"
#include "bibview.hxx"
-#include "toolbar.hrc"
#include "bibresid.hxx"
#include "datman.hxx"
#include "bibtools.hxx"
@@ -222,7 +221,7 @@ namespace bib
void BibBeamer::createToolBar()
{
pToolBar= VclPtr<BibToolBar>::Create(this, LINK( this, BibBeamer, RecalcLayout_Impl ));
- ::Size aSize=pToolBar->GetSizePixel();
+ ::Size aSize=pToolBar->get_preferred_size();
InsertItem(ID_TOOLBAR, pToolBar, aSize.Height(), 0, 0, SplitWindowItemFlags::Fixed );
if ( m_xController.is() )
pToolBar->SetXController( m_xController );
@@ -270,7 +269,7 @@ namespace bib
IMPL_LINK_NOARG_TYPED( BibBeamer, RecalcLayout_Impl, void*, void )
{
- long nHeight = pToolBar->GetSizePixel().Height();
+ long nHeight = pToolBar->get_preferred_size().Height();
SetItemSize( ID_TOOLBAR, nHeight );
}