Related tdf#161657 Define default Comments style attributes
* Line spacing = Single * Indents/Margins = 0 * Top/Bottom spacing = 0 * Font color = COL_AUTO * Highlight = None (COL_TRANSPARENT) Change-Id: Idd0d4d896a0cc6021c99c7c13280ef6e18ae2602 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173507 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
This commit is contained in:
@@ -1015,15 +1015,26 @@ SwTextFormatColl* DocumentStylePoolManager::GetTextCollFromPool( sal_uInt16 nId,
|
||||
{
|
||||
SetAllScriptItem(aSet, SvxFontHeightItem(PT_10, 100, RES_CHRATR_FONTSIZE));
|
||||
|
||||
auto const aIndent(o3tl::convert(0.1, o3tl::Length::cm, o3tl::Length::twip));
|
||||
SvxTextLeftMarginItem const leftMargin(aIndent, RES_MARGIN_TEXTLEFT);
|
||||
SvxRightMarginItem const rightMargin(aIndent, RES_MARGIN_RIGHT);
|
||||
aSet.Put(leftMargin);
|
||||
aSet.Put(rightMargin);
|
||||
// Left margin (i.e. Before text indent)
|
||||
aSet.Put(SvxTextLeftMarginItem (0, RES_MARGIN_TEXTLEFT));
|
||||
|
||||
auto const aSpacing(o3tl::convert(0.1, o3tl::Length::cm, o3tl::Length::twip));
|
||||
SvxULSpaceItem topSpacing( aSpacing, 0, RES_UL_SPACE );
|
||||
aSet.Put(topSpacing);
|
||||
// Right margin (i.e. After text indent)
|
||||
aSet.Put(SvxRightMarginItem(0, RES_MARGIN_RIGHT));
|
||||
|
||||
// First line indent
|
||||
aSet.Put(SvxFirstLineIndentItem(0, RES_MARGIN_FIRSTLINE));
|
||||
|
||||
// Top/bottom spacing (i.e. Above/Below paragraph spacing)
|
||||
aSet.Put(SvxULSpaceItem(0, 0, RES_UL_SPACE));
|
||||
|
||||
// Line spacing = SINGLE
|
||||
aSet.Put(SvxLineSpacingItem(0, RES_PARATR_LINESPACING));
|
||||
|
||||
// Font color
|
||||
aSet.Put(SvxColorItem(COL_AUTO, RES_CHRATR_COLOR));
|
||||
|
||||
// Highlight color = NONE
|
||||
aSet.Put(SvxBrushItem(COL_TRANSPARENT, RES_CHRATR_HIGHLIGHT));
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user