LibreOffice Module sw (master) 1
|
#include <swcss1.hxx>
Public Member Functions | |
SwCSS1Parser (SwDoc *pDoc, SwHTMLParser const &rParser, sal_uInt32 const aFHeight[7], const OUString &rBaseURL, bool bNewDoc) | |
virtual | ~SwCSS1Parser () override |
virtual bool | ParseStyleSheet (const OUString &rIn) override |
virtual sal_uInt32 | GetFontHeight (sal_uInt16 nSize) const override |
virtual const FontList * | GetFontList () const override |
SwCharFormat * | GetChrFormat (HtmlTokenId nToken, const OUString &rClass) const |
SwTextFormatColl * | GetTextFormatColl (sal_uInt16 nTextColl, const OUString &rClass) |
SwTextFormatColl * | GetTextCollFromPool (sal_uInt16 nPoolId) const |
SwCharFormat * | GetCharFormatFromPool (sal_uInt16 nPoolId) const |
SwPageDesc * | GetMasterPageDesc () |
const SwPageDesc * | GetFirstPageDesc (bool bCreate=false) |
const SwPageDesc * | GetRightPageDesc (bool bCreate=false) |
const SwPageDesc * | GetLeftPageDesc (bool bCreate=false) |
void | SetPageDescAttrs (const SvxBrushItem *pBrush, SfxItemSet *pItemSet=nullptr) |
void | ChgPageDesc (const SwPageDesc *pPageDesc, const SwPageDesc &rNewPageDesc) |
void | SetPageDescAttrs (const SwPageDesc *pPageDesc, SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rPropInfo) |
void | FillDropCap (SwFormatDrop &rDrop, SfxItemSet &rItemSet, const OUString *pName=nullptr) |
bool | SetFormatBreak (SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rPropInfo) |
bool | IsBodyBGColorSet () const |
bool | IsBodyBackgroundSet () const |
bool | IsBodyTextSet () const |
bool | IsBodyLinkSet () const |
bool | IsBodyVLinkSet () const |
bool | IsSetFirstPageDesc () const |
bool | IsSetRightPageDesc () const |
void | SetBodyBGColorSet () |
void | SetBodyBackgroundSet () |
void | SetBodyTextSet () |
void | SetBodyLinkSet () |
void | SetBodyVLinkSet () |
std::unique_ptr< SvxBrushItem > | makePageDescBackground () const |
void | SetTHTagStyles () |
void | SetTDTagStyles () |
void | SetATagStyles () |
void | SetDelayedStyles () |
virtual void | SetDfltEncoding (rtl_TextEncoding eEnc) override |
Public Member Functions inherited from SvxCSS1Parser | |
SvxCSS1Parser (SfxItemPool &rPool, OUString aBaseURL, sal_uInt16 const *pWhichIds, sal_uInt16 nWhichIds) | |
virtual | ~SvxCSS1Parser () override |
bool | IsIgnoreFontFamily () const |
void | SetIgnoreFontFamily (bool bSet) |
virtual bool | ParseStyleSheet (const OUString &rIn) |
void | ParseStyleOption (const OUString &rIn, SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo) |
virtual sal_uInt32 | GetFontHeight (sal_uInt16 nSize) const |
virtual const FontList * | GetFontList () const |
const WhichRangesContainer & | GetWhichMap () const |
void | InsertId (const OUString &rId, const SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rProp) |
const SvxCSS1MapEntry * | GetId (const OUString &rId) const |
void | InsertClass (const OUString &rClass, const SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rProp) |
const SvxCSS1MapEntry * | GetClass (const OUString &rClass) const |
void | InsertPage (const OUString &rPage, bool bPseudo, const SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rProp) |
SvxCSS1MapEntry * | GetPage (const OUString &rPage, bool bPseudo) |
void | InsertTag (const OUString &rTag, const SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rProp) |
SvxCSS1MapEntry * | GetTag (const OUString &rTag) |
virtual void | SetDfltEncoding (rtl_TextEncoding eEnc) |
rtl_TextEncoding | GetDfltEncoding () const |
const OUString & | GetBaseURL () const |
Public Member Functions inherited from CSS1Parser | |
CSS1Parser () | |
virtual | ~CSS1Parser () |
Static Public Member Functions | |
static void | AddClassName (OUString &rFormatName, std::u16string_view rClass) |
static bool | MayBePositioned (const SvxCSS1PropertyInfo &rPropInfo, bool bAutoWidth=false) |
static Css1ScriptFlags | GetScriptFromClass (OUString &rClass, bool bSubClassOnly=true) |
Static Public Member Functions inherited from SvxCSS1Parser | |
static bool | GetEnum (const CSS1PropertyEnum *pPropTable, std::u16string_view rValue, sal_uInt16 &rEnum) |
static void | PixelToTwip (tools::Long &nWidth, tools::Long &nHeight) |
static void | InsertMapEntry (const OUString &rKey, const SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rProp, CSS1Map &rMap) |
static void | MergeStyles (const SfxItemSet &rSrcSet, const SvxCSS1PropertyInfo &rSrcInfo, SfxItemSet &rTargetSet, SvxCSS1PropertyInfo &rTargetInfo, bool bSmart) |
static sal_uInt16 | GetMinFixLineSpace () |
Protected Member Functions | |
virtual void | StyleParsed (const CSS1Selector *pSelector, SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo) override |
void | ParseStyleSheet () |
void | ParseStyleSheet (const OUString &rIn) |
parse the content of a HTML style element More... | |
Protected Member Functions inherited from SvxCSS1Parser | |
virtual void | StyleParsed (const CSS1Selector *pSelector, SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo) |
virtual void | SelectorParsed (std::unique_ptr< CSS1Selector > pSelector, bool bFirst) override |
Will be called when a Selector is parsed. More... | |
virtual void | DeclarationParsed (const OUString &rProperty, std::unique_ptr< CSS1Expression > pExpr) override |
Will be called for every parsed Property. More... | |
void | ParseStyleSheet () |
void | ParseStyleSheet (const OUString &rIn) |
parse the content of a HTML style element More... | |
Protected Member Functions inherited from CSS1Parser | |
void | ParseStyleSheet () |
void | ParseStyleSheet (const OUString &rIn) |
parse the content of a HTML style element More... | |
void | ParseStyleOption (const OUString &rIn) |
parse the content of a HTML style option More... | |
virtual void | SelectorParsed (std::unique_ptr< CSS1Selector > pSelector, bool bFirst) |
Called after a selector was parsed. More... | |
virtual void | DeclarationParsed (const OUString &rProperty, std::unique_ptr< CSS1Expression > pExpr) |
Called after a declaration or property was parsed. More... | |
Private Member Functions | |
const SwPageDesc * | GetPageDesc (sal_uInt16 nPoolId, bool bCreate) |
void | SetTableTextColl (bool bHeader) |
void | SetLinkCharFormats () |
Private Attributes | |
SwDoc * | m_pDoc |
SwHTMLParser const & | m_rHTMLParser |
sal_uLong | m_aFontHeights [7] |
sal_uInt16 | m_nDropCapCnt |
bool | m_bIsNewDoc: 1 |
bool | m_bBodyBGColorSet: 1 |
bool | m_bBodyBackgroundSet: 1 |
bool | m_bBodyTextSet: 1 |
bool | m_bBodyLinkSet: 1 |
bool | m_bBodyVLinkSet: 1 |
bool | m_bSetFirstPageDesc: 1 |
bool | m_bSetRightPageDesc: 1 |
bool | m_bTableHeaderTextCollSet: 1 |
bool | m_bTableTextCollSet: 1 |
bool | m_bLinkCharFormatsSet: 1 |
Definition at line 46 of file swcss1.hxx.
SwCSS1Parser::SwCSS1Parser | ( | SwDoc * | pDoc, |
SwHTMLParser const & | rParser, | ||
sal_uInt32 const | aFHeight[7], | ||
const OUString & | rBaseURL, | ||
bool | bNewDoc | ||
) |
Definition at line 91 of file htmlcss1.cxx.
References m_aFontHeights, and SAL_N_ELEMENTS.
|
overridevirtual |
Definition at line 119 of file htmlcss1.cxx.
|
static |
Definition at line 1449 of file htmlcss1.cxx.
Referenced by GetChrFormat(), GetTextFormatColl(), and StyleParsed().
void SwCSS1Parser::ChgPageDesc | ( | const SwPageDesc * | pPageDesc, |
const SwPageDesc & | rNewPageDesc | ||
) |
Definition at line 81 of file htmlcss1.cxx.
References SwDoc::ChgPageDesc(), SwDoc::ContainsPageDesc(), m_pDoc, and pos.
Referenced by GetPageDesc(), and SetPageDescAttrs().
void SwCSS1Parser::FillDropCap | ( | SwFormatDrop & | rDrop, |
SfxItemSet & | rItemSet, | ||
const OUString * | pName = nullptr |
||
) |
Definition at line 1456 of file htmlcss1.cxx.
References aName, SfxItemSet::ClearItem(), SfxItemSet::Count(), SwDoc::FindCharFormatByName(), SwDoc::GetDfltCharFormat(), SwFormatDrop::GetDistance(), SfxItemSet::GetItemIfSet(), SwFormatDrop::GetLines(), m_nDropCapCnt, m_pDoc, SwDoc::MakeCharFormat(), MAX_DROPCAP_LINES, pName, RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_FONTSIZE(), RES_MARGIN_FIRSTLINE(), RES_MARGIN_RIGHT(), RES_MARGIN_TEXTLEFT(), SwFormat::SetAuto(), SwFormatDrop::SetCharFormat(), and SetCharFormatAttrs().
Referenced by StyleParsed().
SwCharFormat * SwCSS1Parser::GetCharFormatFromPool | ( | sal_uInt16 | nPoolId | ) | const |
Definition at line 1215 of file htmlcss1.cxx.
References IDocumentStylePoolAccess::GetCharFormatFromPool(), SwDoc::GetCharFormats(), SvxCSS1Parser::GetDfltEncoding(), SwDoc::getIDocumentStylePoolAccess(), i, lcl_swcss1_setEncoding(), m_bIsNewDoc, m_pDoc, and SwCharFormats::size().
Referenced by GetChrFormat(), SetLinkCharFormats(), and StyleParsed().
SwCharFormat * SwCSS1Parser::GetChrFormat | ( | HtmlTokenId | nToken, |
const OUString & | rClass | ||
) | const |
Definition at line 1118 of file htmlcss1.cxx.
References AddClassName(), SwDoc::FindCharFormatByName(), GetCharFormatFromPool(), SvxCSS1Parser::GetClass(), SwDoc::GetDfltCharFormat(), SvxCSS1MapEntry::GetItemSet(), SwFormat::GetName(), GetScriptFromClass(), m_pDoc, SwDoc::MakeCharFormat(), OOO_STRING_SVTOOLS_HTML_abbreviation, OOO_STRING_SVTOOLS_HTML_acronym, OOO_STRING_SVTOOLS_HTML_author, OOO_STRING_SVTOOLS_HTML_deletedtext, OOO_STRING_SVTOOLS_HTML_insertedtext, OOO_STRING_SVTOOLS_HTML_language, OOO_STRING_SVTOOLS_HTML_person, OOO_STRING_SVTOOLS_HTML_shortquote, RES_POOLCHR_HTML_CITATION, RES_POOLCHR_HTML_CODE, RES_POOLCHR_HTML_DEFINSTANCE, RES_POOLCHR_HTML_EMPHASIS, RES_POOLCHR_HTML_KEYBOARD, RES_POOLCHR_HTML_SAMPLE, RES_POOLCHR_HTML_STRONG, RES_POOLCHR_HTML_TELETYPE, RES_POOLCHR_HTML_VARIABLE, SwFormat::SetAuto(), SetCharFormatAttrs(), and sName.
Referenced by StyleParsed().
|
inline |
Definition at line 168 of file swcss1.hxx.
References GetPageDesc(), and RES_POOLPAGE_FIRST.
Referenced by GetPageDesc(), and ParseStyleSheet().
|
overridevirtual |
Reimplemented from SvxCSS1Parser.
Definition at line 1098 of file htmlcss1.cxx.
References m_aFontHeights.
|
overridevirtual |
Reimplemented from SvxCSS1Parser.
Definition at line 1103 of file htmlcss1.cxx.
References SwDoc::GetDocShell(), SvxFontListItem::GetFontList(), SfxShell::GetItem(), and m_pDoc.
|
inline |
Definition at line 178 of file swcss1.hxx.
References GetPageDesc(), and RES_POOLPAGE_LEFT.
Referenced by GetPageDesc(), ParseStyleSheet(), and SetFormatBreak().
SwPageDesc * SwCSS1Parser::GetMasterPageDesc | ( | ) |
Definition at line 1314 of file htmlcss1.cxx.
References SwDoc::getIDocumentStylePoolAccess(), IDocumentStylePoolAccess::GetPageDescFromPool(), m_pDoc, and RES_POOLPAGE_HTML.
|
private |
Definition at line 1330 of file htmlcss1.cxx.
References ChgPageDesc(), SwDoc::CopyPageDesc(), FindPageDesc(), GetFirstPageDesc(), SwDoc::getIDocumentStylePoolAccess(), GetLeftPageDesc(), IDocumentStylePoolAccess::GetPageDescFromPool(), GetRightPageDesc(), SwHTMLParser::IsReadingHeaderOrFooter(), m_pDoc, m_rHTMLParser, RES_POOLPAGE_FIRST, RES_POOLPAGE_HTML, RES_POOLPAGE_LEFT, RES_POOLPAGE_RIGHT, SAL_WARN, and SwPageDesc::SetFollow().
Referenced by GetFirstPageDesc(), GetLeftPageDesc(), GetRightPageDesc(), and SetPageDescAttrs().
|
inline |
Definition at line 173 of file swcss1.hxx.
References GetPageDesc(), and RES_POOLPAGE_RIGHT.
Referenced by GetPageDesc(), ParseStyleSheet(), and SetFormatBreak().
|
static |
Definition at line 553 of file htmlcss1.cxx.
References AllMask, CJK, CTL, nPos, and Western.
Referenced by SwHTMLParser::CreateBrushItem(), GetChrFormat(), GetTextFormatColl(), GetTokenAndClass(), SwHTMLParser::NewAnchor(), SwHTMLParser::ParseStyleOptions(), and StyleParsed().
SwTextFormatColl * SwCSS1Parser::GetTextCollFromPool | ( | sal_uInt16 | nPoolId | ) | const |
Definition at line 1198 of file htmlcss1.cxx.
References SvxCSS1Parser::GetDfltEncoding(), SwDoc::getIDocumentStylePoolAccess(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwDoc::GetTextFormatColls(), i, lcl_swcss1_setEncoding(), m_bIsNewDoc, m_pDoc, and SwVectorModifyBase< Value >::size().
Referenced by GetTextFormatColl(), and StyleParsed().
SwTextFormatColl * SwCSS1Parser::GetTextFormatColl | ( | sal_uInt16 | nTextColl, |
const OUString & | rClass | ||
) |
Definition at line 1233 of file htmlcss1.cxx.
References AddClassName(), SfxItemSet::ClearItem(), SwDoc::FindTextFormatCollByName(), SvxCSS1Parser::GetClass(), SvxCSS1Parser::GetDfltEncoding(), SvxCSS1MapEntry::GetItemSet(), SwFormat::GetName(), SvxCSS1MapEntry::GetPropertyInfo(), GetScriptFromClass(), GetTextCollFromPool(), lcl_swcss1_setEncoding(), m_pDoc, SwDoc::MakeTextFormatColl(), MayBePositioned(), MIN_BORDER_DIST, OOO_STRING_SVTOOLS_HTML_sdendnote, OOO_STRING_SVTOOLS_HTML_sdfootnote, RES_BACKGROUND(), RES_POOLCOLL_ENDNOTE, RES_POOLCOLL_FOOTNOTE, RES_POOLCOLL_STANDARD, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, RES_POOLCOLL_TEXT, SvxCSS1PropertyInfo::SetBoxItem(), SetTextCollAttrs(), and USER_FMT.
Referenced by SetTableTextColl(), and StyleParsed().
|
inline |
Definition at line 144 of file swcss1.hxx.
References m_bBodyBackgroundSet.
|
inline |
Definition at line 143 of file swcss1.hxx.
References m_bBodyBGColorSet.
|
inline |
Definition at line 146 of file swcss1.hxx.
References m_bBodyLinkSet.
|
inline |
Definition at line 145 of file swcss1.hxx.
References m_bBodyTextSet.
|
inline |
Definition at line 147 of file swcss1.hxx.
References m_bBodyVLinkSet.
|
inline |
Definition at line 149 of file swcss1.hxx.
References m_bSetFirstPageDesc.
|
inline |
Definition at line 150 of file swcss1.hxx.
References m_bSetRightPageDesc.
std::unique_ptr< SvxBrushItem > SwCSS1Parser::makePageDescBackground | ( | ) | const |
Definition at line 547 of file htmlcss1.cxx.
References SwDoc::getIDocumentStylePoolAccess(), SwPageDesc::GetMaster(), IDocumentStylePoolAccess::GetPageDescFromPool(), m_pDoc, SwFormat::makeBackgroundBrushItem(), and RES_POOLPAGE_HTML.
|
static |
Definition at line 1417 of file htmlcss1.cxx.
References SvxCSS1PropertyInfo::m_bVisible, SvxCSS1PropertyInfo::m_eFloat, SvxCSS1PropertyInfo::m_eLeftType, SvxCSS1PropertyInfo::m_ePosition, SvxCSS1PropertyInfo::m_eTopType, SvxCSS1PropertyInfo::m_eWidthType, SVX_CSS1_LTYPE_PERCENTAGE, SVX_CSS1_LTYPE_TWIP, and SVX_CSS1_POS_ABSOLUTE.
Referenced by SwHTMLParser::CreateContainer(), SwHTMLParser::DoPositioning(), GetTextFormatColl(), SwHTMLParser::NewMultiCol(), and SwHTMLParser::SetAnchorAndAdjustment().
|
protected |
Definition at line 221 of file parcss1.cxx.
|
protectedvirtual |
parse the content of a HTML style element
For each selector and each declaration the methods SelectorParsed() or DeclarationParsed() need to be called afterwards
rIn | the style element as string |
Reimplemented from SvxCSS1Parser.
Definition at line 230 of file parcss1.cxx.
|
overridevirtual |
Reimplemented from SvxCSS1Parser.
Definition at line 1801 of file htmlcss1.cxx.
References GetFirstPageDesc(), SwDoc::getIDocumentStylePoolAccess(), SvxCSS1MapEntry::GetItemSet(), GetLeftPageDesc(), SvxCSS1Parser::GetPage(), IDocumentStylePoolAccess::GetPageDescFromPool(), SvxCSS1MapEntry::GetPropertyInfo(), GetRightPageDesc(), m_bSetFirstPageDesc, m_bSetRightPageDesc, m_pDoc, SvxCSS1Parser::ParseStyleSheet(), RES_POOLPAGE_HTML, and SetPageDescAttrs().
|
inline |
Definition at line 195 of file swcss1.hxx.
References m_bLinkCharFormatsSet, and SetLinkCharFormats().
Referenced by SetDelayedStyles().
|
inline |
Definition at line 153 of file swcss1.hxx.
References m_bBodyBackgroundSet.
|
inline |
Definition at line 152 of file swcss1.hxx.
References m_bBodyBGColorSet.
|
inline |
Definition at line 155 of file swcss1.hxx.
References m_bBodyLinkSet.
|
inline |
Definition at line 154 of file swcss1.hxx.
References m_bBodyTextSet.
|
inline |
Definition at line 156 of file swcss1.hxx.
References m_bBodyVLinkSet.
|
inline |
Definition at line 201 of file swcss1.hxx.
References SetATagStyles(), SetTDTagStyles(), and SetTHTagStyles().
|
overridevirtual |
Reimplemented from SvxCSS1Parser.
Definition at line 2297 of file htmlcss1.cxx.
References SwDoc::GetCharFormats(), SwDoc::GetDefault(), SvxCSS1Parser::GetDfltEncoding(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), SvxFontItem::GetPitch(), SvxFontItem::GetStyleName(), SwDoc::GetTextFormatColls(), i, lcl_swcss1_setEncoding(), m_bIsNewDoc, m_pDoc, RES_CHRATR_CJK_FONT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_FONT(), SwDoc::SetDefault(), and SvxCSS1Parser::SetDfltEncoding().
bool SwCSS1Parser::SetFormatBreak | ( | SfxItemSet & | rItemSet, |
const SvxCSS1PropertyInfo & | rPropInfo | ||
) |
Definition at line 124 of file htmlcss1.cxx.
References GetLeftPageDesc(), GetRightPageDesc(), SvxCSS1PropertyInfo::m_ePageBreakAfter, SvxCSS1PropertyInfo::m_ePageBreakBefore, SfxItemSet::Put(), RES_BREAK(), RES_KEEP(), SVX_CSS1_PBREAK_ALWAYS, SVX_CSS1_PBREAK_AUTO, SVX_CSS1_PBREAK_AVOID, SVX_CSS1_PBREAK_LEFT, and SVX_CSS1_PBREAK_RIGHT.
Referenced by SetTextCollAttrs().
|
private |
Definition at line 214 of file htmlcss1.cxx.
References GetCharFormatFromPool(), SvxCSS1MapEntry::GetItemSet(), SfxItemSet::GetItemState(), SvxCSS1Parser::GetTag(), m_bBodyLinkSet, m_bBodyVLinkSet, m_bLinkCharFormatsSet, OOO_STRING_SVTOOLS_HTML_anchor, RES_CHRATR_COLOR(), RES_POOLCHR_INET_NORMAL, RES_POOLCHR_INET_VISIT, and SetCharFormatAttrs().
Referenced by SetATagStyles().
void SwCSS1Parser::SetPageDescAttrs | ( | const SvxBrushItem * | pBrush, |
SfxItemSet * | pItemSet = nullptr |
||
) |
Definition at line 357 of file htmlcss1.cxx.
References ChgPageDesc(), SfxItemSet::ClearItem(), SvxBrushItem::Clone(), SfxItemSet::GetItemIfSet(), SwPageDesc::GetMaster(), GetPageDesc(), i, RES_BACKGROUND(), RES_BOX(), RES_FRAMEDIR(), RES_POOLPAGE_FIRST, RES_POOLPAGE_HTML, RES_POOLPAGE_LEFT, RES_POOLPAGE_RIGHT, and SwFormat::SetFormatAttr().
Referenced by ParseStyleSheet(), and StyleParsed().
void SwCSS1Parser::SetPageDescAttrs | ( | const SwPageDesc * | pPageDesc, |
SfxItemSet & | rItemSet, | ||
const SvxCSS1PropertyInfo & | rPropInfo | ||
) |
Definition at line 419 of file htmlcss1.cxx.
References ChgPageDesc(), SfxItemSet::ClearItem(), Fixed, SwFormat::GetAttrSet(), SwFormat::GetFrameSize(), SvxSizeItem::GetHeight(), SfxItemSet::GetItemIfSet(), SwPageDesc::GetLandscape(), SvxULSpaceItem::GetLower(), SwPageDesc::GetMaster(), SvxULSpaceItem::GetUpper(), SvxSizeItem::GetWidth(), SvxCSS1PropertyInfo::m_bBottomMargin, SvxCSS1PropertyInfo::m_bLeftMargin, SvxCSS1PropertyInfo::m_bRightMargin, SvxCSS1PropertyInfo::m_bTopMargin, SvxCSS1PropertyInfo::m_eSizeType, SvxCSS1PropertyInfo::m_nHeight, SvxCSS1PropertyInfo::m_nWidth, RES_BACKGROUND(), RES_LR_SPACE(), RES_MARGIN_RIGHT(), RES_MARGIN_TEXTLEFT(), RES_UL_SPACE(), SwFormat::SetFormatAttr(), SvxSizeItem::SetHeight(), SwPageDesc::SetLandscape(), SvxULSpaceItem::SetLower(), SvxULSpaceItem::SetUpper(), SvxSizeItem::SetWidth(), SVX_CSS1_STYPE_LANDSCAPE, SVX_CSS1_STYPE_NONE, SVX_CSS1_STYPE_PORTRAIT, and SVX_CSS1_STYPE_TWIP.
|
private |
Definition at line 312 of file htmlcss1.cxx.
References SvxCSS1MapEntry::GetItemSet(), SvxCSS1MapEntry::GetPropertyInfo(), SvxCSS1Parser::GetTag(), GetTextFormatColl(), m_bTableHeaderTextCollSet, m_bTableTextCollSet, OOO_STRING_SVTOOLS_HTML_parabreak, OOO_STRING_SVTOOLS_HTML_tabledata, OOO_STRING_SVTOOLS_HTML_tableheader, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, and SetTextCollAttrs().
Referenced by SetTDTagStyles(), and SetTHTagStyles().
|
inline |
Definition at line 189 of file swcss1.hxx.
References m_bTableTextCollSet, and SetTableTextColl().
Referenced by SetDelayedStyles().
|
inline |
Definition at line 183 of file swcss1.hxx.
References m_bTableHeaderTextCollSet, and SetTableTextColl().
Referenced by SetDelayedStyles().
|
overrideprotectedvirtual |
Body has a background color, if it is not "no fill"/"auto fill"
Reimplemented from SvxCSS1Parser.
Definition at line 684 of file htmlcss1.cxx.
References AddClassName(), AllMask, aName, CJK, SfxItemSet::ClearItem(), COL_TRANSPARENT(), CSS1_SELTYPE_CLASS, CSS1_SELTYPE_ELEM_CLASS, CSS1_SELTYPE_ELEMENT, CSS1_SELTYPE_ID, CSS1_SELTYPE_PAGE, CSS1_SELTYPE_PSEUDO, CTL, FillDropCap(), SwDoc::FindCharFormatByName(), SwDoc::FindTextFormatCollByName(), SwFormat::GetAttrSet(), GetCharFormatFromPool(), SwFormatDrop::GetChars(), GetChrFormat(), SwFormat::GetDrop(), GetHTMLToken(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SwFormatDrop::GetLines(), SwFormat::GetName(), CSS1Selector::GetNext(), GetScriptFromClass(), CSS1Selector::GetString(), GetTextCollFromPool(), GetTextFormatColl(), GetTokenAndClass(), CSS1Selector::GetType(), GPOS_NONE, SvxCSS1Parser::InsertClass(), SvxCSS1Parser::InsertId(), SvxCSS1Parser::InsertPage(), SvxCSS1Parser::InsertTag(), m_bBodyBackgroundSet, m_bBodyBGColorSet, m_bBodyTextSet, m_bIsNewDoc, SvxCSS1PropertyInfo::m_eFloat, m_pDoc, SwDoc::MakeCharFormat(), SwDoc::MakeTextFormatColl(), MIN_BORDER_DIST, OOO_STRING_SVTOOLS_HTML_parabreak, OOO_STRING_SVTOOLS_HTML_sdendnote, OOO_STRING_SVTOOLS_HTML_sdendnote_sym, OOO_STRING_SVTOOLS_HTML_sdfootnote, OOO_STRING_SVTOOLS_HTML_sdfootnote_sym, RemoveScriptItems(), RES_BACKGROUND(), RES_BOX(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_COLOR(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_CTL_POSTURE(), RES_CHRATR_CTL_WEIGHT(), RES_CHRATR_FONT(), RES_CHRATR_LANGUAGE(), RES_CHRATR_POSTURE(), RES_CHRATR_WEIGHT(), RES_POOLCHR_ENDNOTE, RES_POOLCHR_FOOTNOTE, RES_POOLCOLL_ENDNOTE, RES_POOLCOLL_FOOTNOTE, RES_POOLCOLL_HEADLINE1, RES_POOLCOLL_HEADLINE2, RES_POOLCOLL_HEADLINE3, RES_POOLCOLL_HEADLINE4, RES_POOLCOLL_HEADLINE5, RES_POOLCOLL_HEADLINE6, RES_POOLCOLL_HTML_BLOCKQUOTE, RES_POOLCOLL_HTML_DD, RES_POOLCOLL_HTML_DT, RES_POOLCOLL_HTML_PRE, RES_POOLCOLL_SEND_ADDRESS, RES_POOLCOLL_STANDARD, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, RES_POOLCOLL_TEXT, SwFormat::SetAuto(), SvxCSS1PropertyInfo::SetBoxItem(), SetCharFormatAttrs(), SwTextFormatColl::SetFormatAttr(), SetPageDescAttrs(), SetTextCollAttrs(), sName, and Western.
|
private |
Definition at line 51 of file swcss1.hxx.
Referenced by GetFontHeight(), and SwCSS1Parser().
|
private |
Definition at line 58 of file swcss1.hxx.
Referenced by IsBodyBackgroundSet(), SetBodyBackgroundSet(), and StyleParsed().
|
private |
Definition at line 57 of file swcss1.hxx.
Referenced by IsBodyBGColorSet(), SetBodyBGColorSet(), and StyleParsed().
|
private |
Definition at line 60 of file swcss1.hxx.
Referenced by IsBodyLinkSet(), SetBodyLinkSet(), and SetLinkCharFormats().
|
private |
Definition at line 59 of file swcss1.hxx.
Referenced by IsBodyTextSet(), SetBodyTextSet(), and StyleParsed().
|
private |
Definition at line 61 of file swcss1.hxx.
Referenced by IsBodyVLinkSet(), SetBodyVLinkSet(), and SetLinkCharFormats().
|
private |
Definition at line 55 of file swcss1.hxx.
Referenced by GetCharFormatFromPool(), GetTextCollFromPool(), SetDfltEncoding(), and StyleParsed().
|
private |
Definition at line 69 of file swcss1.hxx.
Referenced by SetATagStyles(), and SetLinkCharFormats().
|
private |
Definition at line 63 of file swcss1.hxx.
Referenced by IsSetFirstPageDesc(), and ParseStyleSheet().
|
private |
Definition at line 64 of file swcss1.hxx.
Referenced by IsSetRightPageDesc(), and ParseStyleSheet().
|
private |
Definition at line 66 of file swcss1.hxx.
Referenced by SetTableTextColl(), and SetTHTagStyles().
|
private |
Definition at line 67 of file swcss1.hxx.
Referenced by SetTableTextColl(), and SetTDTagStyles().
|
private |
Definition at line 53 of file swcss1.hxx.
Referenced by FillDropCap().
|
private |
Definition at line 48 of file swcss1.hxx.
Referenced by ChgPageDesc(), FillDropCap(), GetCharFormatFromPool(), GetChrFormat(), GetFontList(), GetMasterPageDesc(), GetPageDesc(), GetTextCollFromPool(), GetTextFormatColl(), makePageDescBackground(), ParseStyleSheet(), SetDfltEncoding(), and StyleParsed().
|
private |
Definition at line 49 of file swcss1.hxx.
Referenced by GetPageDesc().