20#include <com/sun/star/style/CaseMap.hpp>
21#include <com/sun/star/awt/FontDescriptor.hpp>
22#include <com/sun/star/frame/status/FontHeight.hpp>
26#include <osl/diagnose.h>
35#include <editeng/editids.hrc>
36#include <editeng/editrids.hrc>
41#include <rtl/math.hxx>
42#include <rtl/ustring.hxx>
49#include <com/sun/star/awt/FontSlant.hpp>
50#include <com/sun/star/lang/Locale.hpp>
51#include <com/sun/star/text/FontEmphasis.hpp>
83#include <libxml/xmlwriter.h>
113 const sal_uInt16 nId ) :
115 pFontList( pFontLst )
135 assert(SfxPoolItem::operator==(rAttr));
163sal_Int32 CompareTo(sal_Int32 nA, sal_Int32 nB)
189 OUString aStName,
const FontPitch eFontPitch,
190 const rtl_TextEncoding eFontTextEncoding,
const sal_uInt16 nId ) :
195 aStyleName(
std::move(aStName))
205 nMemberId &= ~CONVERT_TWIPS;
210 css::awt::FontDescriptor aFontDescriptor;
213 aFontDescriptor.Family =
static_cast<sal_Int16
>(
eFamily);
214 aFontDescriptor.CharSet =
static_cast<sal_Int16
>(
eTextEncoding);
215 aFontDescriptor.Pitch =
static_cast<sal_Int16
>(
ePitch);
216 rVal <<= aFontDescriptor;
234 nMemberId &= ~CONVERT_TWIPS;
239 css::awt::FontDescriptor aFontDescriptor;
240 if ( !( rVal >>= aFontDescriptor ))
246 eTextEncoding =
static_cast<rtl_TextEncoding
>(aFontDescriptor.CharSet);
268 sal_Int16 nFamily = sal_Int16();
269 if(!(rVal >>= nFamily))
276 sal_Int16 nSet = sal_Int16();
284 sal_Int16 nPitch = sal_Int16();
285 if(!(rVal >>= nPitch))
297 assert(SfxPoolItem::operator==(rAttr));
310 SAL_INFO(
"editeng.items",
"FontItem::operator==(): only pitch or rtl_TextEncoding different ");
318 const auto& rOther =
static_cast<const SvxFontItem&
>(rCmp);
319 sal_Int32 nRet =
GetFamilyName().compareTo(rOther.GetFamilyName());
331 nRet = CompareTo(
GetFamily(), rOther.GetFamily());
337 nRet = CompareTo(
GetPitch(), rOther.GetPitch());
366 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxFontItem"));
367 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
368 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"familyName"), BAD_CAST(
aFamilyName.toUtf8().getStr()));
369 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"styleName"), BAD_CAST(
aStyleName.toUtf8().getStr()));
370 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"family"), BAD_CAST(OString::number(
eFamily).getStr()));
371 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"pitch"), BAD_CAST(OString::number(
ePitch).getStr()));
372 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"textEncoding"), BAD_CAST(OString::number(
eTextEncoding).getStr()));
373 (void)xmlTextWriterEndElement(pWriter);
416 case ITALIC_NONE: pId = RID_SVXITEMS_ITALIC_NONE;
break;
422 return pId ?
EditResId(pId) : OUString();
427 nMemberId &= ~CONVERT_TWIPS;
442 nMemberId &= ~CONVERT_TWIPS;
450 awt::FontSlant eSlant;
451 if(!(rVal >>= eSlant))
457 eSlant =
static_cast<awt::FontSlant
>(
nValue);
482 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxPostureItem"));
483 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"whichId"),
"%d",
Which());
484 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"value"),
"%d",
GetValue());
485 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(
GetValueTextByPos(
GetValue()).toUtf8().getStr()));
486 (void)xmlTextWriterEndElement(pWriter);
541 RID_SVXITEMS_WEIGHT_DONTKNOW,
542 RID_SVXITEMS_WEIGHT_THIN,
543 RID_SVXITEMS_WEIGHT_ULTRALIGHT,
544 RID_SVXITEMS_WEIGHT_LIGHT,
545 RID_SVXITEMS_WEIGHT_SEMILIGHT,
546 RID_SVXITEMS_WEIGHT_NORMAL,
547 RID_SVXITEMS_WEIGHT_MEDIUM,
548 RID_SVXITEMS_WEIGHT_SEMIBOLD,
549 RID_SVXITEMS_WEIGHT_BOLD,
550 RID_SVXITEMS_WEIGHT_ULTRABOLD,
551 RID_SVXITEMS_WEIGHT_BLACK
561 nMemberId &= ~CONVERT_TWIPS;
578 nMemberId &= ~CONVERT_TWIPS;
587 if(!(rVal >>= fValue))
592 fValue =
static_cast<float>(
nValue);
603 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxWeightItem"));
604 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"whichId"),
"%d",
Which());
605 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"value"),
"%d",
GetValue());
606 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(
GetValueTextByPos(
GetValue()).toUtf8().getStr()));
607 (void)xmlTextWriterEndElement(pWriter);
613 const sal_uInt16 nPrp,
614 const sal_uInt16 nId ) :
627 assert(SfxPoolItem::operator==(rItem));
639 nMemberId &= ~CONVERT_TWIPS;
644 css::frame::status::FontHeight aFontHeight;
655 aFontHeight.Height = rtl::math::round(fPoints, 1);
658 aFontHeight.Prop = MapUnit::MapRelative ==
ePropUnit ?
nProp : 100;
663 case MapUnit::MapRelative:
666 case MapUnit::Map100thMM:
669 case MapUnit::MapPoint:
672 case MapUnit::MapTwip:
677 aFontHeight.Diff = fRet;
678 rVal <<= aFontHeight;
692 rVal <<= static_cast<float>(::rtl::math::round(fPoints, 1));
697 rVal <<= static_cast<sal_Int16>(MapUnit::MapRelative ==
ePropUnit ?
nProp : 100);
704 case MapUnit::MapRelative:
707 case MapUnit::Map100thMM:
710 case MapUnit::MapPoint:
713 case MapUnit::MapTwip:
734 sal_uInt32 nRet = nHeight;
738 case MapUnit::MapRelative:
745 case MapUnit::MapPoint:
747 short nTemp =
static_cast<short>(nProp);
753 case MapUnit::Map100thMM:
755 nDiff =
static_cast<short>(nProp);
757 case MapUnit::MapTwip:
759 nDiff =
static_cast<short>(nProp);
774 nMemberId &= ~CONVERT_TWIPS;
779 css::frame::status::FontHeight aFontHeight;
780 if ( rVal >>= aFontHeight )
785 double fPoint = aFontHeight.Height;
786 if( fPoint < 0. || fPoint > 10000. )
793 nProp = aFontHeight.Prop;
804 if(!(rVal >>= fPoint))
809 fPoint =
static_cast<float>(
nValue);
811 if(fPoint < 0. || fPoint > 10000.)
821 sal_Int16 nNew = sal_Int16();
837 if(!(rVal >>= fValue))
842 fValue =
static_cast<float>(
nValue);
844 sal_Int16 nCoreDiffValue =
static_cast<sal_Int16
>(fValue * 20.);
846 nProp =
static_cast<sal_uInt16
>(
static_cast<sal_Int16
>(fValue));
865 rText = OUString::number(
static_cast<short>(
nProp) ) +
867 if( 0 <=
static_cast<short>(
nProp) )
870 else if( 100 ==
nProp )
873 eCoreUnit, MapUnit::MapPoint, &rIntl ) +
877 rText = OUString::number(
nProp ) +
"%";
898 if( MapUnit::MapRelative != eUnit )
899 nHeight = nNewHeight + ::ItemToControl(
short(nNewProp), eUnit,
901 else if( 100 != nNewProp )
902 nHeight = sal_uInt32(( nNewHeight * nNewProp ) / 100 );
915 if( MapUnit::MapRelative != eMetric )
917 ::ControlToItem( ::ItemToControl(
static_cast<short>(nNewProp), eMetric,
918 FieldUnit::TWIP ), FieldUnit::TWIP,
920 else if( 100 != nNewProp )
921 nHeight = sal_uInt32(( nNewHeight * nNewProp ) / 100 );
931 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxFontHeightItem"));
932 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
933 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"height"), BAD_CAST(OString::number(
nHeight).getStr()));
934 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"prop"), BAD_CAST(OString::number(
nProp).getStr()));
935 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"propUnit"), BAD_CAST(OString::number(
static_cast<int>(
ePropUnit)).getStr()));
936 (void)xmlTextWriterEndElement(pWriter);
993 OSL_FAIL(
"SvxTextLineItem::GetValueTextByPos: Pure virtual method");
999 nMemberId &= ~CONVERT_TWIPS;
1006 rVal <<= static_cast<sal_Int16>(
GetValue());
1014 rVal <<= xComplexColor;
1026 nMemberId &= ~CONVERT_TWIPS;
1045 if( !( rVal >>= nCol ) )
1059 css::uno::Reference<css::util::XComplexColor> xComplexColor;
1060 if (!(rVal >>= xComplexColor))
1063 if (xComplexColor.is())
1098 RID_SVXITEMS_UL_NONE,
1099 RID_SVXITEMS_UL_SINGLE,
1100 RID_SVXITEMS_UL_DOUBLE,
1101 RID_SVXITEMS_UL_DOTTED,
1102 RID_SVXITEMS_UL_DONTKNOW,
1103 RID_SVXITEMS_UL_DASH,
1104 RID_SVXITEMS_UL_LONGDASH,
1105 RID_SVXITEMS_UL_DASHDOT,
1106 RID_SVXITEMS_UL_DASHDOTDOT,
1107 RID_SVXITEMS_UL_SMALLWAVE,
1108 RID_SVXITEMS_UL_WAVE,
1109 RID_SVXITEMS_UL_DOUBLEWAVE,
1110 RID_SVXITEMS_UL_BOLD,
1111 RID_SVXITEMS_UL_BOLDDOTTED,
1112 RID_SVXITEMS_UL_BOLDDASH,
1113 RID_SVXITEMS_UL_BOLDLONGDASH,
1114 RID_SVXITEMS_UL_BOLDDASHDOT,
1115 RID_SVXITEMS_UL_BOLDDASHDOTDOT,
1116 RID_SVXITEMS_UL_BOLDWAVE
1139 RID_SVXITEMS_OL_NONE,
1140 RID_SVXITEMS_OL_SINGLE,
1141 RID_SVXITEMS_OL_DOUBLE,
1142 RID_SVXITEMS_OL_DOTTED,
1143 RID_SVXITEMS_OL_DONTKNOW,
1144 RID_SVXITEMS_OL_DASH,
1145 RID_SVXITEMS_OL_LONGDASH,
1146 RID_SVXITEMS_OL_DASHDOT,
1147 RID_SVXITEMS_OL_DASHDOTDOT,
1148 RID_SVXITEMS_OL_SMALLWAVE,
1149 RID_SVXITEMS_OL_WAVE,
1150 RID_SVXITEMS_OL_DOUBLEWAVE,
1151 RID_SVXITEMS_OL_BOLD,
1152 RID_SVXITEMS_OL_BOLDDOTTED,
1153 RID_SVXITEMS_OL_BOLDDASH,
1154 RID_SVXITEMS_OL_BOLDLONGDASH,
1155 RID_SVXITEMS_OL_BOLDDASHDOT,
1156 RID_SVXITEMS_OL_BOLDDASHDOTDOT,
1157 RID_SVXITEMS_OL_BOLDWAVE
1216 RID_SVXITEMS_STRIKEOUT_NONE,
1217 RID_SVXITEMS_STRIKEOUT_SINGLE,
1218 RID_SVXITEMS_STRIKEOUT_DOUBLE,
1219 RID_SVXITEMS_STRIKEOUT_DONTKNOW,
1220 RID_SVXITEMS_STRIKEOUT_BOLD,
1221 RID_SVXITEMS_STRIKEOUT_SLASH,
1222 RID_SVXITEMS_STRIKEOUT_X
1231 nMemberId &= ~CONVERT_TWIPS;
1238 rVal <<= static_cast<sal_Int16>(
GetValue());
1246 nMemberId &= ~CONVERT_TWIPS;
1286 pId = RID_SVXITEMS_SHADOWED_TRUE;
1314 pId = RID_SVXITEMS_AUTOKERN_TRUE;
1322 const sal_uInt16 nId ) :
1343 pId = RID_SVXITEMS_WORDLINE_TRUE;
1371 pId = RID_SVXITEMS_CONTOUR_TRUE;
1392 , maComplexColor(rComplexColor)
1402 assert(SfxPoolItem::operator==(rAttr));
1411 nMemberId &= ~CONVERT_TWIPS;
1416 auto fTransparency =
static_cast<double>(255 -
mColor.
GetAlpha()) * 100 / 255;
1436 nValue = rTransform.mnValue;
1438 nValue = -rTransform.mnValue;
1445 sal_Int16
nValue = 10000;
1449 nValue = rTransform.mnValue;
1460 nValue = rTransform.mnValue;
1473 rVal <<= xComplexColor;
1488 nMemberId &= ~CONVERT_TWIPS;
1493 sal_Int16 nTransparency = 0;
1494 bool bRet = rVal >>= nTransparency;
1497 auto fTransparency =
static_cast<double>(nTransparency) * 255 / 100;
1517 sal_Int16 nTintShade = 0;
1518 if (!(rVal >>= nTintShade))
1526 else if (nTintShade < 0)
1528 sal_Int16 nShade = o3tl::narrowing<sal_Int16>(-nTintShade);
1535 sal_Int16 nLumMod = 10000;
1536 if (!(rVal >>= nLumMod))
1544 sal_Int16 nLumOff = 0;
1545 if (!(rVal >>= nLumOff))
1553 OUString sComplexColorJson;
1554 if (!(rVal >>= sComplexColorJson))
1557 if (sComplexColorJson.isEmpty())
1560 OString aJSON =
OUStringToOString(sComplexColorJson, RTL_TEXTENCODING_ASCII_US);
1567 css::uno::Reference<css::util::XComplexColor> xComplexColor;
1568 if (!(rVal >>= xComplexColor))
1571 if (xComplexColor.is())
1605 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxColorItem"));
1606 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
1608 std::stringstream ss;
1610 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(ss.str().c_str()));
1614 GetPresentation( SfxItemPresentation::Complete, MapUnit::Map100thMM, MapUnit::Map100thMM,
aStr, aIntlWrapper);
1615 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"presentation"), BAD_CAST(
OUStringToOString(
aStr, RTL_TEXTENCODING_UTF8).getStr()));
1617 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"complex-color"));
1619 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"type"),
1624 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"transformation"));
1625 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"type"),
1626 BAD_CAST(OString::number(sal_Int16(rTransform.meType)).getStr()));
1627 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"),
1628 BAD_CAST(OString::number(rTransform.mnValue).getStr()));
1629 (void)xmlTextWriterEndElement(pWriter);
1632 (void)xmlTextWriterEndElement(pWriter);
1634 (void)xmlTextWriterEndElement(pWriter);
1671 case SfxItemPresentation::Nameless:
1675 case SfxItemPresentation::Complete:
1677 rText =
EditResId(RID_SVXITEMS_KERNING_COMPLETE);
1681 pId = RID_SVXITEMS_KERNING_EXPANDED;
1683 pId = RID_SVXITEMS_KERNING_CONDENSED;
1707 sal_Int16 nVal = sal_Int16();
1708 if(!(rVal >>= nVal))
1749 RID_SVXITEMS_CASEMAP_NONE,
1750 RID_SVXITEMS_CASEMAP_UPPERCASE,
1751 RID_SVXITEMS_CASEMAP_LOWERCASE,
1752 RID_SVXITEMS_CASEMAP_TITLE,
1753 RID_SVXITEMS_CASEMAP_SMALLCAPS
1763 sal_Int16 nRet = style::CaseMap::NONE;
1778 sal_uInt16 nVal = sal_uInt16();
1779 if(!(rVal >>= nVal))
1790 default:
return false;
1808 const sal_uInt16 nId ) :
1820 const sal_uInt16 nId ) :
1830 assert(SfxPoolItem::operator==(rAttr));
1860 rText +=
EditResId(RID_SVXITEMS_ESCAPEMENT_AUTO);
1862 rText += OUString::number(
nEsc ) +
"%";
1871 RID_SVXITEMS_ESCAPEMENT_OFF,
1872 RID_SVXITEMS_ESCAPEMENT_SUPER,
1873 RID_SVXITEMS_ESCAPEMENT_SUB
1885 else if (
nEsc > 0 )
1898 nMemberId &= ~CONVERT_TWIPS;
1902 rVal <<= static_cast<sal_Int16>(
nEsc);
1905 rVal <<= static_cast<sal_Int8>(
nProp);
1916 nMemberId &= ~CONVERT_TWIPS;
1921 sal_Int16 nVal = sal_Int16();
1922 if( (rVal >>= nVal) && (std::abs(nVal) <=
MAX_ESC_POS+1))
1931 if( (rVal >>= nVal) && (nVal <= 100))
1969 SAL_WARN(
"editeng.items",
"SvxLanguageItem::GetValueCount: supposed to return a count of what?");
1994 nMemberId &= ~CONVERT_TWIPS;
1998 rVal <<= static_cast<sal_Int16>(
static_cast<sal_uInt16
>(
GetValue()));
2010 nMemberId &= ~CONVERT_TWIPS;
2024 lang::Locale aLocale;
2025 if(!(rVal >>= aLocale))
2089 pId = RID_SVXITEMS_BLINK_TRUE;
2118 RID_SVXITEMS_EMPHASIS_NONE_STYLE,
2119 RID_SVXITEMS_EMPHASIS_DOT_STYLE,
2120 RID_SVXITEMS_EMPHASIS_CIRCLE_STYLE,
2121 RID_SVXITEMS_EMPHASIS_DISC_STYLE,
2122 RID_SVXITEMS_EMPHASIS_ACCENT_STYLE
2126 rText =
EditResId(RID_SVXITEMS_EMPHASIS[
2127 static_cast<sal_uInt16
>(
static_cast<FontEmphasisMark>( nVal & FontEmphasisMark::Style ))]);
2128 TranslateId pId = ( FontEmphasisMark::PosAbove & nVal )
2129 ? RID_SVXITEMS_EMPHASIS_ABOVE_POS
2130 : ( FontEmphasisMark::PosBelow & nVal )
2131 ? RID_SVXITEMS_EMPHASIS_BELOW_POS
2140 nMemberId &= ~CONVERT_TWIPS;
2147 switch(
nValue & FontEmphasisMark::Style)
2149 case FontEmphasisMark::NONE : nRet = FontEmphasis::NONE;
break;
2150 case FontEmphasisMark::Dot : nRet = FontEmphasis::DOT_ABOVE;
break;
2151 case FontEmphasisMark::Circle : nRet = FontEmphasis::CIRCLE_ABOVE;
break;
2152 case FontEmphasisMark::Disc : nRet = FontEmphasis::DISK_ABOVE;
break;
2153 case FontEmphasisMark::Accent : nRet = FontEmphasis::ACCENT_ABOVE;
break;
2156 if(nRet &&
nValue & FontEmphasisMark::PosBelow)
2167 nMemberId &= ~CONVERT_TWIPS;
2177 case FontEmphasis::NONE : nMark = FontEmphasisMark::NONE;
break;
2178 case FontEmphasis::DOT_ABOVE : nMark = FontEmphasisMark::Dot|FontEmphasisMark::PosAbove;
break;
2179 case FontEmphasis::CIRCLE_ABOVE: nMark = FontEmphasisMark::Circle|FontEmphasisMark::PosAbove;
break;
2180 case FontEmphasis::DISK_ABOVE : nMark = FontEmphasisMark::Disc|FontEmphasisMark::PosAbove;
break;
2181 case FontEmphasis::ACCENT_ABOVE: nMark = FontEmphasisMark::Accent|FontEmphasisMark::PosAbove;
break;
2182 case FontEmphasis::DOT_BELOW : nMark = FontEmphasisMark::Dot|FontEmphasisMark::PosBelow;
break;
2183 case FontEmphasis::CIRCLE_BELOW: nMark = FontEmphasisMark::Circle|FontEmphasisMark::PosBelow;
break;
2184 case FontEmphasis::DISK_BELOW : nMark = FontEmphasisMark::Disc|FontEmphasisMark::PosBelow;
break;
2185 case FontEmphasis::ACCENT_BELOW: nMark = FontEmphasisMark::Accent|FontEmphasisMark::PosBelow;
break;
2186 default:
return false;
2188 SetValue(
static_cast<sal_Int16
>(nMark) );
2202 cStartBracket( nStartBracket ), cEndBracket( nEndBracket ), bOn( bFlag )
2212 assert(SfxPoolItem::operator==(rAttr));
2226 nMemberId &= ~CONVERT_TWIPS;
2259 nMemberId &= ~CONVERT_TWIPS;
2291 rText =
EditResId( RID_SVXITEMS_TWOLINES_OFF );
2294 rText =
EditResId( RID_SVXITEMS_TWOLINES );
2324 rText =
EditResId(RID_SVXITEMS_TEXTROTATE_OFF);
2327 rText =
EditResId(RID_SVXITEMS_TEXTROTATE);
2328 rText = rText.replaceFirst(
"$(ARG1)",
2337 nMemberId &= ~CONVERT_TWIPS;
2342 rVal <<= static_cast<sal_Int16>(
GetValue());
2353 nMemberId &= ~CONVERT_TWIPS;
2360 if ((rVal >>= nVal) && (0 == nVal || 900 == nVal || 2700 == nVal))
2374 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxTextRotateItem"));
2375 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
2376 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::number(
GetValue().
get()).getStr()));
2377 (void)xmlTextWriterEndElement(pWriter);
2403 rText =
EditResId( RID_SVXITEMS_CHARROTATE_OFF );
2406 rText =
EditResId( RID_SVXITEMS_CHARROTATE );
2407 rText = rText.replaceFirst(
"$(ARG1)",
2410 rText +=
EditResId( RID_SVXITEMS_CHARROTATE_FITLINE );
2457 assert(SfxPoolItem::operator==(rItem));
2464 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxCharRotateItem"));
2465 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
2466 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::number(
GetValue().
get()).getStr()));
2467 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"fitToLine"), BAD_CAST(OString::boolean(
IsFitToLine()).getStr()));
2468 (void)xmlTextWriterEndElement(pWriter);
2492 rText =
EditResId( RID_SVXITEMS_CHARSCALE_OFF );
2495 rText =
EditResId( RID_SVXITEMS_CHARSCALE );
2496 rText = rText.replaceFirst(
"$(ARG1)",
2506 sal_Int16
nValue = sal_Int16();
2513 SAL_WARN(
"editeng.items",
"SvxCharScaleWidthItem::PutValue - Wrong type!" );
2521 rVal <<= static_cast<sal_Int16>(
GetValue());
2530 const sal_uInt16 nId )
2542 RID_SVXITEMS_RELIEF_NONE,
2543 RID_SVXITEMS_RELIEF_EMBOSSED,
2544 RID_SVXITEMS_RELIEF_ENGRAVED
2573 nMemberId &= ~CONVERT_TWIPS;
2579 sal_Int16 nVal = -1;
2581 if(nVal >= 0 && nVal <= sal_Int16(FontRelief::Engraved))
2597 nMemberId &= ~CONVERT_TWIPS;
2602 rVal <<= static_cast<sal_Int16>(
GetValue());
2617 svl::Items<SID_ATTR_CHAR_FONT, SID_ATTR_CHAR_FONT> ))
2619 sal_uInt16 nLatin, nAsian, nComplex;
2638 if( SfxItemState::SET != eSt )
2639 pI = SfxItemState::DEFAULT == eSt ? &
rSet.
Get(
nId ) :
nullptr;
2645 sal_uInt16 nLatin, nAsian, nComplex;
2649 if (nScript == SvtScriptType::ASIAN)
2652 }
else if (nScript == SvtScriptType::COMPLEX)
2655 }
else if (nScript == (SvtScriptType::LATIN|SvtScriptType::ASIAN))
2661 }
else if (nScript == (SvtScriptType::LATIN|SvtScriptType::COMPLEX))
2667 }
else if (nScript == (SvtScriptType::ASIAN|SvtScriptType::COMPLEX))
2673 }
else if (nScript == (SvtScriptType::LATIN|SvtScriptType::ASIAN|SvtScriptType::COMPLEX))
2678 *pRet != *pAsn || *pRet != *pCmplx )
2695 sal_uInt16 nLatin, nAsian, nComplex;
2698 if( SvtScriptType::LATIN & nScriptType )
2702 if( SvtScriptType::ASIAN & nScriptType )
2706 if( SvtScriptType::COMPLEX & nScriptType )
2715 GetSlotIds( nSlotId, rLatin, rAsian, rComplex );
2718 rComplex = rPool.
GetWhich( rComplex );
2722 sal_uInt16& rComplex )
const
2728 sal_uInt16& rAsian, sal_uInt16& rComplex )
2733 SAL_WARN(
"editeng.items",
"wrong SlotId for class SvxScriptSetItem" );
2736 case SID_ATTR_CHAR_FONT:
2737 rLatin = SID_ATTR_CHAR_FONT;
2738 rAsian = SID_ATTR_CHAR_CJK_FONT;
2739 rComplex = SID_ATTR_CHAR_CTL_FONT;
2741 case SID_ATTR_CHAR_FONTHEIGHT:
2742 rLatin = SID_ATTR_CHAR_FONTHEIGHT;
2743 rAsian = SID_ATTR_CHAR_CJK_FONTHEIGHT;
2744 rComplex = SID_ATTR_CHAR_CTL_FONTHEIGHT;
2746 case SID_ATTR_CHAR_WEIGHT:
2747 rLatin = SID_ATTR_CHAR_WEIGHT;
2748 rAsian = SID_ATTR_CHAR_CJK_WEIGHT;
2749 rComplex = SID_ATTR_CHAR_CTL_WEIGHT;
2751 case SID_ATTR_CHAR_POSTURE:
2752 rLatin = SID_ATTR_CHAR_POSTURE;
2753 rAsian = SID_ATTR_CHAR_CJK_POSTURE;
2754 rComplex = SID_ATTR_CHAR_CTL_POSTURE;
2756 case SID_ATTR_CHAR_LANGUAGE:
2757 rLatin = SID_ATTR_CHAR_LANGUAGE;
2758 rAsian = SID_ATTR_CHAR_CJK_LANGUAGE;
2759 rComplex = SID_ATTR_CHAR_CTL_LANGUAGE;
2761 case SID_ATTR_CHAR_SHADOWED:
2762 rLatin = SID_ATTR_CHAR_SHADOWED;
2763 rAsian = SID_ATTR_CHAR_SHADOWED;
2764 rComplex = SID_ATTR_CHAR_SHADOWED;
2766 case SID_ATTR_CHAR_STRIKEOUT:
2767 rLatin = SID_ATTR_CHAR_STRIKEOUT;
2768 rAsian = SID_ATTR_CHAR_STRIKEOUT;
2769 rComplex = SID_ATTR_CHAR_STRIKEOUT;
2776 const sal_uInt16 nItemCnt = 3;
2783 const aOutTypeArr[ nItemCnt ] =
2790 SvxFontItem* aItemArr[ nItemCnt ] = { &rLatin, &rAsian, &rComplex };
2792 for ( sal_uInt16
n = 0;
n < nItemCnt; ++
n )
2795 aOutTypeArr[
n ].nLanguage,
2796 GetDefaultFontFlags::OnlyOne ) );
2815 sal_uInt32 nRsid = 0;
2816 if( !( rVal >>= nRsid ) )
2842 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SvxRsidItem"));
2843 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"whichId"),
"%d",
Which());
2844 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"value"),
"%" SAL_PRIuUINT32,
GetValue());
2845 (void)xmlTextWriterEndElement(pWriter);
constexpr auto convertTwipToMm100(N n)
static tools::Long Scale(tools::Long nVal, tools::Long nMult, tools::Long nDiv)
sal_uInt16 GetValue() const
virtual bool operator==(const SfxPoolItem &rItem) const override
void SetValue(sal_uInt16 nTheValue)
void SetValue(sal_uInt32 nTheValue)
sal_uInt32 GetValue() const
sal_uInt8 GetAlpha() const
bool IsTransparent() const
void SetAlpha(sal_uInt8 nAlpha)
size_t GetFontNameCount() const
const FontMetric & GetFontName(size_t nFont) const
static css::lang::Locale convertToLocale(LanguageType nLangID, bool bResolveSystem=true)
static LanguageType convertToLanguageType(const css::lang::Locale &rLocale, bool bResolveSystem=true)
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
void SetValue(EnumT nTheValue)
virtual bool operator==(SfxPoolItem const &other) const override
sal_Int16 GetValue() const
void SetValue(sal_Int16 nTheValue)
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
SfxItemPool * GetPool() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void MergeRange(sal_uInt16 nFrom, sal_uInt16 nTo)
sal_uInt32 GetRefCount() const
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
const SfxItemSet & GetItemSet() const
static OUString GetLanguageString(const LanguageType eType)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
SvxAutoKernItem(const bool bAutoKern, const sal_uInt16 nId)
virtual SvxAutoKernItem * Clone(SfxItemPool *pPool=nullptr) const override
SvxBlinkItem(const bool bBlink, const sal_uInt16 nId)
virtual SvxBlinkItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
virtual sal_uInt16 GetValueCount() const override
SvxCaseMapItem(const SvxCaseMap eMap, const sal_uInt16 nId)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
static OUString GetValueTextByPos(sal_uInt16 nPos)
virtual SvxCaseMapItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual sal_uInt16 GetValueCount() const override
virtual SvxCharReliefItem * Clone(SfxItemPool *pPool=nullptr) const override
static SfxPoolItem * CreateDefault()
static OUString GetValueTextByPos(sal_uInt16 nPos)
SvxCharReliefItem(FontRelief eValue, const sal_uInt16 nId)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SvxCharRotateItem * Clone(SfxItemPool *pPool=nullptr) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
void SetFitToLine(bool b)
static SfxPoolItem * CreateDefault()
SvxCharRotateItem(Degree10 nValue, bool bFitIntoLine, TypedWhichId< SvxCharRotateItem > nId)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool operator==(const SfxPoolItem &) const override
virtual SvxCharScaleWidthItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
SvxCharScaleWidthItem(sal_uInt16 nValue, TypedWhichId< SvxCharScaleWidthItem > nId)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SvxColorItem item describes a color.
SvxColorItem(const sal_uInt16 nId)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const override
virtual SvxColorItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool operator==(const SfxPoolItem &rPoolItem) const override
virtual ~SvxColorItem() override
static SfxPoolItem * CreateDefault()
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
model::ComplexColor maComplexColor
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
virtual SvxContourItem * Clone(SfxItemPool *pPool=nullptr) const override
SvxContourItem(const bool bContoured, const sal_uInt16 nId)
static SfxPoolItem * CreateDefault()
virtual sal_uInt16 GetValueCount() const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
void SetValue(EnumT nTheValue)
virtual SvxCrossedOutItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
static OUString GetValueTextByPos(sal_uInt16 nPos)
virtual bool GetBoolValue() const override
virtual void SetBoolValue(bool bVal) override
virtual bool HasBoolValue() const override
SvxCrossedOutItem(const FontStrikeout eSt, const sal_uInt16 nId)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SvxEmphasisMarkItem(const FontEmphasisMark eVal, TypedWhichId< SvxEmphasisMarkItem > nId)
static SfxPoolItem * CreateDefault()
FontEmphasisMark GetEmphasisMark() const
virtual SvxEmphasisMarkItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void SetEscapement(const SvxEscapement eNew)
virtual void SetEnumValue(sal_uInt16 nNewVal) override
virtual bool operator==(const SfxPoolItem &) const override
static OUString GetValueTextByPos(sal_uInt16 nPos)
virtual SvxEscapementItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
SvxEscapementItem(const sal_uInt16 nId)
virtual sal_uInt16 GetValueCount() const override
static SfxPoolItem * CreateDefault()
virtual sal_uInt16 GetEnumValue() const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
sal_uInt32 GetHeight() const
static SfxPoolItem * CreateDefault()
MapUnit GetPropUnit() const
SvxFontHeightItem(const sal_uInt32 nSz, const sal_uInt16 nPropHeight, const sal_uInt16 nId)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
sal_uInt16 GetProp() const
void SetHeight(sal_uInt32 nNewHeight, const sal_uInt16 nNewProp=100, MapUnit eUnit=MapUnit::MapRelative)
virtual bool operator==(const SfxPoolItem &) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual SvxFontHeightItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual void ScaleMetrics(tools::Long nMult, tools::Long nDiv) override
virtual bool HasMetrics() const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
This item describes a Font.
void SetStyleName(const OUString &rStyleName)
FontFamily GetFamily() const
FontPitch GetPitch() const
void SetFamily(FontFamily _eFamily)
void SetPitch(FontPitch _ePitch)
static SfxPoolItem * CreateDefault()
void dumpAsXml(xmlTextWriterPtr pWriter) const override
const OUString & GetStyleName() const
void SetFamilyName(const OUString &rFamilyName)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
rtl_TextEncoding GetCharSet() const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
bool operator<(const SfxPoolItem &rCmp) const override
virtual SvxFontItem * Clone(SfxItemPool *pPool=nullptr) const override
SvxFontItem(const sal_uInt16 nId)
virtual bool operator==(const SfxPoolItem &rItem) const override
const OUString & GetFamilyName() const
void SetCharSet(rtl_TextEncoding _eEncoding)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
rtl_TextEncoding eTextEncoding
const FontList * pFontList
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SvxFontListItem(const FontList *pFontLst, const sal_uInt16 nId)
css::uno::Sequence< OUString > aFontNameSeq
virtual SvxFontListItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool operator==(const SfxPoolItem &) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual SvxKerningItem * Clone(SfxItemPool *pPool=nullptr) const override
SvxKerningItem(const short nKern, const sal_uInt16 nId)
virtual bool HasMetrics() const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual void ScaleMetrics(tools::Long nMult, tools::Long nDiv) override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
SvxLanguageItem(const LanguageType eLang, const sal_uInt16 nId)
static SfxPoolItem * CreateDefault()
virtual sal_uInt16 GetValueCount() const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SvxLanguageItem * Clone(SfxItemPool *pPool=nullptr) const override
SvxNoHyphenItem(const sal_uInt16 nId)
virtual SvxNoHyphenItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual OUString GetValueTextByPos(sal_uInt16 nPos) const override
SvxOverlineItem(const FontLineStyle eSt, const sal_uInt16 nId)
static SfxPoolItem * CreateDefault()
virtual SvxOverlineItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual void SetBoolValue(bool bVal) override
virtual sal_uInt16 GetValueCount() const override
virtual bool GetBoolValue() const override
static SfxPoolItem * CreateDefault()
virtual SvxPostureItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool HasBoolValue() const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SvxPostureItem(const FontItalic ePost, const sal_uInt16 nId)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
static OUString GetValueTextByPos(sal_uInt16 nPos)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SvxRsidItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
SvxRsidItem(sal_uInt32 nRsid, sal_uInt16 nId)
static void GetSlotIds(sal_uInt16 nSlotId, sal_uInt16 &rLatin, sal_uInt16 &rAsian, sal_uInt16 &rComplex)
static const SfxPoolItem * GetItemOfScript(sal_uInt16 nSlotId, const SfxItemSet &rSet, SvtScriptType nScript)
static void GetWhichIds(sal_uInt16 nSlotId, const SfxItemSet &rSet, sal_uInt16 &rLatin, sal_uInt16 &rAsian, sal_uInt16 &rComplex)
void PutItemForScriptType(SvtScriptType nScriptType, const SfxPoolItem &rItem)
SvxScriptSetItem(sal_uInt16 nSlotId, SfxItemPool &rPool)
static const SfxPoolItem * GetItemOfScriptSet(const SfxItemSet &rSet, sal_uInt16 nWhich)
virtual SvxScriptSetItem * Clone(SfxItemPool *pPool=nullptr) const override
static SfxPoolItem * CreateDefault()
virtual SvxShadowedItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
SvxShadowedItem(const bool bShadowed, const sal_uInt16 nId)
virtual bool operator==(const SfxPoolItem &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
model::ComplexColor maComplexColor
SvxTextLineItem(const FontLineStyle eSt, const sal_uInt16 nId)
void SetValue(EnumT nTheValue)
virtual void SetBoolValue(bool bVal) override
virtual SvxTextLineItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool HasBoolValue() const override
virtual OUString GetValueTextByPos(sal_uInt16 nPos) const
virtual sal_uInt16 GetValueCount() const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool GetBoolValue() const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
SvxTextRotateItem(Degree10 nValue, TypedWhichId< SvxTextRotateItem > nId)
virtual SvxTextRotateItem * Clone(SfxItemPool *pPool=nullptr) const override
Degree10 GetValue() const
void dumpAsXml(xmlTextWriterPtr pWriter) const override
void SetValue(Degree10 val)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SvxTwoLinesItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
sal_Unicode GetStartBracket() const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
SvxTwoLinesItem(bool bOn, sal_Unicode nStartBracket, sal_Unicode nEndBracket, sal_uInt16 nId)
virtual ~SvxTwoLinesItem() override
sal_Unicode GetEndBracket() const
virtual bool operator==(const SfxPoolItem &) const override
sal_Unicode cStartBracket
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SvxUnderlineItem(const FontLineStyle eSt, const sal_uInt16 nId)
static SfxPoolItem * CreateDefault()
virtual SvxUnderlineItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual OUString GetValueTextByPos(sal_uInt16 nPos) const override
virtual bool HasBoolValue() const override
virtual bool GetBoolValue() const override
static OUString GetValueTextByPos(sal_uInt16 nPos)
SvxWeightItem(const FontWeight eWght, const sal_uInt16 nId)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual SvxWeightItem * Clone(SfxItemPool *pPool=nullptr) const override
static SfxPoolItem * CreateDefault()
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual void SetBoolValue(bool bVal) override
virtual sal_uInt16 GetValueCount() const override
SvxWordLineModeItem(const bool bWordLineMode, const sal_uInt16 nId)
virtual SvxWordLineModeItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
ThemeColorType meSchemeType
void setSchemeColor(ThemeColorType eType)
std::vector< Transformation > const & getTransformations() const
void removeTransformations(TransformationType eType)
void addTransformation(Transformation const &rTransform)
FontFamily GetFamilyType()
const OUString & GetFamilyName() const
rtl_TextEncoding GetCharSet() const
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
#define DBG_ASSERT(sCon, aError)
OUString EditResId(TranslateId aId)
#define DFLT_ESC_AUTO_SUB
#define DFLT_ESC_AUTO_SUPER
struct _xmlTextWriter * xmlTextWriterPtr
OUString GetColorString(const Color &rCol)
OUString GetMetricText(tools::Long nVal, MapUnit eSrcUnit, MapUnit eDestUnit, const IntlWrapper *pIntl)
TranslateId GetMetricId(MapUnit eUnit)
constexpr OUStringLiteral cpDelim
#define LANGUAGE_ARABIC_SAUDI_ARABIA
#define LANGUAGE_ENGLISH_US
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
#define SAL_N_ELEMENTS(arr)
#define MID_FONT_CHAR_SET
#define MID_START_BRACKET
#define MID_COLOR_LUM_MOD
#define MID_COMPLEX_COLOR_JSON
#define MID_COMPLEX_COLOR
#define MID_FONTHEIGHT_DIFF
#define MID_TL_COMPLEX_COLOR
#define MID_COLOR_TINT_OR_SHADE
#define MID_COLOR_THEME_INDEX
#define MID_GRAPHIC_TRANSPARENT
#define MID_COLOR_LUM_OFF
#define MID_FONTHEIGHT_PROP
#define MID_FONT_FAMILY_NAME
#define MID_FONT_STYLE_NAME
B2IRange fround(const B2DRange &rRange)
model::ComplexColor getFromXComplexColor(uno::Reference< util::XComplexColor > const &rxColor)
bool convertFromJSON(OString const &rJsonString, model::ComplexColor &rComplexColor)
OString convertToJSON(model::ComplexColor const &rComplexColor)
uno::Reference< util::XComplexColor > createXComplexColor(model::ComplexColor const &rColor)
constexpr ThemeColorType convertToThemeColorType(sal_Int32 nIndex)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
constexpr auto toTwips(N number, Length from)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
VCL_DLLPUBLIC css::awt::FontSlant ConvertFontSlant(FontItalic eWeight)
VCL_DLLPUBLIC float ConvertFontWeight(FontWeight eWeight)
bool Any2Bool(const css::uno::Any &rValue)
void GetDefaultFonts(SvxFontItem &rLatin, SvxFontItem &rAsian, SvxFontItem &rComplex)
static TranslateId RID_SVXITEMS_RELIEF[]
static sal_uInt32 lcl_GetRealHeight_Impl(sal_uInt32 nHeight, sal_uInt16 nProp, MapUnit eProp, bool bCoreInTwip)