diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-17 15:12:31 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-17 15:12:31 +0000 |
commit | 0e75aa1150aae4d0f0dba7efa590c391b672a1f7 (patch) | |
tree | ee155b0befd1dce0718f9b67d4015f4e524677a9 /extensions | |
parent | ad95e90836e1c8b00adda48b68f3fe98140694bc (diff) |
INTEGRATION: CWS os8 (1.11.64); FILE MERGED
2003/04/03 06:39:22 cd 1.11.64.1: #108520# Support automatic toolbar button size depending on menu text height
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/bibbeam.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx index 19fe4065708c..90c8edf116b9 100644 --- a/extensions/source/bibliography/bibbeam.cxx +++ b/extensions/source/bibliography/bibbeam.cxx @@ -2,9 +2,9 @@ * * $RCSfile: bibbeam.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: fs $ $Date: 2002-10-24 08:57:28 $ + * last change: $Author: vg $ $Date: 2003-04-17 16:12:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -332,7 +332,7 @@ namespace bib //--------------------------------------------------------------------- void BibBeamer::createToolBar() { - pToolBar= new BibToolBar(this); + pToolBar= new BibToolBar(this, LINK( this, BibBeamer, RecalcLayout_Impl )); ::Size aSize=pToolBar->GetSizePixel(); InsertItem(ID_TOOLBAR, pToolBar, aSize.Height(), 0, 0, SWIB_FIXED ); if ( m_xController.is() ) @@ -377,12 +377,21 @@ namespace bib } + //--------------------------------------------------------------------- void BibBeamer::GetFocus() { if( pGridWin ) pGridWin->GrabFocus(); } + //--------------------------------------------------------------------- + IMPL_LINK( BibBeamer, RecalcLayout_Impl, void*, pVoid ) + { + long nHeight = pToolBar->GetSizePixel().Height(); + SetItemSize( ID_TOOLBAR, pToolBar->GetSizePixel().Height() ); + return 0L; + } + //......................................................................... } // namespace bib //......................................................................... |