summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-09-26 16:05:01 +0200
committerMichael Stahl <mstahl@redhat.com>2012-10-04 21:29:35 +0200
commitc29633988bc1877c5f6e2a89be4840c70afde418 (patch)
tree6efa539f0a7498627bc4be3fea6aba98b003b9d0 /sd
parent055b6f1271cf90240caa3ab0f22f3e760fcefd51 (diff)
sal_Bool->bool in svl::SfxStyleSheetBase
Change-Id: Id506fa56d07be56d63715703e354625715275933
Diffstat (limited to 'sd')
-rw-r--r--sd/inc/stlsheet.hxx12
-rw-r--r--sd/source/core/stlsheet.cxx28
2 files changed, 20 insertions, 20 deletions
diff --git a/sd/inc/stlsheet.hxx b/sd/inc/stlsheet.hxx
index 364df812206a..191bcf97b471 100644
--- a/sd/inc/stlsheet.hxx
+++ b/sd/inc/stlsheet.hxx
@@ -54,13 +54,13 @@ public:
SdStyleSheet( const rtl::OUString& rDisplayName, SfxStyleSheetBasePool& rPool, SfxStyleFamily eFamily, sal_uInt16 nMask );
SdStyleSheet( const SdStyleSheet& );
- virtual sal_Bool SetParent (const String& rParentName);
+ virtual bool SetParent (const String& rParentName);
virtual SfxItemSet& GetItemSet();
- virtual sal_Bool IsUsed() const;
- virtual sal_Bool HasFollowSupport() const;
- virtual sal_Bool HasParentSupport() const;
- virtual sal_Bool HasClearParentSupport() const;
- virtual sal_Bool SetName( const UniString& );
+ virtual bool IsUsed() const;
+ virtual bool HasFollowSupport() const;
+ virtual bool HasParentSupport() const;
+ virtual bool HasClearParentSupport() const;
+ virtual bool SetName( const UniString& );
virtual void SetHelpId( const String& r, sal_uLong nId );
void AdjustToFontHeight(SfxItemSet& rSet, sal_Bool bOnlyMissingItems = sal_True);
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 4bedcc0fdbfc..5c56cfbf97d9 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -197,9 +197,9 @@ void SdStyleSheet::Store(SvStream& rOut)
|*
\************************************************************************/
-sal_Bool SdStyleSheet::SetParent(const String& rParentName)
+bool SdStyleSheet::SetParent(const String& rParentName)
{
- sal_Bool bResult = sal_False;
+ bool bResult = sal_False;
if (SfxStyleSheet::SetParent(rParentName))
{
@@ -211,7 +211,7 @@ sal_Bool SdStyleSheet::SetParent(const String& rParentName)
SfxStyleSheetBase* pStyle = pPool->Find(rParentName, nFamily);
if (pStyle)
{
- bResult = sal_True;
+ bResult = true;
SfxItemSet& rParentSet = pStyle->GetItemSet();
GetItemSet().SetParent(&rParentSet);
Broadcast( SfxSimpleHint( SFX_HINT_DATACHANGED ) );
@@ -219,14 +219,14 @@ sal_Bool SdStyleSheet::SetParent(const String& rParentName)
}
else
{
- bResult = sal_True;
+ bResult = true;
GetItemSet().SetParent(NULL);
Broadcast( SfxSimpleHint( SFX_HINT_DATACHANGED ) );
}
}
else
{
- bResult = sal_True;
+ bResult = true;
}
}
return bResult;
@@ -342,9 +342,9 @@ SfxItemSet& SdStyleSheet::GetItemSet()
|*
\************************************************************************/
-sal_Bool SdStyleSheet::IsUsed() const
+bool SdStyleSheet::IsUsed() const
{
- sal_Bool bResult = sal_False;
+ bool bResult = false;
sal_uInt16 nListenerCount = GetListenerCount();
if (nListenerCount > 0)
@@ -636,28 +636,28 @@ void SdStyleSheet::AdjustToFontHeight(SfxItemSet& rSet, sal_Bool bOnlyMissingIte
// --------------------------------------------------------------------
-sal_Bool SdStyleSheet::HasFollowSupport() const
+bool SdStyleSheet::HasFollowSupport() const
{
- return sal_False;
+ return false;
}
// --------------------------------------------------------------------
-sal_Bool SdStyleSheet::HasParentSupport() const
+bool SdStyleSheet::HasParentSupport() const
{
- return sal_True;
+ return true;
}
// --------------------------------------------------------------------
-sal_Bool SdStyleSheet::HasClearParentSupport() const
+bool SdStyleSheet::HasClearParentSupport() const
{
- return sal_True;
+ return true;
}
// --------------------------------------------------------------------
-sal_Bool SdStyleSheet::SetName( const UniString& rName )
+bool SdStyleSheet::SetName( const UniString& rName )
{
return SfxStyleSheet::SetName( rName );
}