[Libreoffice-commits] core.git: 2 commits - chart2/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Jul 23 08:05:01 PDT 2014


 chart2/source/view/inc/PropertyMapper.hxx |   16 ++++++++++++++++
 chart2/source/view/main/VDataSeries.cxx   |    2 ++
 2 files changed, 18 insertions(+)

New commits:
commit 415f5477e8c34001bb97c788a969e6e92d1d45be
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed Jul 23 11:03:21 2014 -0400

    Annotate.
    
    Change-Id: I4f0b0e76f720663a7f6ce1d1a5f3806b86165313

diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx
index ccbd845..041ea47 100644
--- a/chart2/source/view/main/VDataSeries.cxx
+++ b/chart2/source/view/main/VDataSeries.cxx
@@ -1001,6 +1001,7 @@ bool VDataSeries::getTextLabelMultiPropertyLists( sal_Int32 index
         adaptPointCache( index );
         if (!m_apLabelPropValues_AttributedPoint)
         {
+            // Cache these properties for this point.
             m_apLabelPropNames_AttributedPoint.reset(new tNameSequence);
             m_apLabelPropValues_AttributedPoint.reset(new tAnySequence);
             xTextProp.set( this->getPropertiesOfPoint( index ));
@@ -1015,6 +1016,7 @@ bool VDataSeries::getTextLabelMultiPropertyLists( sal_Int32 index
     {
         if (!m_apLabelPropValues_Series)
         {
+            // Cache these properties for the whole series.
             m_apLabelPropNames_Series.reset(new tNameSequence);
             m_apLabelPropValues_Series.reset(new tAnySequence);
             xTextProp.set( this->getPropertiesOfPoint( index ));
commit fc17cc850711a59dd52e93e0961a21c7ac8bd189
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed Jul 23 09:55:58 2014 -0400

    Add documentation.
    
    Change-Id: Ifb5060183866d3e8ea8ecaa715b297717d1dd370

diff --git a/chart2/source/view/inc/PropertyMapper.hxx b/chart2/source/view/inc/PropertyMapper.hxx
index 289b97ab..610f24c 100644
--- a/chart2/source/view/inc/PropertyMapper.hxx
+++ b/chart2/source/view/inc/PropertyMapper.hxx
@@ -43,6 +43,12 @@ typedef ::comphelper::MakeSequence< OUString >      tMakeNameSequence;
 typedef ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > tAnySequence;
 typedef ::comphelper::MakeSequence< ::com::sun::star::uno::Any >      tMakeAnySequence;
 
+/**
+ * PropertyMapper provides easy mapping of the property names of various
+ * objects in the chart model, to the property names of the destination
+ * shape objects (those whose service names begin with
+ * com.sun.star.drawing.).
+ */
 class OOO_DLLPUBLIC_CHARTTOOLS PropertyMapper
 {
 public:
@@ -54,6 +60,16 @@ public:
         , const tPropertyNameMap& rMap
         , tPropertyNameValueMap* pOverwriteMap=0 );
 
+    /**
+     * Fetch property values from the source object and map it to the
+     * destination container.  Only those properties that are explicitly set
+     * will be inserted into the destination container.
+     *
+     * @param rValueMap destination container
+     * @param rNameMap property name mapping rule
+     * @param xSourceProp source object from which the property values are
+     *                    pulled.
+     */
     static void getValueMap(
           tPropertyNameValueMap& rValueMap
         , const tPropertyNameMap& rNameMap


More information about the Libreoffice-commits mailing list