Kaydet (Commit) 2cf50102 authored tarafından Noel Grandin's avatar Noel Grandin

sfx2/objface.xx: sal_Bool->bool

Change-Id: I1227c958d58903dc114a4e4173fb2714b2ec33f2
üst a1c57dd8
...@@ -73,8 +73,8 @@ public: ...@@ -73,8 +73,8 @@ public:
void RegisterObjectBar( sal_uInt16, const ResId&, const OUString* pST=0 ); void RegisterObjectBar( sal_uInt16, const ResId&, const OUString* pST=0 );
void RegisterObjectBar( sal_uInt16, const ResId&, sal_uInt32 nFeature, 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, 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, sal_uInt32 nFeature, const OUString* pST=0 );
void RegisterStatusBar( const ResId& ); void RegisterStatusBar( const ResId& );
const ResId& GetObjectBarResId( sal_uInt16 nNo ) const; const ResId& GetObjectBarResId( sal_uInt16 nNo ) const;
sal_uInt16 GetObjectBarPos( sal_uInt16 nNo ) const; sal_uInt16 GetObjectBarPos( sal_uInt16 nNo ) const;
...@@ -82,7 +82,7 @@ public: ...@@ -82,7 +82,7 @@ public:
sal_uInt16 GetObjectBarCount() const; sal_uInt16 GetObjectBarCount() const;
void SetObjectBarPos( sal_uInt16 nPos, sal_uInt16 nId ); void SetObjectBarPos( sal_uInt16 nPos, sal_uInt16 nId );
const OUString* GetObjectBarName( sal_uInt16 nNo ) const; 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 GetChildWindowFeature( sal_uInt16 nNo ) const;
sal_uInt32 GetChildWindowId( sal_uInt16 nNo ) const; sal_uInt32 GetChildWindowId( sal_uInt16 nNo ) const;
sal_uInt16 GetChildWindowCount() const; sal_uInt16 GetChildWindowCount() const;
......
...@@ -365,13 +365,13 @@ inline void SfxShell::SetPool ...@@ -365,13 +365,13 @@ inline void SfxShell::SetPool
GetStaticInterface()->RegisterObjectBar( nPos, rResId, nFeature ) GetStaticInterface()->RegisterObjectBar( nPos, rResId, nFeature )
#define SFX_CHILDWINDOW_REGISTRATION(nId) \ #define SFX_CHILDWINDOW_REGISTRATION(nId) \
GetStaticInterface()->RegisterChildWindow( nId, (sal_Bool) sal_False ) GetStaticInterface()->RegisterChildWindow( nId, false )
#define SFX_FEATURED_CHILDWINDOW_REGISTRATION(nId,nFeature) \ #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) \ #define SFX_CHILDWINDOW_CONTEXT_REGISTRATION(nId) \
GetStaticInterface()->RegisterChildWindow( nId, (sal_Bool) sal_True ) GetStaticInterface()->RegisterChildWindow( nId, true )
#define SFX_POPUPMENU_REGISTRATION(rResId) \ #define SFX_POPUPMENU_REGISTRATION(rResId) \
GetStaticInterface()->RegisterPopupMenu( rResId ) GetStaticInterface()->RegisterPopupMenu( rResId )
......
...@@ -54,16 +54,16 @@ struct SfxObjectUI_Impl ...@@ -54,16 +54,16 @@ struct SfxObjectUI_Impl
{ {
sal_uInt16 nPos; sal_uInt16 nPos;
ResId aResId; ResId aResId;
sal_Bool bVisible; bool bVisible;
sal_Bool bContext; bool bContext;
OUString* pName; OUString* pName;
sal_uInt32 nFeature; 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), nPos(n),
aResId(rResId.GetId(), *rResId.GetResMgr()), aResId(rResId.GetId(), *rResId.GetResMgr()),
bVisible(bVis), bVisible(bVis),
bContext(sal_False), bContext(false),
pName(0), pName(0),
nFeature(nFeat) nFeature(nFeat)
{ {
...@@ -85,13 +85,13 @@ struct SfxInterface_Impl ...@@ -85,13 +85,13 @@ struct SfxInterface_Impl
ResId aPopupRes; // registered PopupMenu ResId aPopupRes; // registered PopupMenu
ResId aStatBarRes; // registered StatusBar ResId aStatBarRes; // registered StatusBar
SfxModule* pModule; SfxModule* pModule;
sal_Bool bRegistered; bool bRegistered;
SfxInterface_Impl() : SfxInterface_Impl() :
aPopupRes(0,*SfxApplication::GetOrCreate()->GetSfxResManager()), aPopupRes(0,*SfxApplication::GetOrCreate()->GetSfxResManager()),
aStatBarRes(0,*SfxApplication::GetOrCreate()->GetSfxResManager()) aStatBarRes(0,*SfxApplication::GetOrCreate()->GetSfxResManager())
, pModule(NULL) , pModule(NULL)
, bRegistered(sal_False) , bRegistered(false)
{ {
} }
...@@ -129,7 +129,7 @@ SfxInterface::SfxInterface( const char *pClassName, ...@@ -129,7 +129,7 @@ SfxInterface::SfxInterface( const char *pClassName,
void SfxInterface::Register( SfxModule* pMod ) void SfxInterface::Register( SfxModule* pMod )
{ {
pImpData->bRegistered = sal_True; pImpData->bRegistered = true;
pImpData->pModule = pMod; pImpData->pModule = pMod;
if ( pMod ) if ( pMod )
pMod->GetSlotPool()->RegisterInterface(*this); pMod->GetSlotPool()->RegisterInterface(*this);
...@@ -287,7 +287,7 @@ void SfxInterface::SetSlotMap( SfxSlot& rSlotMap, sal_uInt16 nSlotCount ) ...@@ -287,7 +287,7 @@ void SfxInterface::SetSlotMap( SfxSlot& rSlotMap, sal_uInt16 nSlotCount )
SfxInterface::~SfxInterface() SfxInterface::~SfxInterface()
{ {
SfxModule *pMod = pImpData->pModule; SfxModule *pMod = pImpData->pModule;
sal_Bool bRegistered = pImpData->bRegistered; bool bRegistered = pImpData->bRegistered;
delete pImpData; delete pImpData;
assert( bRegistered ); assert( bRegistered );
if ( bRegistered ) if ( bRegistered )
...@@ -404,7 +404,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId, ...@@ -404,7 +404,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
if ((nPos & SFX_VISIBILITY_MASK) == 0) if ((nPos & SFX_VISIBILITY_MASK) == 0)
nPos |= SFX_VISIBILITY_STANDARD; 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) if (pStr == 0)
{ {
...@@ -426,7 +426,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId, ...@@ -426,7 +426,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const
{ {
sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName()); bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
if ( bGenoType ) if ( bGenoType )
{ {
// Are there toolbars in the super class? // Are there toolbars in the super class?
...@@ -448,7 +448,7 @@ const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const ...@@ -448,7 +448,7 @@ const ResId& SfxInterface::GetObjectBarResId( sal_uInt16 nNo ) const
sal_uInt16 SfxInterface::GetObjectBarPos( 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 ) if ( bGenoType )
{ {
// Are there toolbars in the super class? // Are there toolbars in the super class?
...@@ -477,14 +477,14 @@ sal_uInt16 SfxInterface::GetObjectBarCount() const ...@@ -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 ); 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; pUI->bContext = bContext;
pImpData->aChildWindows.push_back(pUI); pImpData->aChildWindows.push_back(pUI);
} }
...@@ -564,7 +564,7 @@ const ResId& SfxInterface::GetStatusBarResId() const ...@@ -564,7 +564,7 @@ const ResId& SfxInterface::GetStatusBarResId() const
const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const
{ {
sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName()); bool bGenoType = (pGenoType != 0 && !pGenoType->HasName());
if ( bGenoType ) if ( bGenoType )
{ {
// Are there toolbars in the super class? // Are there toolbars in the super class?
...@@ -583,7 +583,7 @@ const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const ...@@ -583,7 +583,7 @@ const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const
sal_uInt32 SfxInterface::GetObjectBarFeature ( 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 ) if ( bGenoType )
{ {
// Are there toolbars in the super class? // Are there toolbars in the super class?
...@@ -600,9 +600,9 @@ sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const ...@@ -600,9 +600,9 @@ sal_uInt32 SfxInterface::GetObjectBarFeature ( sal_uInt16 nNo ) const
return pImpData->aObjectBars[nNo]->nFeature; 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 ) if ( bGenoType )
{ {
// Are there toolbars in the super class? // Are there toolbars in the super class?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment