19#ifndef INCLUDED_TOOLS_FONTENUM_HXX
20#define INCLUDED_TOOLS_FONTENUM_HXX
31template<
typename charT,
typename traits >
32inline std::basic_ostream<charT, traits> &
operator <<(
33 std::basic_ostream<charT, traits> & stream,
FontFamily const& family)
38 return stream <<
"unknown";
41 return stream <<
"decorative";
59 SAL_WARN(
"vcl.gdi",
"FontFamily out of bounds");
60 assert(
false &&
"FontFamily out of bounds");
61 return stream <<
"unknown";
67template<
typename charT,
typename traits >
68inline std::basic_ostream<charT, traits> &
operator <<(
69 std::basic_ostream<charT, traits> & stream,
FontPitch const& pitch)
74 return stream <<
"unknown";
80 return stream <<
"variable";
83 SAL_WARN(
"vcl.gdi",
"FontPitch out of bounds");
84 assert(
false &&
"FontPitch out of bounds");
85 return stream <<
"unknown";
91template<
typename charT,
typename traits >
92inline std::basic_ostream<charT, traits> &
operator <<(
93 std::basic_ostream<charT, traits> & stream,
TextAlign const& align)
101 return stream <<
"baseline";
104 return stream <<
"bottom";
107 SAL_WARN(
"vcl.gdi",
"TextAlign out of bounds");
108 assert(
false &&
"TextAlign out of bounds");
109 return stream <<
"unknown";
118template<
typename charT,
typename traits >
119inline std::basic_ostream<charT, traits> &
operator <<(
120 std::basic_ostream<charT, traits> & stream,
FontWeight const& weight)
125 return stream <<
"unknown";
131 return stream <<
"ultralight";
137 return stream <<
"semilight";
140 return stream <<
"normal";
143 return stream <<
"medium";
146 return stream <<
"semibold";
152 return stream <<
"ultrabold";
158 SAL_WARN(
"vcl.gdi",
"FontWeight out of bounds");
159 assert(
false &&
"FontWeight out of bounds");
160 return stream <<
"unknown";
170template<
typename charT,
typename traits >
171inline std::basic_ostream<charT, traits> &
operator <<(
172 std::basic_ostream<charT, traits> & stream,
FontWidth const& width)
177 return stream <<
"unknown";
180 return stream <<
"ultra condensed";
183 return stream <<
"extra ultra condensed";
186 return stream <<
"condensed";
189 return stream <<
"semi condensed";
192 return stream <<
"normal";
195 return stream <<
"semi expanded";
198 return stream <<
"expanded";
201 return stream <<
"extra expanded";
204 return stream <<
"ultra expanded";
207 SAL_WARN(
"vcl.gdi",
"FontWidth out of bounds");
208 assert(
false &&
"FontWidth out of bounds");
209 return stream <<
"unknown";
215template<
typename charT,
typename traits >
216inline std::basic_ostream<charT, traits> &
operator <<(
217 std::basic_ostream<charT, traits> & stream,
FontItalic const& italic)
222 return stream <<
"unknown";
225 return stream <<
"oblique";
228 return stream <<
"normal";
234 SAL_WARN(
"vcl.gdi",
"FontItalic out of bounds");
235 assert(
false &&
"FontItalic out of bounds");
236 return stream <<
"unknown";
252template<
typename charT,
typename traits >
253inline std::basic_ostream<charT, traits> &
operator <<(
254 std::basic_ostream<charT, traits> & stream,
FontLineStyle const& linestyle)
262 return stream <<
"single";
265 return stream <<
"double";
268 return stream <<
"dotted";
271 return stream <<
"unknown";
277 return stream <<
"long dash";
280 return stream <<
"dash dot";
283 return stream <<
"dash dot dot";
286 return stream <<
"small wave";
292 return stream <<
"double wave";
298 return stream <<
"bold dotted";
301 return stream <<
"bold dash";
304 return stream <<
"bold long dash";
307 return stream <<
"bold dash dot";
310 return stream <<
"bold dash dot dot";
313 return stream <<
"bold wave";
316 SAL_WARN(
"vcl.gdi",
"FontLineStyle out of bounds");
317 assert(
false &&
"FontLineStyle out of bounds");
318 return stream <<
"unknown";
327template<
typename charT,
typename traits >
328inline std::basic_ostream<charT, traits> &
operator <<(
329 std::basic_ostream<charT, traits> & stream,
FontStrikeout const& strikeout)
337 return stream <<
"single";
340 return stream <<
"double";
343 return stream <<
"unknown";
355 SAL_WARN(
"vcl.gdi",
"FontStrikeout out of bounds");
356 assert(
false &&
"FontStrikeout out of bounds");
357 return stream <<
"unknown";
376template<
typename charT,
typename traits >
377inline std::basic_ostream<charT, traits> &
operator <<(
378 std::basic_ostream<charT, traits> & stream,
FontEmphasisMark const& emphasismark)
380 switch (emphasismark)
389 return stream <<
"Circle";
395 return stream <<
"Accent";
401 return stream <<
"PosAbove";
404 return stream <<
"PosBelow";
407 SAL_WARN(
"vcl.gdi",
"FontEmphasisMark out of bounds");
408 assert(
false &&
"FontEmphasisMark out of bounds");
409 return stream <<
"unknown";
415template<
typename charT,
typename traits >
416inline std::basic_ostream<charT, traits> &
operator <<(
419 switch (embeddedbitmap)
422 return stream <<
"unknown";
431 return stream <<
"unknown";
436template<
typename charT,
typename traits >
437inline std::basic_ostream<charT, traits> &
operator <<(
438 std::basic_ostream<charT, traits> & stream,
FontAntiAlias const& antialias)
443 return stream <<
"unknown";
452 return stream <<
"unknown";
Reference< XOutputStream > stream
@ LINESTYLE_BOLDDASHDOTDOT
@ FontLineStyle_FORCE_EQUAL_SIZE
@ FontStrikeout_FORCE_EQUAL_SIZE
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, FontFamily const &family)
@ FontPitch_FORCE_EQUAL_SIZE
@ FontItalic_FORCE_EQUAL_SIZE
@ FontWidth_FORCE_EQUAL_SIZE
@ TextAlign_FORCE_EQUAL_SIZE
@ EMBEDDEDBITMAP_DONTKNOW
@ FontFamily_FORCE_EQUAL_SIZE
@ FontWeight_FORCE_EQUAL_SIZE
#define SAL_WARN(area, stream)