LibreOffice Module sw (master) 1
|
#include <svxcss1.hxx>
Public Member Functions | |
SvxCSS1PropertyInfo () | |
SvxCSS1PropertyInfo (const SvxCSS1PropertyInfo &rProp) | |
~SvxCSS1PropertyInfo () | |
void | Merge (const SvxCSS1PropertyInfo &rProp) |
void | Clear () |
SvxCSS1BorderInfo * | GetBorderInfo (SvxBoxItemLine nLine, bool bCreate=true) |
void | CopyBorderInfo (SvxBoxItemLine nSrcLine, SvxBoxItemLine nDstLine, sal_uInt16 nWhat) |
void | CopyBorderInfo (sal_uInt16 nCount, sal_uInt16 nWhat) |
void | SetBoxItem (SfxItemSet &rItemSet, sal_uInt16 nMinBorderDist, const SvxBoxItem *pDflt=nullptr) |
Public Attributes | |
OUString | m_aId |
bool | m_bTopMargin: 1 |
bool | m_bBottomMargin: 1 |
bool | m_bLeftMargin: 1 |
bool | m_bRightMargin: 1 |
bool | m_bTextIndent: 1 |
bool | m_bNumbering: 1 |
bool | m_bBullet: 1 |
SvxAdjust | m_eFloat |
SvxCSS1Position | m_ePosition |
sal_uInt16 | m_nTopBorderDistance |
sal_uInt16 | m_nBottomBorderDistance |
sal_uInt16 | m_nLeftBorderDistance |
sal_uInt16 | m_nRightBorderDistance |
SvxNumType | m_nNumberingType |
sal_Unicode | m_cBulletChar |
sal_uInt16 | m_nColumnCount |
tools::Long | m_nLeft |
tools::Long | m_nTop |
tools::Long | m_nWidth |
tools::Long | m_nHeight |
tools::Long | m_nLeftMargin |
tools::Long | m_nRightMargin |
SvxCSS1LengthType | m_eLeftType |
SvxCSS1LengthType | m_eTopType |
SvxCSS1LengthType | m_eWidthType |
SvxCSS1LengthType | m_eHeightType |
SvxCSS1LengthType | m_eLeftMarginType |
SvxCSS1LengthType | m_eRightMarginType |
SvxCSS1SizeType | m_eSizeType |
SvxCSS1PageBreak | m_ePageBreakBefore |
SvxCSS1PageBreak | m_ePageBreakAfter |
bool | m_bVisible = true |
Static Public Attributes | |
static constexpr sal_uInt16 | UNSET_BORDER_DISTANCE = SAL_MAX_UINT16 |
Private Member Functions | |
void | DestroyBorderInfos () |
Private Attributes | |
std::array< std::unique_ptr< SvxCSS1BorderInfo >, 4 > | m_aBorderInfos |
Definition at line 99 of file svxcss1.hxx.
SvxCSS1PropertyInfo::SvxCSS1PropertyInfo | ( | ) |
Definition at line 372 of file svxcss1.cxx.
References Clear().
SvxCSS1PropertyInfo::SvxCSS1PropertyInfo | ( | const SvxCSS1PropertyInfo & | rProp | ) |
Definition at line 377 of file svxcss1.cxx.
References i, m_aBorderInfos, and m_ePosition.
SvxCSS1PropertyInfo::~SvxCSS1PropertyInfo | ( | ) |
Definition at line 416 of file svxcss1.cxx.
void SvxCSS1PropertyInfo::Clear | ( | ) |
Definition at line 426 of file svxcss1.cxx.
References DestroyBorderInfos(), m_aId, m_bBottomMargin, m_bBullet, m_bLeftMargin, m_bNumbering, m_bRightMargin, m_bTextIndent, m_bTopMargin, m_cBulletChar, m_eFloat, m_eHeightType, m_eLeftMarginType, m_eLeftType, m_ePageBreakAfter, m_ePageBreakBefore, m_ePosition, m_eRightMarginType, m_eSizeType, m_eTopType, m_eWidthType, m_nBottomBorderDistance, m_nColumnCount, m_nHeight, m_nLeft, m_nLeftBorderDistance, m_nLeftMargin, m_nNumberingType, m_nRightBorderDistance, m_nRightMargin, m_nTop, m_nTopBorderDistance, m_nWidth, SVX_CSS1_LTYPE_NONE, SVX_CSS1_PBREAK_NONE, SVX_CSS1_POS_NONE, SVX_CSS1_STYPE_NONE, SVX_NUM_CHARS_UPPER_LETTER, and UNSET_BORDER_DISTANCE.
Referenced by SvxCSS1PropertyInfo().
void SvxCSS1PropertyInfo::CopyBorderInfo | ( | sal_uInt16 | nCount, |
sal_uInt16 | nWhat | ||
) |
Definition at line 577 of file svxcss1.cxx.
References CopyBorderInfo(), and nCount.
void SvxCSS1PropertyInfo::CopyBorderInfo | ( | SvxBoxItemLine | nSrcLine, |
SvxBoxItemLine | nDstLine, | ||
sal_uInt16 | nWhat | ||
) |
Definition at line 556 of file svxcss1.cxx.
References SvxCSS1BorderInfo::aColor, SvxCSS1BorderInfo::eStyle, GetBorderInfo(), SvxCSS1BorderInfo::nAbsWidth, SvxCSS1BorderInfo::nNamedWidth, SVX_CSS1_BORDERINFO_COLOR, SVX_CSS1_BORDERINFO_STYLE, and SVX_CSS1_BORDERINFO_WIDTH.
Referenced by CopyBorderInfo(), ParseCSS1_border_color(), ParseCSS1_border_style(), and ParseCSS1_border_width().
|
private |
Definition at line 420 of file svxcss1.cxx.
References m_aBorderInfos.
Referenced by Clear(), and SetBoxItem().
SvxCSS1BorderInfo * SvxCSS1PropertyInfo::GetBorderInfo | ( | SvxBoxItemLine | nLine, |
bool | bCreate = true |
||
) |
Definition at line 539 of file svxcss1.cxx.
References m_aBorderInfos, and nPos.
Referenced by CopyBorderInfo(), ParseCSS1_border_color(), ParseCSS1_border_style(), ParseCSS1_border_xxx(), ParseCSS1_border_xxx_width(), and SetBoxItem().
void SvxCSS1PropertyInfo::Merge | ( | const SvxCSS1PropertyInfo & | rProp | ) |
Definition at line 457 of file svxcss1.cxx.
References i, m_aBorderInfos, m_bBottomMargin, m_bLeftMargin, m_bRightMargin, m_bTextIndent, m_bTopMargin, m_eFloat, m_eHeightType, m_eLeftType, m_ePageBreakAfter, m_ePageBreakBefore, m_ePosition, m_eSizeType, m_eTopType, m_eWidthType, m_nBottomBorderDistance, m_nColumnCount, m_nHeight, m_nLeft, m_nLeftBorderDistance, m_nLeftMargin, m_nRightBorderDistance, m_nRightMargin, m_nTop, m_nTopBorderDistance, m_nWidth, SVX_CSS1_LTYPE_NONE, SVX_CSS1_PBREAK_NONE, SVX_CSS1_POS_NONE, SVX_CSS1_STYPE_NONE, and UNSET_BORDER_DISTANCE.
Referenced by SvxCSS1Parser::MergeStyles().
void SvxCSS1PropertyInfo::SetBoxItem | ( | SfxItemSet & | rItemSet, |
sal_uInt16 | nMinBorderDist, | ||
const SvxBoxItem * | pDflt = nullptr |
||
) |
Definition at line 590 of file svxcss1.cxx.
References aItemIds, SvxBoxItem::Clone(), DestroyBorderInfos(), GetBorderInfo(), i, m_aBorderInfos, m_nBottomBorderDistance, m_nLeftBorderDistance, m_nRightBorderDistance, m_nTopBorderDistance, SfxItemSet::Put(), SvxCSS1BorderInfo::SetBorderLine(), U, and UNSET_BORDER_DISTANCE.
Referenced by SwCSS1Parser::GetTextFormatColl(), SwHTMLParser::ParseStyleOptions(), and SwCSS1Parser::StyleParsed().
|
private |
Definition at line 101 of file svxcss1.hxx.
Referenced by DestroyBorderInfos(), GetBorderInfo(), Merge(), SetBoxItem(), and SvxCSS1PropertyInfo().
OUString SvxCSS1PropertyInfo::m_aId |
Definition at line 108 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::DoPositioning(), SwHTMLParser::InsertAttrs(), SwHTMLParser::InsertLineBreak(), SwHTMLParser::NewDivision(), SwHTMLParser::NewMultiCol(), and SwHTMLParser::ParseStyleOptions().
bool SvxCSS1PropertyInfo::m_bBottomMargin |
Definition at line 111 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), Merge(), SvxCSS1Parser::MergeStyles(), ParseCSS1_margin(), ParseCSS1_margin_bottom(), SwCSS1Parser::SetPageDescAttrs(), SwHTMLParser::SetSpace(), and SetTextCollAttrs().
bool SvxCSS1PropertyInfo::m_bBullet |
Definition at line 117 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::NewNumberBulletList(), and ParseCSS1_list_style_type().
bool SvxCSS1PropertyInfo::m_bLeftMargin |
Definition at line 113 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), Merge(), SvxCSS1Parser::MergeStyles(), SwHTMLParser::NewNumberBulletList(), ParseCSS1_margin(), ParseCSS1_margin_left(), SwCSS1Parser::SetPageDescAttrs(), and SwHTMLParser::SetSpace().
bool SvxCSS1PropertyInfo::m_bNumbering |
Definition at line 116 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::NewNumberBulletList(), and ParseCSS1_list_style_type().
bool SvxCSS1PropertyInfo::m_bRightMargin |
Definition at line 114 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), Merge(), SvxCSS1Parser::MergeStyles(), SwHTMLParser::NewNumberBulletList(), ParseCSS1_margin(), ParseCSS1_margin_right(), SwCSS1Parser::SetPageDescAttrs(), and SwHTMLParser::SetSpace().
bool SvxCSS1PropertyInfo::m_bTextIndent |
Definition at line 115 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), Merge(), SvxCSS1Parser::MergeStyles(), SwHTMLParser::NewNumberBulletList(), and ParseCSS1_text_indent().
bool SvxCSS1PropertyInfo::m_bTopMargin |
Definition at line 110 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), Merge(), SvxCSS1Parser::MergeStyles(), ParseCSS1_margin(), ParseCSS1_margin_top(), SwCSS1Parser::SetPageDescAttrs(), SwHTMLParser::SetSpace(), and SetTextCollAttrs().
bool SvxCSS1PropertyInfo::m_bVisible = true |
Definition at line 147 of file svxcss1.hxx.
Referenced by SwCSS1Parser::MayBePositioned(), SwHTMLParser::NewDivision(), and ParseCSS1_visibility().
sal_Unicode SvxCSS1PropertyInfo::m_cBulletChar |
Definition at line 129 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::NewNumberBulletList(), and ParseCSS1_list_style_type().
SvxAdjust SvxCSS1PropertyInfo::m_eFloat |
Definition at line 119 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), SwCSS1Parser::MayBePositioned(), Merge(), ParseCSS1_float(), SwHTMLParser::SetAnchorAndAdjustment(), and SwCSS1Parser::StyleParsed().
SvxCSS1LengthType SvxCSS1PropertyInfo::m_eHeightType |
Definition at line 138 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertInput(), Merge(), SwHTMLParser::NewMarquee(), SwHTMLParser::NewSelect(), SwHTMLParser::NewTextArea(), ParseCSS1_height(), SwHTMLParser::SetFixSize(), and SwHTMLParser::SetVarSize().
SvxCSS1LengthType SvxCSS1PropertyInfo::m_eLeftMarginType |
Definition at line 139 of file svxcss1.hxx.
Referenced by SwHTMLParser::BuildTable(), Clear(), and ParseCSS1_margin_left().
SvxCSS1LengthType SvxCSS1PropertyInfo::m_eLeftType |
Definition at line 137 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), SwCSS1Parser::MayBePositioned(), Merge(), ParseCSS1_left(), and SwHTMLParser::SetAnchorAndAdjustment().
SvxCSS1PageBreak SvxCSS1PropertyInfo::m_ePageBreakAfter |
Definition at line 145 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_page_break_after(), and SwCSS1Parser::SetFormatBreak().
SvxCSS1PageBreak SvxCSS1PropertyInfo::m_ePageBreakBefore |
Definition at line 144 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_page_break_before(), and SwCSS1Parser::SetFormatBreak().
SvxCSS1Position SvxCSS1PropertyInfo::m_ePosition |
Definition at line 121 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), SwCSS1Parser::MayBePositioned(), Merge(), ParseCSS1_position(), and SwHTMLParser::SetAnchorAndAdjustment().
SvxCSS1LengthType SvxCSS1PropertyInfo::m_eRightMarginType |
Definition at line 140 of file svxcss1.hxx.
Referenced by SwHTMLParser::BuildTable(), Clear(), and ParseCSS1_margin_right().
SvxCSS1SizeType SvxCSS1PropertyInfo::m_eSizeType |
Definition at line 142 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_size(), and SwCSS1Parser::SetPageDescAttrs().
SvxCSS1LengthType SvxCSS1PropertyInfo::m_eTopType |
Definition at line 137 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), SwCSS1Parser::MayBePositioned(), Merge(), ParseCSS1_top(), and SwHTMLParser::SetAnchorAndAdjustment().
SvxCSS1LengthType SvxCSS1PropertyInfo::m_eWidthType |
Definition at line 138 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertInput(), SwCSS1Parser::MayBePositioned(), Merge(), SwHTMLParser::NewMarquee(), SwHTMLParser::NewSelect(), SwHTMLParser::NewTextArea(), ParseCSS1_width(), SwHTMLParser::SetFixSize(), and SwHTMLParser::SetVarSize().
sal_uInt16 SvxCSS1PropertyInfo::m_nBottomBorderDistance |
Definition at line 124 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_padding(), ParseCSS1_padding_xxx(), and SetBoxItem().
sal_uInt16 SvxCSS1PropertyInfo::m_nColumnCount |
Definition at line 131 of file svxcss1.hxx.
Referenced by Clear(), Merge(), SwHTMLParser::NewDivision(), and ParseCSS1_column_count().
tools::Long SvxCSS1PropertyInfo::m_nHeight |
Definition at line 134 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertInput(), Merge(), SwHTMLParser::NewMarquee(), SwHTMLParser::NewSelect(), SwHTMLParser::NewTextArea(), ParseCSS1_height(), ParseCSS1_size(), SwHTMLParser::SetFixSize(), SwCSS1Parser::SetPageDescAttrs(), and SwHTMLParser::SetVarSize().
tools::Long SvxCSS1PropertyInfo::m_nLeft |
Definition at line 133 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), Merge(), ParseCSS1_left(), and SwHTMLParser::SetAnchorAndAdjustment().
sal_uInt16 SvxCSS1PropertyInfo::m_nLeftBorderDistance |
Definition at line 125 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_padding(), ParseCSS1_padding_xxx(), and SetBoxItem().
tools::Long SvxCSS1PropertyInfo::m_nLeftMargin |
Definition at line 135 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), Merge(), SwHTMLParser::NewNumberBulletList(), ParseCSS1_margin(), and ParseCSS1_margin_left().
SvxNumType SvxCSS1PropertyInfo::m_nNumberingType |
Definition at line 128 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::NewNumberBulletList(), and ParseCSS1_list_style_type().
sal_uInt16 SvxCSS1PropertyInfo::m_nRightBorderDistance |
Definition at line 126 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_padding(), ParseCSS1_padding_xxx(), and SetBoxItem().
tools::Long SvxCSS1PropertyInfo::m_nRightMargin |
Definition at line 135 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertAttrs(), Merge(), ParseCSS1_margin(), and ParseCSS1_margin_right().
tools::Long SvxCSS1PropertyInfo::m_nTop |
Definition at line 133 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertControl(), SwHTMLParser::InsertDrawObject(), Merge(), ParseCSS1_top(), and SwHTMLParser::SetAnchorAndAdjustment().
sal_uInt16 SvxCSS1PropertyInfo::m_nTopBorderDistance |
Definition at line 123 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_padding(), ParseCSS1_padding_xxx(), and SetBoxItem().
tools::Long SvxCSS1PropertyInfo::m_nWidth |
Definition at line 134 of file svxcss1.hxx.
Referenced by Clear(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertInput(), Merge(), SwHTMLParser::NewMarquee(), SwHTMLParser::NewSelect(), SwHTMLParser::NewTextArea(), ParseCSS1_size(), ParseCSS1_width(), SwHTMLParser::SetFixSize(), SwCSS1Parser::SetPageDescAttrs(), and SwHTMLParser::SetVarSize().
|
staticconstexpr |
Definition at line 106 of file svxcss1.hxx.
Referenced by Clear(), Merge(), ParseCSS1_padding_xxx(), and SetBoxItem().