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 .
21 #include "PropertyHelper.hxx"
22 #include "FastPropertyIdRanges.hxx"
23 #include "charttoolsdllapi.hxx"
24 #include <com/sun/star/awt/FontDescriptor.hpp>
28 namespace com::sun::star::beans
{ class XMultiPropertySet
; }
29 namespace com::sun::star::beans
{ struct Property
; }
34 // implements services
35 // com.sun.star.style.CharacterProperties
36 // com.sun.star.style.CharacterPropertiesAsian
37 // com.sun.star.style.CharacterPropertiesComplex
38 namespace CharacterProperties
40 // FastProperty Ids for properties
43 // com.sun.star.style.CharacterProperties
44 PROP_CHAR_FONT_NAME
= FAST_PROPERTY_ID_START_CHAR_PROP
, // ?
45 PROP_CHAR_FONT_STYLE_NAME
,
46 PROP_CHAR_FONT_FAMILY
,
47 PROP_CHAR_FONT_CHAR_SET
,
50 // PROP_CHAR_BACKGROUND_COLOR,
51 // PROP_CHAR_BACKGROUND_TRANSPARENCY, alpha channel in COLOR
53 PROP_CHAR_CHAR_HEIGHT
,
55 PROP_CHAR_UNDERLINE_COLOR
,
56 PROP_CHAR_UNDERLINE_HAS_COLOR
,
58 PROP_CHAR_OVERLINE_COLOR
,
59 PROP_CHAR_OVERLINE_HAS_COLOR
,
62 PROP_CHAR_AUTO_KERNING
,
64 // PROP_CHAR_CASE_MAPPING,
65 // PROP_CHAR_ROTATION,
66 //-- PROP_CHAR_ROTATION_IS_FIT_TO_LINE,
67 // PROP_CHAR_SCALE_WIDTH,
68 PROP_CHAR_ESCAPEMENT_HEIGHT
,
70 // PROP_CHAR_CROSSED_OUT,
75 //-- PROP_CHAR_KEEP_TOGETHER,
76 //-- PROP_CHAR_NO_LINE_BREAK,
80 //-- PROP_CHAR_COMBINE_IS_ON,
81 //-- PROP_CHAR_COMBINE_PREFIX,
82 //-- PROP_CHAR_COMBINE_SUFFIX,
85 // PROP_CHAR_RUBY_TEXT,
86 // PROP_CHAR_RUBY_ADJUST,
87 // PROP_CHAR_RUBY_STYLE_NAME,
88 // PROP_CHAR_RUBY_IS_ABOVE,
89 // PROP_CHAR_INHIBIT_HYPHENATION,
91 // Asian (com.sun.star.style.CharacterPropertiesAsian)
92 PROP_CHAR_ASIAN_FONT_NAME
,
93 PROP_CHAR_ASIAN_FONT_STYLE_NAME
,
94 PROP_CHAR_ASIAN_FONT_FAMILY
,
95 PROP_CHAR_ASIAN_CHAR_SET
,
96 PROP_CHAR_ASIAN_FONT_PITCH
,
97 PROP_CHAR_ASIAN_CHAR_HEIGHT
,
98 PROP_CHAR_ASIAN_WEIGHT
,
99 PROP_CHAR_ASIAN_POSTURE
,
100 PROP_CHAR_ASIAN_LOCALE
,
101 //-- PROP_CHAR_ASIAN_USE_SCRIPT_TYPE_DISTANCE,
102 //-- PROP_CHAR_ASIAN_USE_FORBIDDEN_RULES,
103 //-- PROP_CHAR_ASIAN_HANGING_PUNCTUATION_ALLOWED,
105 // Complex Text Layout (com.sun.star.style.CharacterPropertiesComplex)
106 PROP_CHAR_COMPLEX_FONT_NAME
,
107 PROP_CHAR_COMPLEX_FONT_STYLE_NAME
,
108 PROP_CHAR_COMPLEX_FONT_FAMILY
,
109 PROP_CHAR_COMPLEX_CHAR_SET
,
110 PROP_CHAR_COMPLEX_FONT_PITCH
,
111 PROP_CHAR_COMPLEX_CHAR_HEIGHT
,
112 PROP_CHAR_COMPLEX_WEIGHT
,
113 PROP_CHAR_COMPLEX_POSTURE
,
114 PROP_CHAR_COMPLEX_LOCALE
,
115 PROP_PARA_IS_CHARACTER_DISTANCE
,
120 FAST_PROPERTY_ID_END_CHAR_PROP
123 UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS
) void AddPropertiesToVector(
124 std::vector
< css::beans::Property
> & rOutProperties
);
126 UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS
) void AddDefaultsToMap( ::chart::tPropertyValueMap
& rOutMap
);
128 UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS
) bool IsCharacterPropertyHandle( sal_Int32 nHandle
);
130 UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS
) css::awt::FontDescriptor
createFontDescriptorFromPropertySet(
131 const css::uno::Reference
< css::beans::XMultiPropertySet
> & xMultiPropSet
);
136 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */