23#include <osl/diagnose.h>
27#include <com/sun/star/i18n/BreakIterator.hpp>
28#include <com/sun/star/i18n/CharacterClassification.hpp>
29#include <com/sun/star/awt/FontWeight.hpp>
30#include <com/sun/star/awt/FontWidth.hpp>
31#include <com/sun/star/awt/XExtendedToolkit.hpp>
32#include <com/sun/star/accessibility/AccessibleEventObject.hpp>
33#include <com/sun/star/accessibility/AccessibleStateType.hpp>
40 return i18n::BreakIterator::create(xContext);
51 return css::awt::FontWidth::DONTKNOW;
53 return css::awt::FontWidth::ULTRACONDENSED;
55 return css::awt::FontWidth::EXTRACONDENSED;
57 return css::awt::FontWidth::CONDENSED;
59 return css::awt::FontWidth::SEMICONDENSED;
61 return css::awt::FontWidth::NORMAL;
63 return css::awt::FontWidth::SEMIEXPANDED;
65 return css::awt::FontWidth::EXPANDED;
67 return css::awt::FontWidth::EXTRAEXPANDED;
69 return css::awt::FontWidth::ULTRAEXPANDED;
71 OSL_FAIL(
"Unknown FontWidth" );
72 return css::awt::FontWidth::DONTKNOW;
77 if( f <= css::awt::FontWidth::DONTKNOW )
79 else if( f <= css::awt::FontWidth::ULTRACONDENSED )
81 else if( f <= css::awt::FontWidth::EXTRACONDENSED )
83 else if( f <= css::awt::FontWidth::CONDENSED )
85 else if( f <= css::awt::FontWidth::SEMICONDENSED )
87 else if( f <= css::awt::FontWidth::NORMAL )
89 else if( f <= css::awt::FontWidth::SEMIEXPANDED )
91 else if( f <= css::awt::FontWidth::EXPANDED )
93 else if( f <= css::awt::FontWidth::EXTRAEXPANDED )
95 else if( f <= css::awt::FontWidth::ULTRAEXPANDED )
98 OSL_FAIL(
"Unknown FontWidth" );
105 return css::awt::FontWeight::DONTKNOW;
107 return css::awt::FontWeight::THIN;
109 return css::awt::FontWeight::ULTRALIGHT;
111 return css::awt::FontWeight::LIGHT;
113 return css::awt::FontWeight::SEMILIGHT;
115 return css::awt::FontWeight::NORMAL;
117 return css::awt::FontWeight::SEMIBOLD;
119 return css::awt::FontWeight::BOLD;
121 return css::awt::FontWeight::ULTRABOLD;
123 return css::awt::FontWeight::BLACK;
125 OSL_FAIL(
"Unknown FontWeight" );
126 return css::awt::FontWeight::DONTKNOW;
131 if( f <= css::awt::FontWeight::DONTKNOW )
133 else if( f <= css::awt::FontWeight::THIN )
135 else if( f <= css::awt::FontWeight::ULTRALIGHT )
137 else if( f <= css::awt::FontWeight::LIGHT )
139 else if( f <= css::awt::FontWeight::SEMILIGHT )
141 else if( f <= css::awt::FontWeight::NORMAL )
143 else if( f <= css::awt::FontWeight::SEMIBOLD )
145 else if( f <= css::awt::FontWeight::BOLD )
147 else if( f <= css::awt::FontWeight::ULTRABOLD )
149 else if( f <= css::awt::FontWeight::BLACK )
152 OSL_FAIL(
"Unknown FontWeight" );
158 css::awt::FontSlant eRet(css::awt::FontSlant_DONTKNOW);
162 eRet = css::awt::FontSlant_NONE;
165 eRet = css::awt::FontSlant_OBLIQUE;
168 eRet = css::awt::FontSlant_ITALIC;
171 eRet = css::awt::FontSlant_DONTKNOW;
174 eRet = css::awt::FontSlant::FontSlant_MAKE_FIXED_SIZE;
185 case css::awt::FontSlant_NONE:
188 case css::awt::FontSlant_OBLIQUE:
191 case css::awt::FontSlant_ITALIC:
194 case css::awt::FontSlant_DONTKNOW:
197 case css::awt::FontSlant_REVERSE_OBLIQUE:
201 case css::awt::FontSlant_REVERSE_ITALIC:
205 case css::awt::FontSlant::FontSlant_MAKE_FIXED_SIZE:
FontItalic_FORCE_EQUAL_SIZE
Reference< XComponentContext > getProcessComponentContext()
VCL_DLLPUBLIC css::awt::FontSlant ConvertFontSlant(FontItalic eWeight)
VCL_DLLPUBLIC float ConvertFontWidth(FontWidth eWidth)
css::uno::Reference< css::i18n::XCharacterClassification > CreateCharacterClassification()
VCL_DLLPUBLIC float ConvertFontWeight(FontWeight eWeight)
VCL_DLLPUBLIC css::uno::Reference< css::i18n::XBreakIterator > CreateBreakIterator()