summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data')
-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
25 files changed, 1 insertions, 170 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 )