Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / chart2 / source / inc / CharacterProperties.hxx
blobfe22e7b9a0e523ae054b72129049731f0666241e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_INC_CHARACTERPROPERTIES_HXX
20 #define INCLUDED_CHART2_SOURCE_INC_CHARACTERPROPERTIES_HXX
22 #include "PropertyHelper.hxx"
23 #include "FastPropertyIdRanges.hxx"
24 #include "charttoolsdllapi.hxx"
25 #include <com/sun/star/awt/FontDescriptor.hpp>
27 #include <vector>
29 namespace com { namespace sun { namespace star { namespace beans { class XMultiPropertySet; } } } }
30 namespace com { namespace sun { namespace star { namespace beans { struct Property; } } } }
32 namespace chart
35 // implements services
36 // com.sun.star.style.CharacterProperties
37 // com.sun.star.style.CharacterPropertiesAsian
38 // com.sun.star.style.CharacterPropertiesComplex
39 namespace CharacterProperties
41 // FastProperty Ids for properties
42 enum
44 // com.sun.star.style.CharacterProperties
45 PROP_CHAR_FONT_NAME = FAST_PROPERTY_ID_START_CHAR_PROP, // ?
46 PROP_CHAR_FONT_STYLE_NAME,
47 PROP_CHAR_FONT_FAMILY,
48 PROP_CHAR_FONT_CHAR_SET,
49 PROP_CHAR_FONT_PITCH,
50 PROP_CHAR_COLOR,
51 // PROP_CHAR_BACKGROUND_COLOR,
52 // PROP_CHAR_BACKGROUND_TRANSPARENCY, alpha channel in COLOR
53 PROP_CHAR_ESCAPEMENT,
54 PROP_CHAR_CHAR_HEIGHT,
55 PROP_CHAR_UNDERLINE,
56 PROP_CHAR_UNDERLINE_COLOR,
57 PROP_CHAR_UNDERLINE_HAS_COLOR,
58 PROP_CHAR_OVERLINE,
59 PROP_CHAR_OVERLINE_COLOR,
60 PROP_CHAR_OVERLINE_HAS_COLOR,
61 PROP_CHAR_WEIGHT,
62 PROP_CHAR_POSTURE,
63 PROP_CHAR_AUTO_KERNING,
64 PROP_CHAR_KERNING,
65 // PROP_CHAR_CASE_MAPPING,
66 // PROP_CHAR_ROTATION,
67 //-- PROP_CHAR_ROTATION_IS_FIT_TO_LINE,
68 // PROP_CHAR_SCALE_WIDTH,
69 PROP_CHAR_ESCAPEMENT_HEIGHT,
71 // PROP_CHAR_CROSSED_OUT,
72 PROP_CHAR_STRIKE_OUT,
73 PROP_CHAR_WORD_MODE,
74 // PROP_CHAR_FLASH,
75 PROP_CHAR_LOCALE,
76 //-- PROP_CHAR_KEEP_TOGETHER,
77 //-- PROP_CHAR_NO_LINE_BREAK,
78 PROP_CHAR_SHADOWED,
79 PROP_CHAR_CONTOURED,
80 PROP_CHAR_RELIEF,
81 //-- PROP_CHAR_COMBINE_IS_ON,
82 //-- PROP_CHAR_COMBINE_PREFIX,
83 //-- PROP_CHAR_COMBINE_SUFFIX,
85 PROP_CHAR_EMPHASIS,
86 // PROP_CHAR_RUBY_TEXT,
87 // PROP_CHAR_RUBY_ADJUST,
88 // PROP_CHAR_RUBY_STYLE_NAME,
89 // PROP_CHAR_RUBY_IS_ABOVE,
90 // PROP_CHAR_INHIBIT_HYPHENATION,
92 // Asian (com.sun.star.style.CharacterPropertiesAsian)
93 PROP_CHAR_ASIAN_FONT_NAME,
94 PROP_CHAR_ASIAN_FONT_STYLE_NAME,
95 PROP_CHAR_ASIAN_FONT_FAMILY,
96 PROP_CHAR_ASIAN_CHAR_SET,
97 PROP_CHAR_ASIAN_FONT_PITCH,
98 PROP_CHAR_ASIAN_CHAR_HEIGHT,
99 PROP_CHAR_ASIAN_WEIGHT,
100 PROP_CHAR_ASIAN_POSTURE,
101 PROP_CHAR_ASIAN_LOCALE,
102 //-- PROP_CHAR_ASIAN_USE_SCRIPT_TYPE_DISTANCE,
103 //-- PROP_CHAR_ASIAN_USE_FORBIDDEN_RULES,
104 //-- PROP_CHAR_ASIAN_HANGING_PUNCTUATION_ALLOWED,
106 // Complex Text Layout (com.sun.star.style.CharacterPropertiesComplex)
107 PROP_CHAR_COMPLEX_FONT_NAME,
108 PROP_CHAR_COMPLEX_FONT_STYLE_NAME,
109 PROP_CHAR_COMPLEX_FONT_FAMILY,
110 PROP_CHAR_COMPLEX_CHAR_SET,
111 PROP_CHAR_COMPLEX_FONT_PITCH,
112 PROP_CHAR_COMPLEX_CHAR_HEIGHT,
113 PROP_CHAR_COMPLEX_WEIGHT,
114 PROP_CHAR_COMPLEX_POSTURE,
115 PROP_CHAR_COMPLEX_LOCALE,
116 PROP_PARA_IS_CHARACTER_DISTANCE,
118 PROP_WRITING_MODE,
120 // don't use
121 FAST_PROPERTY_ID_END_CHAR_PROP
124 OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(
125 std::vector< css::beans::Property > & rOutProperties );
127 OOO_DLLPUBLIC_CHARTTOOLS void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
129 OOO_DLLPUBLIC_CHARTTOOLS bool IsCharacterPropertyHandle( sal_Int32 nHandle );
131 OOO_DLLPUBLIC_CHARTTOOLS css::awt::FontDescriptor createFontDescriptorFromPropertySet(
132 const css::uno::Reference< css::beans::XMultiPropertySet > & xMultiPropSet );
135 } // namespace chart
137 // INCLUDED_CHART2_SOURCE_INC_CHARACTERPROPERTIES_HXX
138 #endif
140 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */