merged tag ooo/OOO330_m14
[LibreOffice.git] / chart2 / source / controller / chartapiwrapper / WrappedSymbolProperties.cxx
blob4ca8f7161f6e37a8b7cf9d58fd4cb696463e8144
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_chart2.hxx"
31 #include "WrappedSymbolProperties.hxx"
32 #include "WrappedSeriesOrDiagramProperty.hxx"
33 #include "macros.hxx"
34 #include "FastPropertyIdRanges.hxx"
35 #include "ChartTypeHelper.hxx"
36 #include <com/sun/star/chart2/Symbol.hpp>
37 #include <com/sun/star/chart2/SymbolStyle.hpp>
38 #include <com/sun/star/awt/Size.hpp>
39 #include <com/sun/star/beans/PropertyAttribute.hpp>
40 #include <com/sun/star/chart/ChartSymbolType.hpp>
41 #include <com/sun/star/drawing/LineStyle.hpp>
43 #include <com/sun/star/graphic/XGraphicProvider.hpp>
45 // for UNO_NAME_GRAPHOBJ_URLPREFIX
46 #include <editeng/unoprnms.hxx>
48 // for Graphic
49 #include <vcl/graph.hxx>
50 // for GraphicObject
51 #include <svtools/grfmgr.hxx>
52 #include <vcl/outdev.hxx>
54 #include <comphelper/processfactory.hxx>
56 using namespace ::com::sun::star;
57 using ::com::sun::star::uno::Any;
58 using ::com::sun::star::uno::Reference;
59 using ::com::sun::star::uno::Sequence;
60 using ::com::sun::star::beans::Property;
61 using ::rtl::OUString;
63 //.............................................................................
64 namespace chart
66 namespace wrapper
70 //-----------------------------------------------------------------------------
71 //-----------------------------------------------------------------------------
72 //-----------------------------------------------------------------------------
74 class WrappedSymbolTypeProperty : public WrappedSeriesOrDiagramProperty< sal_Int32 >
76 public:
77 virtual sal_Int32 getValueFromSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet ) const;
78 virtual void setValueToSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet, sal_Int32 aNewValue ) const;
80 virtual Any getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const
81 throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException);
82 virtual beans::PropertyState getPropertyState( const Reference< beans::XPropertyState >& xInnerPropertyState ) const
83 throw (beans::UnknownPropertyException, uno::RuntimeException);
85 explicit WrappedSymbolTypeProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
86 tSeriesOrDiagramPropertyType ePropertyType );
87 virtual ~WrappedSymbolTypeProperty();
90 class WrappedSymbolBitmapURLProperty : public WrappedSeriesOrDiagramProperty< OUString >
92 public:
93 virtual OUString getValueFromSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet ) const;
94 virtual void setValueToSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet, OUString aNewGraphicURL ) const;
96 explicit WrappedSymbolBitmapURLProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
97 tSeriesOrDiagramPropertyType ePropertyType );
98 virtual ~WrappedSymbolBitmapURLProperty();
101 // this operator is not defined by default
102 bool operator!=( const awt::Size & rSize1, const awt::Size & rSize2 )
104 return (rSize1.Width != rSize2.Width) || (rSize1.Height != rSize2.Height);
107 class WrappedSymbolSizeProperty : public WrappedSeriesOrDiagramProperty< awt::Size >
109 public:
110 virtual awt::Size getValueFromSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet ) const;
111 virtual void setValueToSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet, awt::Size aNewSize ) const;
112 virtual beans::PropertyState getPropertyState( const Reference< beans::XPropertyState >& xInnerPropertyState ) const
113 throw (beans::UnknownPropertyException, uno::RuntimeException);
115 explicit WrappedSymbolSizeProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
116 tSeriesOrDiagramPropertyType ePropertyType );
117 virtual ~WrappedSymbolSizeProperty();
120 class WrappedSymbolAndLinesProperty : public WrappedSeriesOrDiagramProperty< sal_Bool >
122 public:
123 virtual sal_Bool getValueFromSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet ) const;
124 virtual void setValueToSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet, sal_Bool bDrawLines ) const;
125 virtual beans::PropertyState getPropertyState( const Reference< beans::XPropertyState >& xInnerPropertyState ) const
126 throw (beans::UnknownPropertyException, uno::RuntimeException);
128 explicit WrappedSymbolAndLinesProperty( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
129 tSeriesOrDiagramPropertyType ePropertyType );
130 virtual ~WrappedSymbolAndLinesProperty();
133 namespace
135 enum
137 //symbol properties
138 PROP_CHART_SYMBOL_TYPE = FAST_PROPERTY_ID_START_CHART_SYMBOL_PROP,
139 PROP_CHART_SYMBOL_BITMAP_URL,
140 PROP_CHART_SYMBOL_SIZE,
141 PROP_CHART_SYMBOL_AND_LINES
144 sal_Int32 lcl_getSymbolType( const ::com::sun::star::chart2::Symbol& rSymbol )
146 sal_Int32 nSymbol = ::com::sun::star::chart::ChartSymbolType::NONE;
147 switch( rSymbol.Style )
149 case chart2::SymbolStyle_NONE:
150 break;
151 case chart2::SymbolStyle_AUTO:
152 nSymbol = ::com::sun::star::chart::ChartSymbolType::AUTO;
153 break;
154 case chart2::SymbolStyle_STANDARD:
155 nSymbol = rSymbol.StandardSymbol%8;
156 break;
157 case chart2::SymbolStyle_POLYGON://new feature
158 nSymbol = ::com::sun::star::chart::ChartSymbolType::AUTO;
159 break;
160 case chart2::SymbolStyle_GRAPHIC:
161 nSymbol = ::com::sun::star::chart::ChartSymbolType::BITMAPURL;
162 break;
163 default:
164 nSymbol = ::com::sun::star::chart::ChartSymbolType::AUTO;
165 break;
167 return nSymbol;
169 void lcl_setSymbolTypeToSymbol( sal_Int32 nSymbolType, chart2::Symbol& rSymbol )
171 switch( nSymbolType )
173 case ::com::sun::star::chart::ChartSymbolType::NONE:
174 rSymbol.Style = chart2::SymbolStyle_NONE;
175 break;
176 case ::com::sun::star::chart::ChartSymbolType::AUTO:
177 rSymbol.Style = chart2::SymbolStyle_AUTO;
178 break;
179 case ::com::sun::star::chart::ChartSymbolType::BITMAPURL:
180 rSymbol.Style = chart2::SymbolStyle_GRAPHIC;
181 break;
182 default:
183 rSymbol.Style = chart2::SymbolStyle_STANDARD;
184 rSymbol.StandardSymbol = nSymbolType;
185 break;
189 void lcl_addWrappedProperties( std::vector< WrappedProperty* >& rList
190 , ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact
191 , tSeriesOrDiagramPropertyType ePropertyType )
193 rList.push_back( new WrappedSymbolTypeProperty( spChart2ModelContact, ePropertyType ) );
194 rList.push_back( new WrappedSymbolBitmapURLProperty( spChart2ModelContact, ePropertyType ) );
195 rList.push_back( new WrappedSymbolSizeProperty( spChart2ModelContact, ePropertyType ) );
196 rList.push_back( new WrappedSymbolAndLinesProperty( spChart2ModelContact, ePropertyType ) );
199 }//anonymous namespace
201 //-----------------------------------------------------------------------------
202 //-----------------------------------------------------------------------------
203 //-----------------------------------------------------------------------------
204 //static
205 void WrappedSymbolProperties::addProperties( ::std::vector< Property > & rOutProperties )
207 rOutProperties.push_back(
208 Property( C2U( "SymbolType" ),
209 PROP_CHART_SYMBOL_TYPE,
210 ::getCppuType( reinterpret_cast< sal_Int32 * >(0)),
211 beans::PropertyAttribute::BOUND
212 | beans::PropertyAttribute::MAYBEDEFAULT ));
214 rOutProperties.push_back(
215 Property( C2U( "SymbolBitmapURL" ),
216 PROP_CHART_SYMBOL_BITMAP_URL,
217 ::getCppuType( reinterpret_cast< ::rtl::OUString * >(0)),
218 beans::PropertyAttribute::BOUND
219 | beans::PropertyAttribute::MAYBEDEFAULT ));
221 rOutProperties.push_back(
222 Property( C2U( "SymbolSize" ),
223 PROP_CHART_SYMBOL_SIZE,
224 ::getCppuType( reinterpret_cast< awt::Size * >(0)),
225 beans::PropertyAttribute::BOUND
226 | beans::PropertyAttribute::MAYBEDEFAULT ));
228 rOutProperties.push_back(
229 Property( C2U( "Lines" ),
230 PROP_CHART_SYMBOL_AND_LINES,
231 ::getBooleanCppuType(),
232 beans::PropertyAttribute::BOUND
233 | beans::PropertyAttribute::MAYBEDEFAULT ));
236 //-----------------------------------------------------------------------------
237 //-----------------------------------------------------------------------------
239 //static
240 void WrappedSymbolProperties::addWrappedPropertiesForSeries( std::vector< WrappedProperty* >& rList
241 , ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
243 lcl_addWrappedProperties( rList, spChart2ModelContact, DATA_SERIES );
246 //-----------------------------------------------------------------------------
247 //-----------------------------------------------------------------------------
249 //static
250 void WrappedSymbolProperties::addWrappedPropertiesForDiagram( std::vector< WrappedProperty* >& rList
251 , ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact )
253 lcl_addWrappedProperties( rList, spChart2ModelContact, DIAGRAM );
256 //-----------------------------------------------------------------------------
257 //-----------------------------------------------------------------------------
258 //-----------------------------------------------------------------------------
260 WrappedSymbolTypeProperty::WrappedSymbolTypeProperty(
261 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
262 tSeriesOrDiagramPropertyType ePropertyType )
263 : WrappedSeriesOrDiagramProperty< sal_Int32 >( C2U("SymbolType")
264 , uno::makeAny( ::com::sun::star::chart::ChartSymbolType::NONE )
265 , spChart2ModelContact
266 , ePropertyType )
269 WrappedSymbolTypeProperty::~WrappedSymbolTypeProperty()
273 sal_Int32 WrappedSymbolTypeProperty::getValueFromSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet ) const
275 sal_Int32 aRet = 0;
276 m_aDefaultValue >>= aRet;
277 chart2::Symbol aSymbol;
278 if( xSeriesPropertySet.is() && ( xSeriesPropertySet->getPropertyValue(C2U("Symbol")) >>= aSymbol ) )
279 aRet = lcl_getSymbolType( aSymbol );
280 return aRet;
283 void WrappedSymbolTypeProperty::setValueToSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet, sal_Int32 nSymbolType ) const
285 if(!xSeriesPropertySet.is())
286 return;
288 chart2::Symbol aSymbol;
289 xSeriesPropertySet->getPropertyValue(C2U("Symbol")) >>= aSymbol;
291 lcl_setSymbolTypeToSymbol( nSymbolType, aSymbol );
292 xSeriesPropertySet->setPropertyValue( C2U("Symbol"), uno::makeAny( aSymbol ) );
295 Any WrappedSymbolTypeProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const
296 throw ( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
298 //the old chart (< OOo 2.3) needs symbol-type="automatic" at the plot-area if any of the series should be able to have symbols
299 if( m_ePropertyType == DIAGRAM )
301 bool bHasAmbiguousValue = false;
302 sal_Int32 aValue = 0;
303 if( detectInnerValue( aValue, bHasAmbiguousValue ) )
305 if(bHasAmbiguousValue)
307 m_aOuterValue = uno::makeAny( ::com::sun::star::chart::ChartSymbolType::AUTO );
309 else
311 if( ::com::sun::star::chart::ChartSymbolType::NONE == aValue )
312 m_aOuterValue = uno::makeAny( ::com::sun::star::chart::ChartSymbolType::NONE );
313 else
314 m_aOuterValue = uno::makeAny( ::com::sun::star::chart::ChartSymbolType::AUTO );
317 return m_aOuterValue;
319 else
321 ::com::sun::star::uno::Any aRet( m_aDefaultValue );
322 aRet <<= getValueFromSeries( xInnerPropertySet );
323 return aRet;
327 beans::PropertyState WrappedSymbolTypeProperty::getPropertyState( const Reference< beans::XPropertyState >& xInnerPropertyState ) const
328 throw (beans::UnknownPropertyException, uno::RuntimeException)
330 //the special situation for this property here is that the diagram default can be
331 //different from the normal default and different from all sinlges series values
332 //so we need to return PropertyState_DIRECT_VALUE for more cases
334 if( m_ePropertyType == DATA_SERIES && //single series or point
335 m_spChart2ModelContact.get())
337 Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
338 Reference< chart2::XDataSeries > xSeries( xInnerPropertyState, uno::UNO_QUERY );
339 Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeOfSeries( xDiagram, xSeries ) );
340 if( ChartTypeHelper::isSupportingSymbolProperties( xChartType, 2 ) )
341 return beans::PropertyState_DIRECT_VALUE;
343 return WrappedProperty::getPropertyState( xInnerPropertyState );
346 //-----------------------------------------------------------------------------
347 //-----------------------------------------------------------------------------
348 //-----------------------------------------------------------------------------
350 WrappedSymbolBitmapURLProperty::WrappedSymbolBitmapURLProperty(
351 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
352 tSeriesOrDiagramPropertyType ePropertyType )
353 : WrappedSeriesOrDiagramProperty< OUString >( C2U("SymbolBitmapURL")
354 , uno::makeAny( OUString() ), spChart2ModelContact, ePropertyType )
358 WrappedSymbolBitmapURLProperty::~WrappedSymbolBitmapURLProperty()
362 OUString WrappedSymbolBitmapURLProperty::getValueFromSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet ) const
364 OUString aRet;
365 m_aDefaultValue >>= aRet;
366 chart2::Symbol aSymbol;
367 if( xSeriesPropertySet.is() && ( xSeriesPropertySet->getPropertyValue(C2U("Symbol")) >>= aSymbol )
368 && aSymbol.Graphic.is())
370 GraphicObject aGrObj( Graphic( aSymbol.Graphic ));
371 aRet = OUString( RTL_CONSTASCII_USTRINGPARAM( UNO_NAME_GRAPHOBJ_URLPREFIX ));
372 aRet += OUString::createFromAscii( aGrObj.GetUniqueID().GetBuffer());
374 return aRet;
377 void WrappedSymbolBitmapURLProperty::setValueToSeries(
378 const Reference< beans::XPropertySet >& xSeriesPropertySet,
379 OUString aNewGraphicURL ) const
381 if(!xSeriesPropertySet.is())
382 return;
384 chart2::Symbol aSymbol;
385 if( xSeriesPropertySet->getPropertyValue(C2U("Symbol")) >>= aSymbol )
387 bool bMatchesPrefix =
388 aNewGraphicURL.matchAsciiL( RTL_CONSTASCII_STRINGPARAM( UNO_NAME_GRAPHOBJ_URLPREFIX ));
389 if( bMatchesPrefix )
391 GraphicObject aGrObj = GraphicObject(
392 ByteString( U2C( aNewGraphicURL.copy( sizeof( UNO_NAME_GRAPHOBJ_URLPREFIX ) - 1 ))));
393 aSymbol.Graphic.set( aGrObj.GetGraphic().GetXGraphic());
394 xSeriesPropertySet->setPropertyValue( C2U("Symbol"), uno::makeAny( aSymbol ) );
396 else
400 // @todo: get factory from some context?
401 Reference< lang::XMultiServiceFactory > xFact( comphelper::getProcessServiceFactory(), uno::UNO_QUERY_THROW );
402 Reference< graphic::XGraphicProvider > xGraphProv(
403 xFact->createInstance( C2U("com.sun.star.graphic.GraphicProvider")), uno::UNO_QUERY_THROW );
404 Sequence< beans::PropertyValue > aArgs(1);
405 aArgs[0] = beans::PropertyValue(
406 C2U("URL"), -1, uno::makeAny( aNewGraphicURL ),
407 beans::PropertyState_DIRECT_VALUE );
408 aSymbol.Graphic.set( xGraphProv->queryGraphic( aArgs ));
409 OSL_ENSURE( aSymbol.Graphic.is(), "Invalid URL for Symbol Bitmap" );
410 xSeriesPropertySet->setPropertyValue( C2U("Symbol"), uno::makeAny( aSymbol ) );
412 catch( const uno::Exception & ex )
414 ASSERT_EXCEPTION( ex );
421 //-----------------------------------------------------------------------------
422 //-----------------------------------------------------------------------------
423 //-----------------------------------------------------------------------------
425 namespace
428 void lcl_correctSymbolSizeForBitmaps( chart2::Symbol& rSymbol )
430 if( rSymbol.Style != chart2::SymbolStyle_GRAPHIC )
431 return;
432 if( rSymbol.Size.Width != -1 )
433 return;
434 if( rSymbol.Size.Height != -1 )
435 return;
437 //find a good automatic size
440 const awt::Size aDefaultSize(250,250);
441 awt::Size aSize = aDefaultSize;
442 uno::Reference< beans::XPropertySet > xProp( rSymbol.Graphic, uno::UNO_QUERY );
443 if( xProp.is() )
445 bool bFoundSize = false;
448 if( (xProp->getPropertyValue( C2U( "Size100thMM" ) ) >>= aSize) )
450 if( aSize.Width == 0 && aSize.Height == 0 )
451 aSize = aDefaultSize;
452 else
453 bFoundSize = true;
456 catch( uno::Exception& e )
458 ASSERT_EXCEPTION( e );
461 if(!bFoundSize)
463 awt::Size aAWTPixelSize(10,10);
464 if( (xProp->getPropertyValue( C2U( "SizePixel" ) ) >>= aAWTPixelSize) )
466 Size aPixelSize(aAWTPixelSize.Width,aAWTPixelSize.Height);
467 Size aNewSize = ( OutputDevice::LogicToLogic( aPixelSize, MAP_PIXEL, MAP_100TH_MM ));
468 aSize = awt::Size( aNewSize.Width(), aNewSize.Height() );
470 if( aSize.Width == 0 && aSize.Height == 0 )
471 aSize = aDefaultSize;
475 rSymbol.Size = aSize;
477 catch( uno::Exception& e )
479 ASSERT_EXCEPTION( e );
483 }//end anonymous namespace
485 WrappedSymbolSizeProperty::WrappedSymbolSizeProperty(
486 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
487 tSeriesOrDiagramPropertyType ePropertyType )
488 : WrappedSeriesOrDiagramProperty< awt::Size >( C2U("SymbolSize")
489 , uno::makeAny( awt::Size(250,250) ), spChart2ModelContact, ePropertyType )
493 WrappedSymbolSizeProperty::~WrappedSymbolSizeProperty()
497 awt::Size WrappedSymbolSizeProperty::getValueFromSeries( const Reference< beans::XPropertySet >& xSeriesPropertySet ) const
499 awt::Size aRet;
500 m_aDefaultValue >>= aRet;
501 chart2::Symbol aSymbol;
502 if( xSeriesPropertySet.is() && ( xSeriesPropertySet->getPropertyValue(C2U("Symbol")) >>= aSymbol ))
503 aRet = aSymbol.Size;
504 return aRet;
507 void WrappedSymbolSizeProperty::setValueToSeries(
508 const Reference< beans::XPropertySet >& xSeriesPropertySet,
509 awt::Size aNewSize ) const
511 if(!xSeriesPropertySet.is())
512 return;
514 chart2::Symbol aSymbol;
515 if( xSeriesPropertySet->getPropertyValue(C2U("Symbol")) >>= aSymbol )
517 aSymbol.Size = aNewSize;
518 lcl_correctSymbolSizeForBitmaps(aSymbol);
519 xSeriesPropertySet->setPropertyValue( C2U("Symbol"), uno::makeAny( aSymbol ) );
523 beans::PropertyState WrappedSymbolSizeProperty::getPropertyState( const Reference< beans::XPropertyState >& xInnerPropertyState ) const
524 throw (beans::UnknownPropertyException, uno::RuntimeException)
526 //only export symbol size if necessary
527 if( m_ePropertyType == DIAGRAM )
528 return beans::PropertyState_DEFAULT_VALUE;
532 chart2::Symbol aSymbol;
533 Reference< beans::XPropertySet > xSeriesPropertySet( xInnerPropertyState, uno::UNO_QUERY );
534 if( xSeriesPropertySet.is() && ( xSeriesPropertySet->getPropertyValue(C2U("Symbol")) >>= aSymbol ))
536 if( chart2::SymbolStyle_NONE != aSymbol.Style )
537 return beans::PropertyState_DIRECT_VALUE;
540 catch( const uno::Exception & ex )
542 ASSERT_EXCEPTION( ex );
544 return beans::PropertyState_DEFAULT_VALUE;
547 //-----------------------------------------------------------------------------
548 //-----------------------------------------------------------------------------
549 //-----------------------------------------------------------------------------
551 WrappedSymbolAndLinesProperty::WrappedSymbolAndLinesProperty(
552 ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
553 tSeriesOrDiagramPropertyType ePropertyType )
554 : WrappedSeriesOrDiagramProperty< sal_Bool >( C2U("Lines")
555 , uno::makeAny( sal_True ), spChart2ModelContact, ePropertyType )
559 WrappedSymbolAndLinesProperty::~WrappedSymbolAndLinesProperty()
563 sal_Bool WrappedSymbolAndLinesProperty::getValueFromSeries( const Reference< beans::XPropertySet >& /*xSeriesPropertySet*/ ) const
565 //do not export this property anymore, instead use a linestyle none for no lines
566 return sal_True;
569 void WrappedSymbolAndLinesProperty::setValueToSeries(
570 const Reference< beans::XPropertySet >& xSeriesPropertySet,
571 sal_Bool bDrawLines ) const
573 if(!xSeriesPropertySet.is())
574 return;
576 drawing::LineStyle eLineStyle( bDrawLines ? drawing::LineStyle_SOLID : drawing::LineStyle_NONE );
577 xSeriesPropertySet->setPropertyValue( C2U("LineStyle"), uno::makeAny( eLineStyle ) );
580 beans::PropertyState WrappedSymbolAndLinesProperty::getPropertyState( const Reference< beans::XPropertyState >& /*xInnerPropertyState*/ ) const
581 throw (beans::UnknownPropertyException, uno::RuntimeException)
583 //do not export this property anymore, instead use a linestyle none for no lines
584 return beans::PropertyState_DEFAULT_VALUE;
587 //-----------------------------------------------------------------------------
588 //-----------------------------------------------------------------------------
589 //-----------------------------------------------------------------------------
591 } //namespace wrapper
592 } //namespace chart
593 //.............................................................................