20 #ifndef INCLUDED_SW_SOURCE_FILTER_HTML_SWCSS1_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_HTML_SWCSS1_HXX
25 #include <string_view>
85 sal_uInt32
const aFHeight[7],
const OUString& rBaseURL,
bool bNewDoc);
91 virtual sal_uInt32
GetFontHeight( sal_uInt16 nSize )
const override;
130 const OUString *
pName=
nullptr );
135 static void AddClassName( OUString& rFormatName, std::u16string_view rClass );
138 bool bAutoWidth=
false );
141 bool bSubClassOnly =
true );
const SwPageDesc * GetFirstPageDesc(bool bCreate=false)
static Css1ScriptFlags GetScriptFromClass(OUString &rClass, bool bSubClassOnly=true)
Represents the style of a paragraph.
SwTextFormatColl * GetTextFormatColl(sal_uInt16 nTextColl, const OUString &rClass)
SwPageDesc * GetMasterPageDesc()
virtual ~SwCSS1Parser() override
SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nPoolId) const
virtual sal_uInt32 GetFontHeight(sal_uInt16 nSize) const override
void SetBodyBackgroundSet()
sal_uLong m_aFontHeights[7]
virtual void SetDfltEncoding(rtl_TextEncoding eEnc) override
void FillDropCap(SwFormatDrop &rDrop, SfxItemSet &rItemSet, const OUString *pName=nullptr)
bool IsBodyBGColorSet() const
SwHTMLParser const & m_rHTMLParser
bool m_bBodyBackgroundSet
bool m_bLinkCharFormatsSet
void SetLinkCharFormats()
std::unique_ptr< SvxBrushItem > makePageDescBackground() const
const SwPageDesc * GetLeftPageDesc(bool bCreate=false)
bool IsSetFirstPageDesc() const
bool IsSetRightPageDesc() const
static void AddClassName(OUString &rFormatName, std::u16string_view rClass)
const SwPageDesc * GetRightPageDesc(bool bCreate=false)
SwCharFormat * GetChrFormat(HtmlTokenId nToken, const OUString &rClass) const
void SetPageDescAttrs(const SvxBrushItem *pBrush, SfxItemSet *pItemSet=nullptr)
SwCSS1Parser(SwDoc *pDoc, SwHTMLParser const &rParser, sal_uInt32 const aFHeight[7], const OUString &rBaseURL, bool bNewDoc)
SwCharFormat * GetCharFormatFromPool(sal_uInt16 nPoolId) const
virtual const FontList * GetFontList() const override
bool IsBodyVLinkSet() const
bool IsBodyLinkSet() const
void ChgPageDesc(const SwPageDesc *pPageDesc, const SwPageDesc &rNewPageDesc)
bool m_bTableHeaderTextCollSet
const SwPageDesc * GetPageDesc(sal_uInt16 nPoolId, bool bCreate)
void SetTableTextColl(bool bHeader)
bool SetFormatBreak(SfxItemSet &rItemSet, const SvxCSS1PropertyInfo &rPropInfo)
bool IsBodyBackgroundSet() const
bool IsBodyTextSet() const
virtual void StyleParsed(const CSS1Selector *pSelector, SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo) override
static bool MayBePositioned(const SvxCSS1PropertyInfo &rPropInfo, bool bAutoWidth=false)