diff options
Diffstat (limited to 'sc/inc')
33 files changed, 111 insertions, 109 deletions
diff --git a/sc/inc/addincol.hxx b/sc/inc/addincol.hxx index c6995ea32a47..dbf807dab8e5 100644 --- a/sc/inc/addincol.hxx +++ b/sc/inc/addincol.hxx @@ -210,7 +210,7 @@ public: com::sun::star::uno::XInterface>& rInterface ); void SetCallerFromObjectShell( SfxObjectShell* pSh ); - bool ValidParamCount(); + bool ValidParamCount() { return bValidCount;} ScAddInArgumentType GetArgType( long nPos ); void SetParam( long nPos, const com::sun::star::uno::Any& rValue ); diff --git a/sc/inc/chart2uno.hxx b/sc/inc/chart2uno.hxx index 534e0dc6275a..cb386f3cac7f 100644 --- a/sc/inc/chart2uno.hxx +++ b/sc/inc/chart2uno.hxx @@ -379,7 +379,7 @@ private: virtual void notify(sal_uInt16 nFileId, ScExternalRefManager::LinkUpdateType eType) SAL_OVERRIDE; void addFileId(sal_uInt16 nFileId); void removeFileId(sal_uInt16 nFileId); - const ::boost::unordered_set<sal_uInt16>& getAllFileIds(); + const ::boost::unordered_set<sal_uInt16>& getAllFileIds() { return maFileIds;} private: ExternalRefListener(); diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx index 2b1e387afaad..bc8304982dce 100644 --- a/sc/inc/chgtrack.hxx +++ b/sc/inc/chgtrack.hxx @@ -549,8 +549,8 @@ public: // is col, belonging to a TabDelete bool IsTabDeleteCol() const; - SCsCOL GetDx() const; - SCsROW GetDy() const; + SCsCOL GetDx() const { return nDx; } + SCsROW GetDy() const { return nDy; } ScBigRange GetOverAllRange() const; // BigRange + (nDx, nDy) const ScChangeActionCellListEntry* GetFirstCellEntry() const diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx index 7791a938fddc..b206b33ef999 100644 --- a/sc/inc/clipcontext.hxx +++ b/sc/inc/clipcontext.hxx @@ -83,36 +83,36 @@ public: void setTabRange(SCTAB nStart, SCTAB nEnd); - SCTAB getTabStart() const; - SCTAB getTabEnd() const; + SCTAB getTabStart() const { return mnTabStart;} + SCTAB getTabEnd() const { return mnTabEnd;} void setDestRange( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); Range getDestRange() const; - ScDocument* getUndoDoc(); - ScDocument* getClipDoc(); - sal_uInt16 getInsertFlag() const; + ScDocument* getUndoDoc() { return mpRefUndoDoc;} + ScDocument* getClipDoc() { return mpClipDoc;} + sal_uInt16 getInsertFlag() const { return mnInsertFlag;} void setDeleteFlag( sal_uInt16 nFlag ); - sal_uInt16 getDeleteFlag() const; + sal_uInt16 getDeleteFlag() const { return mnDeleteFlag;} ScCellValue& getSingleCell(); void setCondFormatList( ScConditionalFormatList* pCondFormatList ); - ScConditionalFormatList* getCondFormatList(); + ScConditionalFormatList* getCondFormatList() { return mpCondFormatList;} - const ScPatternAttr* getSingleCellPattern() const; + const ScPatternAttr* getSingleCellPattern() const { return mpSinglePattern;} void setSingleCellPattern( const ScPatternAttr* pAttr ); - const ScPostIt* getSingleCellNote() const; + const ScPostIt* getSingleCellNote() const { return mpSingleNote;} void setSingleCellNote( const ScPostIt* pNote ); void setTableProtected( bool b ); - bool isTableProtected() const; + bool isTableProtected() const { return mbTableProtected;} - bool isAsLink() const; - bool isSkipAttrForEmptyCells() const; - bool isCloneNotes() const; + bool isAsLink() const { return mbAsLink;} + bool isSkipAttrForEmptyCells() const { return mbSkipAttrForEmptyCells;} + bool isCloneNotes() const { return mbCloneNotes;} bool isDateCell( const ScColumn& rCol, SCROW nRow ) const; }; @@ -127,8 +127,8 @@ public: CopyToClipContext(ScDocument& rDoc, bool bKeepScenarioFlags, bool bCloneNotes); virtual ~CopyToClipContext(); - bool isKeepScenarioFlags() const; - bool isCloneNotes() const; + bool isKeepScenarioFlags() const { return mbKeepScenarioFlags;} + bool isCloneNotes() const { return mbCloneNotes;} }; class CopyToDocContext : public ClipContextBase diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx index 6639741dced6..b06fe2b8bd32 100644 --- a/sc/inc/colorscale.hxx +++ b/sc/inc/colorscale.hxx @@ -76,7 +76,7 @@ public: const ScTokenArray* GetFormula() const; OUString GetFormula( formula::FormulaGrammar::Grammar eGrammar ) const; - ScColorScaleEntryType GetType() const; + ScColorScaleEntryType GetType() const { return meType;} void SetType( ScColorScaleEntryType eType ); bool NeedsRepaint() const; diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index 730855a7e10f..0f2bde98796e 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -348,7 +348,7 @@ public: bool IsValid( const ScAddress& rPos ) const; void SetDateType(condformat::ScCondFormatDateType eType); - condformat::ScCondFormatDateType GetDateType() const; + condformat::ScCondFormatDateType GetDateType() const { return meType;} const OUString& GetStyleName() const; void SetStyleName( const OUString& rStyleName ); diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 259d119eeffa..c00f55efd632 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -542,7 +542,7 @@ public: ScRangePairListRef& GetColNameRangesRef() { return xColNameRanges; } ScRangePairListRef& GetRowNameRangesRef() { return xRowNameRanges; } - SC_DLLPUBLIC ScDBCollection* GetDBCollection() const; + SC_DLLPUBLIC ScDBCollection* GetDBCollection() const { return pDBCollection;} void SetDBCollection( ScDBCollection* pNewDBCollection, bool bRemoveAutoFilter = false ); const ScDBData* GetDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, bool bStartOnly = false) const; @@ -558,7 +558,7 @@ public: SC_DLLPUBLIC ScDPObject* GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const; ScDPObject* GetDPAtBlock( const ScRange& rBlock ) const; - SC_DLLPUBLIC ScChartCollection* GetChartCollection() const; + SC_DLLPUBLIC ScChartCollection* GetChartCollection() const { return pChartCollection;} void StopTemporaryChartLock(); @@ -629,7 +629,7 @@ public: SC_DLLPUBLIC bool GetMatrixFormulaRange( const ScAddress& rCellPos, ScRange& rMatrix ); - bool IsEmbedded() const; + bool IsEmbedded() const { return bIsEmbedded;} void GetEmbedded( ScRange& rRange ) const; void SetEmbedded( const ScRange& rRange ); void ResetEmbedded(); @@ -687,7 +687,7 @@ public: SC_DLLPUBLIC bool IsActiveScenario( SCTAB nTab ) const; SC_DLLPUBLIC void SetActiveScenario( SCTAB nTab, bool bActive ); // only for Undo etc. SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const; - SC_DLLPUBLIC formula::FormulaGrammar::Grammar GetGrammar() const; + SC_DLLPUBLIC formula::FormulaGrammar::Grammar GetGrammar() const { return eGrammar;} SC_DLLPUBLIC void SetGrammar( formula::FormulaGrammar::Grammar eGram ); SC_DLLPUBLIC sal_uInt8 GetLinkMode( SCTAB nTab ) const; bool IsLinked( SCTAB nTab ) const; @@ -762,7 +762,7 @@ public: SfxBindings* GetViewBindings(); SfxObjectShell* GetDocumentShell() const { return pShell; } - SC_DLLPUBLIC ScDrawLayer* GetDrawLayer(); + SC_DLLPUBLIC ScDrawLayer* GetDrawLayer() { return pDrawLayer; } SfxBroadcaster* GetDrawBroadcaster(); // to avoid header void BeginDrawUndo(); @@ -1185,7 +1185,7 @@ public: void EnableExecuteLink( bool bVal ) { mbExecuteLinkEnabled = bVal; } bool IsChangeReadOnlyEnabled() const { return mbChangeReadOnlyEnabled; } void EnableChangeReadOnly( bool bVal ) { mbChangeReadOnlyEnabled = bVal; } - SC_DLLPUBLIC bool IsUserInteractionEnabled() const; + SC_DLLPUBLIC bool IsUserInteractionEnabled() const { return mbUserInteractionEnabled;} SC_DLLPUBLIC void EnableUserInteraction( bool bVal ); SC_DLLPUBLIC sal_Int16 GetNamedRangesLockCount() const { return mnNamedRangesLockCount; } void SetNamedRangesLockCount( sal_Int16 nCount ) { mnNamedRangesLockCount = nCount; } @@ -1411,7 +1411,7 @@ public: SC_DLLPUBLIC ScConditionalFormatList* GetCondFormList( SCTAB nTab ) const; const ScValidationDataList* GetValidationList() const; - ScValidationDataList* GetValidationList(); + ScValidationDataList* GetValidationList() { return pValidationList;} SC_DLLPUBLIC void ApplyAttr( SCCOL nCol, SCROW nRow, SCTAB nTab, const SfxPoolItem& rAttr ); @@ -1759,7 +1759,7 @@ public: bool GetNoListening() const { return bNoListening; } ScBroadcastAreaSlotMachine* GetBASM() const { return pBASM; } - SC_DLLPUBLIC ScChartListenerCollection* GetChartListenerCollection() const; + SC_DLLPUBLIC ScChartListenerCollection* GetChartListenerCollection() const { return pChartListenerCollection;} void SetChartListenerCollection( ScChartListenerCollection*, bool bSetChartRangeLists = false ); void UpdateChart( const OUString& rName ); @@ -1955,10 +1955,10 @@ public: return *pRecursionHelper; } bool IsInDtorClear() const { return bInDtorClear; } - void SetExpandRefs( bool bVal ); - bool IsExpandRefs() const; + void SetExpandRefs( bool bVal ); + bool IsExpandRefs() const { return bExpandRefs; } - sal_uLong GetXMLImportedFormulaCount() const { return nXMLImportedFormulaCount; } + sal_uLong GetXMLImportedFormulaCount() const { return nXMLImportedFormulaCount; } void IncXMLImportedFormulaCount( sal_uLong nVal ) { if ( nXMLImportedFormulaCount + nVal > nXMLImportedFormulaCount ) diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx index 4647227a43e8..06f66c0b7788 100644 --- a/sc/inc/dpcache.hxx +++ b/sc/inc/dpcache.hxx @@ -129,7 +129,7 @@ public: const OUString* InternString(const OUString& rStr) const; void AddReference(ScDPObject* pObj) const; void RemoveReference(ScDPObject* pObj) const; - const ObjectSetType& GetAllReferences() const; + const ObjectSetType& GetAllReferences() const { return maRefObjects;} SCROW GetIdByItemData(long nDim, const ScDPItemData& rItem) const; OUString GetFormattedString(long nDim, const ScDPItemData& rItem) const; @@ -160,15 +160,15 @@ public: bool InitFromDoc(ScDocument* pDoc, const ScRange& rRange); bool InitFromDataBase(DBConnector& rDB); - SCROW GetRowCount() const; + SCROW GetRowCount() const { return mnRowCount;} SCROW GetDataSize() const; SCROW GetItemDataId( sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty ) const; OUString GetDimensionName(LabelsType::size_type nDim) const; bool IsRowEmpty(SCROW nRow) const; bool ValidQuery(SCROW nRow, const ScQueryParam& rQueryParam) const; - ScDocument* GetDoc() const; - long GetColumnCount() const; + ScDocument* GetDoc() const { return mpDoc;} + long GetColumnCount() const { return mnColumnCount;} const ScDPItemData* GetItemDataById( long nDim, SCROW nId ) const; diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx index cb3b130db8b3..4990a29e8542 100644 --- a/sc/inc/dpgroup.hxx +++ b/sc/inc/dpgroup.hxx @@ -85,7 +85,7 @@ public: size_t GetItemCount() const { return aItems.size(); } void SetDateDimension(); - bool IsDateDimension() const; + bool IsDateDimension() const { return mbDateDimension;} }; typedef ::std::vector<ScDPGroupDimension> ScDPGroupDimensionVec; @@ -112,7 +112,7 @@ public: void DisposeData(); - bool IsDateDimension() const; + bool IsDateDimension() const { return mbDateDimension;} }; diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index 299baa0e2e45..b6866f743c95 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -140,7 +140,7 @@ public: const ScRange& GetOutRange() const { return aOutRange; } void SetHeaderLayout(bool bUseGrid); - bool GetHeaderLayout() const; + bool GetHeaderLayout() const { return mbHeaderLayout;} void SetSheetDesc(const ScSheetSourceDesc& rDesc, bool bFromRefUpdate = false); void SetImportDesc(const ScImportSourceDesc& rDesc); diff --git a/sc/inc/dpoutput.hxx b/sc/inc/dpoutput.hxx index 5bac8c40ab98..d4ff356c739d 100644 --- a/sc/inc/dpoutput.hxx +++ b/sc/inc/dpoutput.hxx @@ -131,7 +131,7 @@ public: void GetMemberResultNames(ScDPUniqueStringSet& rNames, long nDimension); void SetHeaderLayout(bool bUseGrid); - bool GetHeaderLayout() const; + bool GetHeaderLayout() const { return mbHeaderLayout;} static void GetDataDimensionNames( OUString& rSourceName, OUString& rGivenName, diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx index 207e256eb25e..e02890a2ccb0 100644 --- a/sc/inc/dptabres.hxx +++ b/sc/inc/dptabres.hxx @@ -114,10 +114,10 @@ public: ScDPResultMember* GetColResRoot() const { return pColResRoot; } ScDPResultMember* GetRowResRoot() const { return pRowResRoot; } - const IndexArray& GetColVisible() const; - const IndexArray& GetColSorted() const; - const IndexArray& GetRowVisible() const; - const IndexArray& GetRowSorted() const; + const IndexArray& GetColVisible() const { return maColVisible;} + const IndexArray& GetColSorted() const { return maColSorted;} + const IndexArray& GetRowVisible() const { return maRowVisible;} + const IndexArray& GetRowSorted() const { return maRowSorted;} void AddColIndex( long nVisible, long nSorted ); void AddRowIndex( long nVisible, long nSorted ); @@ -339,7 +339,7 @@ public: ResultMembers* GetDimResultMembers(long nDim, ScDPDimension* pDim, ScDPLevel* pLevel) const; - const ScDPSource& GetSource() const; + const ScDPSource& GetSource() const { return mrSource;} }; class ScDPResultMember @@ -381,7 +381,9 @@ public: bool IsValid() const; bool IsVisible() const; long GetSize(long nMeasure) const; - bool HasHiddenDetails() const; + // bHasHiddenDetails is set only if the "show details" flag is off, + // and there was a child dimension to skip + bool HasHiddenDetails() const { return bHasHiddenDetails; } bool IsSubTotalInTitle(long nMeasure) const; long GetSubTotalCount( long* pUserSubStart = NULL ) const; diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx index 6d9d73e21028..757054fb4131 100644 --- a/sc/inc/dptabsrc.hxx +++ b/sc/inc/dptabsrc.hxx @@ -416,9 +416,9 @@ public: void setOrientation(sal_uInt16 nNew); long getPosition() const; bool getIsDataLayoutDimension() const; - sal_uInt16 getFunction() const; + sal_uInt16 getFunction() const { return nFunction;} void setFunction(sal_uInt16 nNew); // for data dimension - long getUsedHierarchy() const; + long getUsedHierarchy() const { return nUsedHier;} void setUsedHierarchy(long nNew); bool HasSelectedPage() const { return bHasSelectedPage; } @@ -638,7 +638,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; com::sun::star::uno::Sequence<com::sun::star::sheet::GeneralFunction> getSubTotals() const; - bool getShowEmpty() const; + bool getShowEmpty() const { return bShowEmpty;} const ::com::sun::star::sheet::DataPilotFieldSortInfo& GetSortInfo() const { return aSortInfo; } const ::com::sun::star::sheet::DataPilotFieldAutoShowInfo& GetAutoShow() const { return aAutoShowInfo; } @@ -717,7 +717,7 @@ public: virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - long getCount() const; + long getCount() const { return nMbrCount;} ScDPMember* getByIndex(long nIndex) const; long getMinMembers() const; @@ -757,7 +757,7 @@ public: bool IsNamedItem(SCROW nIndex) const; SC_DLLPUBLIC const OUString* GetLayoutName() const; - long GetDim() const; + long GetDim() const { return nDim;} sal_Int32 Compare( const ScDPMember& rOther ) const; // visible order @@ -815,8 +815,8 @@ public: virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - bool isVisible() const; - bool getShowDetails() const; + bool isVisible() const { return bVisible;} + bool getShowDetails() const { return bShowDet;} }; diff --git a/sc/inc/editdataarray.hxx b/sc/inc/editdataarray.hxx index 4eb57b990135..e13a4b1c6f20 100644 --- a/sc/inc/editdataarray.hxx +++ b/sc/inc/editdataarray.hxx @@ -40,9 +40,9 @@ public: const EditTextObject* GetOldData() const; const EditTextObject* GetNewData() const; - SCTAB GetTab() const; - SCCOL GetCol() const; - SCROW GetRow() const; + SCTAB GetTab() const { return mnTab;} + SCCOL GetCol() const { return mnCol;} + SCROW GetRow() const { return mnRow;} private: Item(); // disabled diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx index 9bcc64d36f8f..666958a5f60a 100644 --- a/sc/inc/externalrefmgr.hxx +++ b/sc/inc/externalrefmgr.hxx @@ -168,7 +168,7 @@ public: void setReferenced( bool bReferenced ); /// Unconditionally set the reference status flag. void setReferencedFlag( ReferencedFlag eFlag ); - ReferencedFlag getReferencedFlag() const; + ReferencedFlag getReferencedFlag() const { return meReferenced;} bool isReferenced() const; /// Obtain a sorted vector of rows. void getAllRows(::std::vector<SCROW>& rRows, SCROW nLow = 0, SCROW nHigh = MAXROW) const; diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx index 3d76950c52a9..bb117090748a 100644 --- a/sc/inc/fielduno.hxx +++ b/sc/inc/fielduno.hxx @@ -241,7 +241,7 @@ public: ScEditSource* pEditSrc, sal_Int32 eType, const ESelection& rSel); virtual ~ScEditFieldObj(); - sal_Int32 GetFieldType() const; + sal_Int32 GetFieldType() const { return meType;} void DeleteField(); bool IsInserted() const; SvxFieldItem CreateFieldItem(); diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index 3301d1e54468..25efdb786a8e 100644 --- a/sc/inc/formulacell.hxx +++ b/sc/inc/formulacell.hxx @@ -210,14 +210,14 @@ public: void ResetTableOpDirtyVar(); void SetTableOpDirty(); bool IsDirtyOrInTableOpDirty() const; - bool GetDirty() const; + bool GetDirty() const { return bDirty; } void ResetDirty(); - bool NeedsListening() const; + bool NeedsListening() const { return bNeedListening; } void SetNeedsListening( bool bVar ); void SetNeedsDirty( bool bVar ); void SetNeedNumberFormat( bool bVal ); - bool NeedsNumberFormat() const; - short GetFormatType() const; + bool NeedsNumberFormat() const { return mbNeedsNumberFormat;} + short GetFormatType() const { return nFormatType; } void Compile(const OUString& rFormula, bool bNoListening = false, const formula::FormulaGrammar::Grammar = formula::FormulaGrammar::GRAM_DEFAULT ); @@ -230,8 +230,8 @@ public: void CalcAfterLoad( sc::CompileFormulaContext& rCxt ); bool MarkUsedExternalReferences(); void Interpret(); - bool IsIterCell() const; - sal_uInt16 GetSeenInIteration() const; + bool IsIterCell() const { return bIsIterCell; } + sal_uInt16 GetSeenInIteration() const { return nSeenInIteration; } bool HasOneReference( ScRange& r ) const; /* Checks if the formula contains reference list that can be @@ -281,8 +281,8 @@ public: bool TestTabRefAbs(SCTAB nTable); void UpdateCompile( bool bForceIfNameInUse = false ); void FindRangeNamesInUse(std::set<sal_uInt16>& rIndexes) const; - bool IsSubTotal() const; - bool IsChanged() const; + bool IsSubTotal() const { return bSubTotal;} + bool IsChanged() const { return bChanged;} void SetChanged(bool b); bool IsEmpty(); // formula::svEmptyCell result // display as empty string if formula::svEmptyCell result @@ -300,35 +300,35 @@ public: sal_uInt16 GetRawError(); // don't interpret, just return code or result error bool GetErrorOrValue( sal_uInt16& rErr, double& rVal ); sc::FormulaResultValue GetResult(); - sal_uInt8 GetMatrixFlag() const; - ScTokenArray* GetCode(); + sal_uInt8 GetMatrixFlag() const { return cMatrixFlag;} + ScTokenArray* GetCode() { return pCode;} const ScTokenArray* GetCode() const; void SetCode( ScTokenArray* pNew ); - bool IsRunning() const; + bool IsRunning() const { return bRunning;} void SetRunning( bool bVal ); void CompileDBFormula( sc::CompileFormulaContext& rCxt ); void CompileDBFormula( sc::CompileFormulaContext& rCxt, bool bCreateFormulaString ); void CompileColRowNameFormula( sc::CompileFormulaContext& rCxt ); - ScFormulaCell* GetPrevious() const; - ScFormulaCell* GetNext() const; + ScFormulaCell* GetPrevious() const { return pPrevious; } + ScFormulaCell* GetNext() const { return pNext; } void SetPrevious( ScFormulaCell* pF ); void SetNext( ScFormulaCell* pF ); - ScFormulaCell* GetPreviousTrack() const; - ScFormulaCell* GetNextTrack() const; + ScFormulaCell* GetPreviousTrack() const { return pPreviousTrack; } + ScFormulaCell* GetNextTrack() const { return pNextTrack; } void SetPreviousTrack( ScFormulaCell* pF ); void SetNextTrack( ScFormulaCell* pF ); virtual void Notify( const SfxHint& rHint ) SAL_OVERRIDE; void SetCompile( bool bVal ); - ScDocument* GetDocument() const; + ScDocument* GetDocument() const { return pDocument;} void SetMatColsRows( SCCOL nCols, SCROW nRows, bool bDirtyFlag=true ); void GetMatColsRows( SCCOL& nCols, SCROW& nRows ) const; // cell belongs to ChangeTrack and not to the real document void SetInChangeTrack( bool bVal ); - bool IsInChangeTrack() const; + bool IsInChangeTrack() const { return bInChangeTrack;} // For import filters! void AddRecalcMode( formula::ScRecalcMode ); @@ -399,7 +399,7 @@ public: void SyncSharedCode(); - bool IsPostponedDirty() const; + bool IsPostponedDirty() const { return mbPostponedDirty;} }; #endif diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx index 7d66f9248ad6..f42fdc7a4054 100644 --- a/sc/inc/listenercontext.hxx +++ b/sc/inc/listenercontext.hxx @@ -52,7 +52,7 @@ public: void setPositionDelta( const ScAddress& rDelta ); ScDocument& getDoc(); - ScTokenArray* getOldCode(); + ScTokenArray* getOldCode() { return mpOldCode;} ScAddress getOldPosition( const ScAddress& rPos ) const; ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol); diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx index 1c76955da094..3bc60ac4d69a 100644 --- a/sc/inc/nameuno.hxx +++ b/sc/inc/nameuno.hxx @@ -209,7 +209,7 @@ public: virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; - bool IsModifyAndBroadcast() const; + bool IsModifyAndBroadcast() const { return mbModifyAndBroadcast;} /// XNamedRanges virtual void SAL_CALL addNewByName( const OUString& aName, const OUString& aContent, diff --git a/sc/inc/olinetab.hxx b/sc/inc/olinetab.hxx index 8a557c6c61e9..a0df79d56a95 100644 --- a/sc/inc/olinetab.hxx +++ b/sc/inc/olinetab.hxx @@ -41,19 +41,19 @@ public: ScOutlineEntry( SCCOLROW nNewStart, SCCOLROW nNewSize, bool bNewHidden = false ); ScOutlineEntry( const ScOutlineEntry& rEntry ); - SC_DLLPUBLIC SCCOLROW GetStart() const; - SCSIZE GetSize() const; + SC_DLLPUBLIC SCCOLROW GetStart() const { return nStart;} + SCSIZE GetSize() const { return nSize;} SC_DLLPUBLIC SCCOLROW GetEnd() const; /** * @return true is the group is hidden, false otherwise. */ - SC_DLLPUBLIC bool IsHidden() const; + SC_DLLPUBLIC bool IsHidden() const { return bHidden;} /** * @return true if the control is visible, false otherwise. */ - SC_DLLPUBLIC bool IsVisible() const; + SC_DLLPUBLIC bool IsVisible() const { return bVisible;} void Move( SCsCOLROW nDelta ); void SetSize( SCSIZE nNewSize ); @@ -106,7 +106,7 @@ public: ScOutlineArray(); ScOutlineArray( const ScOutlineArray& rArray ); - size_t GetDepth() const; + size_t GetDepth() const { return nDepth;} bool FindTouchedLevel( SCCOLROW nBlockStart, SCCOLROW nBlockEnd, size_t& rFindLevel) const; @@ -180,7 +180,7 @@ public: ScSubOutlineIterator( ScOutlineArray* pOutlineArray, size_t nLevel, size_t nEntry ); ScOutlineEntry* GetNext(); - size_t LastLevel() const; + size_t LastLevel() const { return nSubLevel;} size_t LastEntry() const; void DeleteLast(); }; diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx index 47a299761612..5716207e07e7 100644 --- a/sc/inc/postit.hxx +++ b/sc/inc/postit.hxx @@ -96,7 +96,7 @@ public: bool bCloneCaption ) const; /** Returns the data struct containing all note settings. */ - const ScNoteData& GetNoteData() const; + const ScNoteData& GetNoteData() const { return maNoteData;} /** Returns the creation date of this note. */ const OUString& GetDate() const; diff --git a/sc/inc/queryentry.hxx b/sc/inc/queryentry.hxx index 1c3a067a3f6f..2d1116e66629 100644 --- a/sc/inc/queryentry.hxx +++ b/sc/inc/queryentry.hxx @@ -65,7 +65,7 @@ struct SC_DLLPUBLIC ScQueryEntry utl::TextSearch* GetSearchTextPtr( bool bCaseSens ) const; QueryItemsType& GetQueryItems(); - const QueryItemsType& GetQueryItems() const; + const QueryItemsType& GetQueryItems() const { return maQueryItems;} void SetQueryByEmpty(); bool IsQueryByEmpty() const; void SetQueryByNonEmpty(); diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx index f069abdb5dc3..90105cc71402 100644 --- a/sc/inc/queryparam.hxx +++ b/sc/inc/queryparam.hxx @@ -112,7 +112,7 @@ struct ScDBQueryParamBase : public ScQueryParamBase SCCOL mnField; /// the field in which the values are processed during iteration. bool mbSkipString; - DataType GetType() const; + DataType GetType() const { return meType;} virtual ~ScDBQueryParamBase(); diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx index 1f927312327b..146adf8f35d9 100644 --- a/sc/inc/refhint.hxx +++ b/sc/inc/refhint.hxx @@ -31,7 +31,7 @@ protected: public: virtual ~RefHint() = 0; - Type getType() const; + Type getType() const { return meType; } }; class RefMovedHint : public RefHint @@ -68,9 +68,9 @@ public: const sc::ColReorderMapType& getColMap() const; - SCTAB getTab() const; - SCROW getStartRow() const; - SCROW getEndRow() const; + SCTAB getTab() const { return mnTab;} + SCROW getStartRow() const { return mnRow1;} + SCROW getEndRow() const { return mnRow2;} }; } diff --git a/sc/inc/rowheightcontext.hxx b/sc/inc/rowheightcontext.hxx index 21e9ee4e9e09..8d2c5975d1bf 100644 --- a/sc/inc/rowheightcontext.hxx +++ b/sc/inc/rowheightcontext.hxx @@ -36,18 +36,18 @@ public: ~RowHeightContext(); - double getPPTX() const; - double getPPTY() const; + double getPPTX() const { return mfPPTX;} + double getPPTY() const { return mfPPTY;} const Fraction& getZoomX() const; const Fraction& getZoomY() const; - OutputDevice* getOutputDevice(); + OutputDevice* getOutputDevice() { return mpOutDev;} void setExtraHeight( sal_uInt16 nH ); - sal_uInt16 getExtraHeight() const; + sal_uInt16 getExtraHeight() const { return mnExtraHeight;} void setForceAutoSize( bool b ); - bool isForceAutoSize() const; + bool isForceAutoSize() const { return mbForceAutoSize;} }; } diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx index cafefdf5d836..055c38e9f05a 100644 --- a/sc/inc/scmod.hxx +++ b/sc/inc/scmod.hxx @@ -214,7 +214,7 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO ScInputHandler* GetInputHdl( ScTabViewShell* pViewSh = NULL, bool bUseRef = true ); void SetRefInputHdl( ScInputHandler* pNew ); - ScInputHandler* GetRefInputHdl(); + ScInputHandler* GetRefInputHdl() { return pRefInputHandler;} void ViewShellGone(ScTabViewShell* pViewSh); void ViewShellChanged(); diff --git a/sc/inc/segmenttree.hxx b/sc/inc/segmenttree.hxx index a62e35606115..f1775fd34126 100644 --- a/sc/inc/segmenttree.hxx +++ b/sc/inc/segmenttree.hxx @@ -42,7 +42,7 @@ public: explicit ForwardIterator(ScFlatBoolRowSegments& rSegs); bool getValue(SCROW nPos, bool& rVal); - SCROW getLastPos() const; + SCROW getLastPos() const { return mnLastPos;} private: ScFlatBoolRowSegments& mrSegs; @@ -124,7 +124,7 @@ public: explicit ForwardIterator(ScFlatUInt16RowSegments& rSegs); bool getValue(SCROW nPos, sal_uInt16& rVal); - SCROW getLastPos() const; + SCROW getLastPos() const { return mnLastPos;} private: ScFlatUInt16RowSegments& mrSegs; diff --git a/sc/inc/sheetdata.hxx b/sc/inc/sheetdata.hxx index 0e6e240681f3..38ae38e29bae 100644 --- a/sc/inc/sheetdata.hxx +++ b/sc/inc/sheetdata.hxx @@ -169,7 +169,7 @@ public: const std::vector<ScTextStyleEntry>& GetNoteTextStyles() const { return maNoteTextStyles; } const std::vector<ScTextStyleEntry>& GetTextStyles() const { return maTextStyles; } - bool IsInSupportedSave() const; + bool IsInSupportedSave() const { return mbInSupportedSave;} void SetInSupportedSave( bool bSet ); }; diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 0c008514cbc5..45f8912fa7f4 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -294,7 +294,7 @@ public: void SetName( const OUString& rNewName ); void SetAnonymousDBData(ScDBData* pDBData); - ScDBData* GetAnonymousDBData(); + ScDBData* GetAnonymousDBData() { return pDBDataNoName;} void GetCodeName( OUString& rName ) const { rName = aCodeName; } void SetCodeName( const OUString& rNewName ) { aCodeName = rNewName; } @@ -1105,7 +1105,7 @@ private: * @return Current row position, or ROW_NOT_FOUND if the iterator * doesn't point to a valid data cell position. */ - SCROW getRow() const; + SCROW getRow() const { return mnCurRow;} private: ScFlatBoolRowSegments& mrRowSegs; diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx index 9538819e7733..b6aee9504899 100644 --- a/sc/inc/tokenarray.hxx +++ b/sc/inc/tokenarray.hxx @@ -60,9 +60,9 @@ public: ScTokenArray* Clone() const; /// True copy! void GenHash(); - size_t GetHash() const; + size_t GetHash() const { return mnHashValue;} - ScFormulaVectorState GetVectorState() const; + ScFormulaVectorState GetVectorState() const { return meVectorState;} /** * If the array contains at least one relative row reference or named diff --git a/sc/inc/tokenstringcontext.hxx b/sc/inc/tokenstringcontext.hxx index 5ba1c0313a52..37965c8fe200 100644 --- a/sc/inc/tokenstringcontext.hxx +++ b/sc/inc/tokenstringcontext.hxx @@ -58,12 +58,12 @@ public: CompileFormulaContext( ScDocument* pDoc ); CompileFormulaContext( ScDocument* pDoc, formula::FormulaGrammar::Grammar eGram ); - formula::FormulaGrammar::Grammar getGrammar() const; + formula::FormulaGrammar::Grammar getGrammar() const { return meGram;} void setGrammar( formula::FormulaGrammar::Grammar eGram ); const std::vector<OUString>& getTabNames() const; - ScDocument* getDoc(); + ScDocument* getDoc() { return mpDoc;} }; } diff --git a/sc/inc/typedstrdata.hxx b/sc/inc/typedstrdata.hxx index 4e393b790baa..dc313c05d913 100644 --- a/sc/inc/typedstrdata.hxx +++ b/sc/inc/typedstrdata.hxx @@ -32,9 +32,9 @@ public: ScTypedStrData( const ScTypedStrData& rCpy ); bool IsStrData() const; - bool IsDate() const; + bool IsDate() const { return mbIsDate;} SC_DLLPUBLIC const OUString& GetString() const; - StringType GetStringType() const; + StringType GetStringType() const { return meStrType;} double GetValue() const { return mfValue; } struct LessCaseSensitive : std::binary_function<ScTypedStrData, ScTypedStrData, bool> diff --git a/sc/inc/unitconv.hxx b/sc/inc/unitconv.hxx index 8c6e11eddb6f..c2a88dfbebf5 100644 --- a/sc/inc/unitconv.hxx +++ b/sc/inc/unitconv.hxx @@ -36,7 +36,7 @@ public: ScUnitConverterData( const ScUnitConverterData& ); ~ScUnitConverterData(); - double GetValue() const; + double GetValue() const { return mfValue;} const OUString& GetIndexString() const; static OUString BuildIndexString( |