LCOV - code coverage report
Current view: top level - chart2/source/model/main - DataPointProperties.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 148 148 100.0 %
Date: 2015-06-13 12:38:46 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include "DataPointProperties.hxx"
      21             : #include "macros.hxx"
      22             : #include "LinePropertiesHelper.hxx"
      23             : #include "FillProperties.hxx"
      24             : #include <unonames.hxx>
      25             : 
      26             : #include <com/sun/star/beans/PropertyAttribute.hpp>
      27             : #include <com/sun/star/drawing/FillStyle.hpp>
      28             : #include <com/sun/star/drawing/LineStyle.hpp>
      29             : #include <com/sun/star/drawing/LineDash.hpp>
      30             : #include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
      31             : #include <com/sun/star/style/XStyle.hpp>
      32             : #include <com/sun/star/drawing/BitmapMode.hpp>
      33             : #include <com/sun/star/drawing/RectanglePoint.hpp>
      34             : 
      35             : #include <com/sun/star/chart2/DataPointGeometry3D.hpp>
      36             : #include <com/sun/star/chart2/DataPointLabel.hpp>
      37             : #include <com/sun/star/chart2/Symbol.hpp>
      38             : 
      39             : using namespace ::com::sun::star;
      40             : 
      41             : using ::com::sun::star::beans::Property;
      42             : 
      43             : namespace chart
      44             : {
      45             : 
      46          21 : void DataPointProperties::AddPropertiesToVector(
      47             :     ::std::vector< Property > & rOutProperties )
      48             : {
      49             :     // DataPointProperties
      50             : 
      51             :     // Common
      52             : 
      53             :     rOutProperties.push_back(
      54             :         Property( "Color",
      55             :                   PROP_DATAPOINT_COLOR,
      56          21 :                   cppu::UnoType<sal_Int32>::get(),
      57             :                   beans::PropertyAttribute::BOUND
      58             :                   | beans::PropertyAttribute::MAYBEVOID         // "maybe auto"
      59          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
      60             : 
      61             :     rOutProperties.push_back(
      62             :         Property( "Transparency",
      63             :                   PROP_DATAPOINT_TRANSPARENCY,
      64          21 :                   cppu::UnoType<sal_Int16>::get(),
      65             :                   beans::PropertyAttribute::BOUND
      66          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
      67             : 
      68             :     // Fill Properties
      69             :     rOutProperties.push_back(
      70             :         Property( "FillStyle",
      71             :                   PROP_DATAPOINT_FILL_STYLE,
      72          21 :                   cppu::UnoType<drawing::FillStyle>::get(),
      73             :                   beans::PropertyAttribute::BOUND
      74          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
      75             : 
      76             :     rOutProperties.push_back(
      77             :         Property( "TransparencyGradientName",
      78             :                   PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
      79          21 :                   cppu::UnoType<OUString>::get(),
      80             :                   beans::PropertyAttribute::BOUND
      81             :                   | beans::PropertyAttribute::MAYBEDEFAULT
      82          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
      83             : 
      84             :     rOutProperties.push_back(
      85             :         Property( "GradientName",
      86             :                   PROP_DATAPOINT_GRADIENT_NAME,
      87          21 :                   cppu::UnoType<OUString>::get(),
      88             :                   beans::PropertyAttribute::BOUND
      89             :                   | beans::PropertyAttribute::MAYBEDEFAULT
      90          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
      91             : 
      92             :     rOutProperties.push_back(
      93             :         beans::Property( "GradientStepCount",
      94             :                   PROP_DATAPOINT_GRADIENT_STEPCOUNT,
      95          21 :                   cppu::UnoType<sal_Int16>::get(),
      96             :                   beans::PropertyAttribute::BOUND
      97          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
      98             : 
      99             :     rOutProperties.push_back(
     100             :         Property( "HatchName",
     101             :                   PROP_DATAPOINT_HATCH_NAME,
     102          21 :                   cppu::UnoType<OUString>::get(),
     103             :                   beans::PropertyAttribute::BOUND
     104             :                   | beans::PropertyAttribute::MAYBEDEFAULT
     105          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     106             : 
     107             :     rOutProperties.push_back(
     108             :         Property( "FillBitmapName",
     109             :                   PROP_DATAPOINT_FILL_BITMAP_NAME,
     110          21 :                   cppu::UnoType<OUString>::get(),
     111             :                   beans::PropertyAttribute::BOUND
     112             :                   | beans::PropertyAttribute::MAYBEDEFAULT
     113          42 :                   | beans::PropertyAttribute::MAYBEVOID  ));
     114             :     rOutProperties.push_back(
     115             :         Property( "FillBackground",
     116             :                   PROP_DATAPOINT_FILL_BACKGROUND,
     117          21 :                   cppu::UnoType<bool>::get(),
     118             :                   beans::PropertyAttribute::BOUND
     119             :                   | beans::PropertyAttribute::MAYBEDEFAULT
     120          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     121             : 
     122             :     // border for filled objects
     123             :     rOutProperties.push_back(
     124             :         Property( "BorderColor",
     125             :                   PROP_DATAPOINT_BORDER_COLOR,
     126          21 :                   cppu::UnoType<sal_Int32>::get(),
     127             :                   beans::PropertyAttribute::BOUND
     128             :                   | beans::PropertyAttribute::MAYBEVOID         // "maybe auto"
     129          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     130             :     rOutProperties.push_back(
     131             :         Property( "BorderStyle",
     132             :                   PROP_DATAPOINT_BORDER_STYLE,
     133          21 :                   cppu::UnoType<drawing::LineStyle>::get(),
     134             :                   beans::PropertyAttribute::BOUND
     135          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     136             :     rOutProperties.push_back(
     137             :         Property( "BorderWidth",
     138             :                   PROP_DATAPOINT_BORDER_WIDTH,
     139          21 :                   cppu::UnoType<sal_Int32>::get(),
     140             :                   beans::PropertyAttribute::BOUND
     141          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     142             :     rOutProperties.push_back(
     143             :         Property( "BorderDashName",
     144             :                   PROP_DATAPOINT_BORDER_DASH_NAME,
     145          21 :                   cppu::UnoType<OUString>::get(),
     146             :                   beans::PropertyAttribute::BOUND
     147          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     148             :     rOutProperties.push_back(
     149             :         Property( "BorderTransparency",
     150             :                   PROP_DATAPOINT_BORDER_TRANSPARENCY,
     151          21 :                   cppu::UnoType<sal_Int16>::get(),
     152             :                   beans::PropertyAttribute::BOUND
     153          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     154             : 
     155             :     // Line Properties
     156             :     rOutProperties.push_back(
     157             :         Property( "LineStyle",
     158             :                   LinePropertiesHelper::PROP_LINE_STYLE,
     159          21 :                   cppu::UnoType<drawing::LineStyle>::get(),
     160             :                   beans::PropertyAttribute::BOUND
     161          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     162             :     rOutProperties.push_back(
     163             :         Property( "LineWidth",
     164             :                   LinePropertiesHelper::PROP_LINE_WIDTH,
     165          21 :                   cppu::UnoType<sal_Int32>::get(),
     166             :                   beans::PropertyAttribute::BOUND
     167          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     168             :     rOutProperties.push_back(
     169             :          Property( "LineDash",
     170             :                    LinePropertiesHelper::PROP_LINE_DASH,
     171          21 :                    cppu::UnoType<drawing::LineDash>::get(),
     172             :                    beans::PropertyAttribute::BOUND
     173          42 :                    | beans::PropertyAttribute::MAYBEVOID ));
     174             :     rOutProperties.push_back(
     175             :         Property( "LineDashName",
     176             :                   LinePropertiesHelper::PROP_LINE_DASH_NAME,
     177          21 :                   cppu::UnoType<OUString>::get(),
     178             :                   beans::PropertyAttribute::BOUND
     179          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     180             : 
     181             :     // FillProperties
     182             :     // bitmap properties
     183             :     rOutProperties.push_back(
     184             :         Property( "FillBitmapOffsetX",
     185             :                   FillProperties::PROP_FILL_BITMAP_OFFSETX,
     186          21 :                   cppu::UnoType<sal_Int16>::get(),
     187             :                   beans::PropertyAttribute::BOUND
     188          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     189             : 
     190             :     rOutProperties.push_back(
     191             :         Property( "FillBitmapOffsetY",
     192             :                   FillProperties::PROP_FILL_BITMAP_OFFSETY,
     193          21 :                   cppu::UnoType<sal_Int16>::get(),
     194             :                   beans::PropertyAttribute::BOUND
     195          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     196             : 
     197             :     rOutProperties.push_back(
     198             :         Property( "FillBitmapPositionOffsetX",
     199             :                   FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX,
     200          21 :                   cppu::UnoType<sal_Int16>::get(),
     201             :                   beans::PropertyAttribute::BOUND
     202          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     203             : 
     204             :     rOutProperties.push_back(
     205             :         Property( "FillBitmapPositionOffsetY",
     206             :                   FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY,
     207          21 :                   cppu::UnoType<sal_Int16>::get(),
     208             :                   beans::PropertyAttribute::BOUND
     209          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     210             : 
     211             :     rOutProperties.push_back(
     212             :         Property( "FillBitmapRectanglePoint",
     213             :                   FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT,
     214          21 :                   cppu::UnoType<drawing::RectanglePoint>::get(),
     215             :                   beans::PropertyAttribute::BOUND
     216          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     217             : 
     218             :     rOutProperties.push_back(
     219             :         Property( "FillBitmapLogicalSize",
     220             :                   FillProperties::PROP_FILL_BITMAP_LOGICALSIZE,
     221          21 :                   cppu::UnoType<bool>::get(),
     222             :                   beans::PropertyAttribute::BOUND
     223          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     224             : 
     225             :     rOutProperties.push_back(
     226             :         Property( "FillBitmapSizeX",
     227             :                   FillProperties::PROP_FILL_BITMAP_SIZEX,
     228          21 :                   cppu::UnoType<sal_Int32>::get(),
     229             :                   beans::PropertyAttribute::BOUND
     230          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     231             : 
     232             :     rOutProperties.push_back(
     233             :         Property( "FillBitmapSizeY",
     234             :                   FillProperties::PROP_FILL_BITMAP_SIZEY,
     235          21 :                   cppu::UnoType<sal_Int32>::get(),
     236             :                   beans::PropertyAttribute::BOUND
     237          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     238             : 
     239             :     rOutProperties.push_back(
     240             :         Property( "FillBitmapMode",
     241             :                   FillProperties::PROP_FILL_BITMAP_MODE,
     242          21 :                   cppu::UnoType<drawing::BitmapMode>::get(),
     243             :                   beans::PropertyAttribute::BOUND
     244          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     245             : 
     246             :     // others
     247             :     rOutProperties.push_back(
     248             :         Property( "Symbol",
     249             :                   PROP_DATAPOINT_SYMBOL_PROP,
     250          21 :                   cppu::UnoType<chart2::Symbol>::get(),
     251             :                   beans::PropertyAttribute::BOUND
     252          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     253             :     rOutProperties.push_back(
     254             :         Property( "Offset",
     255             :                   PROP_DATAPOINT_OFFSET,
     256          21 :                   cppu::UnoType<double>::get(),
     257             :                   beans::PropertyAttribute::BOUND
     258          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     259             :     rOutProperties.push_back(
     260             :         Property( "Geometry3D",
     261             :                   PROP_DATAPOINT_GEOMETRY3D,
     262          21 :                   cppu::UnoType<sal_Int32>::get(),
     263             :                   beans::PropertyAttribute::BOUND
     264          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     265             : 
     266             :     rOutProperties.push_back(
     267             :         Property( CHART_UNONAME_NUMFMT,
     268             :                   PROP_DATAPOINT_NUMBER_FORMAT,
     269          21 :                   cppu::UnoType<sal_Int32>::get(),
     270             :                   beans::PropertyAttribute::BOUND
     271          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     272             : 
     273             :     rOutProperties.push_back(
     274             :         Property( CHART_UNONAME_LINK_TO_SRC_NUMFMT,
     275             :                   PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE,
     276          21 :                   cppu::UnoType<bool>::get(),
     277             :                   beans::PropertyAttribute::BOUND
     278          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     279             : 
     280             :     //additional 'PercentageNumberFormat'
     281             :     rOutProperties.push_back(
     282             :         Property( "PercentageNumberFormat",
     283             :                   PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT,
     284          21 :                   cppu::UnoType<sal_Int32>::get(),
     285             :                   beans::PropertyAttribute::BOUND
     286          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     287             : 
     288             :     rOutProperties.push_back(
     289             :         Property( "LabelPlacement",
     290             :                   PROP_DATAPOINT_LABEL_PLACEMENT,
     291          21 :                   cppu::UnoType<sal_Int32>::get(),
     292             :                   beans::PropertyAttribute::BOUND
     293          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     294             : 
     295             :     rOutProperties.push_back(
     296             :         Property( "ReferencePageSize",
     297             :                   PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
     298          21 :                   cppu::UnoType<awt::Size>::get(),
     299             :                   beans::PropertyAttribute::BOUND
     300          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     301             : 
     302             :     rOutProperties.push_back(
     303             :         Property( "TextRotation",
     304             :                   PROP_DATAPOINT_TEXT_ROTATION,
     305          21 :                   cppu::UnoType<double>::get(),
     306             :                   beans::PropertyAttribute::BOUND
     307          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     308             : 
     309             :     // statistics
     310             :     rOutProperties.push_back(
     311             :         Property( CHART_UNONAME_ERRORBAR_X,
     312             :                   PROP_DATAPOINT_ERROR_BAR_X,
     313             :                   // XPropertySet supporting service ErrorBar
     314          21 :                   cppu::UnoType<beans::XPropertySet>::get(),
     315             :                   beans::PropertyAttribute::BOUND
     316          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     317             :     rOutProperties.push_back(
     318             :         Property( CHART_UNONAME_ERRORBAR_Y,
     319             :                   PROP_DATAPOINT_ERROR_BAR_Y,
     320             :                   // XPropertySet supporting service ErrorBar
     321          21 :                   cppu::UnoType<beans::XPropertySet>::get(),
     322             :                   beans::PropertyAttribute::BOUND
     323          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     324             :     rOutProperties.push_back(
     325             :         Property( "ShowErrorBox",
     326             :                   PROP_DATAPOINT_SHOW_ERROR_BOX,
     327          21 :                   cppu::UnoType<bool>::get(),
     328             :                   beans::PropertyAttribute::BOUND
     329          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     330             :     rOutProperties.push_back(
     331             :         Property( "PercentDiagonal",
     332             :                   PROP_DATAPOINT_PERCENT_DIAGONAL,
     333          21 :                   cppu::UnoType<sal_Int16>::get(),
     334             :                   beans::PropertyAttribute::BOUND
     335          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     336             : 
     337             :     // Properties specific to data label.
     338             : 
     339             :     rOutProperties.push_back(
     340             :         Property( CHART_UNONAME_LABEL,
     341             :                   PROP_DATAPOINT_LABEL,
     342          21 :                   cppu::UnoType<chart2::DataPointLabel>::get(),
     343             :                   beans::PropertyAttribute::BOUND
     344          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     345             : 
     346             :     rOutProperties.push_back(
     347             :         Property( CHART_UNONAME_LABEL_SEP,
     348             :                   PROP_DATAPOINT_LABEL_SEPARATOR,
     349          21 :                   cppu::UnoType<OUString>::get(),
     350             :                   beans::PropertyAttribute::BOUND
     351          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     352             : 
     353             :     rOutProperties.push_back(
     354             :         Property( CHART_UNONAME_LABEL_BORDER_STYLE,
     355             :                   PROP_DATAPOINT_LABEL_BORDER_STYLE,
     356          21 :                   cppu::UnoType<drawing::LineStyle>::get(),
     357             :                   beans::PropertyAttribute::BOUND
     358          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     359             :     rOutProperties.push_back(
     360             :         Property( CHART_UNONAME_LABEL_BORDER_COLOR,
     361             :                   PROP_DATAPOINT_LABEL_BORDER_COLOR,
     362          21 :                   cppu::UnoType<sal_Int32>::get(),
     363             :                   beans::PropertyAttribute::BOUND
     364             :                   | beans::PropertyAttribute::MAYBEVOID         // "maybe auto"
     365          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     366             :     rOutProperties.push_back(
     367             :         Property( CHART_UNONAME_LABEL_BORDER_WIDTH,
     368             :                   PROP_DATAPOINT_LABEL_BORDER_WIDTH,
     369          21 :                   cppu::UnoType<sal_Int32>::get(),
     370             :                   beans::PropertyAttribute::BOUND
     371          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     372             :     rOutProperties.push_back(
     373             :          Property( CHART_UNONAME_LABEL_BORDER_DASH,
     374             :                    PROP_DATAPOINT_LABEL_BORDER_DASH,
     375          21 :                    cppu::UnoType<drawing::LineDash>::get(),
     376             :                    beans::PropertyAttribute::BOUND
     377          42 :                    | beans::PropertyAttribute::MAYBEVOID ));
     378             :     rOutProperties.push_back(
     379             :         Property( CHART_UNONAME_LABEL_BORDER_DASHNAME,
     380             :                   PROP_DATAPOINT_LABEL_BORDER_DASH_NAME,
     381          21 :                   cppu::UnoType<OUString>::get(),
     382             :                   beans::PropertyAttribute::BOUND
     383          42 :                   | beans::PropertyAttribute::MAYBEVOID ));
     384             :     rOutProperties.push_back(
     385             :         Property( CHART_UNONAME_LABEL_BORDER_TRANS,
     386             :                   PROP_DATAPOINT_LABEL_BORDER_TRANS,
     387          21 :                   cppu::UnoType<sal_Int16>::get(),
     388             :                   beans::PropertyAttribute::BOUND
     389          42 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     390          21 : }
     391             : 
     392          16 : void DataPointProperties::AddDefaultsToMap(
     393             :     ::chart::tPropertyValueMap & rOutMap )
     394             : {
     395          16 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_COLOR, 0x0099ccff ); // blue 8
     396          16 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_TRANSPARENCY, 0 );
     397             : 
     398             :     //fill
     399          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_STYLE, drawing::FillStyle_SOLID );
     400          16 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME );
     401          16 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_GRADIENT_NAME );
     402          16 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_HATCH_NAME );
     403          16 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BITMAP_NAME );
     404          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BACKGROUND, false );
     405             : 
     406             :     //border
     407          16 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_COLOR, 0x000000 ); // black
     408          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_STYLE, drawing::LineStyle_SOLID ); // drawing::LineStyle_NONE
     409          16 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_WIDTH, 0 );
     410          16 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_DASH_NAME );
     411          16 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_BORDER_TRANSPARENCY, 0 );
     412             : 
     413             :     //line
     414          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_STYLE, drawing::LineStyle_SOLID );
     415          16 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, LinePropertiesHelper::PROP_LINE_WIDTH, 0 );
     416          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH, drawing::LineDash());
     417          16 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH_NAME );
     418             : 
     419             :     //fill bitmap
     420          16 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETX, 0 );
     421          16 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETY, 0 );
     422          16 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX, 0 );
     423          16 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY, 0 );
     424          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT, drawing::RectanglePoint_MIDDLE_MIDDLE );
     425          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_LOGICALSIZE, true );
     426             : 
     427          16 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEX, 0 );
     428          16 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEY, 0 );
     429          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_MODE, drawing::BitmapMode_REPEAT );
     430             : 
     431             :     //others
     432          16 :     chart2::Symbol aSymbProp;
     433          16 :     aSymbProp.Style = chart2::SymbolStyle_NONE;
     434          16 :     aSymbProp.StandardSymbol = 0;
     435          16 :     aSymbProp.Size = awt::Size( 250, 250 ); // ca. 7pt x 7pt (7pt=246.94)
     436          16 :     aSymbProp.BorderColor = 0x000000;       // Black
     437          16 :     aSymbProp.FillColor = 0xee4000;         // OrangeRed2
     438          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_SYMBOL_PROP, aSymbProp );
     439             : 
     440          16 :     PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_OFFSET, 0.0 );
     441          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_GEOMETRY3D, chart2::DataPointGeometry3D::CUBOID );
     442             : 
     443             :     //@todo maybe choose a different one here -> should be dynamically that of the attached axis
     444          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_X, uno::Reference< beans::XPropertySet >());
     445          16 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_Y, uno::Reference< beans::XPropertySet >());
     446          16 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_PERCENT_DIAGONAL, 0 );
     447             : 
     448          16 :     PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_TEXT_ROTATION, 0.0 );
     449             : 
     450          16 :     PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE, true);
     451             : 
     452             :     // data label
     453             :     PropertyHelper::setPropertyValueDefault(
     454             :         rOutMap, PROP_DATAPOINT_LABEL,
     455             :         chart2::DataPointLabel(
     456             :             sal_False, // ShowNumber
     457             :             sal_False, // ShowNumberInPercent
     458             :             sal_False, // ShowCategoryName
     459             :             sal_False  // ShowLegendSymbol
     460          16 :             ));
     461             : 
     462          16 :     PropertyHelper::setPropertyValueDefault< OUString >( rOutMap, PROP_DATAPOINT_LABEL_SEPARATOR, " " );
     463          16 :     PropertyHelper::setPropertyValueDefault<sal_Int32>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_STYLE, drawing::LineStyle_NONE);
     464          16 :     PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_COLOR);
     465          16 :     PropertyHelper::setPropertyValueDefault<sal_Int32>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_WIDTH, 0);
     466          16 :     PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH, drawing::LineDash());
     467          16 :     PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH_NAME);
     468          16 :     PropertyHelper::setPropertyValueDefault<sal_Int16>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_TRANS, 0);
     469          16 : }
     470             : 
     471             : } //  namespace chart
     472             : 
     473             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11