summaryrefslogtreecommitdiff
path: root/sd/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-17 13:38:26 +0200
committerNoel Grandin <noel@peralex.com>2014-03-18 11:27:38 +0200
commitac01de882d368c4d8044361f874edd4b53e33f2b (patch)
tree50b56ce1efa549fec4b69d04ae9f1cd4ecb3ccfe /sd/source/ui/view
parent399724aba4b7297a262a775d000ddf4534e38b6c (diff)
sfx2: sal_Bool->bool
Change-Id: I87c5a180566e9da185c2992844e6522e82c17747
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r--sd/source/ui/view/Outliner.cxx22
-rw-r--r--sd/source/ui/view/drawview.cxx4
-rw-r--r--sd/source/ui/view/drviews9.cxx4
-rw-r--r--sd/source/ui/view/drviewsa.cxx2
-rw-r--r--sd/source/ui/view/outlview.cxx4
-rw-r--r--sd/source/ui/view/viewshe2.cxx8
6 files changed, 22 insertions, 22 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 89b62d27fa01..c59b1600ff59 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -387,7 +387,7 @@ bool Outliner::SpellNextDocument (void)
{
if (mpView->ISA(OutlineView))
((OutlineView*)mpView)->PrepareClose(sal_False);
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_True );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( true );
Initialize (true);
@@ -397,7 +397,7 @@ bool Outliner::SpellNextDocument (void)
pOutlinerView->SetWindow(mpWindow);
ProvideNextTextObject ();
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_False );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
ClearModifyFlag();
}
@@ -460,7 +460,7 @@ bool Outliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem)
{
sal_Bool bEndOfSearch = sal_True;
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_True );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( true );
if (mbPrepareSpellingPending)
PrepareSpelling();
ViewShellBase* pBase = PTR_CAST(ViewShellBase,SfxViewShell::Current());
@@ -530,7 +530,7 @@ bool Outliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem)
}
}
else
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_False );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
return bEndOfSearch;
}
@@ -713,7 +713,7 @@ bool Outliner::SearchAndReplaceOnce (void)
"SearchAndReplace without valid view!" );
if ( ! GetEditEngine().HasView( &pOutlinerView->GetEditView() ) )
{
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_False );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
return true;
}
@@ -724,7 +724,7 @@ bool Outliner::SearchAndReplaceOnce (void)
}
else if (pViewShell->ISA(OutlineViewShell))
{
- mpDrawDocument->GetDocSh()->SetWaitCursor (sal_False);
+ mpDrawDocument->GetDocSh()->SetWaitCursor(false);
// The following loop is executed more then once only when a
// wrap arround search is done.
while (true)
@@ -745,7 +745,7 @@ bool Outliner::SearchAndReplaceOnce (void)
}
}
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_False );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
return mbEndOfSearch;
}
@@ -1251,7 +1251,7 @@ void Outliner::PrepareSearchAndReplace (void)
EnterEditMode ();
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_False );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
// Start seach at the right end of the current object's text
// depending on the search direction.
OutlinerView* pOutlinerView = mpImpl->GetOutlinerView();
@@ -1590,7 +1590,7 @@ void Outliner::PrepareConversion (void)
EnterEditMode ();
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_False );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
// Start seach at the right end of the current object's text
// depending on the search direction.
}
@@ -1649,7 +1649,7 @@ bool Outliner::ConvertNextDocument()
if (pViewShell && pViewShell->ISA(OutlineViewShell) )
return false;
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_True );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( true );
Initialize ( true );
@@ -1661,7 +1661,7 @@ bool Outliner::ConvertNextDocument()
}
ProvideNextTextObject ();
- mpDrawDocument->GetDocSh()->SetWaitCursor( sal_False );
+ mpDrawDocument->GetDocSh()->SetWaitCursor( false );
ClearModifyFlag();
// for text conversion we automaticly wrap around one
diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx
index 8d54b697e5f6..1fa6374a3ebd 100644
--- a/sd/source/ui/view/drawview.cxx
+++ b/sd/source/ui/view/drawview.cxx
@@ -177,7 +177,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet,
::Outliner* pOutliner = pOV->GetOutliner();
pOutliner->SetUpdateMode(false);
- mpDocSh->SetWaitCursor( sal_True );
+ mpDocSh->SetWaitCursor( true );
// replace placeholder by template name
OUString aComment(SD_RESSTR(STR_UNDO_CHANGE_PRES_OBJECT));
@@ -236,7 +236,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet,
pPara = pOutliner->GetParagraph( 0 ); // Put NumBulletItem in outline level 1
}
- mpDocSh->SetWaitCursor( sal_False );
+ mpDocSh->SetWaitCursor( false );
pOV->GetOutliner()->SetUpdateMode(true);
mpDocSh->GetUndoManager()->LeaveListAction();
diff --git a/sd/source/ui/view/drviews9.cxx b/sd/source/ui/view/drviews9.cxx
index ad9d93146d88..597a3dd22adf 100644
--- a/sd/source/ui/view/drviews9.cxx
+++ b/sd/source/ui/view/drviews9.cxx
@@ -75,7 +75,7 @@ void DrawViewShell::ExecGallery(SfxRequest& rReq)
if ( !pGalleryItem )
return;
- GetDocSh()->SetWaitCursor( sal_True );
+ GetDocSh()->SetWaitCursor( true );
sal_Int8 nType( pGalleryItem->GetType() );
// insert graphic
@@ -180,7 +180,7 @@ void DrawViewShell::ExecGallery(SfxRequest& rReq)
GetViewFrame()->GetDispatcher()->Execute( SID_INSERT_AVMEDIA, SFX_CALLMODE_SYNCHRON, &aMediaURLItem, 0L );
}
- GetDocSh()->SetWaitCursor( sal_False );
+ GetDocSh()->SetWaitCursor( false );
}
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index da812e4d30f5..d981d7a55a8c 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -796,7 +796,7 @@ void DrawViewShell::Notify (SfxBroadcaster&, const SfxHint& rHint)
}
// Turn on design mode when document is not read-only.
- if (GetDocSh()->IsReadOnly() != mbReadOnly )
+ if ((GetDocSh()->IsReadOnly() ? 1 : 0) != mbReadOnly )
{
mbReadOnly = GetDocSh()->IsReadOnly();
diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx
index 76abf4f257a0..692a70e76554 100644
--- a/sd/source/ui/view/outlview.cxx
+++ b/sd/source/ui/view/outlview.cxx
@@ -617,7 +617,7 @@ IMPL_LINK( OutlineView, DepthChangedHdl, ::Outliner *, pOutliner )
}
else
{
- mpDocSh->SetWaitCursor( sal_True );
+ mpDocSh->SetWaitCursor( true );
}
}
@@ -641,7 +641,7 @@ IMPL_LINK( OutlineView, DepthChangedHdl, ::Outliner *, pOutliner )
mpProgress = NULL;
}
else
- mpDocSh->SetWaitCursor( sal_False );
+ mpDocSh->SetWaitCursor( false );
mnPagesToProcess = 0;
mnPagesProcessed = 0;
diff --git a/sd/source/ui/view/viewshe2.cxx b/sd/source/ui/view/viewshe2.cxx
index 01626f7192e8..7c319ba9944c 100644
--- a/sd/source/ui/view/viewshe2.cxx
+++ b/sd/source/ui/view/viewshe2.cxx
@@ -736,7 +736,7 @@ sal_Bool ViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb)
SfxErrorContext aEC(ERRCTX_SO_DOVERB, GetActiveWindow(), RID_SO_ERRCTX);
sal_Bool bAbort = sal_False;
- GetDocSh()->SetWaitCursor( sal_True );
+ GetDocSh()->SetWaitCursor( true );
SfxViewShell* pViewShell = GetViewShell();
OSL_ASSERT (pViewShell!=NULL);
bool bChangeDefaultsForChart = false;
@@ -777,12 +777,12 @@ sal_Bool ViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb)
aName = "";
// call dialog "insert OLE object"
- GetDocSh()->SetWaitCursor( sal_False );
+ GetDocSh()->SetWaitCursor( false );
pViewShell->GetViewFrame()->GetDispatcher()->Execute(
SID_INSERT_OBJECT,
SFX_CALLMODE_SYNCHRON | SFX_CALLMODE_RECORD);
xObj = pObj->GetObjRef();
- GetDocSh()->SetWaitCursor( sal_True );
+ GetDocSh()->SetWaitCursor( true );
if (!xObj.is())
{
@@ -886,7 +886,7 @@ sal_Bool ViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb)
SID_NAVIGATOR_STATE, true, false);
}
- GetDocSh()->SetWaitCursor( sal_False );
+ GetDocSh()->SetWaitCursor( false );
if (aErrCode != 0 && !bAbort)
{