diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-16 15:35:21 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-16 15:37:11 -0500 |
commit | efab685286432e36821d60264f978d98407b800c (patch) | |
tree | df91b028be95151c00ae813f0bd60f0035e48d37 /sc/inc | |
parent | 41e995ec361cd466a3f287d3eb33c0080bdbb50c (diff) |
Reduced header dependency on dbdata.hxx by better encapsulation.
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/dbdata.hxx | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx index c48aa1aa1ee3..1aab2713a0ea 100644 --- a/sc/inc/dbdata.hxx +++ b/sc/inc/dbdata.hxx @@ -30,28 +30,27 @@ #define SC_DBCOLECT_HXX #include "scdllapi.h" -#include "collect.hxx" -#include "global.hxx" // MAXQUERY -#include "sortparam.hxx" // MAXSORT #include "refreshtimer.hxx" #include "address.hxx" -#include "scdllapi.h" -#include "subtotalparam.hxx" -#include "queryparam.hxx" +#include "global.hxx" #include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_set.hpp> #include <boost/scoped_ptr.hpp> class ScDocument; +struct ScSortParam; +struct ScQueryParam; +struct ScSubTotalParam; +struct ScImportParam; class ScDBData : public ScRefreshTimer { private: - ScSortParam maSortParam; - ScQueryParam maQueryParam; - ScSubTotalParam maSubTotal; - ScImportParam maImportParam; + boost::scoped_ptr<ScSortParam> mpSortParam; + boost::scoped_ptr<ScQueryParam> mpQueryParam; + boost::scoped_ptr<ScSubTotalParam> mpSubTotal; + boost::scoped_ptr<ScImportParam> mpImportParam; // DBParam const ::rtl::OUString aName; @@ -137,10 +136,10 @@ public: bool IsDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, bool bStartOnly) const; bool IsDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const; - bool HasImportParam() const { return maImportParam.bImport; } + bool HasImportParam() const; SC_DLLPUBLIC bool HasQueryParam() const; - bool HasSortParam() const { return maSortParam.bDoSort[0]; } - bool HasSubTotalParam() const { return maSubTotal.bGroupActive[0]; } + bool HasSortParam() const; + bool HasSubTotalParam() const; bool HasImportSelection() const { return bDBSelection; } void SetImportSelection(bool bSet) { bDBSelection = bSet; } |