Bump for 3.6-28
[LibreOffice.git] / chart2 / source / inc / LineProperties.hxx
blobf4f30761024bf34e292d1d9536823dbb90ec8b50
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef CHART_LINEPROPERTIES_HXX
29 #define CHART_LINEPROPERTIES_HXX
31 #include "PropertyHelper.hxx"
32 #include "FastPropertyIdRanges.hxx"
33 #include "charttoolsdllapi.hxx"
34 #include <com/sun/star/beans/Property.hpp>
36 #include <vector>
38 namespace chart
41 // implements service LineProperties
42 class OOO_DLLPUBLIC_CHARTTOOLS LineProperties
44 public:
45 // FastProperty Ids for properties
46 enum
48 // com.sun.star.drawing.LineProperties
49 PROP_LINE_STYLE = FAST_PROPERTY_ID_START_LINE_PROP,
50 PROP_LINE_DASH,
51 PROP_LINE_DASH_NAME, //not in service description
52 PROP_LINE_COLOR,
53 PROP_LINE_TRANSPARENCE,
54 PROP_LINE_WIDTH,
55 PROP_LINE_JOINT
58 static void AddPropertiesToVector(
59 ::std::vector< ::com::sun::star::beans::Property > & rOutProperties );
61 static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
63 SAL_DLLPRIVATE static bool IsLineVisible( const ::com::sun::star::uno::Reference<
64 ::com::sun::star::beans::XPropertySet >& xLineProperties );
65 SAL_DLLPRIVATE static void SetLineVisible( const ::com::sun::star::uno::Reference<
66 ::com::sun::star::beans::XPropertySet >& xLineProperties );
67 static void SetLineInvisible( const ::com::sun::star::uno::Reference<
68 ::com::sun::star::beans::XPropertySet >& xLineProperties );
70 private:
71 // not implemented
72 LineProperties();
75 } // namespace chart
77 // CHART_LINEPROPERTIES_HXX
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */