diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2011-02-14 16:17:22 +0100 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM> | 2011-02-14 16:17:22 +0100 |
commit | 1fb042333fe6287756ff1fac11d18cd7c150730d (patch) | |
tree | 595de5d187177832ce656d7832af9dce9dce2d99 /svx/source/gallery2/galbrws.cxx | |
parent | 5b3e910e926c7dd1e8dcfe8e0a5c6cb5bd17480a (diff) | |
parent | cd0d6a5a6775f197fdb7e78b54c8133074a7a236 (diff) |
rebase to DEV300_m100
Diffstat (limited to 'svx/source/gallery2/galbrws.cxx')
-rw-r--r-- | svx/source/gallery2/galbrws.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/gallery2/galbrws.cxx b/svx/source/gallery2/galbrws.cxx index b972dccd9ab7..5d4e4297f0a4 100644 --- a/svx/source/gallery2/galbrws.cxx +++ b/svx/source/gallery2/galbrws.cxx @@ -81,7 +81,7 @@ void GallerySplitter::DataChanged( const DataChangedEvent& rDCEvt ) // - SvxGalleryChildWindow - // ------------------------- -GalleryChildWindow::GalleryChildWindow( Window* _pParent, USHORT nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo ) : +GalleryChildWindow::GalleryChildWindow( Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo ) : SfxChildWindow( _pParent, nId ) { pWindow = new GalleryBrowser( pBindings, this, _pParent, GAL_RESID( RID_SVXDLG_GALLERYBROWSER ) ); @@ -116,11 +116,11 @@ GalleryBrowser::GalleryBrowser( SfxBindings* _pBindings, SfxChildWindow* pCW, SetMinOutputSizePixel( maLastSize = GetOutputSizePixel() ); mpBrowser1->SelectTheme( 0 ); - mpBrowser1->Show( TRUE ); - mpBrowser2->Show( TRUE ); + mpBrowser1->Show( sal_True ); + mpBrowser2->Show( sal_True ); mpSplitter->SetSplitHdl( LINK( this, GalleryBrowser, SplitHdl ) ); - mpSplitter->Show( TRUE ); + mpSplitter->Show( sal_True ); InitSettings(); } @@ -182,17 +182,17 @@ void GalleryBrowser::Resize() // ----------------------------------------------------------------------------- -BOOL GalleryBrowser::KeyInput( const KeyEvent& rKEvt, Window* ) +sal_Bool GalleryBrowser::KeyInput( const KeyEvent& rKEvt, Window* ) { - const USHORT nCode = rKEvt.GetKeyCode().GetCode(); - BOOL bRet = ( !rKEvt.GetKeyCode().IsMod1() && + const sal_uInt16 nCode = rKEvt.GetKeyCode().GetCode(); + sal_Bool bRet = ( !rKEvt.GetKeyCode().IsMod1() && ( ( KEY_TAB == nCode ) || ( KEY_F6 == nCode && rKEvt.GetKeyCode().IsMod2() ) ) ); if( bRet ) { if( !rKEvt.GetKeyCode().IsShift() ) { - if( mpBrowser1->mpThemes->HasChildPathFocus( TRUE ) ) + if( mpBrowser1->mpThemes->HasChildPathFocus( sal_True ) ) mpBrowser2->GetViewWindow()->GrabFocus(); else if( mpBrowser2->GetViewWindow()->HasFocus() ) mpBrowser2->maViewBox.GrabFocus(); @@ -203,7 +203,7 @@ BOOL GalleryBrowser::KeyInput( const KeyEvent& rKEvt, Window* ) } else { - if( mpBrowser1->mpThemes->HasChildPathFocus( TRUE ) ) + if( mpBrowser1->mpThemes->HasChildPathFocus( sal_True ) ) mpBrowser1->maNewTheme.GrabFocus(); else if( mpBrowser1->maNewTheme.HasFocus() ) mpBrowser2->maViewBox.GrabFocus(); @@ -219,7 +219,7 @@ BOOL GalleryBrowser::KeyInput( const KeyEvent& rKEvt, Window* ) // ----------------------------------------------------------------------------- -BOOL GalleryBrowser::Close() +sal_Bool GalleryBrowser::Close() { return SfxDockingWindow::Close(); } @@ -262,14 +262,14 @@ Graphic GalleryBrowser::GetGraphic() const // ----------------------------------------------------------------------------- -BOOL GalleryBrowser::GetVCDrawModel( FmFormModel& rModel ) const +sal_Bool GalleryBrowser::GetVCDrawModel( FmFormModel& rModel ) const { return mpBrowser2->GetVCDrawModel( rModel ); } // ----------------------------------------------------------------------------- -BOOL GalleryBrowser::IsLinkage() const +sal_Bool GalleryBrowser::IsLinkage() const { return mpBrowser2->IsLinkage(); } |