LibreOffice Module chart2 (master) 1
CharacterProperties.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include "PropertyHelper.hxx"
23#include "charttoolsdllapi.hxx"
24#include <com/sun/star/awt/FontDescriptor.hpp>
25
26#include <vector>
27
28namespace com::sun::star::beans { class XMultiPropertySet; }
29namespace com::sun::star::beans { struct Property; }
30
31namespace chart
32{
33
34// implements services
35// com.sun.star.style.CharacterProperties
36// com.sun.star.style.CharacterPropertiesAsian
37// com.sun.star.style.CharacterPropertiesComplex
38namespace CharacterProperties
39{
40 // FastProperty Ids for properties
41 enum
42 {
43 // com.sun.star.style.CharacterProperties
50// PROP_CHAR_BACKGROUND_COLOR,
51// PROP_CHAR_BACKGROUND_TRANSPARENCY, alpha channel in COLOR
64// PROP_CHAR_CASE_MAPPING,
65// PROP_CHAR_ROTATION,
66//-- PROP_CHAR_ROTATION_IS_FIT_TO_LINE,
67// PROP_CHAR_SCALE_WIDTH,
69
70// PROP_CHAR_CROSSED_OUT,
73// PROP_CHAR_FLASH,
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,
83
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,
90
91 // Asian (com.sun.star.style.CharacterPropertiesAsian)
101//-- PROP_CHAR_ASIAN_USE_SCRIPT_TYPE_DISTANCE,
102//-- PROP_CHAR_ASIAN_USE_FORBIDDEN_RULES,
103//-- PROP_CHAR_ASIAN_HANGING_PUNCTUATION_ALLOWED,
104
105 // Complex Text Layout (com.sun.star.style.CharacterPropertiesComplex)
116
118
119 // don't use
121 };
122
124 std::vector< css::beans::Property > & rOutProperties );
125
127
128 OOO_DLLPUBLIC_CHARTTOOLS bool IsCharacterPropertyHandle( sal_Int32 nHandle );
129
131 const css::uno::Reference< css::beans::XMultiPropertySet > & xMultiPropSet );
132}
133
134} // namespace chart
135
136/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define OOO_DLLPUBLIC_CHARTTOOLS
OOO_DLLPUBLIC_CHARTTOOLS css::awt::FontDescriptor createFontDescriptorFromPropertySet(const css::uno::Reference< css::beans::XMultiPropertySet > &xMultiPropSet)
OOO_DLLPUBLIC_CHARTTOOLS void AddDefaultsToMap(::chart::tPropertyValueMap &rOutMap)
OOO_DLLPUBLIC_CHARTTOOLS bool IsCharacterPropertyHandle(sal_Int32 nHandle)
OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
@ FAST_PROPERTY_ID_START_CHAR_PROP
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap