bool improvements
Change-Id: I85faf4e3fcab6763af11eb6a4082820e88bea1ca
This commit is contained in:
@@ -87,7 +87,7 @@ namespace svt
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
Control* pWindow;
|
Control* pWindow;
|
||||||
sal_Bool bSuspended; // <sal_True> if the window is hidden and disabled
|
bool bSuspended; // <true> if the window is hidden and disabled
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TYPEINFO();
|
TYPEINFO();
|
||||||
@@ -108,7 +108,7 @@ namespace svt
|
|||||||
// suspending the controller is not culmulative!
|
// suspending the controller is not culmulative!
|
||||||
void suspend( );
|
void suspend( );
|
||||||
void resume( );
|
void resume( );
|
||||||
inline sal_Bool isSuspended( ) const { return bSuspended; }
|
inline bool isSuspended( ) const { return bSuspended; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const;
|
virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const;
|
||||||
|
@@ -1339,7 +1339,7 @@ namespace svt
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
CellController::CellController(Control* pW)
|
CellController::CellController(Control* pW)
|
||||||
:pWindow( pW )
|
:pWindow( pW )
|
||||||
,bSuspended( sal_True )
|
,bSuspended( true )
|
||||||
{
|
{
|
||||||
DBG_CTOR(CellController,NULL);
|
DBG_CTOR(CellController,NULL);
|
||||||
|
|
||||||
@@ -1363,7 +1363,7 @@ namespace svt
|
|||||||
CommitModifications();
|
CommitModifications();
|
||||||
GetWindow().Hide( );
|
GetWindow().Hide( );
|
||||||
GetWindow().Disable( );
|
GetWindow().Disable( );
|
||||||
bSuspended = sal_True;
|
bSuspended = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1375,7 +1375,7 @@ namespace svt
|
|||||||
{
|
{
|
||||||
GetWindow().Enable( );
|
GetWindow().Enable( );
|
||||||
GetWindow().Show( );
|
GetWindow().Show( );
|
||||||
bSuspended = sal_False;
|
bSuspended = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -280,7 +280,7 @@ SvtMenuOptions_Impl::~SvtMenuOptions_Impl()
|
|||||||
{
|
{
|
||||||
// Flush data to configuration!
|
// Flush data to configuration!
|
||||||
// User has no chance to do that.
|
// User has no chance to do that.
|
||||||
if( IsModified() == sal_True )
|
if( IsModified() )
|
||||||
{
|
{
|
||||||
Commit();
|
Commit();
|
||||||
}
|
}
|
||||||
|
@@ -404,7 +404,7 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl()
|
|||||||
SvtMiscOptions_Impl::~SvtMiscOptions_Impl()
|
SvtMiscOptions_Impl::~SvtMiscOptions_Impl()
|
||||||
{
|
{
|
||||||
// We must save our current values .. if user forgets it!
|
// We must save our current values .. if user forgets it!
|
||||||
if( IsModified() == sal_True )
|
if( IsModified() )
|
||||||
{
|
{
|
||||||
Commit();
|
Commit();
|
||||||
}
|
}
|
||||||
|
@@ -296,9 +296,9 @@ bool TreeControlPeer::updateEntry( UnoTreeListEntry* pEntry )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( (pEntry->mxNode->hasChildrenOnDemand() == sal_True) != (pEntry->HasChildrenOnDemand() == sal_True) )
|
if( bool(pEntry->mxNode->hasChildrenOnDemand()) != pEntry->HasChildrenOnDemand() )
|
||||||
{
|
{
|
||||||
pEntry->EnableChildrenOnDemand( pEntry->mxNode->hasChildrenOnDemand() ? sal_True : sal_False );
|
pEntry->EnableChildrenOnDemand( pEntry->mxNode->hasChildrenOnDemand() );
|
||||||
bChanged = true;
|
bChanged = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user