Kaydet (Commit) 6097bd4c authored tarafından Noel Power's avatar Noel Power

more new formulabuffer const cleanup

Change-Id: I6a2363a2c4370cdb5050b404f23e9cbcce684dc5
üst 8c2843d8
...@@ -318,11 +318,11 @@ public: ...@@ -318,11 +318,11 @@ public:
/** Final conversion after importing the worksheet. */ /** Final conversion after importing the worksheet. */
void finalizeWorksheetImport(); void finalizeWorksheetImport();
void setCellFormula( ::com::sun::star::table::CellAddress& rTokenAddress, rtl::OUString& ); void setCellFormula( const ::com::sun::star::table::CellAddress& rTokenAddress, const rtl::OUString& );
void setCellFormula( ::com::sun::star::table::CellAddress& rTokenAddress, sal_Int32 ); void setCellFormula( const ::com::sun::star::table::CellAddress& rTokenAddress, sal_Int32 );
void setCellArrayFormula( ::com::sun::star::table::CellRangeAddress& rRangeAddress, ::com::sun::star::table::CellAddress& rTokenAddress, rtl::OUString& ); void setCellArrayFormula( const ::com::sun::star::table::CellRangeAddress& rRangeAddress, const ::com::sun::star::table::CellAddress& rTokenAddress, const rtl::OUString& );
void createSharedFormulaMapEntry( ::com::sun::star::table::CellAddress& rAddress, sal_Int32 nSharedId, const rtl::OUString& rTokens ); void createSharedFormulaMapEntry( const ::com::sun::star::table::CellAddress& rAddress, sal_Int32 nSharedId, const rtl::OUString& rTokens );
void setCellFormulaValue( ::com::sun::star::table::CellAddress& rAddress, void setCellFormulaValue( const ::com::sun::star::table::CellAddress& rAddress,
double fValue ); double fValue );
private: private:
WorksheetGlobals& mrSheetGlob; WorksheetGlobals& mrSheetGlob;
......
...@@ -1549,7 +1549,7 @@ void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fVal ...@@ -1549,7 +1549,7 @@ void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fVal
} }
} }
void WorksheetHelper::setCellFormulaValue( ::com::sun::star::table::CellAddress& rAddress, void WorksheetHelper::setCellFormulaValue( const ::com::sun::star::table::CellAddress& rAddress,
double fValue ) double fValue )
{ {
getFormulaBuffer().setCellFormulaValue( rAddress, fValue ); getFormulaBuffer().setCellFormulaValue( rAddress, fValue );
...@@ -1593,22 +1593,22 @@ void WorksheetHelper::finalizeWorksheetImport() ...@@ -1593,22 +1593,22 @@ void WorksheetHelper::finalizeWorksheetImport()
mrSheetGlob.finalizeWorksheetImport(); mrSheetGlob.finalizeWorksheetImport();
} }
void WorksheetHelper::setCellFormula( ::com::sun::star::table::CellAddress& rTokenAddress, rtl::OUString& rTokenStr ) void WorksheetHelper::setCellFormula( const ::com::sun::star::table::CellAddress& rTokenAddress, const rtl::OUString& rTokenStr )
{ {
getFormulaBuffer().setCellFormula( rTokenAddress, rTokenStr ); getFormulaBuffer().setCellFormula( rTokenAddress, rTokenStr );
} }
void WorksheetHelper::setCellFormula( ::com::sun::star::table::CellAddress& rTokenAddress, sal_Int32 nSharedId ) void WorksheetHelper::setCellFormula( const ::com::sun::star::table::CellAddress& rTokenAddress, sal_Int32 nSharedId )
{ {
getFormulaBuffer().setCellFormula( rTokenAddress, nSharedId ); getFormulaBuffer().setCellFormula( rTokenAddress, nSharedId );
} }
void WorksheetHelper::setCellArrayFormula( ::com::sun::star::table::CellRangeAddress& rRangeAddress, ::com::sun::star::table::CellAddress& rTokenAddress, rtl::OUString& rTokenStr ) void WorksheetHelper::setCellArrayFormula( const ::com::sun::star::table::CellRangeAddress& rRangeAddress, const ::com::sun::star::table::CellAddress& rTokenAddress, const rtl::OUString& rTokenStr )
{ {
getFormulaBuffer().setCellArrayFormula( rRangeAddress, rTokenAddress, rTokenStr ); getFormulaBuffer().setCellArrayFormula( rRangeAddress, rTokenAddress, rTokenStr );
} }
void WorksheetHelper::createSharedFormulaMapEntry( ::com::sun::star::table::CellAddress& rAddress, sal_Int32 nSharedId, const rtl::OUString& rTokens ) void WorksheetHelper::createSharedFormulaMapEntry( const ::com::sun::star::table::CellAddress& rAddress, sal_Int32 nSharedId, const rtl::OUString& rTokens )
{ {
getFormulaBuffer().createSharedFormulaMapEntry( rAddress, nSharedId, rTokens ); getFormulaBuffer().createSharedFormulaMapEntry( rAddress, nSharedId, rTokens );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment