diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-14 12:06:21 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-14 17:18:58 -0500 |
commit | 4eedf5dc54ab19af39d7033462421082d1abb86d (patch) | |
tree | 18cd94282c6f38bca4a0a1096c310ed4dff9038c /sc/inc/dpsave.hxx | |
parent | 691f2451c86348239d3b9735ee81b8ecd3209161 (diff) |
Correctly set pivot's popup flag when importing from Excel docs.
Diffstat (limited to 'sc/inc/dpsave.hxx')
-rw-r--r-- | sc/inc/dpsave.hxx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx index ee2fd6d0573e..08b5c76707ce 100644 --- a/sc/inc/dpsave.hxx +++ b/sc/inc/dpsave.hxx @@ -240,8 +240,10 @@ public: class ScDPSaveData { +public: + typedef boost::ptr_vector<ScDPSaveDimension> DimsType; private: - boost::ptr_vector<ScDPSaveDimension> aDimList; + DimsType aDimList; ScDPDimensionSaveData* pDimensionData; // settings that create new dimensions sal_uInt16 nColumnGrandMode; sal_uInt16 nRowGrandMode; @@ -270,8 +272,19 @@ public: SC_DLLPUBLIC void SetGrandTotalName(const ::rtl::OUString& rName); SC_DLLPUBLIC const ::rtl::OUString* GetGrandTotalName() const; - const boost::ptr_vector<ScDPSaveDimension>& GetDimensions() const - { return aDimList; } + SC_DLLPUBLIC const DimsType& GetDimensions() const; + + /** + * Get all dimensions in a given orientation. The order represents the + * actual order of occurrence. The returned list also includes data + * layout dimension. + * + * @param eOrientation orientation + * @param rDims (out) list of dimensions for specified orientation + */ + SC_DLLPUBLIC void GetAllDimensionsByOrientation( + com::sun::star::sheet::DataPilotFieldOrientation eOrientation, + std::vector<const ScDPSaveDimension*>& rDims) const; void AddDimension(ScDPSaveDimension* pDim) { aDimList.push_back(pDim); } |