diff options
Diffstat (limited to 'sc/source')
86 files changed, 39 insertions, 570 deletions
diff --git a/sc/source/core/data/clipcontext.cxx b/sc/source/core/data/clipcontext.cxx index c70d9d48de2b..556e3dbcb4d8 100644 --- a/sc/source/core/data/clipcontext.cxx +++ b/sc/source/core/data/clipcontext.cxx @@ -53,15 +53,7 @@ void CopyFromClipContext::setTabRange(SCTAB nStart, SCTAB nEnd) mnTabEnd = nEnd; } -SCTAB CopyFromClipContext::getTabStart() const -{ - return mnTabStart; -} -SCTAB CopyFromClipContext::getTabEnd() const -{ - return mnTabEnd; -} void CopyFromClipContext::setDestRange( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) { @@ -81,30 +73,14 @@ CopyFromClipContext::Range CopyFromClipContext::getDestRange() const return aRet; } -ScDocument* CopyFromClipContext::getUndoDoc() -{ - return mpRefUndoDoc; -} -ScDocument* CopyFromClipContext::getClipDoc() -{ - return mpClipDoc; -} -sal_uInt16 CopyFromClipContext::getInsertFlag() const -{ - return mnInsertFlag; -} void CopyFromClipContext::setDeleteFlag( sal_uInt16 nFlag ) { mnDeleteFlag = nFlag; } -sal_uInt16 CopyFromClipContext::getDeleteFlag() const -{ - return mnDeleteFlag; -} ScCellValue& CopyFromClipContext::getSingleCell() { @@ -116,25 +92,13 @@ void CopyFromClipContext::setCondFormatList( ScConditionalFormatList* pCondForma mpCondFormatList = pCondFormatList; } -ScConditionalFormatList* CopyFromClipContext::getCondFormatList() -{ - return mpCondFormatList; -} -const ScPatternAttr* CopyFromClipContext::getSingleCellPattern() const -{ - return mpSinglePattern; -} void CopyFromClipContext::setSingleCellPattern( const ScPatternAttr* pAttr ) { mpSinglePattern = pAttr; } -const ScPostIt* CopyFromClipContext::getSingleCellNote() const -{ - return mpSingleNote; -} void CopyFromClipContext::setSingleCellNote( const ScPostIt* pNote ) { @@ -146,25 +110,9 @@ void CopyFromClipContext::setTableProtected( bool b ) mbTableProtected = b; } -bool CopyFromClipContext::isTableProtected() const -{ - return mbTableProtected; -} -bool CopyFromClipContext::isAsLink() const -{ - return mbAsLink; -} -bool CopyFromClipContext::isSkipAttrForEmptyCells() const -{ - return mbSkipAttrForEmptyCells; -} -bool CopyFromClipContext::isCloneNotes() const -{ - return mbCloneNotes; -} bool CopyFromClipContext::isDateCell( const ScColumn& rCol, SCROW nRow ) const { @@ -179,15 +127,7 @@ CopyToClipContext::CopyToClipContext( CopyToClipContext::~CopyToClipContext() {} -bool CopyToClipContext::isKeepScenarioFlags() const -{ - return mbKeepScenarioFlags; -} -bool CopyToClipContext::isCloneNotes() const -{ - return mbCloneNotes; -} CopyToDocContext::CopyToDocContext(ScDocument& rDoc) : ClipContextBase(rDoc) {} CopyToDocContext::~CopyToDocContext() {} diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index c5001497e0dc..fe8eff879695 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -343,10 +343,6 @@ void ScColorScaleEntry::SetType( ScColorScaleEntryType eType ) } } -ScColorScaleEntryType ScColorScaleEntry::GetType() const -{ - return meType; -} double ScColorScaleFormat::GetMinValue() const { diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 80a2b53c26dd..2fb8cf125d6c 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1775,10 +1775,6 @@ void ScCondDateFormatEntry::SetDateType( condformat::ScCondFormatDateType eType meType = eType; } -condformat::ScCondFormatDateType ScCondDateFormatEntry::GetDateType() const -{ - return meType; -} const OUString& ScCondDateFormatEntry::GetStyleName() const { diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index d65c42c16cb3..a1bc567efb9d 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -368,10 +368,6 @@ void ScDocument::SetExpandRefs( bool bVal ) bExpandRefs = bVal; } -bool ScDocument::IsExpandRefs() const -{ - return bExpandRefs; -} void ScDocument::StartTrackTimer() { diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 051c0d1faef7..2a4bde6506ba 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -229,10 +229,6 @@ const ScRangeData* ScDocument::GetRangeAtBlock( const ScRange& rBlock, OUString* return pData; } -ScDBCollection* ScDocument::GetDBCollection() const -{ - return pDBCollection; -} void ScDocument::SetDBCollection( ScDBCollection* pNewDBCollection, bool bRemoveAutoFilter ) { @@ -362,10 +358,6 @@ ScDPObject* ScDocument::GetDPAtBlock( const ScRange & rBlock ) const return NULL; } -ScChartCollection* ScDocument::GetChartCollection() const -{ - return pChartCollection; -} void ScDocument::StopTemporaryChartLock() { @@ -373,10 +365,6 @@ void ScDocument::StopTemporaryChartLock() apTemporaryChartLock->StopLocking(); } -ScChartListenerCollection* ScDocument::GetChartListenerCollection() const -{ - return pChartListenerCollection; -} void ScDocument::SetChartListenerCollection( ScChartListenerCollection* pNewChartListenerCollection, @@ -466,10 +454,6 @@ formula::FormulaGrammar::AddressConvention ScDocument::GetAddressConvention() co return formula::FormulaGrammar::extractRefConvention(eGrammar); } -formula::FormulaGrammar::Grammar ScDocument::GetGrammar() const -{ - return eGrammar; -} void ScDocument::SetGrammar( formula::FormulaGrammar::Grammar eGram ) { @@ -1628,10 +1612,6 @@ bool ScDocument::GetFormulaEntries( ScTypedCaseStrSet& rStrings ) } -bool ScDocument::IsEmbedded() const -{ - return bIsEmbedded; -} void ScDocument::GetEmbedded( ScRange& rRange ) const { diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index 1247563867de..54f1508f9298 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -1184,10 +1184,6 @@ SfxBindings* ScDocument::GetViewBindings() return NULL; } -ScDrawLayer* ScDocument::GetDrawLayer() -{ - return pDrawLayer; -} void ScDocument::TransliterateText( const ScMarkData& rMultiMark, sal_Int32 nType ) { diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 87451de19fea..928a478e4480 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -4508,10 +4508,6 @@ const ScValidationDataList* ScDocument::GetValidationList() const return pValidationList; } -ScValidationDataList* ScDocument::GetValidationList() -{ - return pValidationList; -} void ScDocument::ApplyAttr( SCCOL nCol, SCROW nRow, SCTAB nTab, const SfxPoolItem& rAttr ) { @@ -6083,10 +6079,6 @@ void ScDocument::EnableUndo( bool bVal ) mbUndoEnabled = bVal; } -bool ScDocument::IsUserInteractionEnabled() const -{ - return mbUserInteractionEnabled; -} void ScDocument::EnableUserInteraction( bool bVal ) { diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index 478fc0a3e53e..bf402f5beb4d 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -829,10 +829,6 @@ size_t ScDPCache::GetGroupFieldCount() const return maGroupFields.size(); } -SCROW ScDPCache::GetRowCount() const -{ - return mnRowCount; -} SCROW ScDPCache::GetDataSize() const { @@ -912,10 +908,6 @@ void ScDPCache::RemoveReference(ScDPObject* pObj) const mpDoc->GetDPCollection()->RemoveCache(this); } -const ScDPCache::ObjectSetType& ScDPCache::GetAllReferences() const -{ - return maRefObjects; -} SCROW ScDPCache::GetIdByItemData(long nDim, const ScDPItemData& rItem) const { @@ -1154,15 +1146,8 @@ SCROW ScDPCache::GetOrder(long /*nDim*/, SCROW nIndex) const return nIndex; } -ScDocument* ScDPCache::GetDoc() const -{ - return mpDoc; -}; +; -long ScDPCache::GetColumnCount() const -{ - return mnColumnCount; -} #if DEBUG_PIVOT_TABLE diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx index f2a68f56af83..e2eeea7a0971 100644 --- a/sc/source/core/data/dpgroup.cxx +++ b/sc/source/core/data/dpgroup.cxx @@ -434,10 +434,6 @@ void ScDPGroupDimension::SetDateDimension() mbDateDimension = true; } -bool ScDPGroupDimension::IsDateDimension() const -{ - return mbDateDimension; -} ScDPNumGroupDimension::ScDPNumGroupDimension() : mbDateDimension(false) {} @@ -460,10 +456,6 @@ void ScDPNumGroupDimension::DisposeData() maMemberEntries.clear(); } -bool ScDPNumGroupDimension::IsDateDimension() const -{ - return mbDateDimension; -} ScDPNumGroupDimension::~ScDPNumGroupDimension() { diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 97b1a153fc0b..df40306ab97b 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -408,10 +408,6 @@ void ScDPObject::SetHeaderLayout (bool bUseGrid) mbHeaderLayout = bUseGrid; } -bool ScDPObject::GetHeaderLayout() const -{ - return mbHeaderLayout; -} void ScDPObject::SetOutRange(const ScRange& rRange) { diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index 21e958f555d9..0cec6affe9ac 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -1229,10 +1229,6 @@ void ScDPOutput::SetHeaderLayout(bool bUseGrid) bSizesValid = false; } -bool ScDPOutput::GetHeaderLayout() const -{ - return mbHeaderLayout; -} namespace { diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx index 6382ae2ea311..976c991099bf 100644 --- a/sc/source/core/data/dptabres.cxx +++ b/sc/source/core/data/dptabres.cxx @@ -315,25 +315,9 @@ ScDPRunningTotalState::ScDPRunningTotalState( ScDPResultMember* pColRoot, ScDPRe maRowSorted.push_back(-1); } -const ScDPRunningTotalState::IndexArray& ScDPRunningTotalState::GetColVisible() const -{ - return maColVisible; -} -const ScDPRunningTotalState::IndexArray& ScDPRunningTotalState::GetColSorted() const -{ - return maColSorted; -} -const ScDPRunningTotalState::IndexArray& ScDPRunningTotalState::GetRowVisible() const -{ - return maRowVisible; -} -const ScDPRunningTotalState::IndexArray& ScDPRunningTotalState::GetRowSorted() const -{ - return maRowSorted; -} void ScDPRunningTotalState::AddColIndex( long nVisible, long nSorted ) { @@ -907,10 +891,6 @@ bool ScDPResultData::HasCommonElement( SCROW nFirstDataId, long nFirstIndex, return false; } -const ScDPSource& ScDPResultData::GetSource() const -{ - return mrSource; -} ResultMembers* ScDPResultData::GetDimResultMembers(long nDim, ScDPDimension* pDim, ScDPLevel* pLevel) const { @@ -1227,14 +1207,6 @@ bool ScDPResultMember::IsValid() const return true; } -bool ScDPResultMember::HasHiddenDetails() const -{ - // bHasHiddenDetails is set only if the "show details" flag is off, - // and there was a child dimension to skip - - return bHasHiddenDetails; -} - long ScDPResultMember::GetSubTotalCount( long* pUserSubStart ) const { if ( pUserSubStart ) diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx index d746eadcb279..8355ff48c5d3 100644 --- a/sc/source/core/data/dptabsrc.cxx +++ b/sc/source/core/data/dptabsrc.cxx @@ -1426,20 +1426,12 @@ bool ScDPDimension::getIsDataLayoutDimension() const return pSource->GetData()->getIsDataLayoutDimension( nDim ); } -sal_uInt16 ScDPDimension::getFunction() const -{ - return nFunction; -} void ScDPDimension::setFunction(sal_uInt16 nNew) { nFunction = nNew; } -long ScDPDimension::getUsedHierarchy() const -{ - return nUsedHier; -} void ScDPDimension::setUsedHierarchy(long /* nNew */) { @@ -2207,10 +2199,6 @@ uno::Sequence<sheet::GeneralFunction> ScDPLevel::getSubTotals() const return aSubTotals; } -bool ScDPLevel::getShowEmpty() const -{ - return bShowEmpty; -} // XPropertySet @@ -2447,10 +2435,6 @@ sal_Bool SAL_CALL ScDPMembers::hasElements() throw(uno::RuntimeException, std::e // end of XNameAccess implementation -long ScDPMembers::getCount() const -{ - return nMbrCount; -} long ScDPMembers::getMinMembers() const { @@ -2645,10 +2629,6 @@ const OUString* ScDPMember::GetLayoutName() const return mpLayoutName.get(); } -long ScDPMember::GetDim() const -{ - return nDim; -} OUString ScDPMember::GetNameStr() const { @@ -2668,15 +2648,7 @@ void SAL_CALL ScDPMember::setName( const OUString& /* rNewName */ ) throw(uno::R OSL_FAIL("not implemented"); //! exception? } -bool ScDPMember::isVisible() const -{ - return bVisible; -} -bool ScDPMember::getShowDetails() const -{ - return bShowDet; -} // XPropertySet diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 7891500cdfb0..c7e9aeb6006e 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -991,9 +991,7 @@ void ScFormulaCell::GetResultDimensions( SCSIZE& rCols, SCSIZE& rRows ) } } -bool ScFormulaCell::GetDirty() const { return bDirty; } void ScFormulaCell::ResetDirty() { bDirty = bTableOpDirty = mbPostponedDirty = false; } -bool ScFormulaCell::NeedsListening() const { return bNeedListening; } void ScFormulaCell::SetNeedsListening( bool bVar ) { bNeedListening = bVar; } void ScFormulaCell::SetNeedsDirty( bool bVar ) @@ -1003,12 +1001,7 @@ void ScFormulaCell::SetNeedsDirty( bool bVar ) void ScFormulaCell::SetNeedNumberFormat( bool bVal ) { mbNeedsNumberFormat = bVal; } -bool ScFormulaCell::NeedsNumberFormat() const -{ - return mbNeedsNumberFormat; -} -short ScFormulaCell::GetFormatType() const { return nFormatType; } void ScFormulaCell::Compile( const OUString& rFormula, bool bNoListening, const FormulaGrammar::Grammar eGrammar ) @@ -1582,8 +1575,6 @@ void ScFormulaCell::Interpret() } } -bool ScFormulaCell::IsIterCell() const { return bIsIterCell; } -sal_uInt16 ScFormulaCell::GetSeenInIteration() const { return nSeenInIteration; } void ScFormulaCell::InterpretTail( ScInterpretTailParameter eTailParam ) { @@ -1908,10 +1899,6 @@ void ScFormulaCell::SetCompile( bool bVal ) bCompile = bVal; } -ScDocument* ScFormulaCell::GetDocument() const -{ - return pDocument; -} void ScFormulaCell::SetMatColsRows( SCCOL nCols, SCROW nRows, bool bDirtyFlag ) { @@ -1945,10 +1932,6 @@ void ScFormulaCell::SetInChangeTrack( bool bVal ) bInChangeTrack = bVal; } -bool ScFormulaCell::IsInChangeTrack() const -{ - return bInChangeTrack; -} void ScFormulaCell::Notify( const SfxHint& rHint ) { @@ -3398,30 +3381,14 @@ void ScFormulaCell::FindRangeNamesInUse(std::set<sal_uInt16>& rIndexes) const lcl_FindRangeNamesInUse( rIndexes, pCode, pDocument->GetRangeName() ); } -bool ScFormulaCell::IsSubTotal() const -{ - return bSubTotal; -} -bool ScFormulaCell::IsChanged() const -{ - return bChanged; -} void ScFormulaCell::SetChanged(bool b) { bChanged = b; } -sal_uInt8 ScFormulaCell::GetMatrixFlag() const -{ - return cMatrixFlag; -} -ScTokenArray* ScFormulaCell::GetCode() -{ - return pCode; -} const ScTokenArray* ScFormulaCell::GetCode() const { @@ -3435,10 +3402,6 @@ void ScFormulaCell::SetCode( ScTokenArray* pNew ) pCode = pNew; // takes ownership. } -bool ScFormulaCell::IsRunning() const -{ - return bRunning; -} void ScFormulaCell::SetRunning( bool bVal ) { @@ -3526,12 +3489,8 @@ void ScFormulaCell::CompileColRowNameFormula( sc::CompileFormulaContext& rCxt ) } } -ScFormulaCell* ScFormulaCell::GetPrevious() const { return pPrevious; } -ScFormulaCell* ScFormulaCell::GetNext() const { return pNext; } void ScFormulaCell::SetPrevious( ScFormulaCell* pF ) { pPrevious = pF; } void ScFormulaCell::SetNext( ScFormulaCell* pF ) { pNext = pF; } -ScFormulaCell* ScFormulaCell::GetPreviousTrack() const { return pPreviousTrack; } -ScFormulaCell* ScFormulaCell::GetNextTrack() const { return pNextTrack; } void ScFormulaCell::SetPreviousTrack( ScFormulaCell* pF ) { pPreviousTrack = pF; } void ScFormulaCell::SetNextTrack( ScFormulaCell* pF ) { pNextTrack = pF; } @@ -4090,9 +4049,5 @@ void ScFormulaCell::SyncSharedCode() pCode = mxGroup->mpCode; } -bool ScFormulaCell::IsPostponedDirty() const -{ - return mbPostponedDirty; -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/data/listenercontext.cxx b/sc/source/core/data/listenercontext.cxx index dcdffac65710..d6b92ebe0ef6 100644 --- a/sc/source/core/data/listenercontext.cxx +++ b/sc/source/core/data/listenercontext.cxx @@ -49,10 +49,6 @@ ScDocument& EndListeningContext::getDoc() return mrDoc; } -ScTokenArray* EndListeningContext::getOldCode() -{ - return mpOldCode; -} ScAddress EndListeningContext::getOldPosition( const ScAddress& rPos ) const { diff --git a/sc/source/core/data/olinetab.cxx b/sc/source/core/data/olinetab.cxx index 605c80d9def5..fb420674283a 100644 --- a/sc/source/core/data/olinetab.cxx +++ b/sc/source/core/data/olinetab.cxx @@ -41,29 +41,13 @@ ScOutlineEntry::ScOutlineEntry( const ScOutlineEntry& rEntry ) : { } -SCCOLROW ScOutlineEntry::GetStart() const -{ - return nStart; -} -SCSIZE ScOutlineEntry::GetSize() const -{ - return nSize; -} SCCOLROW ScOutlineEntry::GetEnd() const { return nStart+nSize-1; } -bool ScOutlineEntry::IsHidden() const -{ - return bHidden; -} -bool ScOutlineEntry::IsVisible() const -{ - return bVisible; -} void ScOutlineEntry::Move( SCsCOLROW nDelta ) { @@ -305,10 +289,6 @@ bool ScOutlineArray::Insert( return true; } -size_t ScOutlineArray::GetDepth() const -{ - return nDepth; -} bool ScOutlineArray::FindTouchedLevel( SCCOLROW nBlockStart, SCCOLROW nBlockEnd, size_t& rFindLevel) const @@ -884,10 +864,6 @@ ScOutlineEntry* ScSubOutlineIterator::GetNext() return pEntry; // nSubLevel gueltig, wenn pEntry != 0 } -size_t ScSubOutlineIterator::LastLevel() const -{ - return nSubLevel; -} size_t ScSubOutlineIterator::LastEntry() const { diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index a3459af1c2ce..703dc8aaa506 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -509,10 +509,6 @@ ScPostIt* ScPostIt::Clone( const ScAddress& rOwnPos, ScDocument& rDestDoc, const return bCloneCaption ? new ScPostIt( rDestDoc, rDestPos, *this ) : new ScPostIt( rDestDoc, rDestPos, maNoteData, false ); } -const ScNoteData& ScPostIt::GetNoteData() const -{ - return maNoteData; -} const OUString& ScPostIt::GetDate() const { diff --git a/sc/source/core/data/rowheightcontext.cxx b/sc/source/core/data/rowheightcontext.cxx index 9fa96d130ec0..408bf4df759a 100644 --- a/sc/source/core/data/rowheightcontext.cxx +++ b/sc/source/core/data/rowheightcontext.cxx @@ -22,15 +22,7 @@ RowHeightContext::RowHeightContext( RowHeightContext::~RowHeightContext() {} -double RowHeightContext::getPPTX() const -{ - return mfPPTX; -} -double RowHeightContext::getPPTY() const -{ - return mfPPTY; -} const Fraction& RowHeightContext::getZoomX() const { @@ -42,30 +34,18 @@ const Fraction& RowHeightContext::getZoomY() const return maZoomY; } -OutputDevice* RowHeightContext::getOutputDevice() -{ - return mpOutDev; -} void RowHeightContext::setExtraHeight( sal_uInt16 nH ) { mnExtraHeight = nH; } -sal_uInt16 RowHeightContext::getExtraHeight() const -{ - return mnExtraHeight; -} void RowHeightContext::setForceAutoSize( bool b ) { mbForceAutoSize = b; } -bool RowHeightContext::isForceAutoSize() const -{ - return mbForceAutoSize; -} } diff --git a/sc/source/core/data/segmenttree.cxx b/sc/source/core/data/segmenttree.cxx index caf7201c9422..a5bf3c833d4e 100644 --- a/sc/source/core/data/segmenttree.cxx +++ b/sc/source/core/data/segmenttree.cxx @@ -291,10 +291,6 @@ bool ScFlatBoolRowSegments::ForwardIterator::getValue(SCROW nPos, bool& rVal) return true; } -SCROW ScFlatBoolRowSegments::ForwardIterator::getLastPos() const -{ - return mnLastPos; -} ScFlatBoolRowSegments::RangeIterator::RangeIterator(ScFlatBoolRowSegments& rSegs) : mrSegs(rSegs) @@ -460,10 +456,6 @@ bool ScFlatUInt16RowSegments::ForwardIterator::getValue(SCROW nPos, sal_uInt16& return true; } -SCROW ScFlatUInt16RowSegments::ForwardIterator::getLastPos() const -{ - return mnLastPos; -} ScFlatUInt16RowSegments::ScFlatUInt16RowSegments(sal_uInt16 nDefault) : mpImpl(new ScFlatUInt16SegmentsImpl(static_cast<SCCOLROW>(MAXROW), nDefault)) diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index b7e020f5a04b..fe407e0db71c 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -2076,10 +2076,6 @@ ScRefCellValue ScTable::VisibleDataCellIterator::next() return ScRefCellValue(); } -SCROW ScTable::VisibleDataCellIterator::getRow() const -{ - return mnCurRow; -} void ScTable::SetAnonymousDBData(ScDBData* pDBData) { @@ -2087,10 +2083,6 @@ void ScTable::SetAnonymousDBData(ScDBData* pDBData) pDBDataNoName = pDBData; } -ScDBData* ScTable::GetAnonymousDBData() -{ - return pDBDataNoName; -} sal_uLong ScTable::AddCondFormat( ScConditionalFormat* pNew ) { diff --git a/sc/source/core/data/tabprotection.cxx b/sc/source/core/data/tabprotection.cxx index 73b03c567d87..8d19ab9ac5c3 100644 --- a/sc/source/core/data/tabprotection.cxx +++ b/sc/source/core/data/tabprotection.cxx @@ -94,11 +94,11 @@ public: explicit ScTableProtectionImpl(SCSIZE nOptSize); explicit ScTableProtectionImpl(const ScTableProtectionImpl& r); - bool isProtected() const; + bool isProtected() const { return mbProtected;} bool isProtectedWithPass() const; void setProtected(bool bProtected); - bool isPasswordEmpty() const; + bool isPasswordEmpty() const { return mbEmptyPass;} bool hasPasswordHash(ScPasswordHash eHash, ScPasswordHash eHash2 = PASSHASH_UNSPECIFIED) const; void setPassword(const OUString& aPassText); ::com::sun::star::uno::Sequence<sal_Int8> getPasswordHash( @@ -189,10 +189,6 @@ ScTableProtectionImpl::ScTableProtectionImpl(const ScTableProtectionImpl& r) : { } -bool ScTableProtectionImpl::isProtected() const -{ - return mbProtected; -} bool ScTableProtectionImpl::isProtectedWithPass() const { @@ -224,10 +220,6 @@ void ScTableProtectionImpl::setPassword(const OUString& aPassText) } } -bool ScTableProtectionImpl::isPasswordEmpty() const -{ - return mbEmptyPass; -} bool ScTableProtectionImpl::hasPasswordHash(ScPasswordHash eHash, ScPasswordHash eHash2) const { diff --git a/sc/source/core/inc/doubleref.hxx b/sc/source/core/inc/doubleref.hxx index 3ae711a30518..1ca4d1cf0b69 100644 --- a/sc/source/core/inc/doubleref.hxx +++ b/sc/source/core/inc/doubleref.hxx @@ -71,7 +71,7 @@ public: protected: ScDBRangeBase(ScDocument* pDoc, RefType eType); - ScDocument* getDoc() const; + ScDocument* getDoc() const { return mpDoc;} /** * Populate query options that are always the same for all database diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index 642699a5a0be..37d7f6053c02 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -140,7 +140,7 @@ public: NOT_VOLATILE }; - VolatileType GetVolatileType() const; + VolatileType GetVolatileType() const { return meVolatileType;} private: static ScCalcConfig maGlobalConfig; diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index bbc709ea1b4f..d8539b9d76aa 100644 --- a/sc/source/core/tool/addincol.cxx +++ b/sc/source/core/tool/addincol.cxx @@ -1346,10 +1346,6 @@ ScUnoAddInCall::~ScUnoAddInCall() // pFuncData is deleted with ScUnoAddInCollection } -bool ScUnoAddInCall::ValidParamCount() -{ - return bValidCount; -} ScAddInArgumentType ScUnoAddInCall::GetArgType( long nPos ) { diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx index d8c9e86a4d3a..b2097a119d42 100644 --- a/sc/source/core/tool/chgtrack.cxx +++ b/sc/source/core/tool/chgtrack.cxx @@ -883,8 +883,6 @@ bool ScChangeActionDel::IsTabDeleteCol() const return p && p->GetType() == SC_CAT_DELETE_TABS; } -SCsCOL ScChangeActionDel::GetDx() const { return nDx; } -SCsROW ScChangeActionDel::GetDy() const { return nDy; } ScChangeActionDelMoveEntry* ScChangeActionDel::AddCutOffMove( ScChangeActionMove* pMove, short nFrom, short nTo ) diff --git a/sc/source/core/tool/doubleref.cxx b/sc/source/core/tool/doubleref.cxx index 4b8887cc1adf..66a9edbbc043 100644 --- a/sc/source/core/tool/doubleref.cxx +++ b/sc/source/core/tool/doubleref.cxx @@ -266,10 +266,6 @@ void ScDBRangeBase::fillQueryOptions(ScQueryParamBase* pParam) pParam->bDuplicate = true; } -ScDocument* ScDBRangeBase::getDoc() const -{ - return mpDoc; -} ScDBInternalRange::ScDBInternalRange(ScDocument* pDoc, const ScRange& rRange) : ScDBRangeBase(pDoc, INTERNAL), maRange(rRange) diff --git a/sc/source/core/tool/editdataarray.cxx b/sc/source/core/tool/editdataarray.cxx index b3946d4c011c..a635d64a465e 100644 --- a/sc/source/core/tool/editdataarray.cxx +++ b/sc/source/core/tool/editdataarray.cxx @@ -72,19 +72,7 @@ const EditTextObject* ScEditDataArray::Item::GetNewData() const return mpNewData.get(); } -SCTAB ScEditDataArray::Item::GetTab() const -{ - return mnTab; -} -SCCOL ScEditDataArray::Item::GetCol() const -{ - return mnCol; -} -SCROW ScEditDataArray::Item::GetRow() const -{ - return mnRow; -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx index 2205ed7d9320..a49e87c3847e 100644 --- a/sc/source/core/tool/interpr5.cxx +++ b/sc/source/core/tool/interpr5.cxx @@ -334,10 +334,6 @@ ScMatrixRef ScInterpreter::GetNewMat(SCSIZE nC, SCSIZE nR, bool bEmpty) return pMat; } -ScInterpreter::VolatileType ScInterpreter::GetVolatileType() const -{ - return meVolatileType; -} ScMatrixRef ScInterpreter::CreateMatrixFromDoubleRef( const FormulaToken* pToken, SCCOL nCol1, SCROW nRow1, SCTAB nTab1, diff --git a/sc/source/core/tool/queryentry.cxx b/sc/source/core/tool/queryentry.cxx index a282f4dce500..455c8c6617cb 100644 --- a/sc/source/core/tool/queryentry.cxx +++ b/sc/source/core/tool/queryentry.cxx @@ -84,10 +84,6 @@ ScQueryEntry::QueryItemsType& ScQueryEntry::GetQueryItems() return maQueryItems; } -const ScQueryEntry::QueryItemsType& ScQueryEntry::GetQueryItems() const -{ - return maQueryItems; -} void ScQueryEntry::SetQueryByEmpty() { diff --git a/sc/source/core/tool/queryparam.cxx b/sc/source/core/tool/queryparam.cxx index 26cb756b85d3..295d952af67e 100644 --- a/sc/source/core/tool/queryparam.cxx +++ b/sc/source/core/tool/queryparam.cxx @@ -394,10 +394,6 @@ ScDBQueryParamBase::~ScDBQueryParamBase() { } -ScDBQueryParamBase::DataType ScDBQueryParamBase::GetType() const -{ - return meType; -} ScDBQueryParamInternal::ScDBQueryParamInternal() : ScDBQueryParamBase(ScDBQueryParamBase::INTERNAL), diff --git a/sc/source/core/tool/refhint.cxx b/sc/source/core/tool/refhint.cxx index 0e70b4f22ac3..56e21e41d035 100644 --- a/sc/source/core/tool/refhint.cxx +++ b/sc/source/core/tool/refhint.cxx @@ -14,7 +14,6 @@ namespace sc { RefHint::RefHint( Type eType ) : SfxSimpleHint(SC_HINT_REFERENCE), meType(eType) {} RefHint::~RefHint() {} -RefHint::Type RefHint::getType() const { return meType; } RefMovedHint::RefMovedHint( const ScRange& rRange, const ScAddress& rMove ) : RefHint(Moved), maRange(rRange), maMoveDelta(rMove) {} @@ -41,20 +40,8 @@ const sc::ColReorderMapType& RefColReorderHint::getColMap() const return mrColMap; } -SCTAB RefColReorderHint::getTab() const -{ - return mnTab; -} -SCROW RefColReorderHint::getStartRow() const -{ - return mnRow1; -} -SCROW RefColReorderHint::getEndRow() const -{ - return mnRow2; -} } diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index 8b3cc2581029..84e3c2a02470 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -206,7 +206,7 @@ public: void Clear(); void SetImmutable(bool bVal); - bool IsImmutable() const; + bool IsImmutable() const { return mbCloneIfConst;} void Resize(SCSIZE nC, SCSIZE nR); void Resize(SCSIZE nC, SCSIZE nR, double fVal); void SetErrorInterpreter( ScInterpreter* p); @@ -314,10 +314,6 @@ void ScMatrixImpl::SetImmutable(bool bVal) mbCloneIfConst = bVal; } -bool ScMatrixImpl::IsImmutable() const -{ - return mbCloneIfConst; -} void ScMatrixImpl::Resize(SCSIZE nC, SCSIZE nR) { diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 4ac537f45155..92900583f69a 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -1675,15 +1675,7 @@ void ScTokenArray::GenHash() mnHashValue = nHash; } -size_t ScTokenArray::GetHash() const -{ - return mnHashValue; -} -ScFormulaVectorState ScTokenArray::GetVectorState() const -{ - return meVectorState; -} bool ScTokenArray::IsInvariant() const { diff --git a/sc/source/core/tool/tokenstringcontext.cxx b/sc/source/core/tool/tokenstringcontext.cxx index 31bca19b7aea..de23ddb7e7d4 100644 --- a/sc/source/core/tool/tokenstringcontext.cxx +++ b/sc/source/core/tool/tokenstringcontext.cxx @@ -128,10 +128,6 @@ void CompileFormulaContext::updateTabNames() } } -formula::FormulaGrammar::Grammar CompileFormulaContext::getGrammar() const -{ - return meGram; -} void CompileFormulaContext::setGrammar( formula::FormulaGrammar::Grammar eGram ) { @@ -146,10 +142,6 @@ const std::vector<OUString>& CompileFormulaContext::getTabNames() const return maTabNames; } -ScDocument* CompileFormulaContext::getDoc() -{ - return mpDoc; -} } diff --git a/sc/source/core/tool/typedstrdata.cxx b/sc/source/core/tool/typedstrdata.cxx index ad0142beb02a..b13e49a4af6a 100644 --- a/sc/source/core/tool/typedstrdata.cxx +++ b/sc/source/core/tool/typedstrdata.cxx @@ -104,20 +104,12 @@ bool ScTypedStrData::IsStrData() const return meStrType != Value; } -bool ScTypedStrData::IsDate() const -{ - return mbIsDate; -} const OUString& ScTypedStrData::GetString() const { return maStrValue; } -ScTypedStrData::StringType ScTypedStrData::GetStringType() const -{ - return meStrType; -} FindTypedStrData::FindTypedStrData(const ScTypedStrData& rVal, bool bCaseSens) : maVal(rVal), mbCaseSens(bCaseSens) {} diff --git a/sc/source/core/tool/unitconv.cxx b/sc/source/core/tool/unitconv.cxx index 8b8468395351..87f4c8d96d44 100644 --- a/sc/source/core/tool/unitconv.cxx +++ b/sc/source/core/tool/unitconv.cxx @@ -41,10 +41,6 @@ ScUnitConverterData::ScUnitConverterData( const ScUnitConverterData& r ) : ScUnitConverterData::~ScUnitConverterData() {} -double ScUnitConverterData::GetValue() const -{ - return mfValue; -} const OUString& ScUnitConverterData::GetIndexString() const { diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index 5a391a6ec792..4c5bdb98bab9 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -473,11 +473,6 @@ XclExpBiff8Encrypter::~XclExpBiff8Encrypter() { } -bool XclExpBiff8Encrypter::IsValid() const -{ - return mbValid; -} - void XclExpBiff8Encrypter::GetSaltDigest( sal_uInt8 pnSaltDigest[16] ) const { if ( sizeof( mpnSaltDigest ) == 16 ) diff --git a/sc/source/filter/excel/xiname.cxx b/sc/source/filter/excel/xiname.cxx index 0c75adfd41b1..3cda3814c0aa 100644 --- a/sc/source/filter/excel/xiname.cxx +++ b/sc/source/filter/excel/xiname.cxx @@ -203,11 +203,6 @@ XclImpName::XclImpName( XclImpStream& rStrm, sal_uInt16 nXclNameIdx ) : InsertName(pTokArr); } -bool XclImpName::IsMacro() const -{ - return mbMacro; -} - void XclImpName::ConvertTokens() { if (!mpTokensData) diff --git a/sc/source/filter/inc/pivottablebuffer.hxx b/sc/source/filter/inc/pivottablebuffer.hxx index da208ffdd54a..a94e35dc26a6 100644 --- a/sc/source/filter/inc/pivottablebuffer.hxx +++ b/sc/source/filter/inc/pivottablebuffer.hxx @@ -346,7 +346,7 @@ public: /** Returns the source column index of the pivot field with the passed index, or -1. */ sal_Int32 getCacheDatabaseIndex( sal_Int32 nFieldIdx ) const; - ScDPObject* getDPObject(); + ScDPObject* getDPObject() { return mpDPObject; } private: typedef RefVector< PivotTableField > PivotTableFieldVector; diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx index 13a225b9a735..d5744f87f6de 100644 --- a/sc/source/filter/inc/xestream.hxx +++ b/sc/source/filter/inc/xestream.hxx @@ -201,7 +201,7 @@ public: explicit XclExpBiff8Encrypter( const XclExpRoot& rRoot ); ~XclExpBiff8Encrypter(); - bool IsValid() const; + bool IsValid() const { return mbValid; } void GetSaltDigest( sal_uInt8 pnSaltDigest[16] ) const; void GetSalt( sal_uInt8 pnSalt[16] ) const; diff --git a/sc/source/filter/inc/xiname.hxx b/sc/source/filter/inc/xiname.hxx index e41630befffe..75a5936b9b22 100644 --- a/sc/source/filter/inc/xiname.hxx +++ b/sc/source/filter/inc/xiname.hxx @@ -55,7 +55,7 @@ public: inline const ScRangeData* GetScRangeData() const { return mpScData; } inline bool IsGlobal() const { return mnScTab == SCTAB_MAX; } inline bool IsVBName() const { return mbVBName; } - bool IsMacro() const; + bool IsMacro() const { return mbMacro; } void ConvertTokens(); private: diff --git a/sc/source/filter/oox/pivottablebuffer.cxx b/sc/source/filter/oox/pivottablebuffer.cxx index 9bf341e4ab99..a1966560946b 100644 --- a/sc/source/filter/oox/pivottablebuffer.cxx +++ b/sc/source/filter/oox/pivottablebuffer.cxx @@ -1291,11 +1291,6 @@ sal_Int32 PivotTable::getCacheDatabaseIndex( sal_Int32 nFieldIdx ) const return mpPivotCache ? mpPivotCache->getCacheDatabaseIndex( nFieldIdx ) : -1; } -ScDPObject* PivotTable::getDPObject() -{ - return mpDPObject; -} - // private -------------------------------------------------------------------- PivotTableField* PivotTable::getTableField( sal_Int32 nFieldIdx ) diff --git a/sc/source/filter/starcalc/collect.cxx b/sc/source/filter/starcalc/collect.cxx index 19e5be3285d7..6d8da1aa6de6 100644 --- a/sc/source/filter/starcalc/collect.cxx +++ b/sc/source/filter/starcalc/collect.cxx @@ -75,7 +75,6 @@ ScCollection::~ScCollection() } -sal_uInt16 ScCollection::GetCount() const { return nCount; } bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject) { diff --git a/sc/source/filter/starcalc/collect.hxx b/sc/source/filter/starcalc/collect.hxx index 9f6258a207e7..45f1e093db8e 100644 --- a/sc/source/filter/starcalc/collect.hxx +++ b/sc/source/filter/starcalc/collect.hxx @@ -48,7 +48,7 @@ public: bool Insert(ScDataObject* pScDataObject); ScDataObject* At(sal_uInt16 nIndex) const; - sal_uInt16 GetCount() const; + sal_uInt16 GetCount() const { return nCount; } ScDataObject* operator[]( const sal_uInt16 nIndex) const { return At(nIndex); } ScCollection& operator= ( const ScCollection& rCol ); diff --git a/sc/source/filter/xml/sheetdata.cxx b/sc/source/filter/xml/sheetdata.cxx index 8f394d2f7308..74ac1deefdbc 100644 --- a/sc/source/filter/xml/sheetdata.cxx +++ b/sc/source/filter/xml/sheetdata.cxx @@ -255,10 +255,6 @@ bool ScSheetSaveData::AddLoadedNamespaces( SvXMLNamespaceMap& rNamespaces ) cons return true; // success } -bool ScSheetSaveData::IsInSupportedSave() const -{ - return mbInSupportedSave; -} void ScSheetSaveData::SetInSupportedSave( bool bSet ) { diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 91280264ff96..acc062027607 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -1944,10 +1944,6 @@ void ScXMLImport::SetPostProcessData( sc::ImportPostProcessData* p ) mpPostProcessData = p; } -sc::ImportPostProcessData* ScXMLImport::GetPostProcessData() -{ - return mpPostProcessData; -} sc::PivotTableSources& ScXMLImport::GetPivotTableSources() { diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx index 1f449827f951..8f28ea9c648d 100644 --- a/sc/source/filter/xml/xmlimprt.hxx +++ b/sc/source/filter/xml/xmlimprt.hxx @@ -1111,7 +1111,7 @@ public: const SvXMLTokenMap& GetDataStreamAttrTokenMap(); void SetPostProcessData( sc::ImportPostProcessData* p ); - sc::ImportPostProcessData* GetPostProcessData(); + sc::ImportPostProcessData* GetPostProcessData() { return mpPostProcessData;} sc::PivotTableSources& GetPivotTableSources(); diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index a881971f8856..040a2a1d0a72 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -89,7 +89,7 @@ public: ~ScNotesChildren(); void Init(const Rectangle& rVisRect, sal_Int32 nOffset); - sal_Int32 GetChildrenCount() const; + sal_Int32 GetChildrenCount() const { return mnParagraphs;} uno::Reference<XAccessible> GetChild(sal_Int32 nIndex) const; uno::Reference<XAccessible> GetAt(const awt::Point& rPoint) const; @@ -212,10 +212,6 @@ void ScNotesChildren::Init(const Rectangle& rVisRect, sal_Int32 nOffset) } } -sal_Int32 ScNotesChildren::GetChildrenCount() const -{ - return mnParagraphs; -} struct ScParaFound { diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index a05c3a501c23..947ae2f05757 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1723,10 +1723,6 @@ void ScTextWnd::UpdateAutoCorrFlag() } } -ScTabViewShell* ScTextWnd::GetViewShell() -{ - return mpViewShell; -} void ScTextWnd::StartEditEngine() { diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index dc97b247a015..951b43fb0d1b 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -1472,10 +1472,6 @@ void ScModule::SetRefInputHdl( ScInputHandler* pNew ) pRefInputHandler = pNew; } -ScInputHandler* ScModule::GetRefInputHdl() -{ - return pRefInputHandler; -} void ScModule::InputGetSelection( sal_Int32& rStart, sal_Int32& rEnd ) diff --git a/sc/source/ui/app/uiitems.cxx b/sc/source/ui/app/uiitems.cxx index 8462d1ae20d9..c011a673a13f 100644 --- a/sc/source/ui/app/uiitems.cxx +++ b/sc/source/ui/app/uiitems.cxx @@ -100,10 +100,6 @@ void ScInputStatusItem::SetMisspellRanges( const std::vector<editeng::MisspellRa mpMisspellRanges = pRanges; } -const std::vector<editeng::MisspellRanges>* ScInputStatusItem::GetMisspellRanges() const -{ - return mpMisspellRanges; -} // ScPaintHint was moved to schints.cxx diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 1b05eff304be..c4c6be5810fb 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -476,10 +476,6 @@ void ScMenuFloatingWindow::setSelectedMenuItem(size_t nPos, bool bSubMenuTimer, fireMenuHighlightedEvent(); } -size_t ScMenuFloatingWindow::getSelectedMenuItem() const -{ - return mnSelectedMenu; -} void ScMenuFloatingWindow::handleMenuTimeout(SubMenuItemData* pTimer) { @@ -741,10 +737,6 @@ void ScMenuFloatingWindow::getMenuItemPosSize(size_t nPos, Point& rPos, Size& rS rSize = Size(aWndSize.Width() - nLeftMargin*2, nH); } -ScMenuFloatingWindow* ScMenuFloatingWindow::getParentMenuWindow() const -{ - return mpParentMenu; -} size_t ScMenuFloatingWindow::getEnclosingMenuItem(const Point& rPos) const { @@ -850,10 +842,6 @@ void ScMenuFloatingWindow::terminateAllPopupMenus() mpParentMenu->terminateAllPopupMenus(); } -ScDocument* ScMenuFloatingWindow::getDoc() -{ - return mpDoc; -} ScCheckListMenuWindow::Config::Config() : mbAllowEmptySet(true), mbRTL(false) diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index dfcbb4bc7971..0810ea2bbb41 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -124,10 +124,6 @@ void ScCondFrmtEntry::Deselect() SetHeight(); } -bool ScCondFrmtEntry::IsSelected() const -{ - return mbActive; -} IMPL_LINK(ScCondFrmtEntry, EdModifyHdl, Edit*, pEdit) { diff --git a/sc/source/ui/condformat/condformatmgr.cxx b/sc/source/ui/condformat/condformatmgr.cxx index 053fd9c8f04b..888d7e4c810a 100644 --- a/sc/source/ui/condformat/condformatmgr.cxx +++ b/sc/source/ui/condformat/condformatmgr.cxx @@ -146,10 +146,6 @@ ScConditionalFormatList* ScCondFormatManagerDlg::GetConditionalFormatList() return pList; } -bool ScCondFormatManagerDlg::CondFormatsChanged() -{ - return mbModified; -} IMPL_LINK_NOARG(ScCondFormatManagerDlg, RemoveBtnHdl) { diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx index 3b1f4263813d..5b9951c6769a 100644 --- a/sc/source/ui/docshell/datastream.cxx +++ b/sc/source/ui/docshell/datastream.cxx @@ -378,15 +378,7 @@ ScRange DataStream::GetRange() const return aRange; } -bool DataStream::IsRefreshOnEmptyLine() const -{ - return mbRefreshOnEmptyLine; -} -DataStream::MoveType DataStream::GetMove() const -{ - return meOrigMove; -} void DataStream::Decode(const OUString& rURL, const ScRange& rRange, sal_Int32 nLimit, MoveType eMove, const sal_uInt32 nSettings) diff --git a/sc/source/ui/docshell/docsh2.cxx b/sc/source/ui/docshell/docsh2.cxx index cbf967aaf74c..216599f8c43b 100644 --- a/sc/source/ui/docshell/docsh2.cxx +++ b/sc/source/ui/docshell/docsh2.cxx @@ -60,10 +60,6 @@ bool ScDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor ) return bRet; } -bool ScDocShell::IsEmpty() const -{ - return bIsEmpty; -} void ScDocShell::SetEmpty(bool bSet) diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index f297c53d45d1..22d295e68295 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -280,11 +280,6 @@ void ScDocShell::UnlockDocument_Impl(sal_uInt16 nNew) } } -sal_uInt16 ScDocShell::GetLockCount() const -{ - return nDocumentLock; -} - void ScDocShell::SetLockCount(sal_uInt16 nNew) { if (nNew) // setzen @@ -390,11 +385,6 @@ void ScDocShell::CalcOutputFactor() } } -double ScDocShell::GetOutputFactor() const -{ - return nPrtToScreenFactor; -} - void ScDocShell::InitOptions(bool bForLoading) // called from InitNew and Load { // Einstellungen aus dem SpellCheckCfg kommen in Doc- und ViewOptions diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index cce3e2fba694..a4d03f29b080 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -274,10 +274,6 @@ void ScExternalRefCache::Table::setReferenced( bool bReferenced ) meReferenced = (bReferenced ? REFERENCED_MARKED : UNREFERENCED); } -ScExternalRefCache::Table::ReferencedFlag ScExternalRefCache::Table::getReferencedFlag() const -{ - return meReferenced; -} bool ScExternalRefCache::Table::isReferenced() const { diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx index b98a9028df91..d64c7015cd1b 100644 --- a/sc/source/ui/inc/checklistmenu.hxx +++ b/sc/source/ui/inc/checklistmenu.hxx @@ -65,14 +65,14 @@ public: void clearSelectedMenuItem(); ScMenuFloatingWindow* getSubMenuWindow(size_t nPos) const; bool isMenuItemSelected(size_t nPos) const; - size_t getSelectedMenuItem() const; + size_t getSelectedMenuItem() const { return mnSelectedMenu;} void setName(const OUString& rName); const OUString& getName() const; void executeMenuItem(size_t nPos); void getMenuItemPosSize(size_t nPos, Point& rPos, Size& rSize) const; - ScMenuFloatingWindow* getParentMenuWindow() const; + ScMenuFloatingWindow* getParentMenuWindow() const { return mpParentMenu;} protected: virtual void handlePopupEnd(); @@ -90,7 +90,7 @@ protected: void fillMenuItemsToAccessible(ScAccessibleFilterMenu* pAccMenu) const; - ScDocument* getDoc(); + ScDocument* getDoc() { return mpDoc;} protected: ::com::sun::star::uno::Reference< diff --git a/sc/source/ui/inc/condformatdlgentry.hxx b/sc/source/ui/inc/condformatdlgentry.hxx index 1b54fa3e049e..aa38d0d0a7d4 100644 --- a/sc/source/ui/inc/condformatdlgentry.hxx +++ b/sc/source/ui/inc/condformatdlgentry.hxx @@ -69,7 +69,7 @@ public: virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE; - bool IsSelected() const; + bool IsSelected() const { return mbActive;} void SetIndex(sal_Int32 nIndex); sal_Int32 GetIndex() const { return mnIndex; } void SetHeight(); diff --git a/sc/source/ui/inc/condformatmgr.hxx b/sc/source/ui/inc/condformatmgr.hxx index 381eb65ffbe7..4531b9defc96 100644 --- a/sc/source/ui/inc/condformatmgr.hxx +++ b/sc/source/ui/inc/condformatmgr.hxx @@ -53,7 +53,7 @@ public: ScConditionalFormatList* GetConditionalFormatList(); - bool CondFormatsChanged(); + bool CondFormatsChanged() { return mbModified;} virtual bool IsInRefMode() const; diff --git a/sc/source/ui/inc/datastream.hxx b/sc/source/ui/inc/datastream.hxx index 055460de23ac..d7320ecefe04 100644 --- a/sc/source/ui/inc/datastream.hxx +++ b/sc/source/ui/inc/datastream.hxx @@ -81,9 +81,9 @@ public: ScRange GetRange() const; const OUString& GetURL() const { return msURL; } const sal_Int32& GetLimit() const { return mnLimit; } - MoveType GetMove() const; + MoveType GetMove() const { return meOrigMove;} const sal_uInt32& GetSettings() const { return mnSettings; } - bool IsRefreshOnEmptyLine() const; + bool IsRefreshOnEmptyLine() const { return mbRefreshOnEmptyLine;} void Decode( const OUString& rURL, const ScRange& rRange, sal_Int32 nLimit, diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index 89706d2fd5b4..16d84bb09852 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -353,7 +353,7 @@ public: void LockPaint(); void UnlockPaint(); - sal_uInt16 GetLockCount() const; + sal_uInt16 GetLockCount() const { return nDocumentLock;} void SetLockCount(sal_uInt16 nNew); void LockDocument(); @@ -364,14 +364,14 @@ public: virtual SfxStyleSheetBasePool* GetStyleSheetPool() SAL_OVERRIDE; void SetInplace( bool bInplace ); - bool IsEmpty() const; + bool IsEmpty() const { return bIsEmpty; } void SetEmpty(bool bSet); bool IsInUndo() const { return bIsInUndo; } void SetInUndo(bool bSet); void CalcOutputFactor(); - double GetOutputFactor() const; + double GetOutputFactor() const { return nPrtToScreenFactor;} void GetPageOnFromPageStyleSet( const SfxItemSet* pStyleSet, SCTAB nCurTab, bool& rbHeader, diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx index 2a5fd8b1f5c0..68d39e422676 100644 --- a/sc/source/ui/inc/inputwin.hxx +++ b/sc/source/ui/inc/inputwin.hxx @@ -107,7 +107,7 @@ protected: void ImplInitSettings(); void UpdateAutoCorrFlag(); - ScTabViewShell* GetViewShell(); + ScTabViewShell* GetViewShell() { return mpViewShell;} typedef ::std::vector< ScAccessibleEditLineTextData* > AccTextDataVector; diff --git a/sc/source/ui/inc/mvtabdlg.hxx b/sc/source/ui/inc/mvtabdlg.hxx index e0f8addead60..9a59e93b5832 100644 --- a/sc/source/ui/inc/mvtabdlg.hxx +++ b/sc/source/ui/inc/mvtabdlg.hxx @@ -34,10 +34,10 @@ public: ScMoveTableDlg(Window* pParent, const OUString& rDefault); virtual ~ScMoveTableDlg(); - sal_uInt16 GetSelectedDocument () const; - SCTAB GetSelectedTable () const; - bool GetCopyTable () const; - bool GetRenameTable () const; + sal_uInt16 GetSelectedDocument () const { return nDocument; } + SCTAB GetSelectedTable () const { return nTable; } + bool GetCopyTable () const { return bCopyTable; } + bool GetRenameTable () const { return bRenameTable; } void GetTabNameString( OUString& rString ) const; void SetForceCopyTable (); void EnableCopyTable (bool bFlag=true); diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx index e2147cd19f75..c83a234c9898 100644 --- a/sc/source/ui/inc/printfun.hxx +++ b/sc/source/ui/inc/printfun.hxx @@ -292,7 +292,7 @@ public: ScPrintHFParam GetHeader(){return aHdr;} ScPrintHFParam GetFooter(){return aFtr;} - bool HasPrintRange() const; + bool HasPrintRange() const { return mbHasPrintRange;} private: void Construct( const ScPrintOptions* pOptions ); diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx index dfb8e8be5568..d624759ba9f7 100644 --- a/sc/source/ui/inc/tabview.hxx +++ b/sc/source/ui/inc/tabview.hxx @@ -259,7 +259,7 @@ public: /** Returns the current tab bar width relative to the frame window width (0.0 ... 1.0). */ SC_DLLPUBLIC double GetRelTabBarWidth() const; /** Returns the pending tab bar width relative to the frame window width (0.0 ... 1.0). */ - double GetPendingRelTabBarWidth() const; + double GetPendingRelTabBarWidth() const { return mfPendingTabBarWidth;} void DoResize( const Point& rOffset, const Size& rSize, bool bInner = false ); void RepeatResize( bool bUpdateFix = true ); diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index 9eeb6f825dfe..aa22c2ffabb9 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -252,7 +252,7 @@ public: bool IsRefInputMode() const; void ExecuteInputDirect(); - ScInputHandler* GetInputHandler() const; + ScInputHandler* GetInputHandler() const { return pInputHandler;} void UpdateInputHandler( bool bForce = false, bool bStopEditing = true ); void UpdateInputHandlerCellAdjust( SvxCellHorJustify eJust ); bool TabKeyInput(const KeyEvent& rKEvt); @@ -330,7 +330,7 @@ public: void SetFormShellAtTop( bool bSet ); - ObjectSelectionType GetCurObjectSelectionType(); + ObjectSelectionType GetCurObjectSelectionType() { return eCurOST; } virtual ErrCode DoVerb(long nVerb) SAL_OVERRIDE; virtual void Initialize() SAL_OVERRIDE; diff --git a/sc/source/ui/inc/tphfedit.hxx b/sc/source/ui/inc/tphfedit.hxx index 249c0a0ce134..5ca8953e0ced 100644 --- a/sc/source/ui/inc/tphfedit.hxx +++ b/sc/source/ui/inc/tphfedit.hxx @@ -123,7 +123,7 @@ public: void SetPopupMenu(PopupMenu* pPopUp); - sal_uInt16 GetSelected() const; + sal_uInt16 GetSelected() const { return nSelected;} OString GetSelectedIdent() const; void SetMenuHdl( const Link& rLink ) { aMLink = rLink; } diff --git a/sc/source/ui/inc/uiitems.hxx b/sc/source/ui/inc/uiitems.hxx index 88dae719cbd7..976d54b30f20 100644 --- a/sc/source/ui/inc/uiitems.hxx +++ b/sc/source/ui/inc/uiitems.hxx @@ -83,7 +83,7 @@ public: const EditTextObject* GetEditData() const { return pEditData; } void SetMisspellRanges( const std::vector<editeng::MisspellRanges>* pRanges ); - const std::vector<editeng::MisspellRanges>* GetMisspellRanges() const; + const std::vector<editeng::MisspellRanges>* GetMisspellRanges() const { return mpMisspellRanges;} }; diff --git a/sc/source/ui/miscdlgs/mvtabdlg.cxx b/sc/source/ui/miscdlgs/mvtabdlg.cxx index ecf5b609bf9f..9d57e0574323 100644 --- a/sc/source/ui/miscdlgs/mvtabdlg.cxx +++ b/sc/source/ui/miscdlgs/mvtabdlg.cxx @@ -70,13 +70,9 @@ ScMoveTableDlg::~ScMoveTableDlg() { } -sal_uInt16 ScMoveTableDlg::GetSelectedDocument () const { return nDocument; } -SCTAB ScMoveTableDlg::GetSelectedTable () const { return nTable; } -bool ScMoveTableDlg::GetCopyTable () const { return bCopyTable; } -bool ScMoveTableDlg::GetRenameTable () const { return bRenameTable; } void ScMoveTableDlg::GetTabNameString( OUString& rString ) const { diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx index da277055e6f8..2c92ccc7bbe3 100644 --- a/sc/source/ui/pagedlg/tphfedit.cxx +++ b/sc/source/ui/pagedlg/tphfedit.cxx @@ -350,10 +350,6 @@ void ScExtIButton::SetPopupMenu(PopupMenu* pPopUp) pPopupMenu=pPopUp; } -sal_uInt16 ScExtIButton::GetSelected() const -{ - return nSelected; -} OString ScExtIButton::GetSelectedIdent() const { diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx index bdc61d7d7371..5545c03d1131 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx @@ -372,10 +372,6 @@ void AlignmentPropertyPanel::NotifyItemUpdate( } } -SfxBindings* AlignmentPropertyPanel::GetBindings() -{ - return mpBindings; -} void AlignmentPropertyPanel::FormatDegrees(double& dTmp) { diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx index 8552e25b8615..c67e17f047e5 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx @@ -56,7 +56,7 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) SAL_OVERRIDE; - SfxBindings* GetBindings(); + SfxBindings* GetBindings() { return mpBindings;} private: //ui controls diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx index 0b244106622e..d6c091448a80 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx @@ -656,10 +656,6 @@ void CellAppearancePropertyPanel::NotifyItemUpdate( } } -SfxBindings* CellAppearancePropertyPanel::GetBindings() -{ - return mpBindings; -} void CellAppearancePropertyPanel::SetStyleIcon() { diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx index 028d067eb33f..4224e39f683b 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx @@ -65,7 +65,7 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) SAL_OVERRIDE; - SfxBindings* GetBindings(); + SfxBindings* GetBindings() { return mpBindings;} private: //ui controls diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx index 145beb9e0ee2..6fda69ac8b7d 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx @@ -316,10 +316,6 @@ void NumberFormatPropertyPanel::NotifyItemUpdate( } } -SfxBindings* NumberFormatPropertyPanel::GetBindings() -{ - return mpBindings; -} }} // end of namespace ::sc::sidebar diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx index 69f1cbc94270..4a0dc7ca7437 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx @@ -54,7 +54,7 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) SAL_OVERRIDE; - SfxBindings* GetBindings(); + SfxBindings* GetBindings() { return mpBindings;} private: //ui controls diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 4792d86b4b78..3da876a99c3a 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -3016,10 +3016,6 @@ void ScChart2DataSequence::ExternalRefListener::removeFileId(sal_uInt16 nFileId) maFileIds.erase(nFileId); } -const boost::unordered_set<sal_uInt16>& ScChart2DataSequence::ExternalRefListener::getAllFileIds() -{ - return maFileIds; -} uno::Sequence< uno::Any> SAL_CALL ScChart2DataSequence::getData() throw (uno::RuntimeException, std::exception) diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index e91cfe10b652..8021562df8a0 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -1187,10 +1187,6 @@ SvxFieldItem ScEditFieldObj::CreateFieldItem() return SvxFieldItem(*getData(), EE_FEATURE_FIELD); } -sal_Int32 ScEditFieldObj::GetFieldType() const -{ - return meType; -} void ScEditFieldObj::DeleteField() { diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index 14bcecac00d4..6d4107401305 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -491,10 +491,6 @@ void ScNamedRangesObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) } } -bool ScNamedRangesObj::IsModifyAndBroadcast() const -{ - return mbModifyAndBroadcast; -} // sheet::XNamedRanges diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 6a1bbf184b07..9381ffeee91e 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -155,7 +155,9 @@ public: const Size& GetTextSize() const { return aTextSize; } long GetOriginalWidth() const { return nOriginalWidth; } - sal_uLong GetResultValueFormat() const; + // Get the effective number format, including formula result types. + // This assumes that a formula cell has already been calculated. + sal_uLong GetResultValueFormat() const { return nValueFormat;} sal_uLong GetValueFormat() const { return nValueFormat; } bool GetLineBreak() const { return bLineBreak; } @@ -794,14 +796,6 @@ bool ScDrawStringsVars::HasEditCharacters() const return false; } -sal_uLong ScDrawStringsVars::GetResultValueFormat() const -{ - // Get the effective number format, including formula result types. - // This assumes that a formula cell has already been calculated. - - return nValueFormat; -} - double ScOutputData::GetStretch() { if ( mpRefDevice->IsMapMode() ) diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index f3cb9b60d2d1..9988884e7c5e 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -312,10 +312,6 @@ void ScPrintFunc::GetPrintState( ScPrintState& rState ) rState.nDocPages = nDocPages; } -bool ScPrintFunc::HasPrintRange() const -{ - return mbHasPrintRange; -} bool ScPrintFunc::GetLastSourceRange( ScRange& rRange ) const { diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 286f1c1fef12..caaee2278c04 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -858,10 +858,6 @@ double ScTabView::GetRelTabBarWidth() const return 0.0; } -double ScTabView::GetPendingRelTabBarWidth() const -{ - return mfPendingTabBarWidth; -} ScGridWindow* ScTabView::GetActiveWin() { diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 80b7e77347e5..14ed4aec4bb7 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -1059,10 +1059,6 @@ IMPL_LINK_NOARG(ScTabViewShell, FormControlActivated) return 0; } -ObjectSelectionType ScTabViewShell::GetCurObjectSelectionType() -{ - return eCurOST; -} // GetMySubShell / SetMySubShell: altes Verhalten simulieren, // dass es nur eine SubShell gibt (nur innerhalb der 5 eignenen SubShells) diff --git a/sc/source/ui/view/tabvwsh9.cxx b/sc/source/ui/view/tabvwsh9.cxx index 712520ff0360..122e24cac482 100644 --- a/sc/source/ui/view/tabvwsh9.cxx +++ b/sc/source/ui/view/tabvwsh9.cxx @@ -98,10 +98,6 @@ void ScTabViewShell::GetGalleryState( SfxItemSet& /* rSet */ ) { } -ScInputHandler* ScTabViewShell::GetInputHandler() const -{ - return pInputHandler; -} OUString ScTabViewShell::GetDescription() const { |