[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jan 18 01:17:03 PST 2013


 sw/source/core/frmedt/feshview.cxx |    4 ++--
 sw/source/ui/app/swmodul1.cxx      |   16 ++++++++--------
 sw/source/ui/app/swmodule.cxx      |    2 +-
 sw/source/ui/cctrl/actctrl.cxx     |    4 ++--
 sw/source/ui/chrdlg/drpcps.cxx     |   12 ++++++------
 sw/source/ui/chrdlg/numpara.cxx    |    4 ++--
 sw/source/ui/chrdlg/pardlg.cxx     |    2 +-
 sw/source/ui/docvw/edtdd.cxx       |    4 ++--
 sw/source/ui/docvw/edtwin.cxx      |   34 ++++++++++++++++++----------------
 sw/source/ui/ribbar/conform.cxx    |    4 ++--
 sw/source/ui/ribbar/drawbase.cxx   |   16 ++++++++--------
 sw/source/ui/shells/textfld.cxx    |    6 +++---
 sw/source/ui/uiview/view.cxx       |    6 +++---
 sw/source/ui/wrtsh/wrtsh3.cxx      |    6 +++---
 14 files changed, 61 insertions(+), 59 deletions(-)

New commits:
commit 4ca4d659de8ff32572634d9e3ef7ea7b21ef87f9
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Jan 8 10:09:22 2013 +0900

    sal_Bool to bool
    
    Backport needed to fix build after backport of 6306c7befaa676df62272da7f3ddbcba54c5759c .
    
    Change-Id: I4e4063321da69d45d14a2fc870c33ea8ae46e4ef
    Signed-off-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index be852a9..a3d5391 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -119,13 +119,13 @@ void lcl_GrabCursor( SwFEShell* pSh, SwFlyFrm* pOldSelFly)
     {
         // now call set macro if applicable
         pSh->GetFlyMacroLnk().Call( (void*)pFlyFmt );
-extern sal_Bool bNoInterrupt;       // in swapp.cxx
+extern bool bNoInterrupt;       // in swapp.cxx
         // if a dialog was started inside a macro, then
         // MouseButtonUp arrives at macro and not to us. Therefore
         // flag is always set here and will never be switched to
         // respective Shell !!!!!!!
 
-        bNoInterrupt = sal_False;
+        bNoInterrupt = false;
     }
     else if( !pFlyFmt || RES_DRAWFRMFMT == pFlyFmt->Which() )
     {
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
index 24630bd..e4f8715 100644
--- a/sw/source/ui/app/swmodul1.cxx
+++ b/sw/source/ui/app/swmodul1.cxx
@@ -83,9 +83,9 @@ using namespace ::com::sun::star::lang;
 void lcl_SetUIPrefs(const SwViewOption &rPref, SwView* pView, ViewShell* pSh )
 {
     // in FrameSets the actual visibility can differ from the ViewOption's setting
-    sal_Bool bVScrollChanged = rPref.IsViewVScrollBar() != pSh->GetViewOptions()->IsViewVScrollBar();
-    sal_Bool bHScrollChanged = rPref.IsViewHScrollBar() != pSh->GetViewOptions()->IsViewHScrollBar();
-    sal_Bool bVAlignChanged = rPref.IsVRulerRight() != pSh->GetViewOptions()->IsVRulerRight();
+    bool bVScrollChanged = rPref.IsViewVScrollBar() != pSh->GetViewOptions()->IsViewVScrollBar();
+    bool bHScrollChanged = rPref.IsViewHScrollBar() != pSh->GetViewOptions()->IsViewHScrollBar();
+    bool bVAlignChanged = rPref.IsVRulerRight() != pSh->GetViewOptions()->IsVRulerRight();
 
     pSh->SetUIOptions(rPref);
     const SwViewOption* pNewPref = pSh->GetViewOptions();
@@ -165,7 +165,7 @@ void SwModule::ApplyUsrPref(const SwViewOption &rUsrPref, SwView* pActView,
                                          pCurrView && pCurrView->ISA(SwWebView) ));
 
     // with Uno, only sdbcx::View, but not the Module should be changed
-    sal_Bool bViewOnly = VIEWOPT_DEST_VIEW_ONLY == nDest;
+    bool bViewOnly = VIEWOPT_DEST_VIEW_ONLY == nDest;
     // fob PreView off
     SwPagePreView* pPPView;
     if( !pCurrView && 0 != (pPPView = PTR_CAST( SwPagePreView, SfxViewShell::Current())) )
@@ -312,11 +312,11 @@ void SwModule::ApplyUserCharUnit(sal_Bool bApplyChar, sal_Bool bWeb)
         pPref = pUsrPref;
     }
     sal_Bool bOldApplyCharUnit = pPref->IsApplyCharUnit();
-    sal_Bool bHasChanged = sal_False;
+    bool bHasChanged = false;
     if(bOldApplyCharUnit != bApplyChar)
     {
         pPref->SetApplyCharUnit(bApplyChar);
-        bHasChanged = sal_True;
+        bHasChanged = true;
     }
 
     if( !bHasChanged )
@@ -471,7 +471,7 @@ void lcl_FillAuthorAttr( sal_uInt16 nAuthor, SfxItemSet &rSet,
                                            sizeof( aColArr[0] )) ] );
     }
 
-    sal_Bool bBackGr = COL_NONE == rAttr.nColor;
+    bool bBackGr = COL_NONE == rAttr.nColor;
 
     switch (rAttr.nItemId)
     {
@@ -514,7 +514,7 @@ void lcl_FillAuthorAttr( sal_uInt16 nAuthor, SfxItemSet &rSet,
 
     case SID_ATTR_BRUSH:
         rSet.Put( SvxBrushItem( aCol, RES_CHRATR_BACKGROUND ));
-        bBackGr = sal_True;
+        bBackGr = true;
         break;
     }
 
diff --git a/sw/source/ui/app/swmodule.cxx b/sw/source/ui/app/swmodule.cxx
index 4c97524..a1fcd36 100644
--- a/sw/source/ui/app/swmodule.cxx
+++ b/sw/source/ui/app/swmodule.cxx
@@ -139,7 +139,7 @@
 #include <app.hrc>
 #include <svx/xmlsecctrl.hxx>
 ResMgr *pSwResMgr = 0;
-sal_Bool     bNoInterrupt     = sal_False;
+bool     bNoInterrupt     = false;
 
 #include <sfx2/app.hxx>
 
diff --git a/sw/source/ui/cctrl/actctrl.cxx b/sw/source/ui/cctrl/actctrl.cxx
index 9c300c5..f3e91e5 100644
--- a/sw/source/ui/cctrl/actctrl.cxx
+++ b/sw/source/ui/cctrl/actctrl.cxx
@@ -70,12 +70,12 @@ NoSpaceEdit::~NoSpaceEdit()
 
 void NoSpaceEdit::KeyInput(const KeyEvent& rEvt)
 {
-    sal_Bool bCallParent = sal_True;
+    bool bCallParent = true;
     if(rEvt.GetCharCode())
     {
         String sKey = rEvt.GetCharCode();
         if( STRING_NOTFOUND != sForbiddenChars.Search(sKey))
-            bCallParent = sal_False;
+            bCallParent = false;
     }
     if(bCallParent)
         Edit::KeyInput(rEvt);
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
index 7a1ae49..f3d87c0 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -92,7 +92,7 @@ class SwDropCapsPict : public Control
     sal_uInt16          mnDistance;
     sal_Int32       mnLeading;
     Printer*        mpPrinter;
-    sal_Bool            mbDelPrinter;
+    bool            mbDelPrinter;
     /// The _ScriptInfo structure holds information on where we change from one
     /// script to another.
     struct _ScriptInfo
@@ -127,7 +127,7 @@ public:
         , mnLineH(0)
         , mnTextH(0)
         , mpPrinter( NULL )
-        , mbDelPrinter( sal_False )
+        , mbDelPrinter( false )
     {}
     ~SwDropCapsPict();
 
@@ -514,7 +514,7 @@ void SwDropCapsPict::_InitPrinter()
     if ( !mpPrinter )
     {
         mpPrinter = new Printer;
-        mbDelPrinter = sal_True;
+        mbDelPrinter = true;
     }
 }
 
@@ -734,7 +734,7 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit )
     if (pEdit == &aDropCapsField)
     {
         sal_uInt16 nVal;
-        sal_Bool bSetText = sal_False;
+        bool bSetText = false;
 
         if (!aWholeWordCB.IsChecked())
             nVal = (sal_uInt16)aDropCapsField.GetValue();
@@ -745,7 +745,7 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit )
             sPreview = GetDefaultString(nVal);
         else
         {
-            bSetText = sal_True;
+            bSetText = true;
             sPreview = rSh.GetDropTxt(nVal);
         }
 
@@ -754,7 +754,7 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit )
         if (sEdit.Len() && sPreview.CompareTo(sEdit, sEdit.Len()) != COMPARE_EQUAL)
         {
             sPreview = sEdit.Copy(0, sPreview.Len());
-            bSetText = sal_False;
+            bSetText = false;
         }
 
         if (bSetText)
diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx
index b644b85..f855494 100644
--- a/sw/source/ui/chrdlg/numpara.cxx
+++ b/sw/source/ui/chrdlg/numpara.cxx
@@ -174,7 +174,7 @@ sal_Bool    SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
 
 void    SwParagraphNumTabPage::Reset( const SfxItemSet& rSet )
 {
-    sal_Bool bHasNumberStyle = sal_False;
+    bool bHasNumberStyle = false;
 
     SfxItemState eItemState = rSet.GetItemState( GetWhich(SID_ATTR_PARA_OUTLINE_LEVEL) );
 
@@ -209,7 +209,7 @@ void    SwParagraphNumTabPage::Reset( const SfxItemSet& rSet )
         else
             aNumberStyleLB.SelectEntry( aStyle );
 
-        bHasNumberStyle = sal_True;
+        bHasNumberStyle = true;
     }
     else
     {
diff --git a/sw/source/ui/chrdlg/pardlg.cxx b/sw/source/ui/chrdlg/pardlg.cxx
index 7e92407..3013d69 100644
--- a/sw/source/ui/chrdlg/pardlg.cxx
+++ b/sw/source/ui/chrdlg/pardlg.cxx
@@ -118,7 +118,7 @@ SwParaDlg::SwParaDlg(Window *pParent,
         RemoveTabPage(TP_PARA_ASIAN);
 
     sal_uInt16 nWhich(rCoreSet.GetPool()->GetWhich(SID_ATTR_LRSPACE));
-    sal_Bool bLRValid = SFX_ITEM_AVAILABLE <= rCoreSet.GetItemState(nWhich);
+    bool bLRValid = SFX_ITEM_AVAILABLE <= rCoreSet.GetItemState(nWhich);
     if(bHtmlMode || !bLRValid)
         RemoveTabPage(TP_TABULATOR);
     else
diff --git a/sw/source/ui/docvw/edtdd.cxx b/sw/source/ui/docvw/edtdd.cxx
index 5daebe3..970de27 100644
--- a/sw/source/ui/docvw/edtdd.cxx
+++ b/sw/source/ui/docvw/edtdd.cxx
@@ -55,7 +55,7 @@ using namespace ::com::sun::star;
 
 // no include "dbgoutsw.hxx" here!!!!!!
 
-extern sal_Bool bNoInterrupt;
+extern bool bNoInterrupt;
 extern sal_Bool bFrmDrag;
 extern sal_Bool bDDTimerStarted;
 
@@ -171,7 +171,7 @@ void SwEditWin::DropCleanup()
     SwWrtShell &rSh =  rView.GetWrtShell();
 
     // reset statuses
-    bNoInterrupt = sal_False;
+    bNoInterrupt = false;
     if ( bOldIdleSet )
     {
         ((SwViewOption*)rSh.GetViewOptions())->SetIdle( bOldIdle );
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index dd58e44..2cb0133 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -156,7 +156,7 @@ using namespace ::com::sun::star;
  --------------------------------------------------------------------*/
 
 static bool bInputLanguageSwitched = false;
-extern sal_Bool bNoInterrupt;       // in mainwn.cxx
+extern bool bNoInterrupt;       // in mainwn.cxx
 
 // Usually in MouseButtonUp a selection is revoked when the selection is
 // not currently being pulled open. Unfortunately in MouseButtonDown there
@@ -2624,7 +2624,8 @@ void SwEditWin::RstMBDownFlags()
     // of the modal dialog (like on WINDOWS).
     // So reset the statuses here and release the mouse
     // for the dialog.
-    bMBPressed = bNoInterrupt = sal_False;
+    bMBPressed = sal_False;
+    bNoInterrupt = false;
     EnterArea();
     ReleaseMouse();
 }
@@ -2849,7 +2850,8 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
     if ( MOUSE_LEFT == rMEvt.GetButtons() )
     {
         sal_Bool bOnlyText = sal_False;
-        bMBPressed = bNoInterrupt = sal_True;
+        bMBPressed = sal_True;
+        bNoInterrupt = true;
         nKS_NUMDOWN_Count = 0;
 
         CaptureMouse();
@@ -2878,7 +2880,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
                 }
                 if ( EnterDrawMode( rMEvt, aDocPos ) )
                 {
-                    bNoInterrupt = sal_False;
+                    bNoInterrupt = false;
                     return;
                 }
                 else  if ( rView.GetDrawFuncPtr() && bInsFrm )
@@ -2911,7 +2913,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
                                 }
                                 bFrmDrag = sal_True;
                             }
-                            bNoInterrupt = sal_False;
+                            bNoInterrupt = false;
                             return;
                         }
                     }
@@ -3241,7 +3243,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
                                  rSh.GetDrawView()->PickHandle( aDocPos ))
                         {
                             bFrmDrag = sal_True;
-                            bNoInterrupt = sal_False;
+                            bNoInterrupt = false;
                             return;
                         }
                     }
@@ -3270,7 +3272,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
                                  rSh.GetDrawView()->PickHandle( aDocPos ))
                         {
                             bFrmDrag = sal_True;
-                            bNoInterrupt = sal_False;
+                            bNoInterrupt = false;
                             return;
                         }
                         else
@@ -3413,8 +3415,8 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
 
                 if ( !bOverSelect )
                 {
-                    const sal_Bool bTmpNoInterrupt = bNoInterrupt;
-                    bNoInterrupt = sal_False;
+                    const bool bTmpNoInterrupt = bNoInterrupt;
+                    bNoInterrupt = false;
 
                     if( !rSh.IsViewLocked() && bLockView )
                         rSh.LockView( sal_True );
@@ -4015,7 +4017,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
             rSh.EndDrag( &aDocPt, false );
             bFrmDrag = sal_False;
         }
-        bNoInterrupt = sal_False;
+        bNoInterrupt = false;
         ReleaseMouse();
         return;
     }
@@ -4067,7 +4069,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
         else if (rMEvt.GetButtons() == MOUSE_RIGHT && rSh.IsDrawCreate())
             rView.GetDrawFuncPtr()->BreakCreate();   // abort drawing
 
-        bNoInterrupt = sal_False;
+        bNoInterrupt = false;
         ReleaseMouse();
         return;
     }
@@ -4198,8 +4200,8 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
             {
                 if ( !rSh.IsInSelect() && rSh.ChgCurrPam( aDocPt ) )
                 {
-                    const sal_Bool bTmpNoInterrupt = bNoInterrupt;
-                    bNoInterrupt = sal_False;
+                    const bool bTmpNoInterrupt = bNoInterrupt;
+                    bNoInterrupt = false;
                     {   // create only temporary move context because otherwise
                         // the query to the content form doesn't work!!!
                         MV_KONTEXT( &rSh );
@@ -4516,7 +4518,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
     //sicherheitshalber aufrufen, da jetzt das Selektieren bestimmt zu Ende ist.
     //Andernfalls koennte der Timeout des Timers Kummer machen.
     EnterArea();
-    bNoInterrupt = sal_False;
+    bNoInterrupt = false;
 
     if (bCallBase)
         Window::MouseButtonUp(rMEvt);
@@ -4799,10 +4801,10 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
                 SET_CURR_SHELL( &rSh );
                 if (!pApplyTempl)
                 {
-                    if (bNoInterrupt == sal_True)
+                    if (bNoInterrupt)
                     {
                         ReleaseMouse();
-                        bNoInterrupt = sal_False;
+                        bNoInterrupt = false;
                         bMBPressed = sal_False;
                     }
                     if ( rCEvt.IsMouseEvent() )
diff --git a/sw/source/ui/ribbar/conform.cxx b/sw/source/ui/ribbar/conform.cxx
index f545b5a..702cfb2 100644
--- a/sw/source/ui/ribbar/conform.cxx
+++ b/sw/source/ui/ribbar/conform.cxx
@@ -38,7 +38,7 @@
 #include "drawbase.hxx"
 #include "conform.hxx"
 
-extern sal_Bool bNoInterrupt;       // in mainwn.cxx
+extern bool bNoInterrupt;       // in mainwn.cxx
 
 /*************************************************************************
 |*
@@ -87,7 +87,7 @@ sal_Bool ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt)
     if (rMEvt.IsLeft() && !m_pWin->IsDrawAction() &&
         (eHit == SDRHIT_UNMARKEDOBJECT || eHit == SDRHIT_NONE || m_pSh->IsDrawCreate()))
     {
-        bNoInterrupt = sal_True;
+        bNoInterrupt = true;
         m_pWin->CaptureMouse();
 
         m_pWin->SetPointer(Pointer(POINTER_DRAW_RECT));
diff --git a/sw/source/ui/ribbar/drawbase.cxx b/sw/source/ui/ribbar/drawbase.cxx
index 677e419..6df2663 100644
--- a/sw/source/ui/ribbar/drawbase.cxx
+++ b/sw/source/ui/ribbar/drawbase.cxx
@@ -49,7 +49,7 @@
 
 using namespace ::com::sun::star;
 
-extern sal_Bool bNoInterrupt;       // in mainwn.cxx
+extern bool bNoInterrupt;       // in mainwn.cxx
 
 #define MINMOVE ((sal_uInt16)m_pSh->GetOut()->PixelToLogic(Size(m_pSh->GetDrawView()->GetMarkHdlSizePixel()/2,0)).Width())
 
@@ -121,7 +121,7 @@ sal_Bool SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt)
     {
         if (IsCreateObj() && (eHit == SDRHIT_UNMARKEDOBJECT || eHit == SDRHIT_NONE || m_pSh->IsDrawCreate()))
         {
-            bNoInterrupt = sal_True;
+            bNoInterrupt = true;
             m_pWin->CaptureMouse();
 
             m_aStartPos = m_pWin->PixelToLogic(rMEvt.GetPosPixel());
@@ -147,7 +147,7 @@ sal_Bool SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt)
                 /******************************************************************
                 * Handle draggen
                 ******************************************************************/
-                bNoInterrupt = sal_True;
+                bNoInterrupt = true;
                 bReturn = pSdrView->BegDragObj(m_aStartPos, (OutputDevice*) NULL, aVEvt.pHdl);
                 m_pWin->SetDrawAction(sal_True);
             }
@@ -156,7 +156,7 @@ sal_Bool SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt)
                 /******************************************************************
                 * Klebepunkt einfuegen
                 ******************************************************************/
-                bNoInterrupt = sal_True;
+                bNoInterrupt = true;
                 bReturn = pSdrView->BegInsObjPoint(m_aStartPos, rMEvt.IsMod1());
                 m_pWin->SetDrawAction(sal_True);
             }
@@ -207,7 +207,7 @@ sal_Bool SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt)
 
                     if (pHdl)
                     {
-                        bNoInterrupt = sal_True;
+                        bNoInterrupt = true;
                         pSdrView->MarkPoint(*pHdl);
                     }
                 }
@@ -222,12 +222,12 @@ sal_Bool SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt)
                     if (pSdrView->HasMarkablePoints())
                         pSdrView->UnmarkAllPoints();
 
-                    bNoInterrupt = sal_False;
+                    bNoInterrupt = false;
                     // Drag im edtwin verwenden
                     return sal_False;
                 }
 
-                bNoInterrupt = sal_True;
+                bNoInterrupt = true;
 
                 if (m_pSh->IsObjSelected())
                 {
@@ -523,7 +523,7 @@ void SwDrawBase::Deactivate()
     m_pWin->SetDrawAction(sal_False);
 
     m_pWin->ReleaseMouse();
-    bNoInterrupt = sal_False;
+    bNoInterrupt = false;
 
     if(m_pWin->GetApplyTemplate())
         m_pWin->SetApplyTemplate(SwApplyTemplate());
diff --git a/sw/source/ui/shells/textfld.cxx b/sw/source/ui/shells/textfld.cxx
index 21b8149..ed11ee1 100644
--- a/sw/source/ui/shells/textfld.cxx
+++ b/sw/source/ui/shells/textfld.cxx
@@ -81,7 +81,7 @@
 
 using namespace nsSwDocInfoSubType;
 
-extern sal_Bool bNoInterrupt;       // in mainwn.cxx
+extern bool bNoInterrupt;       // in mainwn.cxx
 
 String& lcl_AppendRedlineStr( String& rStr, sal_uInt16 nRedlId )
 {
@@ -474,7 +474,7 @@ void SwTextShell::ExecField(SfxRequest &rReq)
                     }
 
                     rSh.SetCareWin(pDlg->GetWindow());
-                    bNoInterrupt = sal_True;
+                    bNoInterrupt = true;
 
                     if ( pDlg->Execute() == RET_OK )
                     {
@@ -487,7 +487,7 @@ void SwTextShell::ExecField(SfxRequest &rReq)
 
                     delete pDlg;
                     rSh.SetCareWin(NULL);
-                    bNoInterrupt = sal_False;
+                    bNoInterrupt = false;
                     rSh.ClearMark();
                     GetView().AttrChangedNotify(GetShellPtr());
                 }
diff --git a/sw/source/ui/uiview/view.cxx b/sw/source/ui/uiview/view.cxx
index ae55a71..ccefa0b 100644
--- a/sw/source/ui/uiview/view.cxx
+++ b/sw/source/ui/uiview/view.cxx
@@ -122,7 +122,7 @@ using namespace ::com::sun::star::scanner;
 using ::rtl::OUString;
 using ::rtl::OUStringBuffer;
 
-extern sal_Bool bNoInterrupt;       // in mainwn.cxx
+extern bool bNoInterrupt;       // in mainwn.cxx
 
 #define SWVIEWFLAGS ( SFX_VIEW_CAN_PRINT|               \
                       SFX_VIEW_HAS_PRINTOPTIONS)
@@ -895,8 +895,8 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
     // Im CTOR duerfen keine Shell wechsel erfolgen, die muessen ueber
     // den Timer "zwischen gespeichert" werden. Sonst raeumt der SFX
     // sie wieder vom Stack!
-    sal_Bool bOld = bNoInterrupt;
-    bNoInterrupt = sal_True;
+    bool bOld = bNoInterrupt;
+    bNoInterrupt = true;
 
     pHRuler->SetActive( sal_True );
     pVRuler->SetActive( sal_True );
diff --git a/sw/source/ui/wrtsh/wrtsh3.cxx b/sw/source/ui/wrtsh/wrtsh3.cxx
index aaf8671..0decc71 100644
--- a/sw/source/ui/wrtsh/wrtsh3.cxx
+++ b/sw/source/ui/wrtsh/wrtsh3.cxx
@@ -51,7 +51,7 @@
 using namespace ::com::sun::star;
 using ::rtl::OUString;
 
-extern sal_Bool bNoInterrupt;       // in mainwn.cxx
+extern bool bNoInterrupt;       // in mainwn.cxx
 
 sal_Bool SwWrtShell::MoveBookMark( BookMarkMove eFuncId, const ::sw::mark::IMark* const pMark)
 {
@@ -132,8 +132,8 @@ void SwWrtShell::DrawSelChanged( )
 
     GetView().GetViewFrame()->GetBindings().Invalidate(aInval);
 
-    sal_Bool bOldVal = bNoInterrupt;
-    bNoInterrupt = sal_True;    // Trick, um AttrChangedNotify ueber Timer auszufuehren
+    bool bOldVal = bNoInterrupt;
+    bNoInterrupt = true;    // Trick, um AttrChangedNotify ueber Timer auszufuehren
     GetView().AttrChangedNotify(this);
     bNoInterrupt = bOldVal;
 }


More information about the Libreoffice-commits mailing list