1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
29 namespace com
{ namespace sun
{ namespace star
{ namespace beans
{ class XMultiPropertySet
; } } } }
30 namespace com
{ namespace sun
{ namespace star
{ namespace beans
{ struct Property
; } } } }
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
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
,
51 // PROP_CHAR_BACKGROUND_COLOR,
52 // PROP_CHAR_BACKGROUND_TRANSPARENCY, alpha channel in COLOR
54 PROP_CHAR_CHAR_HEIGHT
,
56 PROP_CHAR_UNDERLINE_COLOR
,
57 PROP_CHAR_UNDERLINE_HAS_COLOR
,
59 PROP_CHAR_OVERLINE_COLOR
,
60 PROP_CHAR_OVERLINE_HAS_COLOR
,
63 PROP_CHAR_AUTO_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,
76 //-- PROP_CHAR_KEEP_TOGETHER,
77 //-- PROP_CHAR_NO_LINE_BREAK,
81 //-- PROP_CHAR_COMBINE_IS_ON,
82 //-- PROP_CHAR_COMBINE_PREFIX,
83 //-- PROP_CHAR_COMBINE_SUFFIX,
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
,
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
);
137 // INCLUDED_CHART2_SOURCE_INC_CHARACTERPROPERTIES_HXX
140 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */