diff options
author | Sascha Ballach <sab@openoffice.org> | 2002-05-24 14:19:18 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2002-05-24 14:19:18 +0000 |
commit | 7a04b9eb491d5bf4844401d1889fca9a9868f29f (patch) | |
tree | c136793806acd85b1653068124dcb8c84e785e57 /sc/source/ui | |
parent | fc3032a2c105fd62fb86481a5f02759285bc5a75 (diff) |
#95584#; make some methods const methods
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/Accessibility/AccessiblePreviewTable.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/inc/AccessiblePreviewTable.hxx | 15 |
2 files changed, 14 insertions, 11 deletions
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx index 5b9ee401d836..eb46d7d5fc12 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx @@ -2,9 +2,9 @@ * * $RCSfile: AccessiblePreviewTable.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: sab $ $Date: 2002-03-22 16:31:13 $ + * last change: $Author: sab $ $Date: 2002-05-24 15:19:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -643,7 +643,7 @@ uno::Sequence<sal_Int8> SAL_CALL ScAccessiblePreviewTable::getImplementationId() return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Spreadsheet Page Preview Table")); } -Rectangle ScAccessiblePreviewTable::GetBoundingBoxOnScreen() throw (uno::RuntimeException) +Rectangle ScAccessiblePreviewTable::GetBoundingBoxOnScreen() const throw (uno::RuntimeException) { Rectangle aCellRect(GetBoundingBox()); if (mpViewShell) @@ -659,7 +659,7 @@ Rectangle ScAccessiblePreviewTable::GetBoundingBoxOnScreen() throw (uno::Runtime return aCellRect; } -Rectangle ScAccessiblePreviewTable::GetBoundingBox() throw (uno::RuntimeException) +Rectangle ScAccessiblePreviewTable::GetBoundingBox() const throw (uno::RuntimeException) { FillTableInfo(); @@ -688,7 +688,7 @@ sal_Bool ScAccessiblePreviewTable::IsDefunc( const uno::Reference<XAccessibleSta (rxParentStates.is() && rxParentStates->contains(AccessibleStateType::DEFUNC)); } -void ScAccessiblePreviewTable::FillTableInfo() +void ScAccessiblePreviewTable::FillTableInfo() const { if ( mpViewShell && !mpTableInfo ) { diff --git a/sc/source/ui/inc/AccessiblePreviewTable.hxx b/sc/source/ui/inc/AccessiblePreviewTable.hxx index 1b8069ad1720..f5a3dc751934 100644 --- a/sc/source/ui/inc/AccessiblePreviewTable.hxx +++ b/sc/source/ui/inc/AccessiblePreviewTable.hxx @@ -2,9 +2,9 @@ * * $RCSfile: AccessiblePreviewTable.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: vg $ $Date: 2002-03-22 16:34:54 $ + * last change: $Author: sab $ $Date: 2002-05-24 15:18:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -197,23 +197,26 @@ public: virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException); + //===== internal ======================================================== + void SetCurrentIndexInParent(sal_Int32 nNew) { mnIndex = nNew; } + protected: virtual ::rtl::OUString SAL_CALL createAccessibleDescription(void) throw(::com::sun::star::uno::RuntimeException); virtual ::rtl::OUString SAL_CALL createAccessibleName(void) throw (::com::sun::star::uno::RuntimeException); - virtual Rectangle GetBoundingBoxOnScreen(void) throw(::com::sun::star::uno::RuntimeException); - virtual Rectangle GetBoundingBox(void) throw (::com::sun::star::uno::RuntimeException); + virtual Rectangle GetBoundingBoxOnScreen(void) const throw(::com::sun::star::uno::RuntimeException); + virtual Rectangle GetBoundingBox(void) const throw (::com::sun::star::uno::RuntimeException); private: ScPreviewShell* mpViewShell; sal_Int32 mnIndex; - ScPreviewTableInfo* mpTableInfo; + mutable ScPreviewTableInfo* mpTableInfo; sal_Bool IsDefunc( const com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); - void FillTableInfo(); + void FillTableInfo() const; }; |