summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-01 12:39:36 +0200
committerNoel Grandin <noel@peralex.com>2014-04-03 09:17:49 +0200
commit2cf50102a057e97b2a89a673b6378177714c9ed5 (patch)
tree0c684c217fee81c0b9f74f2f34e19fcf90b6c49c
parenta1c57dd89780d73a74b1408608198da0567f0257 (diff)
sfx2/objface.xx: sal_Bool->bool
Change-Id: I1227c958d58903dc114a4e4173fb2714b2ec33f2
-rw-r--r--include/sfx2/objface.hxx10
-rw-r--r--include/sfx2/shell.hxx6
-rw-r--r--sfx2/source/control/objface.cxx40
3 files changed, 28 insertions, 28 deletions
diff --git a/include/sfx2/objface.hxx b/include/sfx2/objface.hxx
index 20c7d7689829..e31d56ea7782 100644
--- a/include/sfx2/objface.hxx
+++ b/include/sfx2/objface.hxx
@@ -38,7 +38,7 @@ friend class SfxSlotPool;
const char* pName; // Sfx-internal name of interface
const SfxInterface* pGenoType; // base interface
SfxSlot* pSlots; // SlotMap
- sal_uInt16 nCount; // number of slots in SlotMap
+ sal_uInt16 nCount; // number of slots in SlotMap
SfxInterfaceId nClassId; // Id of interface
ResId aNameResId; // ResId of external interface name
SfxInterface_Impl* pImpData;
@@ -63,7 +63,7 @@ public:
const char* GetClassName() const { return pName; }
bool HasName() const { return 0 != aNameResId.GetId(); }
- OUString GetName() const
+ OUString GetName() const
{ return HasName() ? aNameResId.toString() : OUString(); }
ResMgr* GetResMgr() const
{ return aNameResId.GetResMgr(); }
@@ -73,8 +73,8 @@ public:
void RegisterObjectBar( sal_uInt16, const ResId&, const OUString* pST=0 );
void RegisterObjectBar( sal_uInt16, const ResId&, sal_uInt32 nFeature, const OUString* pST=0 );
- void RegisterChildWindow( sal_uInt16, sal_Bool bContext, const OUString* pST=0 );
- void RegisterChildWindow( sal_uInt16, sal_Bool bContext, sal_uInt32 nFeature, const OUString* pST=0 );
+ void RegisterChildWindow( sal_uInt16, bool bContext, const OUString* pST=0 );
+ void RegisterChildWindow( sal_uInt16, bool bContext, sal_uInt32 nFeature, const OUString* pST=0 );
void RegisterStatusBar( const ResId& );
const ResId& GetObjectBarResId( sal_uInt16 nNo ) const;
sal_uInt16 GetObjectBarPos( sal_uInt16 nNo ) const;
@@ -82,7 +82,7 @@ public:
sal_uInt16 GetObjectBarCount() const;
void SetObjectBarPos( sal_uInt16 nPos, sal_uInt16 nId );
const OUString* GetObjectBarName( sal_uInt16 nNo ) const;
- sal_Bool IsObjectBarVisible( sal_uInt16 nNo) const;
+ bool IsObjectBarVisible( sal_uInt16 nNo) const;
sal_uInt32 GetChildWindowFeature( sal_uInt16 nNo ) const;
sal_uInt32 GetChildWindowId( sal_uInt16 nNo ) const;
sal_uInt16 GetChildWindowCount() const;
diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx
index 295fc6e611ab..1bc565d88a8e 100644
--- a/include/sfx2/shell.hxx
+++ b/include/sfx2/shell.hxx
@@ -365,13 +365,13 @@ inline void SfxShell::SetPool
GetStaticInterface()->RegisterObjectBar( nPos, rResId, nFeature )
#define SFX_CHILDWINDOW_REGISTRATION(nId) \
- GetStaticInterface()->RegisterChildWindow( nId, (sal_Bool) sal_False )
+ GetStaticInterface()->RegisterChildWindow( nId, false )
#define SFX_FEATURED_CHILDWINDOW_REGISTRATION(nId,nFeature) \
- GetStaticInterface()->RegisterChildWindow( nId, (sal_Bool) sal_False, nFeature )
+ GetStaticInterface()->RegisterChildWindow( nId, false, nFeature )
#define SFX_CHILDWINDOW_CONTEXT_REGISTRATION(nId) \
- GetStaticInterface()->RegisterChildWindow( nId, (sal_Bool) sal_True )
+ GetStaticInterface()->RegisterChildWindow( nId, true )
#define SFX_POPUPMENU_REGISTRATION(rResId) \
GetStaticInterface()->RegisterPopupMenu( rResId )
diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx
index a8ba33772c3c..59347e6c5428 100644
--- a/sfx2/source/control/objface.cxx
+++ b/sfx2/source/control/objface.cxx
@@ -53,17 +53,17 @@ SfxCompareSlots_Impl( const void* pSmaller, const void* pBigger )
struct SfxObjectUI_Impl
{
sal_uInt16 nPos;
- ResId aResId;
- sal_Bool bVisible;
- sal_Bool bContext;
- OUString* pName;
+ ResId aResId;
+ bool bVisible;
+ bool bContext;
+ OUString* pName;
sal_uInt32 nFeature;
- SfxObjectUI_Impl(sal_uInt16 n, const ResId& rResId, sal_Bool bVis, sal_uInt32 nFeat) :
+ SfxObjectUI_Impl(sal_uInt16 n, const ResId& rResId, bool bVis, sal_uInt32 nFeat) :
nPos(n),
aResId(rResId.GetId(), *rResId.GetResMgr()),
bVisible(bVis),
- bContext(sal_False),
+ bContext(false),
pName(0),
nFeature(nFeat)
{
@@ -85,13 +85,13 @@ struct SfxInterface_Impl
ResId aPopupRes; // registered PopupMenu
ResId aStatBarRes; // registered StatusBar
SfxModule* pModule;
- sal_Bool bRegistered;
+ bool bRegistered;
SfxInterface_Impl() :
aPopupRes(0,*SfxApplication::GetOrCreate()->GetSfxResManager()),
aStatBarRes(0,*SfxApplication::GetOrCreate()->GetSfxResManager())
, pModule(NULL)
- , bRegistered(sal_False)
+ , bRegistered(false)
{
}
@@ -129,7 +129,7 @@ SfxInterface::SfxInterface( const char *pClassName,
void SfxInterface::Register( SfxModule* pMod )
{
- pImpData->bRegistered = sal_True;
+ pImpData->bRegistered = true;
pImpData->pModule = pMod;
if ( pMod )
pMod->GetSlotPool()->RegisterInterface(*this);
@@ -287,7 +287,7 @@ void SfxInterface::SetSlotMap( SfxSlot& rSlotMap, sal_uInt16 nSlotCount )
SfxInterface::~SfxInterface()
{
SfxModule *pMod = pImpData->pModule;
- sal_Bool bRegistered = pImpData->bRegistered;
+ bool bRegistered = pImpData->bRegistered;
delete pImpData;
assert( bRegistered );
if ( bRegistered )
@@ -404,7 +404,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
if ((nPos & SFX_VISIBILITY_MASK) == 0)
nPos |= SFX_VISIBILITY_STANDARD;
- SfxObjectUI_Impl* pUI = new SfxObjectUI_Impl(nPos, rResId, sal_True, nFeature);
+ SfxObjectUI_Impl* pUI = new SfxObjectUI_Impl(nPos, rResId, true, nFeature);
if (pStr == 0)
{
@@ -426,7 +426,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const
{
- sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
+ bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
if ( bGenoType )
{
// Are there toolbars in the super class?
@@ -448,7 +448,7 @@ const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const
sal_uInt16 SfxInterface::GetObjectBarPos( sal_uInt16 nNo ) const
{
- sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
+ bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
if ( bGenoType )
{
// Are there toolbars in the super class?
@@ -477,14 +477,14 @@ sal_uInt16 SfxInterface::GetObjectBarCount() const
}
-void SfxInterface::RegisterChildWindow(sal_uInt16 nId, sal_Bool bContext, const OUString* pChildWinName)
+void SfxInterface::RegisterChildWindow(sal_uInt16 nId, bool bContext, const OUString* pChildWinName)
{
RegisterChildWindow( nId, bContext, 0UL, pChildWinName );
}
-void SfxInterface::RegisterChildWindow(sal_uInt16 nId, sal_Bool bContext, sal_uInt32 nFeature, const OUString*)
+void SfxInterface::RegisterChildWindow(sal_uInt16 nId, bool bContext, sal_uInt32 nFeature, const OUString*)
{
- SfxObjectUI_Impl* pUI = new SfxObjectUI_Impl(0, ResId(nId, *SfxApplication::GetOrCreate()->GetOffResManager_Impl()), sal_True, nFeature);
+ SfxObjectUI_Impl* pUI = new SfxObjectUI_Impl(0, ResId(nId, *SfxApplication::GetOrCreate()->GetOffResManager_Impl()), true, nFeature);
pUI->bContext = bContext;
pImpData->aChildWindows.push_back(pUI);
}
@@ -564,7 +564,7 @@ const ResId& SfxInterface::GetStatusBarResId() const
const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const
{
- sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
+ bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
if ( bGenoType )
{
// Are there toolbars in the super class?
@@ -583,7 +583,7 @@ const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const
sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const
{
- sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
+ bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
if ( bGenoType )
{
// Are there toolbars in the super class?
@@ -600,9 +600,9 @@ sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const
return pImpData->aObjectBars[nNo]->nFeature;
}
-sal_Bool SfxInterface::IsObjectBarVisible(sal_uInt16 nNo) const
+bool SfxInterface::IsObjectBarVisible(sal_uInt16 nNo) const
{
- sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
+ bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
if ( bGenoType )
{
// Are there toolbars in the super class?