sal_Bool->bool
Change-Id: Ib0f6699e994f5a71603779b8227bf081b71a5dd6
This commit is contained in:
parent
27042facc6
commit
f30f646e1e
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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())
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -62,9 +62,9 @@ AccessibleViewForwarder::~AccessibleViewForwarder (void)
|
||||
|
||||
|
||||
|
||||
sal_Bool AccessibleViewForwarder::IsValid (void) const
|
||||
bool AccessibleViewForwarder::IsValid (void) const
|
||||
{
|
||||
return sal_True;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user