sal_Bool->bool

Change-Id: Ib0f6699e994f5a71603779b8227bf081b71a5dd6
This commit is contained in:
Noel Grandin
2014-02-13 14:29:17 +02:00
parent 27042facc6
commit f30f646e1e
12 changed files with 36 additions and 36 deletions

View File

@@ -40,9 +40,9 @@ AccessibleViewForwarder::~AccessibleViewForwarder()
// ________ IAccessibleViewforwarder ________
sal_Bool AccessibleViewForwarder::IsValid() const
bool AccessibleViewForwarder::IsValid() const
{
return sal_True;
return true;
}
Rectangle AccessibleViewForwarder::GetVisibleArea() const

View File

@@ -36,7 +36,7 @@ public:
virtual ~AccessibleViewForwarder();
// ________ IAccessibleViewforwarder ________
virtual sal_Bool IsValid() const;
virtual bool IsValid() const;
virtual Rectangle GetVisibleArea() const;
virtual Point LogicToPixel( const Point& rPoint ) const;
virtual Size LogicToPixel( const Size& rSize ) const;

View File

@@ -60,7 +60,7 @@ public:
@return
Return <true/> if the view forwarder is valid and <false/> else.
*/
virtual sal_Bool IsValid (void) const = 0;
virtual bool IsValid (void) const = 0;
/** Returns the area of the underlying document that is visible in the
* corresponding window.

View File

@@ -1496,7 +1496,7 @@ IMPL_LINK( ScAccessibleDocument, WindowChildEventListener, VclSimpleEvent*, pEve
Window* pChildWin = static_cast < Window * >( pVclEvent->GetData() );
if( pChildWin && AccessibleRole::EMBEDDED_OBJECT == pChildWin->GetAccessibleRole() )
{
AddChild( pChildWin->GetAccessible(), sal_True );
AddChild( pChildWin->GetAccessible(), true );
}
}
break;
@@ -1505,7 +1505,7 @@ IMPL_LINK( ScAccessibleDocument, WindowChildEventListener, VclSimpleEvent*, pEve
Window* pChildWin = static_cast < Window * >( pVclEvent->GetData() );
if( pChildWin && AccessibleRole::EMBEDDED_OBJECT == pChildWin->GetAccessibleRole() )
{
RemoveChild( pChildWin->GetAccessible(), sal_True );
RemoveChild( pChildWin->GetAccessible(), true );
}
}
break;
@@ -1605,7 +1605,7 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
OUString(ScResId(STR_ACC_EDITLINE_DESCR)), ScAccessibleEditObject::CellInEditMode);
uno::Reference<XAccessible> xAcc = mpTempAccEdit;
AddChild(xAcc, sal_True);
AddChild(xAcc, true);
if (mpAccessibleSpreadsheet)
mpAccessibleSpreadsheet->LostFocus();
@@ -1624,7 +1624,7 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
mpTempAccEdit->LostFocus();
mpTempAccEdit = NULL;
RemoveChild(mxTempAcc, sal_True);
RemoveChild(mxTempAcc, true);
if (mpAccessibleSpreadsheet && mpViewShell->IsActive())
mpAccessibleSpreadsheet->GotFocus();
else if( mpViewShell->IsActive())
@@ -1668,7 +1668,7 @@ void SAL_CALL ScAccessibleDocument::selectionChanged( const lang::EventObject& /
sal_Bool bSelectionChanged(false);
if (mpAccessibleSpreadsheet)
{
sal_Bool bOldSelected(mbCompleteSheetSelected);
bool bOldSelected(mbCompleteSheetSelected);
mbCompleteSheetSelected = IsTableSelected();
if (bOldSelected != mbCompleteSheetSelected)
{
@@ -2112,7 +2112,7 @@ uno::Sequence<sal_Int8> SAL_CALL
///===== IAccessibleViewForwarder ========================================
sal_Bool ScAccessibleDocument::IsValid (void) const
bool ScAccessibleDocument::IsValid (void) const
{
SolarMutexGuard aGuard;
IsObjectValid();
@@ -2280,9 +2280,9 @@ void ScAccessibleDocument::FreeAccessibleSpreadsheet()
}
}
sal_Bool ScAccessibleDocument::IsTableSelected() const
bool ScAccessibleDocument::IsTableSelected() const
{
sal_Bool bResult (false);
bool bResult (false);
if(mpViewShell)
{
SCTAB nTab(getVisibleTable());
@@ -2290,26 +2290,26 @@ sal_Bool ScAccessibleDocument::IsTableSelected() const
ScMarkData aMarkData(mpViewShell->GetViewData()->GetMarkData());
aMarkData.MarkToMulti();
if (aMarkData.IsAllMarked(ScRange(ScAddress(0, 0, nTab),ScAddress(MAXCOL, MAXROW, nTab))))
bResult = sal_True;
bResult = true;
}
return bResult;
}
sal_Bool ScAccessibleDocument::IsDefunc(
bool ScAccessibleDocument::IsDefunc(
const uno::Reference<XAccessibleStateSet>& rxParentStates)
{
return ScAccessibleContextBase::IsDefunc() || (mpViewShell == NULL) || !getAccessibleParent().is() ||
(rxParentStates.is() && rxParentStates->contains(AccessibleStateType::DEFUNC));
}
sal_Bool ScAccessibleDocument::IsEditable(
bool ScAccessibleDocument::IsEditable(
const uno::Reference<XAccessibleStateSet>& /* rxParentStates */)
{
// what is with document protection or readonly documents?
return sal_True;
return true;
}
void ScAccessibleDocument::AddChild(const uno::Reference<XAccessible>& xAcc, sal_Bool bFireEvent)
void ScAccessibleDocument::AddChild(const uno::Reference<XAccessible>& xAcc, bool bFireEvent)
{
OSL_ENSURE(!mxTempAcc.is(), "this object should be removed before");
if (xAcc.is())
@@ -2326,7 +2326,7 @@ void ScAccessibleDocument::AddChild(const uno::Reference<XAccessible>& xAcc, sal
}
}
void ScAccessibleDocument::RemoveChild(const uno::Reference<XAccessible>& xAcc, sal_Bool bFireEvent)
void ScAccessibleDocument::RemoveChild(const uno::Reference<XAccessible>& xAcc, bool bFireEvent)
{
OSL_ENSURE(mxTempAcc.is(), "this object should be added before");
if (xAcc.is())

View File

@@ -512,7 +512,7 @@ public:
///===== IAccessibleViewForwarder ========================================
virtual sal_Bool IsValid (void) const;
virtual bool IsValid (void) const;
virtual Rectangle GetVisibleArea() const;
virtual Point LogicToPixel (const Point& rPoint) const;
virtual Size LogicToPixel (const Size& rSize) const;
@@ -547,7 +547,7 @@ ScIAccessibleViewForwarder::~ScIAccessibleViewForwarder()
///===== IAccessibleViewForwarder ========================================
sal_Bool ScIAccessibleViewForwarder::IsValid (void) const
bool ScIAccessibleViewForwarder::IsValid (void) const
{
SolarMutexGuard aGuard;
return mbValid;

View File

@@ -204,7 +204,7 @@ public:
@return
Return <true/> if the view forwarder is valid and <false/> else.
*/
virtual sal_Bool IsValid (void) const;
virtual bool IsValid (void) const;
/** Returns the area of the underlying document that is visible in the
* corresponding window.
@@ -296,7 +296,7 @@ private:
ScAccessibleEditObject* mpTempAccEdit;
com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible> mxTempAcc;
Rectangle maVisArea;
sal_Bool mbCompleteSheetSelected;
bool mbCompleteSheetSelected;
public:
SCTAB getVisibleTable() const; // use it in ScChildrenShapes
@@ -304,17 +304,17 @@ public:
private:
void FreeAccessibleSpreadsheet();
sal_Bool IsTableSelected() const;
bool IsTableSelected() const;
sal_Bool IsDefunc(
bool IsDefunc(
const com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
sal_Bool IsEditable(
bool IsEditable(
const com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
void AddChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, sal_Bool bFireEvent);
void RemoveChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, sal_Bool bFireEvent);
void AddChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, bool bFireEvent);
void RemoveChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, bool bFireEvent);
OUString GetCurrentCellName() const;
OUString GetCurrentCellDescription() const;

View File

@@ -62,9 +62,9 @@ AccessibleViewForwarder::~AccessibleViewForwarder (void)
sal_Bool AccessibleViewForwarder::IsValid (void) const
bool AccessibleViewForwarder::IsValid (void) const
{
return sal_True;
return true;
}

View File

@@ -57,7 +57,7 @@ public:
@return
Return <true/> if the view forwarder is valid and <false/> else.
*/
virtual sal_Bool IsValid (void) const;
virtual bool IsValid (void) const;
/** Returns the area of the underlying document that is visible in the
* corresponding window.

View File

@@ -898,9 +898,9 @@ void SvxGraphCtrlAccessibleContext::Notify( SfxBroadcaster& /*rBC*/, const SfxHi
//===== IAccessibleViewforwarder ========================================
sal_Bool SvxGraphCtrlAccessibleContext::IsValid (void) const
bool SvxGraphCtrlAccessibleContext::IsValid (void) const
{
return sal_True;
return true;
}
//-----------------------------------------------------------------------------

View File

@@ -166,7 +166,7 @@ public:
//===== IAccessibleViewforwarder ========================================
virtual sal_Bool IsValid (void) const;
virtual bool IsValid (void) const;
virtual Rectangle GetVisibleArea() const;
virtual Point LogicToPixel (const Point& rPoint) const;
virtual Size LogicToPixel (const Size& rSize) const;

View File

@@ -264,7 +264,7 @@ public:
// IAccessibleViewForwarder
virtual sal_Bool IsValid() const;
virtual bool IsValid() const;
virtual Rectangle GetVisibleArea() const;
virtual Point LogicToPixel (const Point& rPoint) const;
virtual Size LogicToPixel (const Size& rSize) const;

View File

@@ -3137,9 +3137,9 @@ void SwAccessibleMap::FireEvents()
}
sal_Bool SwAccessibleMap::IsValid() const
bool SwAccessibleMap::IsValid() const
{
return sal_True;
return true;
}
Rectangle SwAccessibleMap::GetVisibleArea() const