diff options
author | Andreas Bregas <ab@openoffice.org> | 2011-02-15 17:51:52 +0100 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2011-02-15 17:51:52 +0100 |
commit | cbc95eb3f6aaa7b7c9a85128a421cc90339691fc (patch) | |
tree | b32f5d5a4b02e4ee19ef8c2692cf65e05ecf6717 /sc/source/ui/view/tabview5.cxx | |
parent | 282392f643d63a1b76e69821a4c19a4162808d21 (diff) | |
parent | d0ce561b856d43b13d5884b5aa5106f7889ea929 (diff) |
ab80: resync to m100
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index f5a4a37784a9..a20c73d04adf 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -78,9 +78,9 @@ void __EXPORT ScTabView::Init() the sheet orientation, not the UI setting. Note: controls that are already constructed (e.g. scroll bars) have the RTL setting of the GUI. Eventually this has to be disabled manually (see below). */ - pFrameWin->EnableRTL( FALSE ); + pFrameWin->EnableRTL( sal_False ); - USHORT i; + sal_uInt16 i; aScrollTimer.SetTimeout(10); aScrollTimer.SetTimeoutHdl( LINK( this, ScTabView, TimerHdl ) ); @@ -149,7 +149,7 @@ void __EXPORT ScTabView::Init() __EXPORT ScTabView::~ScTabView() { - USHORT i; + sal_uInt16 i; // remove selection object ScModule* pScMod = SC_MOD(); @@ -208,14 +208,14 @@ __EXPORT ScTabView::~ScTabView() delete pTabControl; } -void ScTabView::MakeDrawView( BYTE nForceDesignMode ) +void ScTabView::MakeDrawView( sal_uInt8 nForceDesignMode ) { if (!pDrawView) { ScDrawLayer* pLayer = aViewData.GetDocument()->GetDrawLayer(); DBG_ASSERT(pLayer, "wo ist der Draw Layer ??"); - USHORT i; + sal_uInt16 i; pDrawView = new ScDrawView( pGridWin[SC_SPLIT_BOTTOMLEFT], &aViewData ); for (i=0; i<4; i++) if (pGridWin[i]) @@ -240,7 +240,7 @@ void ScTabView::MakeDrawView( BYTE nForceDesignMode ) // #106334# used when switching back from page preview: restore saved design mode state // (otherwise, keep the default from the draw view ctor) if ( nForceDesignMode != SC_FORCEMODE_NONE ) - pDrawView->SetDesignMode( (BOOL)nForceDesignMode ); + pDrawView->SetDesignMode( (sal_Bool)nForceDesignMode ); // an der FormShell anmelden FmFormShell* pFormSh = aViewData.GetViewShell()->GetFormShell(); @@ -273,7 +273,7 @@ void ScTabView::TabChanged( bool bSameTabButMoved ) { DrawDeselectAll(); // beendet auch Text-Edit-Modus - USHORT i; + sal_uInt16 i; for (i=0; i<4; i++) if (pGridWin[i]) pDrawView->VCRemoveWin(pGridWin[i]); // fuer alte Page @@ -296,7 +296,7 @@ void ScTabView::TabChanged( bool bSameTabButMoved ) // Es gibt keine einfache Moeglichkeit, alle Slots der FormShell zu invalidieren // (fuer disablete Slots auf geschuetzten Tabellen), darum hier einfach alles... - rBindings.InvalidateAll(FALSE); + rBindings.InvalidateAll(sal_False); #if 0 rBindings.Invalidate( SID_SELECT_SCENARIO ); @@ -349,10 +349,10 @@ void ScTabView::UpdateLayerLocks() if (pDrawView) { SCTAB nTab = aViewData.GetTabNo(); - BOOL bEx = aViewData.GetViewShell()->IsDrawSelMode(); - BOOL bProt = aViewData.GetDocument()->IsTabProtected( nTab ) || + sal_Bool bEx = aViewData.GetViewShell()->IsDrawSelMode(); + sal_Bool bProt = aViewData.GetDocument()->IsTabProtected( nTab ) || aViewData.GetSfxDocShell()->IsReadOnly(); - BOOL bShared = aViewData.GetDocShell()->IsDocShared(); + sal_Bool bShared = aViewData.GetDocShell()->IsDocShared(); SdrLayer* pLayer; SdrLayerAdmin& rAdmin = pDrawView->GetModel()->GetLayerAdmin(); @@ -361,7 +361,7 @@ void ScTabView::UpdateLayerLocks() pDrawView->SetLayerLocked( pLayer->GetName(), bProt || !bEx || bShared ); pLayer = rAdmin.GetLayerPerID(SC_LAYER_INTERN); if (pLayer) - pDrawView->SetLayerLocked( pLayer->GetName(), TRUE ); + pDrawView->SetLayerLocked( pLayer->GetName(), sal_True ); pLayer = rAdmin.GetLayerPerID(SC_LAYER_FRONT); if (pLayer) pDrawView->SetLayerLocked( pLayer->GetName(), bProt || bShared ); @@ -394,16 +394,16 @@ void ScTabView::DrawDeselectAll() pDrawView->UnmarkAll(); if (!pViewSh->IsDrawSelMode()) - pViewSh->SetDrawShell( FALSE ); + pViewSh->SetDrawShell( sal_False ); } } -BOOL ScTabView::IsDrawTextEdit() const +sal_Bool ScTabView::IsDrawTextEdit() const { if (pDrawView) return pDrawView->IsTextEdit(); else - return FALSE; + return sal_False; } //UNUSED2008-05 String ScTabView::GetSelectedChartName() const @@ -419,12 +419,12 @@ SvxZoomType ScTabView::GetZoomType() const return aViewData.GetZoomType(); } -void ScTabView::SetZoomType( SvxZoomType eNew, BOOL bAll ) +void ScTabView::SetZoomType( SvxZoomType eNew, sal_Bool bAll ) { aViewData.SetZoomType( eNew, bAll ); } -void ScTabView::SetZoom( const Fraction& rNewX, const Fraction& rNewY, BOOL bAll ) +void ScTabView::SetZoom( const Fraction& rNewX, const Fraction& rNewY, sal_Bool bAll ) { aViewData.SetZoom( rNewX, rNewY, bAll ); if (pDrawView) @@ -440,7 +440,7 @@ void ScTabView::RefreshZoom() ZoomChanged(); } -void ScTabView::SetPagebreakMode( BOOL bSet ) +void ScTabView::SetPagebreakMode( sal_Bool bSet ) { aViewData.SetPagebreakMode(bSet); if (pDrawView) @@ -454,7 +454,7 @@ void ScTabView::ResetDrawDragMode() pDrawView->SetDragMode( SDRDRAG_MOVE ); } -void ScTabView::ViewOptionsHasChanged( BOOL bHScrollChanged, BOOL bGraphicsChanged ) +void ScTabView::ViewOptionsHasChanged( sal_Bool bHScrollChanged, sal_Bool bGraphicsChanged ) { // DrawView erzeugen, wenn Gitter angezeigt werden soll if ( !pDrawView && aViewData.GetOptions().GetGridOptions().GetGridVisible() ) @@ -464,13 +464,13 @@ void ScTabView::ViewOptionsHasChanged( BOOL bHScrollChanged, BOOL bGraphicsChang pDrawView->UpdateUserViewOptions(); if (bGraphicsChanged) - DrawEnableAnim(TRUE); // DrawEnableAnim checks the options state + DrawEnableAnim(sal_True); // DrawEnableAnim checks the options state // if TabBar is set to visible, make sure its size is not 0 - BOOL bGrow = ( aViewData.IsTabMode() && pTabControl->GetSizePixel().Width() <= 0 ); + sal_Bool bGrow = ( aViewData.IsTabMode() && pTabControl->GetSizePixel().Width() <= 0 ); // if ScrollBar is set to visible, TabBar must make room - BOOL bShrink = ( bHScrollChanged && aViewData.IsTabMode() && aViewData.IsHScrollMode() && + sal_Bool bShrink = ( bHScrollChanged && aViewData.IsTabMode() && aViewData.IsHScrollMode() && pTabControl->GetSizePixel().Width() > SC_TABBAR_DEFWIDTH ); if ( bGrow || bShrink ) @@ -510,14 +510,14 @@ void ScTabView::DrawMarkRect( const Rectangle& rRect ) { //! store rectangle for repaint during drag - for (USHORT i=0; i<4; i++) + for (sal_uInt16 i=0; i<4; i++) { if ( pGridWin[i] && pGridWin[i]->IsVisible() ) { RasterOp aROp = pGridWin[i]->GetRasterOp(); - BOOL bHasLine = pGridWin[i]->IsLineColor(); + sal_Bool bHasLine = pGridWin[i]->IsLineColor(); Color aLine = pGridWin[i]->GetLineColor(); - BOOL bHasFill = pGridWin[i]->IsFillColor(); + sal_Bool bHasFill = pGridWin[i]->IsFillColor(); Color aFill = pGridWin[i]->GetFillColor(); pGridWin[i]->SetRasterOp( ROP_INVERT ); @@ -539,9 +539,9 @@ void ScTabView::DrawMarkRect( const Rectangle& rRect ) } } -void ScTabView::DrawEnableAnim(BOOL bSet) +void ScTabView::DrawEnableAnim(sal_Bool bSet) { - USHORT i; + sal_uInt16 i; if ( pDrawView ) { // #71040# dont start animations if display of graphics is disabled @@ -550,7 +550,7 @@ void ScTabView::DrawEnableAnim(BOOL bSet) { if ( !pDrawView->IsAnimationEnabled() ) { - pDrawView->SetAnimationEnabled(TRUE); + pDrawView->SetAnimationEnabled(sal_True); // Animierte GIFs muessen wieder gestartet werden: ScDocument* pDoc = aViewData.GetDocument(); @@ -561,12 +561,12 @@ void ScTabView::DrawEnableAnim(BOOL bSet) } else { - pDrawView->SetAnimationEnabled(FALSE); + pDrawView->SetAnimationEnabled(sal_False); } } } -//HMHvoid ScTabView::DrawShowMarkHdl(BOOL bShow) +//HMHvoid ScTabView::DrawShowMarkHdl(sal_Bool bShow) //HMH{ //HMHif (!pDrawView) //HMH return; @@ -593,7 +593,7 @@ void ScTabView::UpdateDrawTextOutliner() void ScTabView::DigitLanguageChanged() { LanguageType eNewLang = SC_MOD()->GetOptDigitLanguage(); - for (USHORT i=0; i<4; i++) + for (sal_uInt16 i=0; i<4; i++) if ( pGridWin[i] ) pGridWin[i]->SetDigitLanguage( eNewLang ); } @@ -684,7 +684,7 @@ void ScTabView::MakeVisible( const Rectangle& rHMMRect ) //--------------------------------------------------------------- -void ScTabView::SetBrushDocument( ScDocument* pNew, BOOL bLock ) +void ScTabView::SetBrushDocument( ScDocument* pNew, sal_Bool bLock ) { delete pBrushDocument; delete pDrawBrushSet; @@ -697,7 +697,7 @@ void ScTabView::SetBrushDocument( ScDocument* pNew, BOOL bLock ) aViewData.GetBindings().Invalidate(SID_FORMATPAINTBRUSH); } -void ScTabView::SetDrawBrushSet( SfxItemSet* pNew, BOOL bLock ) +void ScTabView::SetDrawBrushSet( SfxItemSet* pNew, sal_Bool bLock ) { delete pBrushDocument; delete pDrawBrushSet; @@ -714,7 +714,7 @@ void ScTabView::ResetBrushDocument() { if ( HasPaintBrush() ) { - SetBrushDocument( NULL, FALSE ); + SetBrushDocument( NULL, sal_False ); SetActivePointer( Pointer( POINTER_ARROW ) ); // switch pointers also when ended with escape key } } |