46#include <editeng/editrids.hrc>
91 { SID_ATTR_CHAR_FONT,
true },
92 { SID_ATTR_CHAR_FONTHEIGHT,
true },
93 { SID_ATTR_CHAR_WEIGHT,
true },
94 { SID_ATTR_CHAR_POSTURE,
true },
95 { SID_ATTR_CHAR_UNDERLINE,
true },
96 { SID_ATTR_CHAR_OVERLINE,
true },
97 { SID_ATTR_CHAR_STRIKEOUT,
true },
98 { SID_ATTR_CHAR_CONTOUR,
true },
99 { SID_ATTR_CHAR_SHADOWED,
true },
100 { SID_ATTR_CHAR_COLOR,
true },
101 { SID_ATTR_CHAR_LANGUAGE,
true },
102 { SID_ATTR_CHAR_CJK_FONT,
true },
103 { SID_ATTR_CHAR_CJK_FONTHEIGHT,
true },
104 { SID_ATTR_CHAR_CJK_WEIGHT,
true },
105 { SID_ATTR_CHAR_CJK_POSTURE,
true },
106 { SID_ATTR_CHAR_CJK_LANGUAGE,
true },
107 { SID_ATTR_CHAR_CTL_FONT,
true },
108 { SID_ATTR_CHAR_CTL_FONTHEIGHT,
true },
109 { SID_ATTR_CHAR_CTL_WEIGHT,
true },
110 { SID_ATTR_CHAR_CTL_POSTURE,
true },
111 { SID_ATTR_CHAR_CTL_LANGUAGE,
true },
112 { SID_ATTR_CHAR_EMPHASISMARK,
true },
114 { SID_ATTR_CHAR_WORDLINEMODE,
true },
115 { SID_ATTR_CHAR_RELIEF,
true },
116 { SID_ATTR_ALIGN_HYPHENATION,
true },
119 { SID_ATTR_PARA_FORBIDDEN_RULES,
true },
120 { SID_ATTR_ALIGN_HOR_JUSTIFY,
true },
121 { SID_ATTR_ALIGN_HOR_JUSTIFY_METHOD,
true },
122 { SID_ATTR_ALIGN_INDENT,
true },
123 { SID_ATTR_ALIGN_VER_JUSTIFY,
true },
124 { SID_ATTR_ALIGN_VER_JUSTIFY_METHOD,
true },
125 { SID_ATTR_ALIGN_STACKED,
true },
126 { SID_ATTR_ALIGN_DEGREES,
true },
127 { SID_ATTR_ALIGN_LOCKPOS,
true },
128 { SID_ATTR_ALIGN_ASIANVERTICAL,
true },
129 { SID_ATTR_FRAMEDIRECTION,
true },
130 { SID_ATTR_ALIGN_LINEBREAK,
true },
131 { SID_ATTR_ALIGN_SHRINKTOFIT,
true },
132 { SID_ATTR_BORDER_DIAG_TLBR,
true },
133 { SID_ATTR_BORDER_DIAG_BLTR,
true },
134 { SID_ATTR_ALIGN_MARGIN,
true },
137 { SID_ATTR_NUMBERFORMAT_VALUE,
true },
139 { SID_ATTR_BRUSH,
true },
140 { SID_SCATTR_PROTECTION,
true },
141 { SID_ATTR_BORDER_OUTER,
true },
142 { SID_ATTR_BORDER_INNER,
true },
143 { SID_ATTR_BORDER_SHADOW,
true },
148 { SID_ATTR_LRSPACE,
true },
149 { SID_ATTR_ULSPACE,
true },
150 { SID_ATTR_PAGE,
true },
151 { SID_ATTR_PAGE_PAPERBIN,
true },
152 { SID_ATTR_PAGE_SIZE,
true },
153 { SID_ATTR_PAGE_EXT1,
true },
154 { SID_ATTR_PAGE_EXT2,
true },
155 { SID_ATTR_PAGE_ON,
true },
156 { SID_ATTR_PAGE_DYNAMIC,
true },
157 { SID_ATTR_PAGE_SHARED,
true },
158 { SID_ATTR_PAGE_SHARED_FIRST,
true },
175 { SID_ATTR_PAGE_HEADERSET,
true },
176 { SID_ATTR_PAGE_FOOTERSET,
true },
199 SvxFontItem* pStdFont = getDefaultFontItem(nDefLang, DefaultFontType::LATIN_SPREADSHEET,
ATTR_FONT);
211 pGlobalBorderInnerAttr->
SetLine(
nullptr, SvxBoxInfoItemLine::HORI);
212 pGlobalBorderInnerAttr->
SetLine(
nullptr, SvxBoxInfoItemLine::VERT);
213 pGlobalBorderInnerAttr->
SetTable(
true);
214 pGlobalBorderInnerAttr->
SetDist(
true);
284 ScResId(STR_STYLENAME_STANDARD) );
379 if ( pPattern && pPattern->GetStyleSheet() == nullptr )
382 if ( pStyleName && *pStyleName == rName )
383 pPattern->UpdateStyleSheet(rDoc);
406 if( !pItem->GetValue() )
414 sal_uInt16 nWhich = pItem->Which();
429 sal_uInt16 nPropLeftMargin = rLRItem.
GetPropLeft();
438 aText =
EditResId(RID_SVXITEMS_LRSPACE_LEFT);
439 if ( 100 != nPropLeftMargin )
447 eCoreMetric, ePresentationMetric, &rIntl ) +
453 if ( 100 != nPropRightMargin )
461 eCoreMetric, ePresentationMetric, &rIntl ) +
468 pItem->GetPresentation( SfxItemPresentation::Complete, eCoreMetric, ePresentationMetric, aText, rIntl );
472 if ( aText.getLength() )
474 rText += aText +
" + ";
490 sal_uInt16 nW = rItem.
Which();
491 OUString aStrYes (
ScResId(STR_YES) );
492 OUString aStrNo (
ScResId(STR_NO) );
493 OUString aStrSep(
": ");
495 bool ePresentationRet =
true;
499 rText =
ScResId(STR_SCATTR_PAGE_PRINTDIR) + aStrSep;
501 ScResId(STR_SCATTR_PAGE_TOPDOWN) :
502 ScResId(STR_SCATTR_PAGE_LEFTRIGHT) ;
506 rText =
ScResId(STR_SCATTR_PAGE_HEADERS) + aStrSep;
511 rText =
ScResId(STR_SCATTR_PAGE_NULLVALS) + aStrSep;
516 rText =
ScResId(STR_SCATTR_PAGE_FORMULAS) + aStrSep;
521 rText =
ScResId(STR_SCATTR_PAGE_NOTES) + aStrSep;
526 rText =
ScResId(STR_SCATTR_PAGE_GRID) + aStrSep;
536 rText =
ScResId( STR_SCATTR_PAGE_SCALETOPAGES ) + aStrSep;
537 OUString aPages(
ScResId(STR_SCATTR_PAGE_SCALE_PAGES, nPagNo));
538 aPages = aPages.replaceFirst(
"%1", OUString::number( nPagNo ) );
543 ePresentationRet =
false;
554 rText =
ScResId(STR_SCATTR_PAGE_FIRSTPAGENO) + aStrSep;
555 rText += OUString::number( nPagNo );
559 ePresentationRet =
false;
570 rText =
ScResId(STR_SCATTR_PAGE_SCALE) + aStrSep;
576 ePresentationRet =
false;
604 ePresentationRet = rItem.
GetPresentation( SfxItemPresentation::Complete,
GetMetric( nW ), ePresentationMetric, rText, rIntl );
608 return ePresentationRet;
615 return MapUnit::MapTwip;
617 return MapUnit::Map100thMM;
static const AllSettings & GetSettings()
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
virtual MapUnit GetMetric(sal_uInt16 nWhich) const override
void StyleDeleted(const ScStyleSheet *pStyle)
virtual bool GetPresentation(const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntl) const override
virtual rtl::Reference< SfxItemPool > Clone() const override
virtual const SfxPoolItem & PutImpl(const SfxPoolItem &, sal_uInt16 nWhich=0, bool bPassingOwnership=false) override
void CellStyleCreated(std::u16string_view rName, const ScDocument &rDoc)
virtual ~ScDocumentPool() override
std::vector< SfxPoolItem * > mvPoolDefaults
sal_uInt64 mnCurrentMaxKey
static SvxBrushItem * GetEmptyBrushItem()
static SC_DLLPUBLIC LanguageType eLnge
static void GetSpellSettings(LanguageType &rDefLang, LanguageType &rCjkLang, LanguageType &rCtlLang, bool &rAutoSpell)
Contains the "scale to width/height" attribute in page styles.
const ScStyleSheet * GetStyleSheet() const
const OUString * GetStyleName() const
void SetKey(sal_uInt64 nKey)
const SfxPoolItem * GetCurItem() const
const SfxPoolItem * NextItem()
Item2Range GetItemSurrogates(sal_uInt16 nWhich) const
static void ClearRefCount(SfxPoolItem &rItem)
void SetDefaults(std::vector< SfxPoolItem * > *pDefaults)
SfxItemPool(const SfxItemPool &rPool, bool bCloneStaticDefaults=false)
virtual const SfxPoolItem & PutImpl(const SfxPoolItem &, sal_uInt16 nWhich=0, bool bPassingOwnership=false)
void SetSecondaryPool(SfxItemPool *pPool)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
sal_uInt32 GetRefCount() const
void SetMinDist(bool bNew)
void SetLine(const editeng::SvxBorderLine *pNew, SvxBoxInfoItemLine nLine)
sal_uInt16 GetPropLeft() const
sal_uInt16 GetPropRight() const
tools::Long GetRight() const
tools::Long GetLeft() const
static OUString formatPercent(double dNumber, const LanguageTag &rLangTag)
FontFamily GetFamilyType()
const OUString & GetStyleName() const
const OUString & GetFamilyName() const
rtl_TextEncoding GetCharSet() const
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
SfxItemInfo const aItemInfos[]
static bool lcl_HFPresentation(const SfxPoolItem &rItem, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntl)
OUString EditResId(TranslateId aId)
constexpr OUStringLiteral STRING_STANDARD
OUString GetMetricText(tools::Long nVal, MapUnit eSrcUnit, MapUnit eDestUnit, const IntlWrapper *pIntl)
TranslateId GetMetricId(MapUnit eUnit)
constexpr OUStringLiteral cpDelim
#define LANGUAGE_DONTKNOW
#define SAL_N_ELEMENTS(arr)
tools::Long const nRightMargin
tools::Long const nLeftMargin
OString stripEnd(const OString &rIn, char c)
static constexpr auto Items
OUString ScResId(TranslateId aId)
constexpr TypedWhichId< ScIndentItem > ATTR_INDENT(131)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALE(175)
constexpr TypedWhichId< SfxBoolItem > ATTR_HIDDEN(189)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_SHARED(166)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_FONT_HEIGHT(101)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_FOOTERLEFT(179)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_HEADERLEFT(178)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_HORCENTER(162)
constexpr TypedWhichId< SfxBoolItem > ATTR_VERTICAL_ASIAN(137)
constexpr TypedWhichId< SvxFontItem > ATTR_CJK_FONT(111)
constexpr TypedWhichId< ScMergeFlagAttr > ATTR_MERGE_FLAG(145)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_DYNAMIC(165)
constexpr TypedWhichId< SvxSizeItem > ATTR_PAGE_SIZE(161)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_NULLVALS(187)
constexpr TypedWhichId< ScPatternAttr > ATTR_PATTERN(156)
constexpr TypedWhichId< SfxStringItem > ATTR_HYPERLINK(155)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_VERCENTER(163)
constexpr TypedWhichId< SvxForbiddenRuleItem > ATTR_FORBIDDEN_RULES(128)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_HEADERS(170)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_HEADERSET(184)
constexpr TypedWhichId< SvxPostureItem > ATTR_CTL_FONT_POSTURE(119)
constexpr TypedWhichId< SvxFontItem > ATTR_CTL_FONT(116)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CJK_FONT_HEIGHT(112)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_FORMULAS(186)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_FOOTERRIGHT(181)
constexpr TypedWhichId< SvxPostureItem > ATTR_FONT_POSTURE(103)
constexpr TypedWhichId< SvxWeightItem > ATTR_FONT_WEIGHT(102)
constexpr TypedWhichId< SvxColorItem > ATTR_FONT_COLOR(109)
constexpr TypedWhichId< SvxWeightItem > ATTR_CJK_FONT_WEIGHT(113)
constexpr TypedWhichId< SvxEmphasisMarkItem > ATTR_FONT_EMPHASISMARK(121)
constexpr TypedWhichId< ScShrinkToFitCell > ATTR_SHRINKTOFIT(140)
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_TLBR(141)
constexpr TypedWhichId< ScMergeAttr > ATTR_MERGE(144)
constexpr TypedWhichId< SvxShadowedItem > ATTR_FONT_SHADOWED(108)
constexpr TypedWhichId< SvxULSpaceItem > ATTR_ULSPACE(158)
constexpr TypedWhichId< SvxScriptSpaceItem > ATTR_SCRIPTSPACE(126)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_GRID(169)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_TOPDOWN(174)
constexpr TypedWhichId< SvxWordLineModeItem > ATTR_FONT_WORDLINE(123)
constexpr TypedWhichId< ScViewObjectModeItem > ATTR_PAGE_CHARTS(171)
constexpr TypedWhichId< ScViewObjectModeItem > ATTR_PAGE_OBJECTS(172)
constexpr sal_uInt16 ATTR_STARTINDEX(100)
constexpr TypedWhichId< SvxContourItem > ATTR_FONT_CONTOUR(107)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CTL_FONT_LANGUAGE(120)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_HEADERRIGHT(180)
constexpr TypedWhichId< SvxBrushItem > ATTR_BACKGROUND(148)
constexpr TypedWhichId< SvxOverlineItem > ATTR_FONT_OVERLINE(105)
constexpr TypedWhichId< SvxPaperBinItem > ATTR_PAGE_PAPERBIN(160)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_FIRSTPAGENO(177)
constexpr TypedWhichId< SvxShadowItem > ATTR_SHADOW(152)
constexpr TypedWhichId< SvxLanguageItem > ATTR_LANGUAGE_FORMAT(147)
constexpr TypedWhichId< ScRotateValueItem > ATTR_ROTATE_VALUE(135)
constexpr TypedWhichId< SvxJustifyMethodItem > ATTR_VER_JUSTIFY_METHOD(133)
constexpr TypedWhichId< SvxHorJustifyItem > ATTR_HOR_JUSTIFY(129)
constexpr TypedWhichId< SvxBoxInfoItem > ATTR_BORDER_INNER(151)
constexpr TypedWhichId< SvxPageItem > ATTR_PAGE(159)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_NOTES(168)
constexpr TypedWhichId< SvxHangingPunctuationItem > ATTR_HANGPUNCTUATION(127)
constexpr TypedWhichId< SvxRotateModeItem > ATTR_ROTATE_MODE(136)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_HEADERFIRST(182)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
constexpr TypedWhichId< SvxJustifyMethodItem > ATTR_HOR_JUSTIFY_METHOD(130)
constexpr TypedWhichId< SvxCharReliefItem > ATTR_FONT_RELIEF(124)
constexpr TypedWhichId< ScPageHFItem > ATTR_PAGE_FOOTERFIRST(183)
constexpr TypedWhichId< ScPageScaleToItem > ATTR_PAGE_SCALETO(188)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
constexpr TypedWhichId< SvxFrameDirectionItem > ATTR_WRITINGDIR(138)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_SHARED_FIRST(167)
constexpr TypedWhichId< SvxCrossedOutItem > ATTR_FONT_CROSSEDOUT(106)
constexpr TypedWhichId< SvxMarginItem > ATTR_MARGIN(143)
constexpr TypedWhichId< SvxLineItem > ATTR_BORDER_BLTR(142)
constexpr TypedWhichId< ScVerticalStackCell > ATTR_STACKED(134)
constexpr TypedWhichId< SvxVerJustifyItem > ATTR_VER_JUSTIFY(132)
constexpr TypedWhichId< ScHyphenateCell > ATTR_HYPHENATE(125)
constexpr TypedWhichId< SvxFontItem > ATTR_FONT(100)
constexpr TypedWhichId< ScProtectionAttr > ATTR_PROTECTION(149)
constexpr TypedWhichId< SvxLanguageItem > ATTR_FONT_LANGUAGE(110)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALETOPAGES(176)
constexpr sal_uInt16 ATTR_ENDINDEX(ATTR_HIDDEN)
constexpr TypedWhichId< SvxWeightItem > ATTR_CTL_FONT_WEIGHT(118)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_FOOTERSET(185)
constexpr TypedWhichId< SvXMLAttrContainerItem > ATTR_USERDEF(122)
constexpr TypedWhichId< ScViewObjectModeItem > ATTR_PAGE_DRAWINGS(173)
constexpr TypedWhichId< ScLineBreakCell > ATTR_LINEBREAK(139)
constexpr TypedWhichId< SvxPostureItem > ATTR_CJK_FONT_POSTURE(114)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALIDDATA(153)
constexpr TypedWhichId< SvxLanguageItem > ATTR_CJK_FONT_LANGUAGE(115)
constexpr TypedWhichId< SvxFontHeightItem > ATTR_CTL_FONT_HEIGHT(117)
constexpr TypedWhichId< ScCondFormatItem > ATTR_CONDITIONAL(154)
constexpr TypedWhichId< SfxBoolItem > ATTR_PAGE_ON(164)
constexpr TypedWhichId< SvxLRSpaceItem > ATTR_LRSPACE(157)
constexpr TypedWhichId< SvxUnderlineItem > ATTR_FONT_UNDERLINE(104)
std::unique_ptr< char[]> aBuffer