Kaydet (Commit) 882cad6f authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.32.220); FILE MERGED

2006/05/23 18:32:52 sb 1.32.220.3: RESYNC: (1.32-1.33); FILE MERGED
2006/03/07 08:16:09 fs 1.32.220.2: warning-free code
2006/02/15 13:28:03 fs 1.32.220.1: #i55991# warning-free code
üst 5baa8f6d
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: fmexpl.cxx,v $ * $RCSfile: fmexpl.cxx,v $
* *
* $Revision: 1.33 $ * $Revision: 1.34 $
* *
* last change: $Author: hr $ $Date: 2006-04-19 13:49:48 $ * last change: $Author: hr $ $Date: 2006-06-19 15:54:37 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -677,10 +677,10 @@ namespace svxform ...@@ -677,10 +677,10 @@ namespace svxform
//======================================================================== //========================================================================
DBG_NAME(NavigatorFrame) DBG_NAME(NavigatorFrame)
//------------------------------------------------------------------------ //------------------------------------------------------------------------
NavigatorFrame::NavigatorFrame( SfxBindings *pBindings, SfxChildWindow *pMgr, NavigatorFrame::NavigatorFrame( SfxBindings* _pBindings, SfxChildWindow* _pMgr,
Window* pParent ) Window* _pParent )
:SfxDockingWindow( pBindings, pMgr, pParent, WinBits(WB_STDMODELESS|WB_SIZEABLE|WB_ROLLABLE|WB_3DLOOK|WB_DOCKABLE) ) :SfxDockingWindow( _pBindings, _pMgr, _pParent, WinBits(WB_STDMODELESS|WB_SIZEABLE|WB_ROLLABLE|WB_3DLOOK|WB_DOCKABLE) )
,SfxControllerItem( SID_FM_FMEXPLORER_CONTROL, *pBindings ) ,SfxControllerItem( SID_FM_FMEXPLORER_CONTROL, *_pBindings )
{ {
DBG_CTOR(NavigatorFrame,NULL); DBG_CTOR(NavigatorFrame,NULL);
SetHelpId( HID_FORM_NAVIGATOR_WIN ); SetHelpId( HID_FORM_NAVIGATOR_WIN );
...@@ -699,9 +699,9 @@ namespace svxform ...@@ -699,9 +699,9 @@ namespace svxform
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
void NavigatorFrame::Update( FmFormShell* pFormShell ) void NavigatorFrame::UpdateContent( FmFormShell* pFormShell )
{ {
m_pNavigatorTree->Update( pFormShell ); m_pNavigatorTree->UpdateContent( pFormShell );
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
...@@ -713,10 +713,10 @@ namespace svxform ...@@ -713,10 +713,10 @@ namespace svxform
if( eState >= SFX_ITEM_AVAILABLE ) if( eState >= SFX_ITEM_AVAILABLE )
{ {
FmFormShell* pShell = PTR_CAST( FmFormShell,((SfxObjectItem*)pState)->GetShell() ); FmFormShell* pShell = PTR_CAST( FmFormShell,((SfxObjectItem*)pState)->GetShell() );
Update( pShell ); UpdateContent( pShell );
} }
else else
Update( NULL ); UpdateContent( NULL );
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
...@@ -731,7 +731,7 @@ namespace svxform ...@@ -731,7 +731,7 @@ namespace svxform
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
sal_Bool NavigatorFrame::Close() sal_Bool NavigatorFrame::Close()
{ {
Update( NULL ); UpdateContent( NULL );
return SfxDockingWindow::Close(); return SfxDockingWindow::Close();
} }
...@@ -745,33 +745,18 @@ namespace svxform ...@@ -745,33 +745,18 @@ namespace svxform
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
Size NavigatorFrame::CalcDockingSize( SfxChildAlignment eAlign ) Size NavigatorFrame::CalcDockingSize( SfxChildAlignment eAlign )
{ {
Size aSize = SfxDockingWindow::CalcDockingSize( eAlign ); if ( ( eAlign == SFX_ALIGN_TOP ) || ( eAlign == SFX_ALIGN_BOTTOM ) )
return Size();
switch( eAlign ) return SfxDockingWindow::CalcDockingSize( eAlign );
{
case SFX_ALIGN_TOP:
case SFX_ALIGN_BOTTOM:
return Size();
case SFX_ALIGN_LEFT:
case SFX_ALIGN_RIGHT:
break;
}
return aSize;
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
SfxChildAlignment NavigatorFrame::CheckAlignment( SfxChildAlignment eActAlign, SfxChildAlignment eAlign ) SfxChildAlignment NavigatorFrame::CheckAlignment( SfxChildAlignment _eActAlign, SfxChildAlignment _eAlign )
{ {
switch (eAlign) if ( ( _eAlign == SFX_ALIGN_LEFT ) || ( _eAlign == SFX_ALIGN_RIGHT ) || ( _eAlign == SFX_ALIGN_NOALIGNMENT ) )
{ return _eAlign;
case SFX_ALIGN_LEFT: return _eActAlign;
case SFX_ALIGN_RIGHT:
case SFX_ALIGN_NOALIGNMENT:
return (eAlign);
}
return (eActAlign);
} }
//------------------------------------------------------------------------ //------------------------------------------------------------------------
...@@ -799,13 +784,13 @@ namespace svxform ...@@ -799,13 +784,13 @@ namespace svxform
SFX_IMPL_DOCKINGWINDOW( NavigatorFrameManager, SID_FM_SHOW_FMEXPLORER ) SFX_IMPL_DOCKINGWINDOW( NavigatorFrameManager, SID_FM_SHOW_FMEXPLORER )
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
NavigatorFrameManager::NavigatorFrameManager( Window *pParent, sal_uInt16 nId, NavigatorFrameManager::NavigatorFrameManager( Window* _pParent, sal_uInt16 _nId,
SfxBindings *pBindings, SfxChildWinInfo* pInfo ) SfxBindings* _pBindings, SfxChildWinInfo* _pInfo )
:SfxChildWindow( pParent, nId ) :SfxChildWindow( _pParent, _nId )
{ {
pWindow = new NavigatorFrame( pBindings, this, pParent ); pWindow = new NavigatorFrame( _pBindings, this, _pParent );
eChildAlignment = SFX_ALIGN_NOALIGNMENT; eChildAlignment = SFX_ALIGN_NOALIGNMENT;
((SfxDockingWindow*)pWindow)->Initialize( pInfo ); ((SfxDockingWindow*)pWindow)->Initialize( _pInfo );
} }
//............................................................................ //............................................................................
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment