From 4eedf5dc54ab19af39d7033462421082d1abb86d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 14 Feb 2012 12:06:21 -0500 Subject: Correctly set pivot's popup flag when importing from Excel docs. --- sc/inc/dpsave.hxx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'sc/inc/dpsave.hxx') 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 DimsType; private: - boost::ptr_vector 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& 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& rDims) const; void AddDimension(ScDPSaveDimension* pDim) { aDimList.push_back(pDim); } -- cgit