diff options
author | Kohei Yoshida <kohei@openoffice.org> | 2009-06-19 00:54:35 +0000 |
---|---|---|
committer | Kohei Yoshida <kohei@openoffice.org> | 2009-06-19 00:54:35 +0000 |
commit | 7425283183cc26795bc3c655b2bc5cd6931091e2 (patch) | |
tree | d79a5dce0ab675af5d9a2f5920bc670508f89e5c | |
parent | f1b4f077bec4a899462d643c31d36c87d144a1e4 (diff) |
adding autoformat index member to dp object.
-rw-r--r-- | sc/inc/dpobject.hxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index 5f3dfe9eb489..9dd014aac1f8 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -106,6 +106,7 @@ private: ScDPOutput* pOutput; BOOL bSettingsChanged; BOOL bAlive; // FALSE if only used to hold settings + sal_uInt16 nAutoFormatIndex; BOOL bAllowMove; long nHeaderRows; // page fields plus filter button @@ -136,6 +137,9 @@ public: void SetOutRange(const ScRange& rRange); const ScRange& GetOutRange() const { return aOutRange; } + void SetAutoFormatIndex (const sal_uInt16 nIndex); + sal_uInt16 GetAutoFormatIndex() const; + void SetSheetDesc(const ScSheetSourceDesc& rDesc); void SetImportDesc(const ScImportSourceDesc& rDesc); void SetServiceData(const ScDPServiceDesc& rDesc); diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 12af06a773ed..4cf5d1e8a602 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -165,6 +165,7 @@ ScDPObject::ScDPObject( ScDocument* pD ) : pOutput( NULL ), bSettingsChanged( FALSE ), bAlive( FALSE ), + nAutoFormatIndex( 65535 ), bAllowMove( FALSE ), nHeaderRows( 0 ) { @@ -183,6 +184,7 @@ ScDPObject::ScDPObject(const ScDPObject& r) : pOutput( NULL ), bSettingsChanged( FALSE ), bAlive( FALSE ), + nAutoFormatIndex( r.nAutoFormatIndex ), bAllowMove( FALSE ), nHeaderRows( r.nHeaderRows ) { @@ -232,6 +234,16 @@ void ScDPObject::SetSaveData(const ScDPSaveData& rData) InvalidateData(); // re-init source from SaveData } +void ScDPObject::SetAutoFormatIndex(const sal_uInt16 nIndex) +{ + nAutoFormatIndex = nIndex; +} + +sal_uInt16 ScDPObject::GetAutoFormatIndex() const +{ + return nAutoFormatIndex; +} + void ScDPObject::SetOutRange(const ScRange& rRange) { aOutRange = rRange; |