diff options
author | Sascha Ballach <sab@openoffice.org> | 2002-03-21 06:10:59 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2002-03-21 06:10:59 +0000 |
commit | c05266a5ec699a16c08189d6553053ef901471ed (patch) | |
tree | 2a41429ea6d3ae7a068e0754c124ae475dd2d056 /sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | |
parent | 1c6d5c38efe55a73a8c748f3a9a50f12060e2e5e (diff) |
#95584#; replace SetDefunc by disposing (of XComponent)
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 0ae987e3b6ac..a9d86808d03b 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -2,9 +2,9 @@ * * $RCSfile: AccessibleSpreadsheet.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: sab $ $Date: 2002-03-14 15:37:54 $ + * last change: $Author: sab $ $Date: 2002-03-21 07:10:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -149,7 +149,7 @@ ScAccessibleSpreadsheet::~ScAccessibleSpreadsheet() mpViewShell->RemoveAccessibilityObject(*this); } -void ScAccessibleSpreadsheet::SetDefunc() +void SAL_CALL ScAccessibleSpreadsheet::disposing() { if (mpViewShell) { @@ -157,7 +157,7 @@ void ScAccessibleSpreadsheet::SetDefunc() mpViewShell = NULL; } - ScAccessibleTableBase::SetDefunc(); + ScAccessibleTableBase::disposing(); } //===== SfxListener ===================================================== @@ -236,7 +236,7 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint else if (rRef.GetId() == SFX_HINT_DYING) { // it seems the Broadcaster is dying, since the view is dying - SetDefunc(); + dispose(); } } else if (rHint.ISA( ScUpdateRefHint )) @@ -279,12 +279,12 @@ uno::Sequence< sal_Int32 > SAL_CALL ScAccessibleSpreadsheet::getSelectedAccessib const ScMarkData& rMarkdata = mpViewShell->GetViewData()->GetMarkData(); sal_Int32* pSequence = aSequence.getArray(); sal_Int32 nCount(0); - for (sal_uInt16 i = maRange.aStart.Row(); i <= maRange.aEnd.Row(); i++) + for (sal_uInt16 i = maRange.aStart.Row(); i <= maRange.aEnd.Row(); ++i) { if (rMarkdata.IsRowMarked(i)) { pSequence[nCount] = i; - nCount++; + ++nCount; } } aSequence.realloc(nCount); @@ -305,12 +305,12 @@ uno::Sequence< sal_Int32 > SAL_CALL ScAccessibleSpreadsheet::getSelectedAccessib const ScMarkData& rMarkdata = mpViewShell->GetViewData()->GetMarkData(); sal_Int32* pSequence = aSequence.getArray(); sal_Int32 nCount(0); - for (sal_uInt16 i = maRange.aStart.Col(); i <= maRange.aEnd.Col(); i++) + for (sal_uInt16 i = maRange.aStart.Col(); i <= maRange.aEnd.Col(); ++i) { if (rMarkdata.IsColumnMarked(i)) { pSequence[nCount] = i; - nCount++; + ++nCount; } } aSequence.realloc(nCount); @@ -621,7 +621,7 @@ uno::Sequence<sal_Int8> SAL_CALL if (aId.getLength() == 0) { aId.realloc (16); - rtl_createUuid ((sal_uInt8 *)aId.getArray(), 0, sal_True); + rtl_createUuid (reinterpret_cast<sal_uInt8 *>(aId.getArray()), 0, sal_True); } return aId; } @@ -657,7 +657,7 @@ Rectangle ScAccessibleSpreadsheet::GetBoundingBox() sal_Bool ScAccessibleSpreadsheet::IsDefunc( const uno::Reference<XAccessibleStateSet>& rxParentStates) { - return (mpViewShell == NULL) || !getAccessibleParent().is() || + return ScAccessibleContextBase::IsDefunc() || (mpViewShell == NULL) || !getAccessibleParent().is() || (rxParentStates.is() && rxParentStates->contains(AccessibleStateType::DEFUNC)); } |