diff options
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r-- | sc/source/ui/vba/vbachartobjects.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbachartobjects.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbacomment.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbacomment.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbainterior.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbainterior.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbanames.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbapagebreaks.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/vba/vbawindow.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/vba/vbawindow.hxx | 6 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaworksheet.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaworksheet.hxx | 8 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaworksheets.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaworksheets.hxx | 2 |
16 files changed, 31 insertions, 31 deletions
diff --git a/sc/source/ui/vba/vbachartobjects.cxx b/sc/source/ui/vba/vbachartobjects.cxx index f817dd8fbb90..1ded0545c49e 100644 --- a/sc/source/ui/vba/vbachartobjects.cxx +++ b/sc/source/ui/vba/vbachartobjects.cxx @@ -88,7 +88,7 @@ ScVbaChartObjects::removeByName(const OUString& _sChartName) } uno::Sequence< OUString > -ScVbaChartObjects::getChartObjectNames() +ScVbaChartObjects::getChartObjectNames() const { uno::Sequence< OUString > sChartNames; try diff --git a/sc/source/ui/vba/vbachartobjects.hxx b/sc/source/ui/vba/vbachartobjects.hxx index 1d1878e25a40..4c2d03f96da6 100644 --- a/sc/source/ui/vba/vbachartobjects.hxx +++ b/sc/source/ui/vba/vbachartobjects.hxx @@ -41,7 +41,7 @@ public: ScVbaChartObjects( const css::uno::Reference< ov::XHelperInterface >& _xParent, const css::uno::Reference< css::uno::XComponentContext >& _xContext, const css::uno::Reference< css::table::XTableCharts >& _xTableCharts, const css::uno::Reference< css::drawing::XDrawPageSupplier >& _xDrawPageSupplier ); /// @throws css::script::BasicErrorException - css::uno::Sequence< OUString > getChartObjectNames(); + css::uno::Sequence< OUString > getChartObjectNames() const; void removeByName(const OUString& _sChartName); // XChartObjects diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx index 12b7b012ba84..d78863cd1f78 100644 --- a/sc/source/ui/vba/vbacomment.cxx +++ b/sc/source/ui/vba/vbacomment.cxx @@ -65,7 +65,7 @@ ScVbaComment::getAnnotation() } uno::Reference< sheet::XSheetAnnotations > -ScVbaComment::getAnnotations() +ScVbaComment::getAnnotations() const { uno::Reference< sheet::XSheetCellRange > xSheetCellRange(mxRange, ::uno::UNO_QUERY_THROW ); uno::Reference< sheet::XSpreadsheet > xSheet = xSheetCellRange->getSpreadsheet(); diff --git a/sc/source/ui/vba/vbacomment.hxx b/sc/source/ui/vba/vbacomment.hxx index 28139175d4c7..f93fb76e41e2 100644 --- a/sc/source/ui/vba/vbacomment.hxx +++ b/sc/source/ui/vba/vbacomment.hxx @@ -39,7 +39,7 @@ private: /// @throws css::uno::RuntimeException css::uno::Reference< css::sheet::XSheetAnnotation > getAnnotation(); /// @throws css::uno::RuntimeException - css::uno::Reference< css::sheet::XSheetAnnotations > getAnnotations(); + css::uno::Reference< css::sheet::XSheetAnnotations > getAnnotations() const; /// @throws css::uno::RuntimeException sal_Int32 getAnnotationIndex(); /// @throws css::uno::RuntimeException diff --git a/sc/source/ui/vba/vbainterior.cxx b/sc/source/ui/vba/vbainterior.cxx index 1dee1070077f..16328c6eaa1d 100644 --- a/sc/source/ui/vba/vbainterior.cxx +++ b/sc/source/ui/vba/vbainterior.cxx @@ -124,7 +124,7 @@ ScVbaInterior::SetMixedColor() } uno::Reference< container::XIndexAccess > -ScVbaInterior::getPalette() +ScVbaInterior::getPalette() const { if ( !m_pScDoc ) throw uno::RuntimeException(); diff --git a/sc/source/ui/vba/vbainterior.hxx b/sc/source/ui/vba/vbainterior.hxx index 6840997b245f..00c0c93e6682 100644 --- a/sc/source/ui/vba/vbainterior.hxx +++ b/sc/source/ui/vba/vbainterior.hxx @@ -40,7 +40,7 @@ class ScVbaInterior final : public ScVbaInterior_BASE Color m_aPattColor; sal_Int32 m_nPattern; - css::uno::Reference< css::container::XIndexAccess > getPalette(); + css::uno::Reference< css::container::XIndexAccess > getPalette() const; css::uno::Reference< css::container::XNameContainer > GetAttributeContainer(); static css::uno::Any SetAttributeData( sal_Int32 nValue ); static sal_Int32 GetAttributeData( css::uno::Any const & aValue ); diff --git a/sc/source/ui/vba/vbanames.hxx b/sc/source/ui/vba/vbanames.hxx index bfa1f77ca89f..35635a395094 100644 --- a/sc/source/ui/vba/vbanames.hxx +++ b/sc/source/ui/vba/vbanames.hxx @@ -33,7 +33,7 @@ class ScVbaNames final : public ScVbaNames_BASE css::uno::Reference< css::frame::XModel > mxModel; css::uno::Reference< css::sheet::XNamedRanges > mxNames; - const css::uno::Reference< css::frame::XModel >& getModel() { return mxModel; } + const css::uno::Reference< css::frame::XModel >& getModel() const { return mxModel; } public: ScVbaNames( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::sheet::XNamedRanges >& xNames , const css::uno::Reference< css::frame::XModel >& xModel ); diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx index 89c871edd3a8..3da93b39c235 100644 --- a/sc/source/ui/vba/vbapagebreaks.cxx +++ b/sc/source/ui/vba/vbapagebreaks.cxx @@ -70,7 +70,7 @@ public: } /// @throws uno::RuntimeException - uno::Reference<container::XIndexAccess> getRowColContainer() + uno::Reference<container::XIndexAccess> getRowColContainer() const { uno::Reference< table::XColumnRowRange > xColumnRowRange( mxSheetPageBreak, uno::UNO_QUERY_THROW ); uno::Reference<container::XIndexAccess> xIndexAccess; diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 1bc8fcd885af..2f13a824a100 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -1075,31 +1075,31 @@ public: m_xCellRange.set(rCellRange, uno::UNO_QUERY_THROW); } /// @throws uno::RuntimeException - uno::Reference< sheet::XSheetCellRange > getSheetCellRange() + uno::Reference< sheet::XSheetCellRange > getSheetCellRange() const { return uno::Reference< sheet::XSheetCellRange >(m_xCellRange, uno::UNO_QUERY_THROW); } /// @throws uno::RuntimeException - uno::Reference< sheet::XSpreadsheet > getSpreadSheet() + uno::Reference< sheet::XSpreadsheet > getSpreadSheet() const { return getSheetCellRange()->getSpreadsheet(); } /// @throws uno::RuntimeException - uno::Reference< table::XCellRange > getCellRangeFromSheet() + uno::Reference< table::XCellRange > getCellRangeFromSheet() const { return uno::Reference< table::XCellRange >(getSpreadSheet(), uno::UNO_QUERY_THROW ); } /// @throws uno::RuntimeException - uno::Reference< sheet::XCellRangeAddressable > getCellRangeAddressable() + uno::Reference< sheet::XCellRangeAddressable > getCellRangeAddressable() const { return uno::Reference< sheet::XCellRangeAddressable >(m_xCellRange, ::uno::UNO_QUERY_THROW); } /// @throws uno::RuntimeException - uno::Reference< sheet::XSheetCellCursor > getSheetCellCursor() + uno::Reference< sheet::XSheetCellCursor > getSheetCellCursor() const { return uno::Reference< sheet::XSheetCellCursor >( getSpreadSheet()->createCursorByRange( getSheetCellRange() ), uno::UNO_SET_THROW ); } @@ -3583,7 +3583,7 @@ ScVbaRange::End( ::sal_Int32 Direction ) } bool -ScVbaRange::isSingleCellRange() +ScVbaRange::isSingleCellRange() const { uno::Reference< sheet::XCellRangeAddressable > xAddressable( mxRange, uno::UNO_QUERY ); if ( xAddressable.is() ) @@ -4040,7 +4040,7 @@ ScVbaRange::getHeight() } awt::Point -ScVbaRange::getPosition() +ScVbaRange::getPosition() const { awt::Point aPoint; uno::Reference< beans::XPropertySet > xProps; diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx index 67e5220f3c1e..7a9b1b21b1d8 100644 --- a/sc/source/ui/vba/vbarange.hxx +++ b/sc/source/ui/vba/vbarange.hxx @@ -114,7 +114,7 @@ class ScVbaRange : public ScVbaRange_BASE /// @throws css::script::BasicErrorException css::uno::Reference< ov::excel::XRange > SpecialCellsImpl( sal_Int32 nType, const css::uno::Any& _oValue); /// @throws css::uno::RuntimeException - css::awt::Point getPosition(); + css::awt::Point getPosition() const; /** Fires a Worksheet_Change event for this range or range list. */ void fireChangeEvent(); @@ -153,7 +153,7 @@ public: virtual ~ScVbaRange() override; virtual css::uno::Reference< ov::XHelperInterface > thisHelperIface() override { return this; } - bool isSingleCellRange(); + bool isSingleCellRange() const; /// @throws css::uno::RuntimeException static css::uno::Reference< ov::excel::XRange > getRangeObjectForName( diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index e9b4a04ab6bf..fd07496d5f1a 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -221,19 +221,19 @@ ScVbaWindow::init() } uno::Reference< beans::XPropertySet > -ScVbaWindow::getControllerProps() +ScVbaWindow::getControllerProps() const { return uno::Reference< beans::XPropertySet >( getController(), uno::UNO_QUERY_THROW ); } uno::Reference< beans::XPropertySet > -ScVbaWindow::getFrameProps() +ScVbaWindow::getFrameProps() const { return uno::Reference< beans::XPropertySet >( getController()->getFrame(), uno::UNO_QUERY_THROW ); } uno::Reference< awt::XDevice > -ScVbaWindow::getDevice() +ScVbaWindow::getDevice() const { return uno::Reference< awt::XDevice >( getWindow(), uno::UNO_QUERY_THROW ); } diff --git a/sc/source/ui/vba/vbawindow.hxx b/sc/source/ui/vba/vbawindow.hxx index ffa56eca908a..82ee004e8fac 100644 --- a/sc/source/ui/vba/vbawindow.hxx +++ b/sc/source/ui/vba/vbawindow.hxx @@ -37,11 +37,11 @@ private: void init(); /// @throws css::uno::RuntimeException - css::uno::Reference< css::beans::XPropertySet > getControllerProps(); + css::uno::Reference< css::beans::XPropertySet > getControllerProps() const; /// @throws css::uno::RuntimeException - css::uno::Reference< css::beans::XPropertySet > getFrameProps(); + css::uno::Reference< css::beans::XPropertySet > getFrameProps() const; /// @throws css::uno::RuntimeException - css::uno::Reference< css::awt::XDevice > getDevice(); + css::uno::Reference< css::awt::XDevice > getDevice() const; protected: void SplitAtDefinedPosition( sal_Int32 nColumns, sal_Int32 nRows ); diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx index 6a8d27913acc..8621d4b2fecf 100644 --- a/sc/source/ui/vba/vbaworksheet.cxx +++ b/sc/source/ui/vba/vbaworksheet.cxx @@ -916,7 +916,7 @@ ScVbaWorksheet::hasMethod( const OUString& /*aName*/ ) } uno::Reference< container::XNameAccess > -ScVbaWorksheet::getFormControls() +ScVbaWorksheet::getFormControls() const { uno::Reference< container::XNameAccess > xFormControls; try @@ -1017,7 +1017,7 @@ ScVbaWorksheet::getCodeName() } sal_Int16 -ScVbaWorksheet::getSheetID() +ScVbaWorksheet::getSheetID() const { uno::Reference< sheet::XCellRangeAddressable > xAddressable( mxSheet, uno::UNO_QUERY_THROW ); // if ActiveSheet, mxSheet is null. return xAddressable->getRangeAddress().Sheet; diff --git a/sc/source/ui/vba/vbaworksheet.hxx b/sc/source/ui/vba/vbaworksheet.hxx index b3e6532c132d..0cc22fa2ef8a 100644 --- a/sc/source/ui/vba/vbaworksheet.hxx +++ b/sc/source/ui/vba/vbaworksheet.hxx @@ -55,7 +55,7 @@ class ScVbaWorksheet : public WorksheetImpl_BASE /// @throws css::uno::RuntimeException css::uno::Reference< ov::excel::XRange > getSheetRange(); - css::uno::Reference< css::container::XNameAccess > getFormControls(); + css::uno::Reference< css::container::XNameAccess > getFormControls() const; css::uno::Any getControlShape( const OUString& sName ); css::uno::Any getButtons( const css::uno::Any &rIndex, bool bOptionButtons ); @@ -72,9 +72,9 @@ public: virtual ~ScVbaWorksheet() override; - const css::uno::Reference< css::frame::XModel >& getModel() + const css::uno::Reference< css::frame::XModel >& getModel() const { return mxModel; } - const css::uno::Reference< css::sheet::XSpreadsheet >& getSheet() + const css::uno::Reference< css::sheet::XSpreadsheet >& getSheet() const { return mxSheet; } static const css::uno::Sequence<sal_Int8>& getUnoTunnelId(); css::uno::Reference< ov::excel::XWorksheet > createSheetCopyInNewDoc( const OUString& ); @@ -155,7 +155,7 @@ public: // CodeName virtual OUString SAL_CALL getCodeName() override; /// @throws css::uno::RuntimeException - sal_Int16 getSheetID(); + sal_Int16 getSheetID() const; virtual void SAL_CALL PrintOut( const css::uno::Any& From, const css::uno::Any& To, const css::uno::Any& Copies, const css::uno::Any& Preview, const css::uno::Any& ActivePrinter, const css::uno::Any& PrintToFile, const css::uno::Any& Collate, const css::uno::Any& PrToFileName, const css::uno::Any& IgnorePrintAreas ) override; // XHelperInterface diff --git a/sc/source/ui/vba/vbaworksheets.cxx b/sc/source/ui/vba/vbaworksheets.cxx index 376de73ecc0b..e6b3fbc146dc 100644 --- a/sc/source/ui/vba/vbaworksheets.cxx +++ b/sc/source/ui/vba/vbaworksheets.cxx @@ -291,7 +291,7 @@ ScVbaWorksheets::Delete() } bool -ScVbaWorksheets::isSelectedSheets() +ScVbaWorksheets::isSelectedSheets() const { return !m_xSheets.is(); } diff --git a/sc/source/ui/vba/vbaworksheets.hxx b/sc/source/ui/vba/vbaworksheets.hxx index 05f37867dbf3..ada77fd32abe 100644 --- a/sc/source/ui/vba/vbaworksheets.hxx +++ b/sc/source/ui/vba/vbaworksheets.hxx @@ -40,7 +40,7 @@ public: ScVbaWorksheets( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::container::XIndexAccess >& xSheets, const css::uno::Reference< css::frame::XModel >& xModel ); ScVbaWorksheets( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::container::XEnumerationAccess >& xEnum, const css::uno::Reference< css::frame::XModel >& xModel ); - bool isSelectedSheets(); + bool isSelectedSheets() const; // XEnumerationAccess virtual css::uno::Type SAL_CALL getElementType() override; |