diff options
author | Kohei Yoshida <kohei@openoffice.org> | 2009-09-02 20:13:36 +0000 |
---|---|---|
committer | Kohei Yoshida <kohei@openoffice.org> | 2009-09-02 20:13:36 +0000 |
commit | 8cf3d5f0317095f6a39ec7e0bfccf2b2d2d41aa2 (patch) | |
tree | 468587b9da3c2baefa65cbf83d5a75b0a099731f /sc/inc/pivot.hxx | |
parent | b5fa761ca3b9fc4deee487e018f0182c8d3a9c41 (diff) |
added getDisplayName() to ScDPLabelData, to keep the client code a little cleaner.
Diffstat (limited to 'sc/inc/pivot.hxx')
-rw-r--r-- | sc/inc/pivot.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/inc/pivot.hxx b/sc/inc/pivot.hxx index b8ca4da7762b..ad5ec926ed97 100644 --- a/sc/inc/pivot.hxx +++ b/sc/inc/pivot.hxx @@ -384,6 +384,13 @@ struct ScDPLabelData bool mbShowDetails; Member(); + + /** + * return the name that should be displayed in the dp dialogs i.e. + * when the layout name is present, use it, or else use the original + * name. + */ + ::rtl::OUString SC_DLLPUBLIC getDisplayName() const; }; ::std::vector<Member> maMembers; ::com::sun::star::uno::Sequence< ::rtl::OUString > maHiers; /// Hierarchies. @@ -392,6 +399,13 @@ struct ScDPLabelData ::com::sun::star::sheet::DataPilotFieldAutoShowInfo maShowInfo; /// AutoShow info. explicit ScDPLabelData( const String& rName, short nCol, bool bIsValue ); + + /** + * return the name that should be displayed in the dp dialogs i.e. + * when the layout name is present, use it, or else use the original + * name. + */ + ::rtl::OUString SC_DLLPUBLIC getDisplayName() const; }; // ============================================================================ |