1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef CHART_CHARACTERPROPERTIES_HXX 28*cdf0e10cSrcweir #define CHART_CHARACTERPROPERTIES_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir #include "PropertyHelper.hxx" 31*cdf0e10cSrcweir #include "FastPropertyIdRanges.hxx" 32*cdf0e10cSrcweir #include "charttoolsdllapi.hxx" 33*cdf0e10cSrcweir #include <com/sun/star/beans/Property.hpp> 34*cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertySet.hpp> 35*cdf0e10cSrcweir #include <com/sun/star/awt/FontDescriptor.hpp> 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir #include <vector> 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir namespace chart 40*cdf0e10cSrcweir { 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir // implements services 43*cdf0e10cSrcweir // com.sun.star.style.CharacterProperties 44*cdf0e10cSrcweir // com.sun.star.style.CharacterPropertiesAsian 45*cdf0e10cSrcweir // com.sun.star.style.CharacterPropertiesComplex 46*cdf0e10cSrcweir class OOO_DLLPUBLIC_CHARTTOOLS CharacterProperties 47*cdf0e10cSrcweir { 48*cdf0e10cSrcweir public: 49*cdf0e10cSrcweir // FastProperty Ids for properties 50*cdf0e10cSrcweir enum 51*cdf0e10cSrcweir { 52*cdf0e10cSrcweir // com.sun.star.style.CharacterProperties 53*cdf0e10cSrcweir PROP_CHAR_FONT_NAME = FAST_PROPERTY_ID_START_CHAR_PROP, // ? 54*cdf0e10cSrcweir PROP_CHAR_FONT_STYLE_NAME, 55*cdf0e10cSrcweir PROP_CHAR_FONT_FAMILY, 56*cdf0e10cSrcweir PROP_CHAR_FONT_CHAR_SET, 57*cdf0e10cSrcweir PROP_CHAR_FONT_PITCH, 58*cdf0e10cSrcweir PROP_CHAR_COLOR, 59*cdf0e10cSrcweir // PROP_CHAR_BACKGROUND_COLOR, 60*cdf0e10cSrcweir //-- PROP_CHAR_BACKGROUND_TRANSPARENCY, alpah channnel in COLOR 61*cdf0e10cSrcweir PROP_CHAR_ESCAPEMENT, 62*cdf0e10cSrcweir PROP_CHAR_CHAR_HEIGHT, 63*cdf0e10cSrcweir PROP_CHAR_UNDERLINE, 64*cdf0e10cSrcweir PROP_CHAR_UNDERLINE_COLOR, 65*cdf0e10cSrcweir PROP_CHAR_UNDERLINE_HAS_COLOR, 66*cdf0e10cSrcweir PROP_CHAR_OVERLINE, 67*cdf0e10cSrcweir PROP_CHAR_OVERLINE_COLOR, 68*cdf0e10cSrcweir PROP_CHAR_OVERLINE_HAS_COLOR, 69*cdf0e10cSrcweir PROP_CHAR_WEIGHT, 70*cdf0e10cSrcweir PROP_CHAR_POSTURE, 71*cdf0e10cSrcweir PROP_CHAR_AUTO_KERNING, 72*cdf0e10cSrcweir PROP_CHAR_KERNING, 73*cdf0e10cSrcweir // PROP_CHAR_CASE_MAPPING, 74*cdf0e10cSrcweir // PROP_CHAR_ROTATION, 75*cdf0e10cSrcweir //-- PROP_CHAR_ROTATION_IS_FIT_TO_LINE, 76*cdf0e10cSrcweir // PROP_CHAR_SCALE_WIDTH, 77*cdf0e10cSrcweir PROP_CHAR_ESCAPEMENT_HEIGHT, 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir // PROP_CHAR_CROSSED_OUT, 80*cdf0e10cSrcweir PROP_CHAR_STRIKE_OUT, 81*cdf0e10cSrcweir PROP_CHAR_WORD_MODE, 82*cdf0e10cSrcweir // PROP_CHAR_FLASH, 83*cdf0e10cSrcweir PROP_CHAR_LOCALE, 84*cdf0e10cSrcweir //-- PROP_CHAR_KEEP_TOGETHER, 85*cdf0e10cSrcweir //-- PROP_CHAR_NO_LINE_BREAK, 86*cdf0e10cSrcweir PROP_CHAR_SHADOWED, 87*cdf0e10cSrcweir PROP_CHAR_CONTOURED, 88*cdf0e10cSrcweir PROP_CHAR_RELIEF, 89*cdf0e10cSrcweir //-- PROP_CHAR_COMBINE_IS_ON, 90*cdf0e10cSrcweir //-- PROP_CHAR_COMBINE_PREFIX, 91*cdf0e10cSrcweir //-- PROP_CHAR_COMBINE_SUFFIX, 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir PROP_CHAR_EMPHASIS, 94*cdf0e10cSrcweir // PROP_CHAR_RUBY_TEXT, 95*cdf0e10cSrcweir // PROP_CHAR_RUBY_ADJUST, 96*cdf0e10cSrcweir // PROP_CHAR_RUBY_STYLE_NAME, 97*cdf0e10cSrcweir // PROP_CHAR_RUBY_IS_ABOVE, 98*cdf0e10cSrcweir // PROP_CHAR_INHIBIT_HYPHENATION, 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir // Asian (com.sun.star.style.CharacterPropertiesAsian) 101*cdf0e10cSrcweir PROP_CHAR_ASIAN_FONT_NAME, 102*cdf0e10cSrcweir PROP_CHAR_ASIAN_FONT_STYLE_NAME, 103*cdf0e10cSrcweir PROP_CHAR_ASIAN_FONT_FAMILY, 104*cdf0e10cSrcweir PROP_CHAR_ASIAN_CHAR_SET, 105*cdf0e10cSrcweir PROP_CHAR_ASIAN_FONT_PITCH, 106*cdf0e10cSrcweir PROP_CHAR_ASIAN_CHAR_HEIGHT, 107*cdf0e10cSrcweir PROP_CHAR_ASIAN_WEIGHT, 108*cdf0e10cSrcweir PROP_CHAR_ASIAN_POSTURE, 109*cdf0e10cSrcweir PROP_CHAR_ASIAN_LOCALE, 110*cdf0e10cSrcweir //-- PROP_CHAR_ASIAN_USE_SCRIPT_TYPE_DISTANCE, 111*cdf0e10cSrcweir //-- PROP_CHAR_ASIAN_USE_FORBIDDEN_RULES, 112*cdf0e10cSrcweir //-- PROP_CHAR_ASIAN_HANGING_PUNCTUATION_ALLOWED, 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir // Complex Text Layout (com.sun.star.style.CharacterPropertiesComplex) 115*cdf0e10cSrcweir PROP_CHAR_COMPLEX_FONT_NAME, 116*cdf0e10cSrcweir PROP_CHAR_COMPLEX_FONT_STYLE_NAME, 117*cdf0e10cSrcweir PROP_CHAR_COMPLEX_FONT_FAMILY, 118*cdf0e10cSrcweir PROP_CHAR_COMPLEX_CHAR_SET, 119*cdf0e10cSrcweir PROP_CHAR_COMPLEX_FONT_PITCH, 120*cdf0e10cSrcweir PROP_CHAR_COMPLEX_CHAR_HEIGHT, 121*cdf0e10cSrcweir PROP_CHAR_COMPLEX_WEIGHT, 122*cdf0e10cSrcweir PROP_CHAR_COMPLEX_POSTURE, 123*cdf0e10cSrcweir PROP_CHAR_COMPLEX_LOCALE, 124*cdf0e10cSrcweir PROP_PARA_IS_CHARACTER_DISTANCE, 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir PROP_WRITING_MODE, 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir // don't use 129*cdf0e10cSrcweir FAST_PROPERTY_ID_END_CHAR_PROP 130*cdf0e10cSrcweir }; 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir static void AddPropertiesToVector( 133*cdf0e10cSrcweir ::std::vector< ::com::sun::star::beans::Property > & rOutProperties ); 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap ); 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir static bool IsCharacterPropertyHandle( sal_Int32 nHandle ); 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir static ::com::sun::star::awt::FontDescriptor createFontDescriptorFromPropertySet( 140*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > & xMultiPropSet ); 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir private: 143*cdf0e10cSrcweir // not implemented 144*cdf0e10cSrcweir CharacterProperties(); 145*cdf0e10cSrcweir }; 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir } // namespace chart 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir // CHART_CHARACTERPROPERTIES_HXX 150*cdf0e10cSrcweir #endif 151