LCOV - code coverage report
Current view: top level - chart2/source/model/main - DataPointProperties.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 148 148 100.0 %
Date: 2014-11-03 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          38 : 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          38 :                   cppu::UnoType<sal_Int32>::get(),
      57             :                   beans::PropertyAttribute::BOUND
      58             :                   | beans::PropertyAttribute::MAYBEVOID         // "maybe auto"
      59          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
      60             : 
      61             :     rOutProperties.push_back(
      62             :         Property( "Transparency",
      63             :                   PROP_DATAPOINT_TRANSPARENCY,
      64          38 :                   cppu::UnoType<sal_Int16>::get(),
      65             :                   beans::PropertyAttribute::BOUND
      66          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
      67             : 
      68             :     // Fill Properties
      69             :     rOutProperties.push_back(
      70             :         Property( "FillStyle",
      71             :                   PROP_DATAPOINT_FILL_STYLE,
      72          38 :                   cppu::UnoType<drawing::FillStyle>::get(),
      73             :                   beans::PropertyAttribute::BOUND
      74          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
      75             : 
      76             :     rOutProperties.push_back(
      77             :         Property( "TransparencyGradientName",
      78             :                   PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
      79          38 :                   cppu::UnoType<OUString>::get(),
      80             :                   beans::PropertyAttribute::BOUND
      81             :                   | beans::PropertyAttribute::MAYBEDEFAULT
      82          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
      83             : 
      84             :     rOutProperties.push_back(
      85             :         Property( "GradientName",
      86             :                   PROP_DATAPOINT_GRADIENT_NAME,
      87          38 :                   cppu::UnoType<OUString>::get(),
      88             :                   beans::PropertyAttribute::BOUND
      89             :                   | beans::PropertyAttribute::MAYBEDEFAULT
      90          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
      91             : 
      92             :     rOutProperties.push_back(
      93             :         beans::Property( "GradientStepCount",
      94             :                   PROP_DATAPOINT_GRADIENT_STEPCOUNT,
      95          38 :                   cppu::UnoType<sal_Int16>::get(),
      96             :                   beans::PropertyAttribute::BOUND
      97          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
      98             : 
      99             :     rOutProperties.push_back(
     100             :         Property( "HatchName",
     101             :                   PROP_DATAPOINT_HATCH_NAME,
     102          38 :                   cppu::UnoType<OUString>::get(),
     103             :                   beans::PropertyAttribute::BOUND
     104             :                   | beans::PropertyAttribute::MAYBEDEFAULT
     105          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     106             : 
     107             :     rOutProperties.push_back(
     108             :         Property( "FillBitmapName",
     109             :                   PROP_DATAPOINT_FILL_BITMAP_NAME,
     110          38 :                   cppu::UnoType<OUString>::get(),
     111             :                   beans::PropertyAttribute::BOUND
     112             :                   | beans::PropertyAttribute::MAYBEDEFAULT
     113          76 :                   | beans::PropertyAttribute::MAYBEVOID  ));
     114             :     rOutProperties.push_back(
     115             :         Property( "FillBackground",
     116             :                   PROP_DATAPOINT_FILL_BACKGROUND,
     117          38 :                   ::getBooleanCppuType(),
     118             :                   beans::PropertyAttribute::BOUND
     119             :                   | beans::PropertyAttribute::MAYBEDEFAULT
     120          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     121             : 
     122             :     // border for filled objects
     123             :     rOutProperties.push_back(
     124             :         Property( "BorderColor",
     125             :                   PROP_DATAPOINT_BORDER_COLOR,
     126          38 :                   cppu::UnoType<sal_Int32>::get(),
     127             :                   beans::PropertyAttribute::BOUND
     128             :                   | beans::PropertyAttribute::MAYBEVOID         // "maybe auto"
     129          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     130             :     rOutProperties.push_back(
     131             :         Property( "BorderStyle",
     132             :                   PROP_DATAPOINT_BORDER_STYLE,
     133          38 :                   cppu::UnoType<drawing::LineStyle>::get(),
     134             :                   beans::PropertyAttribute::BOUND
     135          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     136             :     rOutProperties.push_back(
     137             :         Property( "BorderWidth",
     138             :                   PROP_DATAPOINT_BORDER_WIDTH,
     139          38 :                   cppu::UnoType<sal_Int32>::get(),
     140             :                   beans::PropertyAttribute::BOUND
     141          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     142             :     rOutProperties.push_back(
     143             :         Property( "BorderDashName",
     144             :                   PROP_DATAPOINT_BORDER_DASH_NAME,
     145          38 :                   cppu::UnoType<OUString>::get(),
     146             :                   beans::PropertyAttribute::BOUND
     147          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     148             :     rOutProperties.push_back(
     149             :         Property( "BorderTransparency",
     150             :                   PROP_DATAPOINT_BORDER_TRANSPARENCY,
     151          38 :                   cppu::UnoType<sal_Int16>::get(),
     152             :                   beans::PropertyAttribute::BOUND
     153          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     154             : 
     155             :     // Line Properties
     156             :     rOutProperties.push_back(
     157             :         Property( "LineStyle",
     158             :                   LinePropertiesHelper::PROP_LINE_STYLE,
     159          38 :                   cppu::UnoType<drawing::LineStyle>::get(),
     160             :                   beans::PropertyAttribute::BOUND
     161          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     162             :     rOutProperties.push_back(
     163             :         Property( "LineWidth",
     164             :                   LinePropertiesHelper::PROP_LINE_WIDTH,
     165          38 :                   cppu::UnoType<sal_Int32>::get(),
     166             :                   beans::PropertyAttribute::BOUND
     167          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     168             :     rOutProperties.push_back(
     169             :          Property( "LineDash",
     170             :                    LinePropertiesHelper::PROP_LINE_DASH,
     171          38 :                    cppu::UnoType<drawing::LineDash>::get(),
     172             :                    beans::PropertyAttribute::BOUND
     173          76 :                    | beans::PropertyAttribute::MAYBEVOID ));
     174             :     rOutProperties.push_back(
     175             :         Property( "LineDashName",
     176             :                   LinePropertiesHelper::PROP_LINE_DASH_NAME,
     177          38 :                   cppu::UnoType<OUString>::get(),
     178             :                   beans::PropertyAttribute::BOUND
     179          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     180             : 
     181             :     // FillProperties
     182             :     // bitmap properties
     183             :     rOutProperties.push_back(
     184             :         Property( "FillBitmapOffsetX",
     185             :                   FillProperties::PROP_FILL_BITMAP_OFFSETX,
     186          38 :                   cppu::UnoType<sal_Int16>::get(),
     187             :                   beans::PropertyAttribute::BOUND
     188          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     189             : 
     190             :     rOutProperties.push_back(
     191             :         Property( "FillBitmapOffsetY",
     192             :                   FillProperties::PROP_FILL_BITMAP_OFFSETY,
     193          38 :                   cppu::UnoType<sal_Int16>::get(),
     194             :                   beans::PropertyAttribute::BOUND
     195          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     196             : 
     197             :     rOutProperties.push_back(
     198             :         Property( "FillBitmapPositionOffsetX",
     199             :                   FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX,
     200          38 :                   cppu::UnoType<sal_Int16>::get(),
     201             :                   beans::PropertyAttribute::BOUND
     202          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     203             : 
     204             :     rOutProperties.push_back(
     205             :         Property( "FillBitmapPositionOffsetY",
     206             :                   FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY,
     207          38 :                   cppu::UnoType<sal_Int16>::get(),
     208             :                   beans::PropertyAttribute::BOUND
     209          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     210             : 
     211             :     rOutProperties.push_back(
     212             :         Property( "FillBitmapRectanglePoint",
     213             :                   FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT,
     214          38 :                   cppu::UnoType<drawing::RectanglePoint>::get(),
     215             :                   beans::PropertyAttribute::BOUND
     216          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     217             : 
     218             :     rOutProperties.push_back(
     219             :         Property( "FillBitmapLogicalSize",
     220             :                   FillProperties::PROP_FILL_BITMAP_LOGICALSIZE,
     221          38 :                   ::getBooleanCppuType(),
     222             :                   beans::PropertyAttribute::BOUND
     223          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     224             : 
     225             :     rOutProperties.push_back(
     226             :         Property( "FillBitmapSizeX",
     227             :                   FillProperties::PROP_FILL_BITMAP_SIZEX,
     228          38 :                   cppu::UnoType<sal_Int32>::get(),
     229             :                   beans::PropertyAttribute::BOUND
     230          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     231             : 
     232             :     rOutProperties.push_back(
     233             :         Property( "FillBitmapSizeY",
     234             :                   FillProperties::PROP_FILL_BITMAP_SIZEY,
     235          38 :                   cppu::UnoType<sal_Int32>::get(),
     236             :                   beans::PropertyAttribute::BOUND
     237          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     238             : 
     239             :     rOutProperties.push_back(
     240             :         Property( "FillBitmapMode",
     241             :                   FillProperties::PROP_FILL_BITMAP_MODE,
     242          38 :                   cppu::UnoType<drawing::BitmapMode>::get(),
     243             :                   beans::PropertyAttribute::BOUND
     244          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     245             : 
     246             :     // others
     247             :     rOutProperties.push_back(
     248             :         Property( "Symbol",
     249             :                   PROP_DATAPOINT_SYMBOL_PROP,
     250          38 :                   cppu::UnoType<chart2::Symbol>::get(),
     251             :                   beans::PropertyAttribute::BOUND
     252          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     253             :     rOutProperties.push_back(
     254             :         Property( "Offset",
     255             :                   PROP_DATAPOINT_OFFSET,
     256          38 :                   cppu::UnoType<double>::get(),
     257             :                   beans::PropertyAttribute::BOUND
     258          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     259             :     rOutProperties.push_back(
     260             :         Property( "Geometry3D",
     261             :                   PROP_DATAPOINT_GEOMETRY3D,
     262          38 :                   cppu::UnoType<sal_Int32>::get(),
     263             :                   beans::PropertyAttribute::BOUND
     264          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     265             : 
     266             :     rOutProperties.push_back(
     267             :         Property( CHART_UNONAME_NUMFMT,
     268             :                   PROP_DATAPOINT_NUMBER_FORMAT,
     269          38 :                   cppu::UnoType<sal_Int32>::get(),
     270             :                   beans::PropertyAttribute::BOUND
     271          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     272             : 
     273             :     rOutProperties.push_back(
     274             :         Property( CHART_UNONAME_LINK_TO_SRC_NUMFMT,
     275             :                   PROP_DATAPOINT_LINK_NUMBERFORMAT_TO_SOURCE,
     276          38 :                   ::getBooleanCppuType(),
     277             :                   beans::PropertyAttribute::BOUND
     278          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     279             : 
     280             :     //additional 'PercentageNumberFormat'
     281             :     rOutProperties.push_back(
     282             :         Property( "PercentageNumberFormat",
     283             :                   PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT,
     284          38 :                   cppu::UnoType<sal_Int32>::get(),
     285             :                   beans::PropertyAttribute::BOUND
     286          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     287             : 
     288             :     rOutProperties.push_back(
     289             :         Property( "LabelPlacement",
     290             :                   PROP_DATAPOINT_LABEL_PLACEMENT,
     291          38 :                   cppu::UnoType<sal_Int32>::get(),
     292             :                   beans::PropertyAttribute::BOUND
     293          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     294             : 
     295             :     rOutProperties.push_back(
     296             :         Property( "ReferencePageSize",
     297             :                   PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
     298          38 :                   cppu::UnoType<awt::Size>::get(),
     299             :                   beans::PropertyAttribute::BOUND
     300          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     301             : 
     302             :     rOutProperties.push_back(
     303             :         Property( "TextRotation",
     304             :                   PROP_DATAPOINT_TEXT_ROTATION,
     305          38 :                   cppu::UnoType<double>::get(),
     306             :                   beans::PropertyAttribute::BOUND
     307          76 :                   | 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          38 :                   cppu::UnoType<beans::XPropertySet>::get(),
     315             :                   beans::PropertyAttribute::BOUND
     316          76 :                   | 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          38 :                   cppu::UnoType<beans::XPropertySet>::get(),
     322             :                   beans::PropertyAttribute::BOUND
     323          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     324             :     rOutProperties.push_back(
     325             :         Property( "ShowErrorBox",
     326             :                   PROP_DATAPOINT_SHOW_ERROR_BOX,
     327          38 :                   ::getBooleanCppuType(),
     328             :                   beans::PropertyAttribute::BOUND
     329          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     330             :     rOutProperties.push_back(
     331             :         Property( "PercentDiagonal",
     332             :                   PROP_DATAPOINT_PERCENT_DIAGONAL,
     333          38 :                   cppu::UnoType<sal_Int16>::get(),
     334             :                   beans::PropertyAttribute::BOUND
     335          76 :                   | 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          38 :                   cppu::UnoType<chart2::DataPointLabel>::get(),
     343             :                   beans::PropertyAttribute::BOUND
     344          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     345             : 
     346             :     rOutProperties.push_back(
     347             :         Property( CHART_UNONAME_LABEL_SEP,
     348             :                   PROP_DATAPOINT_LABEL_SEPARATOR,
     349          38 :                   cppu::UnoType<OUString>::get(),
     350             :                   beans::PropertyAttribute::BOUND
     351          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     352             : 
     353             :     rOutProperties.push_back(
     354             :         Property( CHART_UNONAME_LABEL_BORDER_STYLE,
     355             :                   PROP_DATAPOINT_LABEL_BORDER_STYLE,
     356          38 :                   cppu::UnoType<drawing::LineStyle>::get(),
     357             :                   beans::PropertyAttribute::BOUND
     358          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     359             :     rOutProperties.push_back(
     360             :         Property( CHART_UNONAME_LABEL_BORDER_COLOR,
     361             :                   PROP_DATAPOINT_LABEL_BORDER_COLOR,
     362          38 :                   cppu::UnoType<sal_Int32>::get(),
     363             :                   beans::PropertyAttribute::BOUND
     364             :                   | beans::PropertyAttribute::MAYBEVOID         // "maybe auto"
     365          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     366             :     rOutProperties.push_back(
     367             :         Property( CHART_UNONAME_LABEL_BORDER_WIDTH,
     368             :                   PROP_DATAPOINT_LABEL_BORDER_WIDTH,
     369          38 :                   cppu::UnoType<sal_Int32>::get(),
     370             :                   beans::PropertyAttribute::BOUND
     371          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     372             :     rOutProperties.push_back(
     373             :          Property( CHART_UNONAME_LABEL_BORDER_DASH,
     374             :                    PROP_DATAPOINT_LABEL_BORDER_DASH,
     375          38 :                    cppu::UnoType<drawing::LineDash>::get(),
     376             :                    beans::PropertyAttribute::BOUND
     377          76 :                    | beans::PropertyAttribute::MAYBEVOID ));
     378             :     rOutProperties.push_back(
     379             :         Property( CHART_UNONAME_LABEL_BORDER_DASHNAME,
     380             :                   PROP_DATAPOINT_LABEL_BORDER_DASH_NAME,
     381          38 :                   cppu::UnoType<OUString>::get(),
     382             :                   beans::PropertyAttribute::BOUND
     383          76 :                   | beans::PropertyAttribute::MAYBEVOID ));
     384             :     rOutProperties.push_back(
     385             :         Property( CHART_UNONAME_LABEL_BORDER_TRANS,
     386             :                   PROP_DATAPOINT_LABEL_BORDER_TRANS,
     387          38 :                   cppu::UnoType<sal_Int16>::get(),
     388             :                   beans::PropertyAttribute::BOUND
     389          76 :                   | beans::PropertyAttribute::MAYBEDEFAULT ));
     390          38 : }
     391             : 
     392          26 : void DataPointProperties::AddDefaultsToMap(
     393             :     ::chart::tPropertyValueMap & rOutMap )
     394             : {
     395          26 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_COLOR, 0x0099ccff ); // blue 8
     396          26 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_TRANSPARENCY, 0 );
     397             : 
     398             :     //fill
     399          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_STYLE, drawing::FillStyle_SOLID );
     400          26 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME );
     401          26 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_GRADIENT_NAME );
     402          26 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_HATCH_NAME );
     403          26 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BITMAP_NAME );
     404          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_FILL_BACKGROUND, false );
     405             : 
     406             :     //border
     407          26 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_COLOR, 0x000000 ); // black
     408          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_STYLE, drawing::LineStyle_SOLID ); // drawing::LineStyle_NONE
     409          26 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_DATAPOINT_BORDER_WIDTH, 0 );
     410          26 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, PROP_DATAPOINT_BORDER_DASH_NAME );
     411          26 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_BORDER_TRANSPARENCY, 0 );
     412             : 
     413             :     //line
     414          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_STYLE, drawing::LineStyle_SOLID );
     415          26 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, LinePropertiesHelper::PROP_LINE_WIDTH, 0 );
     416          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH, drawing::LineDash());
     417          26 :     PropertyHelper::setEmptyPropertyValueDefault( rOutMap, LinePropertiesHelper::PROP_LINE_DASH_NAME );
     418             : 
     419             :     //fill bitmap
     420          26 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETX, 0 );
     421          26 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETY, 0 );
     422          26 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX, 0 );
     423          26 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETY, 0 );
     424          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_RECTANGLEPOINT, drawing::RectanglePoint_MIDDLE_MIDDLE );
     425          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_LOGICALSIZE, true );
     426             : 
     427          26 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEX, 0 );
     428          26 :     PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, FillProperties::PROP_FILL_BITMAP_SIZEY, 0 );
     429          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, FillProperties::PROP_FILL_BITMAP_MODE, drawing::BitmapMode_REPEAT );
     430             : 
     431             :     //others
     432          26 :     chart2::Symbol aSymbProp;
     433          26 :     aSymbProp.Style = chart2::SymbolStyle_NONE;
     434          26 :     aSymbProp.StandardSymbol = 0;
     435          26 :     aSymbProp.Size = awt::Size( 250, 250 ); // ca. 7pt x 7pt (7pt=246.94)
     436          26 :     aSymbProp.BorderColor = 0x000000;       // Black
     437          26 :     aSymbProp.FillColor = 0xee4000;         // OrangeRed2
     438          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_SYMBOL_PROP, aSymbProp );
     439             : 
     440          26 :     PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_OFFSET, 0.0 );
     441          26 :     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          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_X, uno::Reference< beans::XPropertySet >());
     445          26 :     PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATAPOINT_ERROR_BAR_Y, uno::Reference< beans::XPropertySet >());
     446          26 :     PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, PROP_DATAPOINT_PERCENT_DIAGONAL, 0 );
     447             : 
     448          26 :     PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_DATAPOINT_TEXT_ROTATION, 0.0 );
     449             : 
     450          26 :     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          26 :             ));
     461             : 
     462          26 :     PropertyHelper::setPropertyValueDefault< OUString >( rOutMap, PROP_DATAPOINT_LABEL_SEPARATOR, " " );
     463          26 :     PropertyHelper::setPropertyValueDefault<sal_Int32>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_STYLE, drawing::LineStyle_NONE);
     464          26 :     PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_COLOR);
     465          26 :     PropertyHelper::setPropertyValueDefault<sal_Int32>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_WIDTH, 0);
     466          26 :     PropertyHelper::setPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH, drawing::LineDash());
     467          26 :     PropertyHelper::setEmptyPropertyValueDefault(rOutMap, PROP_DATAPOINT_LABEL_BORDER_DASH_NAME);
     468          26 :     PropertyHelper::setPropertyValueDefault<sal_Int16>(rOutMap, PROP_DATAPOINT_LABEL_BORDER_TRANS, 0);
     469          26 : }
     470             : 
     471             : } //  namespace chart
     472             : 
     473             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10