summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/attrib.cxx4
-rw-r--r--sc/source/core/data/clipcontext.cxx4
-rw-r--r--sc/source/core/data/colorscale.cxx4
-rw-r--r--sc/source/core/data/column.cxx8
-rw-r--r--sc/source/core/data/conditio.cxx4
-rw-r--r--sc/source/core/data/dociter.cxx24
-rw-r--r--sc/source/core/data/documen2.cxx4
-rw-r--r--sc/source/core/data/documen3.cxx8
-rw-r--r--sc/source/core/data/document.cxx4
-rw-r--r--sc/source/core/data/document10.cxx4
-rw-r--r--sc/source/core/data/dpfilteredcache.cxx4
-rw-r--r--sc/source/core/data/dpgroup.cxx4
-rw-r--r--sc/source/core/data/dpitemdata.cxx5
-rw-r--r--sc/source/core/data/dpobject.cxx12
-rw-r--r--sc/source/core/data/dpsave.cxx4
-rw-r--r--sc/source/core/data/dpshttab.cxx8
-rw-r--r--sc/source/core/data/dptabsrc.cxx4
-rw-r--r--sc/source/core/data/formulacell.cxx8
-rw-r--r--sc/source/core/data/listenercontext.cxx8
-rw-r--r--sc/source/core/data/markdata.cxx4
-rw-r--r--sc/source/core/data/postit.cxx16
-rw-r--r--sc/source/core/data/rowheightcontext.cxx8
-rw-r--r--sc/source/core/data/table1.cxx4
-rw-r--r--sc/source/core/data/table3.cxx8
-rw-r--r--sc/source/core/data/tabprotection.cxx6
-rw-r--r--sc/source/core/inc/doubleref.hxx2
-rw-r--r--sc/source/core/inc/jumpmatrix.hxx2
-rw-r--r--sc/source/core/tool/addincol.cxx4
-rw-r--r--sc/source/core/tool/chartlis.cxx20
-rw-r--r--sc/source/core/tool/chgtrack.cxx24
-rw-r--r--sc/source/core/tool/dbdata.cxx16
-rw-r--r--sc/source/core/tool/doubleref.cxx4
-rw-r--r--sc/source/core/tool/jumpmatrix.cxx4
-rw-r--r--sc/source/core/tool/queryentry.cxx4
-rw-r--r--sc/source/core/tool/refdata.cxx16
-rw-r--r--sc/source/core/tool/refhint.cxx12
-rw-r--r--sc/source/core/tool/tokenstringcontext.cxx4
-rw-r--r--sc/source/core/tool/typedstrdata.cxx4
-rw-r--r--sc/source/core/tool/unitconv.cxx4
-rw-r--r--sc/source/filter/excel/xepivot.cxx6
-rw-r--r--sc/source/filter/excel/xetable.cxx4
-rw-r--r--sc/source/filter/excel/xihelper.cxx4
-rw-r--r--sc/source/filter/excel/xilink.cxx6
-rw-r--r--sc/source/filter/html/htmlpars.cxx8
-rw-r--r--sc/source/filter/inc/htmlpars.hxx4
-rw-r--r--sc/source/filter/inc/stylesbuffer.hxx2
-rw-r--r--sc/source/filter/inc/xcl97rec.hxx2
-rw-r--r--sc/source/filter/inc/xepivot.hxx7
-rw-r--r--sc/source/filter/inc/xetable.hxx2
-rw-r--r--sc/source/filter/inc/xihelper.hxx2
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx4
-rw-r--r--sc/source/filter/oox/workbookhelper.cxx8
-rw-r--r--sc/source/filter/xcl97/xcl97rec.cxx4
-rw-r--r--sc/source/filter/xml/XMLStylesExportHelper.cxx4
-rw-r--r--sc/source/filter/xml/XMLStylesExportHelper.hxx2
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx4
-rw-r--r--sc/source/ui/app/scmod.cxx8
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx8
-rw-r--r--sc/source/ui/dbgui/PivotLayoutDialog.cxx4
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx4
-rw-r--r--sc/source/ui/inc/PivotLayoutDialog.hxx2
-rw-r--r--sc/source/ui/inc/checklistmenu.hxx4
-rw-r--r--sc/source/ui/inc/gridwin.hxx2
-rw-r--r--sc/source/ui/inc/preview.hxx2
-rw-r--r--sc/source/ui/inc/solveroptions.hxx3
-rw-r--r--sc/source/ui/inc/tabview.hxx7
-rw-r--r--sc/source/ui/inc/tphfedit.hxx2
-rw-r--r--sc/source/ui/inc/undocell.hxx2
-rw-r--r--sc/source/ui/inc/viewdata.hxx4
-rw-r--r--sc/source/ui/miscdlgs/solveroptions.cxx5
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.cxx4
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.hxx2
-rw-r--r--sc/source/ui/pagedlg/tphfedit.cxx4
-rw-r--r--sc/source/ui/undo/undocell2.cxx4
-rw-r--r--sc/source/ui/unoobj/textuno.cxx4
-rw-r--r--sc/source/ui/view/gridwin.cxx1
-rw-r--r--sc/source/ui/view/preview.cxx5
-rw-r--r--sc/source/ui/view/tabview.cxx5
-rw-r--r--sc/source/ui/view/tabview5.cxx5
-rw-r--r--sc/source/ui/view/viewdata.cxx5
80 files changed, 35 insertions, 425 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index df14e4ec8bce..712bd0457e5c 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -1130,10 +1130,6 @@ ScCondFormatItem* ScCondFormatItem::Clone(SfxItemPool*) const
return new ScCondFormatItem(maIndex);
}
-const std::vector<sal_uInt32>& ScCondFormatItem::GetCondFormatData() const
-{
- return maIndex;
-}
void ScCondFormatItem::AddCondFormatData( sal_uInt32 nIndex )
{
diff --git a/sc/source/core/data/clipcontext.cxx b/sc/source/core/data/clipcontext.cxx
index 556e3dbcb4d8..d5dc3dc15831 100644
--- a/sc/source/core/data/clipcontext.cxx
+++ b/sc/source/core/data/clipcontext.cxx
@@ -82,10 +82,6 @@ void CopyFromClipContext::setDeleteFlag( sal_uInt16 nFlag )
}
-ScCellValue& CopyFromClipContext::getSingleCell()
-{
- return maSingleCell;
-}
void CopyFromClipContext::setCondFormatList( ScConditionalFormatList* pCondFormatList )
{
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index fe8eff879695..d2e0eef2950b 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -280,10 +280,6 @@ bool ScColorScaleEntry::NeedsRepaint() const
return false;
}
-const Color& ScColorScaleEntry::GetColor() const
-{
- return maColor;
-}
void ScColorScaleEntry::SetColor(const Color& rColor)
{
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index f0dc03af9be9..0bc27bb0f464 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -750,15 +750,7 @@ void ScColumn::ApplyAttr( SCROW nRow, const SfxPoolItem& rAttr )
pDocPool->Remove( *pNewPattern ); // free up resources
}
-ScDocument& ScColumn::GetDoc()
-{
- return *pDocument;
-}
-const ScDocument& ScColumn::GetDoc() const
-{
- return *pDocument;
-}
ScRefCellValue ScColumn::GetCellValue( SCROW nRow ) const
{
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 2fb8cf125d6c..2c6bc2918d29 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1776,10 +1776,6 @@ void ScCondDateFormatEntry::SetDateType( condformat::ScCondFormatDateType eType
}
-const OUString& ScCondDateFormatEntry::GetStyleName() const
-{
- return maStyleName;
-}
void ScCondDateFormatEntry::SetStyleName( const OUString& rStyleName )
{
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 235e0d277d72..06519a0569b6 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -931,30 +931,14 @@ bool ScCellIterator::getCurrent()
return false;
}
-CellType ScCellIterator::getType() const
-{
- return maCurCell.meType;
-}
OUString ScCellIterator::getString()
{
return maCurCell.getString(mpDoc);
}
-const EditTextObject* ScCellIterator::getEditText() const
-{
- return maCurCell.mpEditText;
-}
-ScFormulaCell* ScCellIterator::getFormulaCell()
-{
- return maCurCell.mpFormula;
-}
-const ScFormulaCell* ScCellIterator::getFormulaCell() const
-{
- return maCurCell.mpFormula;
-}
ScCellValue ScCellIterator::getCellValue() const
{
@@ -982,10 +966,6 @@ ScCellValue ScCellIterator::getCellValue() const
return aRet;
}
-const ScRefCellValue& ScCellIterator::getRefCellValue() const
-{
- return maCurCell;
-}
bool ScCellIterator::hasString() const
{
@@ -2501,10 +2481,6 @@ bool ScUsedAreaIterator::GetNext()
return bFound;
}
-const ScRefCellValue& ScUsedAreaIterator::GetCell() const
-{
- return maFoundCell;
-}
ScDocAttrIterator::ScDocAttrIterator(ScDocument* pDocument, SCTAB nTable,
SCCOL nCol1, SCROW nRow1,
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index a1bc567efb9d..2b143ff0d873 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -1392,10 +1392,6 @@ void ScDocument::SetPreviewFont( SfxItemSet* pFont )
pPreviewFont = pFont;
}
-const ScMarkData ScDocument::GetPreviewSelection()
-{
- return maPreviewSelection;
-}
void ScDocument::SetPreviewSelection( ScMarkData& rSel )
{
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 2a4bde6506ba..e25a742f60c7 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -324,10 +324,6 @@ ScDPCollection* ScDocument::GetDPCollection()
return pDPCollection;
}
-const ScDPCollection* ScDocument::GetDPCollection() const
-{
- return pDPCollection;
-}
ScDPObject* ScDocument::GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const
{
@@ -964,10 +960,6 @@ void ScDocument::AddUnoRefChange( sal_Int64 nId, const ScRangeList& rOldRanges )
pUnoRefUndoList->Add( nId, rOldRanges );
}
-sal_Int64 ScDocument::GetNewUnoId()
-{
- return ++nUnoObjectId;
-}
void ScDocument::UpdateReference(
sc::RefUpdateContext& rCxt, ScDocument* pUndoDoc, bool bIncludeDraw, bool bUpdateNoteCaptionPos )
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 928a478e4480..4df3001cecf9 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -4503,10 +4503,6 @@ const ScPatternAttr* ScDocument::GetMostUsedPattern( SCCOL nCol, SCROW nStartRow
return NULL;
}
-const ScValidationDataList* ScDocument::GetValidationList() const
-{
- return pValidationList;
-}
void ScDocument::ApplyAttr( SCCOL nCol, SCROW nRow, SCTAB nTab, const SfxPoolItem& rAttr )
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index 4112bb9d0ee3..a2aac0ac1a93 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -239,10 +239,6 @@ void ScDocument::SetCalcConfig( const ScCalcConfig& rConfig )
maCalcConfig = rConfig;
}
-const ScCalcConfig& ScDocument::GetCalcConfig() const
-{
- return maCalcConfig;
-}
void ScDocument::PreprocessRangeNameUpdate()
{
diff --git a/sc/source/core/data/dpfilteredcache.cxx b/sc/source/core/data/dpfilteredcache.cxx
index 3a95fac2c720..3b248ff9be3b 100644
--- a/sc/source/core/data/dpfilteredcache.cxx
+++ b/sc/source/core/data/dpfilteredcache.cxx
@@ -410,10 +410,6 @@ bool ScDPFilteredCache::isRowQualified(sal_Int32 nRow, const vector<Criterion>&
return true;
}
-const ScDPCache* ScDPFilteredCache::getCache() const
-{
- return &mrCache;
-}
#if DEBUG_PIVOT_TABLE
using std::cout;
diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx
index e2eeea7a0971..70085f64f078 100644
--- a/sc/source/core/data/dpgroup.cxx
+++ b/sc/source/core/data/dpgroup.cxx
@@ -494,10 +494,6 @@ ScDPGroupTableData::~ScDPGroupTableData()
delete[] pNumGroups;
}
-boost::shared_ptr<ScDPTableData> ScDPGroupTableData::GetSourceTableData()
-{
- return pSourceData;
-}
void ScDPGroupTableData::AddGroupDimension( const ScDPGroupDimension& rGroup )
{
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index 94f66762adeb..6bd1f736cc14 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -152,11 +152,6 @@ ScDPItemData::~ScDPItemData()
DisposeString();
}
-ScDPItemData::Type ScDPItemData::GetType() const
-{
- return static_cast<Type>(meType);
-}
-
void ScDPItemData::SetEmpty()
{
DisposeString();
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index df40306ab97b..c69dfd38f51d 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -3618,20 +3618,8 @@ bool ScDPCollection::InsertNewTable(ScDPObject* pDPObj)
return true;
}
-ScDPCollection::SheetCaches& ScDPCollection::GetSheetCaches()
-{
- return maSheetCaches;
-}
-ScDPCollection::NameCaches& ScDPCollection::GetNameCaches()
-{
- return maNameCaches;
-}
-ScDPCollection::DBCaches& ScDPCollection::GetDBCaches()
-{
- return maDBCaches;
-}
ScRangeList ScDPCollection::GetAllTableRanges( SCTAB nTab ) const
{
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 761a369a208e..91fab1cca7e6 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -865,10 +865,6 @@ const OUString* ScDPSaveData::GetGrandTotalName() const
return mpGrandTotalName.get();
}
-const ScDPSaveData::DimsType& ScDPSaveData::GetDimensions() const
-{
- return aDimList;
-}
namespace {
diff --git a/sc/source/core/data/dpshttab.cxx b/sc/source/core/data/dpshttab.cxx
index 2a03978b7bcb..166c4a3c28be 100644
--- a/sc/source/core/data/dpshttab.cxx
+++ b/sc/source/core/data/dpshttab.cxx
@@ -252,10 +252,6 @@ void ScSheetSourceDesc::SetRangeName(const OUString& rName)
maRangeName = rName;
}
-const OUString& ScSheetSourceDesc::GetRangeName() const
-{
- return maRangeName;
-}
bool ScSheetSourceDesc::HasRangeName() const
{
@@ -267,10 +263,6 @@ void ScSheetSourceDesc::SetQueryParam(const ScQueryParam& rParam)
maQueryParam = rParam;
}
-const ScQueryParam& ScSheetSourceDesc::GetQueryParam() const
-{
- return maQueryParam;
-}
bool ScSheetSourceDesc::operator== (const ScSheetSourceDesc& rOther) const
{
diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx
index 8355ff48c5d3..f7120ba7e8da 100644
--- a/sc/source/core/data/dptabsrc.cxx
+++ b/sc/source/core/data/dptabsrc.cxx
@@ -1458,10 +1458,6 @@ uno::Reference<util::XCloneable> SAL_CALL ScDPDimension::createClone() throw(uno
return CreateCloneObject();
}
-const sheet::DataPilotFieldReference& ScDPDimension::GetReferenceValue() const
-{
- return aReferenceValue;
-}
const ScDPItemData& ScDPDimension::GetSelectedData()
{
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index c7e9aeb6006e..ea2eadc8a7e9 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3390,10 +3390,6 @@ void ScFormulaCell::SetChanged(bool b)
-const ScTokenArray* ScFormulaCell::GetCode() const
-{
- return pCode;
-}
void ScFormulaCell::SetCode( ScTokenArray* pNew )
{
@@ -3516,10 +3512,6 @@ ScFormulaCellGroupRef ScFormulaCell::CreateCellGroup( SCROW nLen, bool bInvarian
return mxGroup;
}
-ScFormulaCellGroupRef ScFormulaCell::GetCellGroup() const
-{
- return mxGroup;
-}
void ScFormulaCell::SetCellGroup( const ScFormulaCellGroupRef &xRef )
{
diff --git a/sc/source/core/data/listenercontext.cxx b/sc/source/core/data/listenercontext.cxx
index d6b92ebe0ef6..0463e7baa75a 100644
--- a/sc/source/core/data/listenercontext.cxx
+++ b/sc/source/core/data/listenercontext.cxx
@@ -20,10 +20,6 @@ StartListeningContext::StartListeningContext(
ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet) :
mrDoc(rDoc), mpSet(pSet) {}
-ScDocument& StartListeningContext::getDoc()
-{
- return mrDoc;
-}
ColumnBlockPosition* StartListeningContext::getBlockPosition(SCTAB nTab, SCCOL nCol)
{
@@ -44,10 +40,6 @@ void EndListeningContext::setPositionDelta( const ScAddress& rDelta )
maPosDelta = rDelta;
}
-ScDocument& EndListeningContext::getDoc()
-{
- return mrDoc;
-}
ScAddress EndListeningContext::getOldPosition( const ScAddress& rPos ) const
diff --git a/sc/source/core/data/markdata.cxx b/sc/source/core/data/markdata.cxx
index a062593735f0..fc200b23f132 100644
--- a/sc/source/core/data/markdata.cxx
+++ b/sc/source/core/data/markdata.cxx
@@ -216,10 +216,6 @@ SCTAB ScMarkData::GetLastSelected() const
return 0;
}
-const ScMarkData::MarkedTabsType& ScMarkData::GetSelectedTabs() const
-{
- return maTabMarked;
-}
void ScMarkData::SetSelectedTabs(const MarkedTabsType& rTabs)
{
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 09b6f5189464..141de43276e5 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -510,20 +510,12 @@ ScPostIt* ScPostIt::Clone( const ScAddress& rOwnPos, ScDocument& rDestDoc, const
}
-const OUString& ScPostIt::GetDate() const
-{
- return maNoteData.maDate;
-}
void ScPostIt::SetDate( const OUString& rDate )
{
maNoteData.maDate = rDate;
}
-const OUString& ScPostIt::GetAuthor() const
-{
- return maNoteData.maAuthor;
-}
void ScPostIt::SetAuthor( const OUString& rAuthor )
{
@@ -576,10 +568,6 @@ void ScPostIt::SetText( const ScAddress& rPos, const OUString& rText )
maNoteData.mpCaption->SetText( rText );
}
-SdrCaptionObj* ScPostIt::GetCaption() const
-{
- return maNoteData.mpCaption;
-}
SdrCaptionObj* ScPostIt::GetOrCreateCaption( const ScAddress& rPos ) const
{
@@ -604,10 +592,6 @@ void ScPostIt::ShowCaption( const ScAddress& rPos, bool bShow )
ScCaptionUtil::SetCaptionLayer( *maNoteData.mpCaption, bShow );
}
-bool ScPostIt::IsCaptionShown() const
-{
- return maNoteData.mbShown;
-}
void ScPostIt::ShowCaptionTemp( const ScAddress& rPos, bool bShow )
{
diff --git a/sc/source/core/data/rowheightcontext.cxx b/sc/source/core/data/rowheightcontext.cxx
index 408bf4df759a..08466ae2acad 100644
--- a/sc/source/core/data/rowheightcontext.cxx
+++ b/sc/source/core/data/rowheightcontext.cxx
@@ -24,15 +24,7 @@ RowHeightContext::~RowHeightContext() {}
-const Fraction& RowHeightContext::getZoomX() const
-{
- return maZoomX;
-}
-const Fraction& RowHeightContext::getZoomY() const
-{
- return maZoomY;
-}
void RowHeightContext::setExtraHeight( sal_uInt16 nH )
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index fe407e0db71c..5cba042224ed 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -394,10 +394,6 @@ void ScTable::SetLoadingRTL( bool bSet )
bLoadingRTL = bSet;
}
-const Color& ScTable::GetTabBgColor() const
-{
- return aTabBgColor;
-}
void ScTable::SetTabBgColor(const Color& rColor)
{
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index b5447116834e..5b44baf605fc 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2640,15 +2640,7 @@ bool ScTable::GetDataEntries(SCCOL nCol, SCROW nRow, std::set<ScTypedStrData>& r
return aCol[nCol].GetDataEntries( nRow, rStrings, bLimit );
}
-ScDocument& ScTable::GetDoc()
-{
- return *pDocument;
-}
-const ScDocument& ScTable::GetDoc() const
-{
- return *pDocument;
-}
sal_uLong ScTable::GetCellCount() const
{
diff --git a/sc/source/core/data/tabprotection.cxx b/sc/source/core/data/tabprotection.cxx
index 8d19ab9ac5c3..364f922d715a 100644
--- a/sc/source/core/data/tabprotection.cxx
+++ b/sc/source/core/data/tabprotection.cxx
@@ -112,7 +112,7 @@ public:
void setOption(SCSIZE nOptId, bool bEnabled);
void setEnhancedProtection( const ::std::vector< ScEnhancedProtection > & rProt );
- const ::std::vector< ScEnhancedProtection > & getEnhancedProtection() const;
+ const ::std::vector< ScEnhancedProtection > & getEnhancedProtection() const { return maEnhancedProtection;}
bool updateReference( UpdateRefMode, ScDocument*, const ScRange& rWhere, SCsCOL nDx, SCsROW nDy, SCsTAB nDz );
bool isBlockEditable( const ScRange& rRange ) const;
bool isSelectionEditable( const ScRangeList& rRangeList ) const;
@@ -351,10 +351,6 @@ void ScTableProtectionImpl::setEnhancedProtection( const ::std::vector< ScEnhanc
maEnhancedProtection = rProt;
}
-const ::std::vector< ScEnhancedProtection > & ScTableProtectionImpl::getEnhancedProtection() const
-{
- return maEnhancedProtection;
-}
bool ScTableProtectionImpl::updateReference( UpdateRefMode eMode, ScDocument* pDoc,
const ScRange& rWhere, SCsCOL nDx, SCsROW nDy, SCsTAB nDz )
diff --git a/sc/source/core/inc/doubleref.hxx b/sc/source/core/inc/doubleref.hxx
index 1ca4d1cf0b69..3c7d18248cc9 100644
--- a/sc/source/core/inc/doubleref.hxx
+++ b/sc/source/core/inc/doubleref.hxx
@@ -92,7 +92,7 @@ public:
explicit ScDBInternalRange(ScDocument* pDoc, const ScRange& rRange);
virtual ~ScDBInternalRange();
- const ScRange& getRange() const;
+ const ScRange& getRange() const { return maRange;}
virtual SCCOL getColSize() const SAL_OVERRIDE;
virtual SCROW getRowSize() const SAL_OVERRIDE;
diff --git a/sc/source/core/inc/jumpmatrix.hxx b/sc/source/core/inc/jumpmatrix.hxx
index 63e2ee20f1bd..0f5be1945457 100644
--- a/sc/source/core/inc/jumpmatrix.hxx
+++ b/sc/source/core/inc/jumpmatrix.hxx
@@ -101,7 +101,7 @@ public:
void GetJump( SCSIZE nCol, SCSIZE nRow, double& rBool, short& rStart, short& rNext, short& rStop ) const;
void SetAllJumps( double fBool, short nStart, short nNext, short nStop = SHRT_MAX );
void SetJumpParameters( ScTokenVec* p );
- const ScTokenVec* GetJumpParameters() const;
+ const ScTokenVec* GetJumpParameters() const { return pParams;}
bool HasResultMatrix() const;
ScMatrix* GetResultMatrix(); ///< also applies pending buffered values
void GetPos( SCSIZE& rCol, SCSIZE& rRow ) const;
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx
index d8539b9d76aa..f0a757b071e8 100644
--- a/sc/source/core/tool/addincol.cxx
+++ b/sc/source/core/tool/addincol.cxx
@@ -1699,9 +1699,5 @@ void ScUnoAddInCall::SetResult( const uno::Any& rNewRes )
}
}
-ScMatrixRef ScUnoAddInCall::GetMatrix() const
-{
- return xMatrix;
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx
index 6e15d7739100..a19686bdf4a8 100644
--- a/sc/source/core/tool/chartlis.cxx
+++ b/sc/source/core/tool/chartlis.cxx
@@ -95,10 +95,6 @@ void ScChartListener::ExternalRefListener::removeFileId(sal_uInt16 nFileId)
maFileIds.erase(nFileId);
}
-boost::unordered_set<sal_uInt16>& ScChartListener::ExternalRefListener::getAllFileIds()
-{
- return maFileIds;
-}
ScChartListener::ScChartListener( const OUString& rName, ScDocument* pDocP,
const ScRangeListRef& rRangeList ) :
@@ -176,10 +172,6 @@ ScChartListener::~ScChartListener()
}
}
-const OUString& ScChartListener::GetName() const
-{
- return maName;
-}
void ScChartListener::SetUno(
const uno::Reference< chart::XChartDataChangeEventListener >& rListener,
@@ -477,20 +469,8 @@ bool ScChartListenerCollection::hasListeners() const
return !maListeners.empty();
}
-const ScChartListenerCollection::ListenersType& ScChartListenerCollection::getListeners() const
-{
- return maListeners;
-}
-ScChartListenerCollection::ListenersType& ScChartListenerCollection::getListeners()
-{
- return maListeners;
-}
-ScChartListenerCollection::StringSetType& ScChartListenerCollection::getNonOleObjectNames()
-{
- return maNonOleObjectNames;
-}
OUString ScChartListenerCollection::getUniqueName(const OUString& rPrefix) const
{
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index b2097a119d42..239964488221 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -553,20 +553,12 @@ OUString ScChangeAction::GetRefString(
return aBuf.makeStringAndClear();
}
-const OUString& ScChangeAction::GetUser() const
-{
- return aUser;
-}
void ScChangeAction::SetUser( const OUString& r )
{
aUser = r;
}
-const OUString& ScChangeAction::GetComment() const
-{
- return aComment;
-}
void ScChangeAction::SetComment( const OUString& rStr )
{
@@ -1451,15 +1443,7 @@ void ScChangeActionContent::GetNewString( OUString& rStr, const ScDocument* pDoc
GetValueString(rStr, maNewValue, maNewCell, pDoc);
}
-const ScCellValue& ScChangeActionContent::GetOldCell() const
-{
- return maOldCell;
-}
-const ScCellValue& ScChangeActionContent::GetNewCell() const
-{
- return maNewCell;
-}
void ScChangeActionContent::GetDescription(
OUString& rStr, ScDocument* pDoc, bool bSplitRange, bool bWarning ) const
@@ -2217,10 +2201,6 @@ void ScChangeTrack::Clear()
Init();
}
-const std::set<OUString>& ScChangeTrack::GetUserCollection() const
-{
- return maUserCollection;
-}
void ScChangeTrack::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 )
{
@@ -2258,10 +2238,6 @@ void ScChangeTrack::SetUser( const OUString& rUser )
maUserCollection.insert(maUser);
}
-const OUString& ScChangeTrack::GetUser() const
-{
- return maUser;
-}
void ScChangeTrack::StartBlockModify( ScChangeTrackMsgType eMsgType,
sal_uLong nStartAction )
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index e8f171fa4ce0..9e51ae1aa8a3 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -802,25 +802,9 @@ ScDBCollection::ScDBCollection(ScDocument* pDocument) :
ScDBCollection::ScDBCollection(const ScDBCollection& r) :
pDoc(r.pDoc), nEntryIndex(r.nEntryIndex), maNamedDBs(r.maNamedDBs), maAnonDBs(r.maAnonDBs) {}
-ScDBCollection::NamedDBs& ScDBCollection::getNamedDBs()
-{
- return maNamedDBs;
-}
-const ScDBCollection::NamedDBs& ScDBCollection::getNamedDBs() const
-{
- return maNamedDBs;
-}
-ScDBCollection::AnonDBs& ScDBCollection::getAnonDBs()
-{
- return maAnonDBs;
-}
-const ScDBCollection::AnonDBs& ScDBCollection::getAnonDBs() const
-{
- return maAnonDBs;
-}
const ScDBData* ScDBCollection::GetDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, bool bStartOnly) const
{
diff --git a/sc/source/core/tool/doubleref.cxx b/sc/source/core/tool/doubleref.cxx
index 66a9edbbc043..547bc21e6aec 100644
--- a/sc/source/core/tool/doubleref.cxx
+++ b/sc/source/core/tool/doubleref.cxx
@@ -276,10 +276,6 @@ ScDBInternalRange::~ScDBInternalRange()
{
}
-const ScRange& ScDBInternalRange::getRange() const
-{
- return maRange;
-}
SCCOL ScDBInternalRange::getColSize() const
{
diff --git a/sc/source/core/tool/jumpmatrix.cxx b/sc/source/core/tool/jumpmatrix.cxx
index adac4f68f6a3..625e425c18b4 100644
--- a/sc/source/core/tool/jumpmatrix.cxx
+++ b/sc/source/core/tool/jumpmatrix.cxx
@@ -110,10 +110,6 @@ void ScJumpMatrix::SetJumpParameters(ScTokenVec* p)
pParams = p;
}
-const ScTokenVec* ScJumpMatrix::GetJumpParameters() const
-{
- return pParams;
-}
void ScJumpMatrix::GetPos(SCSIZE& rCol, SCSIZE& rRow) const
{
diff --git a/sc/source/core/tool/queryentry.cxx b/sc/source/core/tool/queryentry.cxx
index 455c8c6617cb..af739594a2a4 100644
--- a/sc/source/core/tool/queryentry.cxx
+++ b/sc/source/core/tool/queryentry.cxx
@@ -79,10 +79,6 @@ ScQueryEntry& ScQueryEntry::operator=( const ScQueryEntry& r )
return *this;
}
-ScQueryEntry::QueryItemsType& ScQueryEntry::GetQueryItems()
-{
- return maQueryItems;
-}
void ScQueryEntry::SetQueryByEmpty()
diff --git a/sc/source/core/tool/refdata.cxx b/sc/source/core/tool/refdata.cxx
index 9a5bb0ca4431..435326514f30 100644
--- a/sc/source/core/tool/refdata.cxx
+++ b/sc/source/core/tool/refdata.cxx
@@ -41,10 +41,6 @@ void ScSingleRefData::InitAddressRel( const ScAddress& rAdr, const ScAddress& rP
SetAddress(rAdr, rPos);
}
-sal_uInt8 ScSingleRefData::FlagValue() const
-{
- return mnFlagValue;
-}
void ScSingleRefData::SetAbsCol( SCCOL nVal )
{
@@ -102,30 +98,18 @@ void ScSingleRefData::SetColDeleted( bool bVal )
Flags.bColDeleted = bVal;
}
-bool ScSingleRefData::IsColDeleted() const
-{
- return Flags.bColDeleted;
-}
void ScSingleRefData::SetRowDeleted( bool bVal )
{
Flags.bRowDeleted = bVal;
}
-bool ScSingleRefData::IsRowDeleted() const
-{
- return Flags.bRowDeleted;
-}
void ScSingleRefData::SetTabDeleted( bool bVal )
{
Flags.bTabDeleted = bVal;
}
-bool ScSingleRefData::IsTabDeleted() const
-{
- return Flags.bTabDeleted;
-}
bool ScSingleRefData::IsDeleted() const
{
diff --git a/sc/source/core/tool/refhint.cxx b/sc/source/core/tool/refhint.cxx
index 56e21e41d035..8327b6186cec 100644
--- a/sc/source/core/tool/refhint.cxx
+++ b/sc/source/core/tool/refhint.cxx
@@ -20,25 +20,13 @@ RefMovedHint::RefMovedHint( const ScRange& rRange, const ScAddress& rMove ) :
RefMovedHint::~RefMovedHint() {}
-const ScRange& RefMovedHint::getRange() const
-{
- return maRange;
-}
-const ScAddress& RefMovedHint::getDelta() const
-{
- return maMoveDelta;
-}
RefColReorderHint::RefColReorderHint( const sc::ColReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 ) :
RefHint(ColumnReordered), mrColMap(rColMap), mnTab(nTab), mnRow1(nRow1), mnRow2(nRow2) {}
RefColReorderHint::~RefColReorderHint() {}
-const sc::ColReorderMapType& RefColReorderHint::getColMap() const
-{
- return mrColMap;
-}
diff --git a/sc/source/core/tool/tokenstringcontext.cxx b/sc/source/core/tool/tokenstringcontext.cxx
index de23ddb7e7d4..3eb2f16b8474 100644
--- a/sc/source/core/tool/tokenstringcontext.cxx
+++ b/sc/source/core/tool/tokenstringcontext.cxx
@@ -137,10 +137,6 @@ void CompileFormulaContext::setGrammar( formula::FormulaGrammar::Grammar eGram )
updateTabNames();
}
-const std::vector<OUString>& CompileFormulaContext::getTabNames() const
-{
- return maTabNames;
-}
}
diff --git a/sc/source/core/tool/typedstrdata.cxx b/sc/source/core/tool/typedstrdata.cxx
index b13e49a4af6a..de9b8ba14a71 100644
--- a/sc/source/core/tool/typedstrdata.cxx
+++ b/sc/source/core/tool/typedstrdata.cxx
@@ -105,10 +105,6 @@ bool ScTypedStrData::IsStrData() const
}
-const OUString& ScTypedStrData::GetString() const
-{
- return maStrValue;
-}
FindTypedStrData::FindTypedStrData(const ScTypedStrData& rVal, bool bCaseSens) :
diff --git a/sc/source/core/tool/unitconv.cxx b/sc/source/core/tool/unitconv.cxx
index 87f4c8d96d44..b9d5c61856c7 100644
--- a/sc/source/core/tool/unitconv.cxx
+++ b/sc/source/core/tool/unitconv.cxx
@@ -42,10 +42,6 @@ ScUnitConverterData::ScUnitConverterData( const ScUnitConverterData& r ) :
ScUnitConverterData::~ScUnitConverterData() {}
-const OUString& ScUnitConverterData::GetIndexString() const
-{
- return maIndexString;
-}
OUString ScUnitConverterData::BuildIndexString(
const OUString& rFromUnit, const OUString& rToUnit )
diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx
index dbb2653d6114..9623b9aeef36 100644
--- a/sc/source/filter/excel/xepivot.cxx
+++ b/sc/source/filter/excel/xepivot.cxx
@@ -996,12 +996,6 @@ OUString XclExpPTField::GetFieldName() const
return mpCacheField ? mpCacheField->GetFieldName() : OUString();
}
-sal_uInt16 XclExpPTField::GetFieldIndex() const
-{
- // field index always equal to cache index
- return maFieldInfo.mnCacheIdx;
-}
-
sal_uInt16 XclExpPTField::GetLastDataInfoIndex() const
{
OSL_ENSURE( !maDataInfoVec.empty(), "XclExpPTField::GetLastDataInfoIndex - no data info found" );
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index a1c9585372a8..3f9e9a93ce05 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -2205,10 +2205,6 @@ void XclExpRowBuffer::SaveXml( XclExpXmlStream& rStrm )
rWorksheet->endElement( XML_sheetData );
}
-XclExpDimensions* XclExpRowBuffer::GetDimensions()
-{
- return &maDimensions;
-}
XclExpRow& XclExpRowBuffer::GetOrCreateRow( sal_uInt32 nXclRow, bool bRowAlwaysEmpty )
{
diff --git a/sc/source/filter/excel/xihelper.cxx b/sc/source/filter/excel/xihelper.cxx
index 28d8ec53b784..774d24479854 100644
--- a/sc/source/filter/excel/xihelper.cxx
+++ b/sc/source/filter/excel/xihelper.cxx
@@ -811,10 +811,6 @@ XclImpCachedValue::~XclImpCachedValue()
{
}
-const OUString& XclImpCachedValue::GetString() const
-{
- return maStr;
-}
sal_uInt16 XclImpCachedValue::GetScError() const
{
diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx
index 0e26d5eb5c54..49e2acb55fb9 100644
--- a/sc/source/filter/excel/xilink.cxx
+++ b/sc/source/filter/excel/xilink.cxx
@@ -51,7 +51,7 @@ public:
/** Reads a cached value and stores it with its cell address. */
explicit XclImpCrn( XclImpStream& rStrm, const XclAddress& rXclPos );
- const XclAddress& GetAddress() const;
+ const XclAddress& GetAddress() const { return maXclPos;}
private:
XclAddress maXclPos; /// Excel position of the cached cell.
@@ -544,10 +544,6 @@ XclImpCrn::XclImpCrn( XclImpStream& rStrm, const XclAddress& rXclPos ) :
{
}
-const XclAddress& XclImpCrn::GetAddress() const
-{
- return maXclPos;
-}
// Sheet in an external document ==============================================
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index e4b733fb7e9d..40fb56e298e2 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -203,15 +203,7 @@ ScHTMLParser::~ScHTMLParser()
{
}
-ScHTMLStyles& ScHTMLParser::GetStyles()
-{
- return maStyles;
-}
-ScDocument& ScHTMLParser::GetDoc()
-{
- return *mpDoc;
-}
ScHTMLLayoutParser::ScHTMLLayoutParser(
EditEngine* pEditP, const OUString& rBaseURL, const Size& aPageSizeP,
diff --git a/sc/source/filter/inc/htmlpars.hxx b/sc/source/filter/inc/htmlpars.hxx
index 6dd41a39aed2..c572c3913ab4 100644
--- a/sc/source/filter/inc/htmlpars.hxx
+++ b/sc/source/filter/inc/htmlpars.hxx
@@ -90,8 +90,8 @@ public:
virtual sal_uLong Read( SvStream& rStrm, const OUString& rBaseURL ) SAL_OVERRIDE = 0;
- ScHTMLStyles& GetStyles();
- ScDocument& GetDoc();
+ ScHTMLStyles& GetStyles() { return maStyles;}
+ ScDocument& GetDoc() { return *mpDoc;}
/** Returns the "global table" which contains the entire HTML document. */
virtual const ScHTMLTable* GetGlobalTable() const = 0;
diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx
index 7f3a73242522..b2e11864f6b8 100644
--- a/sc/source/filter/inc/stylesbuffer.hxx
+++ b/sc/source/filter/inc/stylesbuffer.hxx
@@ -252,7 +252,7 @@ public:
void finalizeImport();
/** Returns an API font descriptor with own font information. */
- const ::com::sun::star::awt::FontDescriptor& getFontDescriptor() const;
+ const ::com::sun::star::awt::FontDescriptor& getFontDescriptor() const { return maApiData.maDesc;}
/** Returns true, if the font requires rich text formatting in Calc.
@descr Example: Font escapement is a cell attribute in Excel, but Calc
needs an rich text cell for this attribute. */
diff --git a/sc/source/filter/inc/xcl97rec.hxx b/sc/source/filter/inc/xcl97rec.hxx
index e2fc6d8a805e..e4be5e58df55 100644
--- a/sc/source/filter/inc/xcl97rec.hxx
+++ b/sc/source/filter/inc/xcl97rec.hxx
@@ -318,7 +318,7 @@ class ExcBundlesheet8 : public ExcBundlesheetBase
{
private:
OUString sUnicodeName;
- XclExpString GetName() const;
+ XclExpString GetName() const { return XclExpString( sUnicodeName, EXC_STR_8BITLENGTH );}
virtual void SaveCont( XclExpStream& rStrm ) SAL_OVERRIDE;
diff --git a/sc/source/filter/inc/xepivot.hxx b/sc/source/filter/inc/xepivot.hxx
index 7eacea1a3b79..9c645d78498b 100644
--- a/sc/source/filter/inc/xepivot.hxx
+++ b/sc/source/filter/inc/xepivot.hxx
@@ -274,8 +274,11 @@ public:
/** Returns the name of this field. */
OUString GetFieldName() const;
- /** Returns the pivot table field list index of this field. */
- sal_uInt16 GetFieldIndex() const;
+ /** Returns the pivot table field list index of this field.
+ * The field index is always equal to cache index.
+ */
+ sal_uInt16 GetFieldIndex() const { return maFieldInfo.mnCacheIdx; }
+
/** Returns the index of the last inserted data info struct. */
sal_uInt16 GetLastDataInfoIndex() const;
diff --git a/sc/source/filter/inc/xetable.hxx b/sc/source/filter/inc/xetable.hxx
index b9aad1d09e92..0d90d08f2086 100644
--- a/sc/source/filter/inc/xetable.hxx
+++ b/sc/source/filter/inc/xetable.hxx
@@ -941,7 +941,7 @@ public:
virtual void Save( XclExpStream& rStrm ) SAL_OVERRIDE;
virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE;
- XclExpDimensions* GetDimensions();
+ XclExpDimensions* GetDimensions() { return &maDimensions;}
private:
/** Returns access to the specified ROW record. Inserts preceding missing ROW records.
diff --git a/sc/source/filter/inc/xihelper.hxx b/sc/source/filter/inc/xihelper.hxx
index 02786a942089..ce49f0e9ccd7 100644
--- a/sc/source/filter/inc/xihelper.hxx
+++ b/sc/source/filter/inc/xihelper.hxx
@@ -302,7 +302,7 @@ public:
/** Returns the type of the cached value (EXC_CACHEDVAL_*). */
inline sal_uInt8 GetType() const { return mnType; }
/** Returns the cached string value, if this value is a string, else an empty string. */
- const OUString& GetString() const;
+ const OUString& GetString() const { return maStr;}
/** Returns the cached number, if this value has number type, else 0.0. */
inline double GetValue() const { return mfValue; }
/** Returns the cached Boolean value, if this value has Boolean type, else false. */
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index 628db5e915d6..29ae77008971 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -859,10 +859,6 @@ void Font::finalizeImport()
}
}
-const FontDescriptor& Font::getFontDescriptor() const
-{
- return maApiData.maDesc;
-}
bool Font::needsRichTextFormat() const
{
diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx
index f59c4781bffa..4463be4b429d 100644
--- a/sc/source/filter/oox/workbookhelper.cxx
+++ b/sc/source/filter/oox/workbookhelper.cxx
@@ -149,7 +149,8 @@ public:
ScDocument& getScDocument() { return *mpDoc; }
- ScDocShell& getDocShell();
+ ScDocShell& getDocShell() { return *mpDocShell; }
+
ScDocumentImport& getDocImport();
/** Returns a reference to the source/target spreadsheet document model. */
@@ -331,11 +332,6 @@ WorkbookGlobals::~WorkbookGlobals()
mrExcelFilter.unregisterWorkbookGlobals();
}
-ScDocShell& WorkbookGlobals::getDocShell()
-{
- return *mpDocShell;
-}
-
ScDocumentImport& WorkbookGlobals::getDocImport()
{
return *mxDocImport;
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index bb4eb8c5f421..17fda19b1ad1 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -1086,10 +1086,6 @@ ExcBundlesheet8::ExcBundlesheet8( const OUString& rString ) :
}
-XclExpString ExcBundlesheet8::GetName() const
-{
- return XclExpString( sUnicodeName, EXC_STR_8BITLENGTH );
-}
void ExcBundlesheet8::SaveCont( XclExpStream& rStrm )
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx
index 156650552783..31566c85b396 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx
@@ -678,10 +678,6 @@ sal_Int32 ScRowFormatRanges::GetMaxRows() const
return nMaxRows;
}
-sal_Int32 ScRowFormatRanges::GetSize() const
-{
- return nSize;
-}
void ScRowFormatRanges::Sort()
{
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.hxx b/sc/source/filter/xml/XMLStylesExportHelper.hxx
index 31ceafe68902..e51f46820b4f 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.hxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.hxx
@@ -160,7 +160,7 @@ public:
void AddRange(ScMyRowFormatRange& rFormatRange);
bool GetNext(ScMyRowFormatRange& rFormatRange);
sal_Int32 GetMaxRows() const;
- sal_Int32 GetSize() const;
+ sal_Int32 GetSize() const { return nSize;}
void Sort();
};
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index a9e8dd9343da..f092200846f8 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -986,10 +986,6 @@ bool ScXMLImportWrapper::Export(bool bStylesOnly)
return false;
}
-const sc::ImportPostProcessData& ScXMLImportWrapper::GetImportPostProcessData() const
-{
- return maPostProcessData;
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index a64d075b2541..b070c3697f7e 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -648,10 +648,6 @@ void ScModule::ResetDragObject()
mpDragData->aJumpText = OUString();
}
-const ScDragData& ScModule::GetDragData() const
-{
- return *mpDragData;
-}
void ScModule::SetDragObject( ScTransferObj* pCellObj, ScDrawTransferObj* pDrawObj )
{
@@ -679,10 +675,6 @@ void ScModule::SetDragJump(
mpDragData->aJumpText = rText;
}
-const ScClipData& ScModule::GetClipData() const
-{
- return *mpClipData;
-}
void ScModule::SetClipObject( ScTransferObj* pCellObj, ScDrawTransferObj* pDrawObj )
{
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index c4c6be5810fb..2e2413b367f6 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -428,10 +428,6 @@ void ScMenuFloatingWindow::drawAllMenuItems()
}
}
-const Font& ScMenuFloatingWindow::getLabelFont() const
-{
- return maLabelFont;
-}
void ScMenuFloatingWindow::executeMenuItem(size_t nPos)
{
@@ -656,10 +652,6 @@ void ScMenuFloatingWindow::setName(const OUString& rName)
maName = rName;
}
-const OUString& ScMenuFloatingWindow::getName() const
-{
- return maName;
-}
void ScMenuFloatingWindow::highlightMenuItem(size_t nPos, bool bSelected)
{
diff --git a/sc/source/ui/dbgui/PivotLayoutDialog.cxx b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
index dd9ca8a1d5b1..de2f4a623faf 100644
--- a/sc/source/ui/dbgui/PivotLayoutDialog.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
@@ -596,10 +596,6 @@ ScDPLabelData* ScPivotLayoutDialog::GetLabelData(SCCOL nColumn)
return &maPivotParameters.maLabelArray[nColumn];
}
-ScDPLabelDataVector& ScPivotLayoutDialog::GetLabelDataVector()
-{
- return maPivotParameters.maLabelArray;
-}
void ScPivotLayoutDialog::PushDataFieldNames(std::vector<ScDPName>& rDataFieldNames)
{
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index ab9a7b9b8d16..fae875483756 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -1103,10 +1103,6 @@ void ScExternalRefCache::addCacheDocToReferenced( sal_uInt16 nFileId )
}
}
-bool ScExternalRefCache::areAllCacheTablesReferenced() const
-{
- return maReferenced.mbAllReferenced;
-}
void ScExternalRefCache::getAllCachedDataSpans( sal_uInt16 nFileId, sc::ColumnSpanSet& rSet ) const
{
diff --git a/sc/source/ui/inc/PivotLayoutDialog.hxx b/sc/source/ui/inc/PivotLayoutDialog.hxx
index ace1ed5ffdb9..290773a317ff 100644
--- a/sc/source/ui/inc/PivotLayoutDialog.hxx
+++ b/sc/source/ui/inc/PivotLayoutDialog.hxx
@@ -127,7 +127,7 @@ public:
bool IsDataElement(SCCOL nColumn);
ScDPLabelData* GetLabelData(SCCOL nColumn);
- ScDPLabelDataVector& GetLabelDataVector();
+ ScDPLabelDataVector& GetLabelDataVector() { return maPivotParameters.maLabelArray;}
void PushDataFieldNames(std::vector<ScDPName>& rDataFieldNames);
};
diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx
index d64c7015cd1b..b23da9aab1a3 100644
--- a/sc/source/ui/inc/checklistmenu.hxx
+++ b/sc/source/ui/inc/checklistmenu.hxx
@@ -68,7 +68,7 @@ public:
size_t getSelectedMenuItem() const { return mnSelectedMenu;}
void setName(const OUString& rName);
- const OUString& getName() const;
+ const OUString& getName() const { return maName;}
void executeMenuItem(size_t nPos);
void getMenuItemPosSize(size_t nPos, Point& rPos, Size& rSize) const;
@@ -81,7 +81,7 @@ protected:
void drawMenuItem(size_t nPos);
void drawSeparator(size_t nPos);
void drawAllMenuItems();
- const Font& getLabelFont() const;
+ const Font& getLabelFont() const { return maLabelFont;}
void queueLaunchSubMenu(size_t nPos, ScMenuFloatingWindow* pMenu);
void queueCloseSubMenu();
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index 0a019357a5de..df03b88f525c 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -325,7 +325,7 @@ public:
void FakeButtonUp();
- Point GetMousePosPixel() const;
+ Point GetMousePosPixel() const { return aCurMousePos; }
void UpdateStatusPosSize();
void ClickExtern();
diff --git a/sc/source/ui/inc/preview.hxx b/sc/source/ui/inc/preview.hxx
index 588149c9f6f4..bb5c79874979 100644
--- a/sc/source/ui/inc/preview.hxx
+++ b/sc/source/ui/inc/preview.hxx
@@ -163,7 +163,7 @@ public:
virtual void SwitchView();
SC_DLLPUBLIC void SetSelectedTabs(const ScMarkData& rMark);
- SC_DLLPUBLIC const ScMarkData::MarkedTabsType& GetSelectedTabs() const;
+ const ScMarkData::MarkedTabsType& GetSelectedTabs() const { return maSelectedTabs; }
};
#endif
diff --git a/sc/source/ui/inc/solveroptions.hxx b/sc/source/ui/inc/solveroptions.hxx
index a31c653e4870..5b041b5062a5 100644
--- a/sc/source/ui/inc/solveroptions.hxx
+++ b/sc/source/ui/inc/solveroptions.hxx
@@ -62,7 +62,8 @@ public:
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProperties );
virtual ~ScSolverOptionsDialog();
- const OUString& GetEngine() const;
+ // already updated in selection handler
+ const OUString& GetEngine() const { return maEngine; }
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& GetProperties();
};
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index d624759ba9f7..698087d38d4d 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -26,6 +26,8 @@
#include "hiranges.hxx"
#include "viewutil.hxx"
#include "select.hxx"
+#include "gridwin.hxx"
+#include "drawview.hxx"
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
@@ -294,7 +296,8 @@ public:
bool SelMouseButtonDown( const MouseEvent& rMEvt );
ScDrawView* GetScDrawView() { return pDrawView; }
- SdrView* GetSdrView(); // gegen CLOKs
+ // gegen CLOKs
+ SdrView* GetSdrView() { return pDrawView; }
bool IsMinimized() const { return bMinimized; }
@@ -325,7 +328,7 @@ public:
void FakeButtonUp( ScSplitPos eWhich );
ScGridWindow* GetActiveWin();
- Window* GetWindowByPos( ScSplitPos ePos );
+ Window* GetWindowByPos( ScSplitPos ePos ) { return pGridWin[ePos]; }
ScSplitPos FindWindow( Window* pWindow ) const;
diff --git a/sc/source/ui/inc/tphfedit.hxx b/sc/source/ui/inc/tphfedit.hxx
index 5ca8953e0ced..3e60f12636da 100644
--- a/sc/source/ui/inc/tphfedit.hxx
+++ b/sc/source/ui/inc/tphfedit.hxx
@@ -124,7 +124,7 @@ public:
void SetPopupMenu(PopupMenu* pPopUp);
sal_uInt16 GetSelected() const { return nSelected;}
- OString GetSelectedIdent() const;
+ OString GetSelectedIdent() const { return aSelectedIdent;}
void SetMenuHdl( const Link& rLink ) { aMLink = rLink; }
const Link& GetMenuHdl() const { return aMLink; }
diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx
index 380079f894bf..6995bf3ef325 100644
--- a/sc/source/ui/inc/undocell.hxx
+++ b/sc/source/ui/inc/undocell.hxx
@@ -385,7 +385,7 @@ public:
virtual bool CanRepeat( SfxRepeatTarget& ) const SAL_OVERRIDE;
virtual OUString GetComment() const SAL_OVERRIDE;
- CellValues& GetOldValues();
+ CellValues& GetOldValues() { return maOldValues;}
void SetNewValues( const std::vector<double>& rVals );
};
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index 6a86e46720e3..34c62927bc87 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -23,6 +23,7 @@
#include "rangelst.hxx"
#include "scdllapi.h"
#include "viewopti.hxx"
+#include "docsh.hxx"
#include <boost/scoped_ptr.hpp>
@@ -232,8 +233,7 @@ public:
ScDocFunc& GetDocFunc() const;
ScDBFunc* GetView() const { return pView; }
ScTabViewShell* GetViewShell() const { return pViewShell; }
-
- SfxObjectShell* GetSfxDocShell() const;
+ SfxObjectShell* GetSfxDocShell() const { return pDocShell; }
SfxBindings& GetBindings(); // from ViewShell's ViewFrame
SfxDispatcher& GetDispatcher(); // from ViewShell's ViewFrame
diff --git a/sc/source/ui/miscdlgs/solveroptions.cxx b/sc/source/ui/miscdlgs/solveroptions.cxx
index ad004b017cbd..7a25b5aeed62 100644
--- a/sc/source/ui/miscdlgs/solveroptions.cxx
+++ b/sc/source/ui/miscdlgs/solveroptions.cxx
@@ -162,11 +162,6 @@ ScSolverOptionsDialog::~ScSolverOptionsDialog()
delete mpCheckButtonData;
}
-const OUString& ScSolverOptionsDialog::GetEngine() const
-{
- return maEngine; // already updated in selection handler
-}
-
const uno::Sequence<beans::PropertyValue>& ScSolverOptionsDialog::GetProperties()
{
// update maProperties from list box content
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx
index e5057af8148b..0a996e54b574 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.cxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx
@@ -188,10 +188,6 @@ ScCalcOptionsDialog::ScCalcOptionsDialog(Window* pParent, const ScCalcConfig& rC
ScCalcOptionsDialog::~ScCalcOptionsDialog() {}
-const ScCalcConfig& ScCalcOptionsDialog::GetConfig() const
-{
- return maConfig;
-}
SvTreeListEntry *ScCalcOptionsDialog::createBoolItem(const OUString &rCaption, bool bValue) const
{
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.hxx b/sc/source/ui/optdlg/calcoptionsdlg.hxx
index 9a0f5795fcfb..9097725bf4b6 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.hxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.hxx
@@ -36,7 +36,7 @@ public:
DECL_LINK( BtnAutomaticSelectHdl, void* );
DECL_LINK( DeviceSelHdl, void* );
- const ScCalcConfig& GetConfig() const;
+ const ScCalcConfig& GetConfig() const { return maConfig;}
private:
void FillOptionsList();
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index 2c92ccc7bbe3..faf5c4eb18ba 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -351,10 +351,6 @@ void ScExtIButton::SetPopupMenu(PopupMenu* pPopUp)
}
-OString ScExtIButton::GetSelectedIdent() const
-{
- return aSelectedIdent;
-}
void ScExtIButton::MouseButtonDown( const MouseEvent& rMEvt )
{
diff --git a/sc/source/ui/undo/undocell2.cxx b/sc/source/ui/undo/undocell2.cxx
index f4b5d9376ad2..0b45efc419e9 100644
--- a/sc/source/ui/undo/undocell2.cxx
+++ b/sc/source/ui/undo/undocell2.cxx
@@ -54,10 +54,6 @@ OUString UndoSetCells::GetComment() const
return ScGlobal::GetRscString(STR_UNDO_ENTERDATA);
}
-CellValues& UndoSetCells::GetOldValues()
-{
- return maOldValues;
-}
void UndoSetCells::SetNewValues( const std::vector<double>& rVals )
{
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index 3211f4508e34..5b5dd354961d 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -253,10 +253,6 @@ void ScHeaderFooterTextData::UpdateData(EditEngine& rEditEngine)
bDataValid = false;
}
-const EditTextObject* ScHeaderFooterTextData::GetTextObject() const
-{
- return mpTextObj;
-}
ScHeaderFooterTextObj::ScHeaderFooterTextObj(
ScHeaderFooterContentObj& rContent, sal_uInt16 nP, const EditTextObject* pTextObj) :
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 790f7499e3fb..d6730ae3917b 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -4777,7 +4777,6 @@ void ScGridWindow::LoseFocus()
Window::LoseFocus();
}
-Point ScGridWindow::GetMousePosPixel() const { return aCurMousePos; }
bool ScGridWindow::HitRangeFinder( const Point& rMouse, RfCorner& rCorner,
sal_uInt16* pIndex, SCsCOL* pAddX, SCsROW* pAddY)
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 0735c42de636..3b3c0ace8d63 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -1606,9 +1606,4 @@ void ScPreview::SetSelectedTabs(const ScMarkData& rMark)
maSelectedTabs = rMark.GetSelectedTabs();
}
-const ScMarkData::MarkedTabsType& ScPreview::GetSelectedTabs() const
-{
- return maSelectedTabs;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index caaee2278c04..0777d419637d 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -866,11 +866,6 @@ ScGridWindow* ScTabView::GetActiveWin()
return pGridWin[ePos];
}
-Window* ScTabView::GetWindowByPos( ScSplitPos ePos )
-{
- return pGridWin[ePos];
-}
-
void ScTabView::SetActivePointer( const Pointer& rPointer )
{
for (sal_uInt16 i=0; i<4; i++)
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx
index 4fea5a32da98..563bd2cf5657 100644
--- a/sc/source/ui/view/tabview5.cxx
+++ b/sc/source/ui/view/tabview5.cxx
@@ -430,11 +430,6 @@ void ScTabView::ViewOptionsHasChanged( bool bHScrollChanged, bool bGraphicsChang
// Helper-Funktion gegen das Include des Drawing Layers
-SdrView* ScTabView::GetSdrView()
-{
- return pDrawView;
-}
-
void ScTabView::DrawMarkListHasChanged()
{
if ( pDrawView )
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index d77d8cd54493..14d41550082e 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -2071,11 +2071,6 @@ void ScViewData::SetScreen( const Rectangle& rVisArea )
( aScrSize.Height() * ScGlobal::nScreenPPTY / HMM_PER_TWIPS );
}
-SfxObjectShell* ScViewData::GetSfxDocShell() const
-{
- return pDocShell;
-}
-
ScDocFunc& ScViewData::GetDocFunc() const
{
return pDocShell->GetDocFunc();