LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
HTMLAttrContext Class Reference

#include <swhtml.hxx>

Public Member Functions

void ClearSaveDocContext ()
 
 HTMLAttrContext (HtmlTokenId nTokn, sal_uInt16 nPoolId, OUString aClass, bool bDfltColl=false)
 
 HTMLAttrContext (HtmlTokenId nTokn)
 
 ~HTMLAttrContext ()
 
HtmlTokenId GetToken () const
 
sal_uInt16 GetTextFormatColl () const
 
sal_uInt16 GetDefaultTextFormatColl () const
 
const OUString & GetClass () const
 
void SetMargins (sal_uInt16 nLeft, sal_uInt16 nRight, short nIndent)
 
bool IsLRSpaceChanged () const
 
void GetMargins (sal_uInt16 &nLeft, sal_uInt16 &nRight, short &nIndent) const
 
void SetULSpace (sal_uInt16 nUpper, sal_uInt16 nLower)
 
bool IsULSpaceChanged () const
 
void GetULSpace (sal_uInt16 &rUpper, sal_uInt16 &rLower) const
 
bool HasAttrs () const
 
const HTMLAttrsGetAttrs () const
 
HTMLAttrsGetAttrs ()
 
void SetSpansSection (bool bSet)
 
bool GetSpansSection () const
 
void SetPopStack (bool bSet)
 
bool GetPopStack () const
 
bool HasSaveDocContext () const
 
HTMLAttrContext_SaveDocGetSaveDocContext (bool bCreate=false)
 
const SfxItemSetGetFrameItemSet () const
 
SfxItemSetGetFrameItemSet (SwDoc *pCreateDoc)
 
void SetFinishPREListingXMP (bool bSet)
 
bool IsFinishPREListingXMP () const
 
void SetRestartPRE (bool bSet)
 
bool IsRestartPRE () const
 
void SetRestartXMP (bool bSet)
 
bool IsRestartXMP () const
 
void SetRestartListing (bool bSet)
 
bool IsRestartListing () const
 
void SetHeaderOrFooter (bool bSet)
 
bool IsHeaderOrFooter () const
 
void SetAppendMode (SwHTMLAppendMode eMode)
 
SwHTMLAppendMode GetAppendMode () const
 
void SetVisible (bool bVisible)
 
bool IsVisible () const
 

Private Attributes

HTMLAttrs m_aAttrs
 
OUString m_aClass
 
std::unique_ptr< HTMLAttrContext_SaveDocm_pSaveDocContext
 
std::unique_ptr< SfxItemSetm_pFrameItemSet
 
HtmlTokenId m_nToken
 
sal_uInt16 m_nTextFormatColl
 
sal_uInt16 m_nLeftMargin
 
sal_uInt16 m_nRightMargin
 
sal_uInt16 m_nFirstLineIndent
 
sal_uInt16 m_nUpperSpace
 
sal_uInt16 m_nLowerSpace
 
SwHTMLAppendMode m_eAppend
 
bool m_bLRSpaceChanged: 1
 
bool m_bULSpaceChanged: 1
 
bool m_bDefaultTextFormatColl: 1
 
bool m_bSpansSection: 1
 
bool m_bPopStack: 1
 
bool m_bFinishPREListingXMP: 1
 
bool m_bRestartPRE: 1
 
bool m_bRestartXMP: 1
 
bool m_bRestartListing: 1
 
bool m_bHeaderOrFooter: 1
 
bool m_bVisible = true
 

Detailed Description

Definition at line 209 of file swhtml.hxx.

Constructor & Destructor Documentation

◆ HTMLAttrContext() [1/2]

HTMLAttrContext::HTMLAttrContext ( HtmlTokenId  nTokn,
sal_uInt16  nPoolId,
OUString  aClass,
bool  bDfltColl = false 
)

Definition at line 120 of file htmlctxt.cxx.

◆ HTMLAttrContext() [2/2]

HTMLAttrContext::HTMLAttrContext ( HtmlTokenId  nTokn)
explicit

Definition at line 143 of file htmlctxt.cxx.

◆ ~HTMLAttrContext()

HTMLAttrContext::~HTMLAttrContext ( )

Definition at line 164 of file htmlctxt.cxx.

References m_pSaveDocContext.

Member Function Documentation

◆ ClearSaveDocContext()

void HTMLAttrContext::ClearSaveDocContext ( )

Definition at line 169 of file htmlctxt.cxx.

References m_pSaveDocContext.

Referenced by SwHTMLParser::ClearContext(), and SwHTMLParser::RestoreDocContext().

◆ GetAppendMode()

SwHTMLAppendMode HTMLAttrContext::GetAppendMode ( ) const
inline

Definition at line 301 of file swhtml.hxx.

References m_eAppend.

Referenced by SwHTMLParser::EndContext().

◆ GetAttrs() [1/2]

HTMLAttrs & HTMLAttrContext::GetAttrs ( )
inline

Definition at line 271 of file swhtml.hxx.

References m_aAttrs.

◆ GetAttrs() [2/2]

const HTMLAttrs & HTMLAttrContext::GetAttrs ( ) const
inline

◆ GetClass()

const OUString & HTMLAttrContext::GetClass ( ) const
inline

Definition at line 257 of file swhtml.hxx.

References m_aClass.

Referenced by SwHTMLParser::GetULSpaceFromContext(), and SwHTMLParser::SetTextCollAttrs().

◆ GetDefaultTextFormatColl()

sal_uInt16 HTMLAttrContext::GetDefaultTextFormatColl ( ) const
inline

◆ GetFrameItemSet() [1/2]

const SfxItemSet * HTMLAttrContext::GetFrameItemSet ( ) const
inline

Definition at line 282 of file swhtml.hxx.

References m_pFrameItemSet.

Referenced by SwHTMLParser::CreateContainer().

◆ GetFrameItemSet() [2/2]

SfxItemSet * HTMLAttrContext::GetFrameItemSet ( SwDoc pCreateDoc)

◆ GetMargins()

void HTMLAttrContext::GetMargins ( sal_uInt16 &  nLeft,
sal_uInt16 &  nRight,
short &  nIndent 
) const
inline

◆ GetPopStack()

bool HTMLAttrContext::GetPopStack ( ) const
inline

Definition at line 277 of file swhtml.hxx.

References m_bPopStack.

Referenced by SwHTMLParser::EndContext().

◆ GetSaveDocContext()

HTMLAttrContext_SaveDoc * HTMLAttrContext::GetSaveDocContext ( bool  bCreate = false)

◆ GetSpansSection()

bool HTMLAttrContext::GetSpansSection ( ) const
inline

◆ GetTextFormatColl()

sal_uInt16 HTMLAttrContext::GetTextFormatColl ( ) const
inline

Definition at line 254 of file swhtml.hxx.

References m_bDefaultTextFormatColl, and m_nTextFormatColl.

Referenced by SwHTMLParser::SetTextCollAttrs().

◆ GetToken()

HtmlTokenId HTMLAttrContext::GetToken ( ) const
inline

Definition at line 252 of file swhtml.hxx.

References m_nToken.

Referenced by SwHTMLParser::InsertAttrs().

◆ GetULSpace()

void HTMLAttrContext::GetULSpace ( sal_uInt16 &  rUpper,
sal_uInt16 &  rLower 
) const
inline

Definition at line 1009 of file swhtml.hxx.

References m_bULSpaceChanged, m_nLowerSpace, and m_nUpperSpace.

Referenced by SwHTMLParser::GetULSpaceFromContext().

◆ HasAttrs()

bool HTMLAttrContext::HasAttrs ( ) const
inline

Definition at line 269 of file swhtml.hxx.

References m_aAttrs.

Referenced by SwHTMLParser::EndContext().

◆ HasSaveDocContext()

bool HTMLAttrContext::HasSaveDocContext ( ) const
inline

Definition at line 279 of file swhtml.hxx.

References m_pSaveDocContext.

Referenced by SwHTMLParser::ClearContext(), and SwHTMLParser::EndContext().

◆ IsFinishPREListingXMP()

bool HTMLAttrContext::IsFinishPREListingXMP ( ) const
inline

Definition at line 286 of file swhtml.hxx.

References m_bFinishPREListingXMP.

Referenced by SwHTMLParser::ClearContext(), and SwHTMLParser::EndContext().

◆ IsHeaderOrFooter()

bool HTMLAttrContext::IsHeaderOrFooter ( ) const
inline

Definition at line 298 of file swhtml.hxx.

References m_bHeaderOrFooter.

◆ IsLRSpaceChanged()

bool HTMLAttrContext::IsLRSpaceChanged ( ) const
inline

Definition at line 261 of file swhtml.hxx.

References m_bLRSpaceChanged.

Referenced by SwHTMLParser::GetMarginsFromContext(), and SwHTMLParser::SetTextCollAttrs().

◆ IsRestartListing()

bool HTMLAttrContext::IsRestartListing ( ) const
inline

Definition at line 295 of file swhtml.hxx.

References m_bRestartListing.

Referenced by SwHTMLParser::ClearContext(), and SwHTMLParser::EndContext().

◆ IsRestartPRE()

bool HTMLAttrContext::IsRestartPRE ( ) const
inline

Definition at line 289 of file swhtml.hxx.

References m_bRestartPRE.

Referenced by SwHTMLParser::ClearContext(), and SwHTMLParser::EndContext().

◆ IsRestartXMP()

bool HTMLAttrContext::IsRestartXMP ( ) const
inline

Definition at line 292 of file swhtml.hxx.

References m_bRestartXMP.

Referenced by SwHTMLParser::ClearContext(), and SwHTMLParser::EndContext().

◆ IsULSpaceChanged()

bool HTMLAttrContext::IsULSpaceChanged ( ) const
inline

Definition at line 266 of file swhtml.hxx.

References m_bULSpaceChanged.

Referenced by SwHTMLParser::GetULSpaceFromContext().

◆ IsVisible()

bool HTMLAttrContext::IsVisible ( ) const
inline

Definition at line 304 of file swhtml.hxx.

References m_bVisible.

◆ SetAppendMode()

void HTMLAttrContext::SetAppendMode ( SwHTMLAppendMode  eMode)
inline

Definition at line 300 of file swhtml.hxx.

References eMode, and m_eAppend.

◆ SetFinishPREListingXMP()

void HTMLAttrContext::SetFinishPREListingXMP ( bool  bSet)
inline

Definition at line 285 of file swhtml.hxx.

References m_bFinishPREListingXMP.

Referenced by SwHTMLParser::SplitPREListingXMP().

◆ SetHeaderOrFooter()

void HTMLAttrContext::SetHeaderOrFooter ( bool  bSet)
inline

Definition at line 297 of file swhtml.hxx.

References m_bHeaderOrFooter.

◆ SetMargins()

void HTMLAttrContext::SetMargins ( sal_uInt16  nLeft,
sal_uInt16  nRight,
short  nIndent 
)
inline

◆ SetPopStack()

void HTMLAttrContext::SetPopStack ( bool  bSet)
inline

Definition at line 276 of file swhtml.hxx.

References m_bPopStack.

Referenced by SwHTMLParser::DoPositioning().

◆ SetRestartListing()

void HTMLAttrContext::SetRestartListing ( bool  bSet)
inline

Definition at line 294 of file swhtml.hxx.

References m_bRestartListing.

Referenced by SwHTMLParser::SplitPREListingXMP().

◆ SetRestartPRE()

void HTMLAttrContext::SetRestartPRE ( bool  bSet)
inline

Definition at line 288 of file swhtml.hxx.

References m_bRestartPRE.

Referenced by SwHTMLParser::SplitPREListingXMP().

◆ SetRestartXMP()

void HTMLAttrContext::SetRestartXMP ( bool  bSet)
inline

Definition at line 291 of file swhtml.hxx.

References m_bRestartXMP.

Referenced by SwHTMLParser::SplitPREListingXMP().

◆ SetSpansSection()

void HTMLAttrContext::SetSpansSection ( bool  bSet)
inline

Definition at line 273 of file swhtml.hxx.

References m_bSpansSection.

Referenced by SwHTMLParser::EndSections().

◆ SetULSpace()

void HTMLAttrContext::SetULSpace ( sal_uInt16  nUpper,
sal_uInt16  nLower 
)
inline

◆ SetVisible()

void HTMLAttrContext::SetVisible ( bool  bVisible)
inline

Definition at line 303 of file swhtml.hxx.

References bVisible, and m_bVisible.

Member Data Documentation

◆ m_aAttrs

HTMLAttrs HTMLAttrContext::m_aAttrs
private

Definition at line 211 of file swhtml.hxx.

Referenced by GetAttrs(), and HasAttrs().

◆ m_aClass

OUString HTMLAttrContext::m_aClass
private

Definition at line 213 of file swhtml.hxx.

Referenced by GetClass().

◆ m_bDefaultTextFormatColl

bool HTMLAttrContext::m_bDefaultTextFormatColl
private

Definition at line 233 of file swhtml.hxx.

Referenced by GetDefaultTextFormatColl(), and GetTextFormatColl().

◆ m_bFinishPREListingXMP

bool HTMLAttrContext::m_bFinishPREListingXMP
private

Definition at line 236 of file swhtml.hxx.

Referenced by IsFinishPREListingXMP(), and SetFinishPREListingXMP().

◆ m_bHeaderOrFooter

bool HTMLAttrContext::m_bHeaderOrFooter
private

Definition at line 240 of file swhtml.hxx.

Referenced by IsHeaderOrFooter(), and SetHeaderOrFooter().

◆ m_bLRSpaceChanged

bool HTMLAttrContext::m_bLRSpaceChanged
private

Definition at line 231 of file swhtml.hxx.

Referenced by GetMargins(), IsLRSpaceChanged(), and SetMargins().

◆ m_bPopStack

bool HTMLAttrContext::m_bPopStack
private

Definition at line 235 of file swhtml.hxx.

Referenced by GetPopStack(), and SetPopStack().

◆ m_bRestartListing

bool HTMLAttrContext::m_bRestartListing
private

Definition at line 239 of file swhtml.hxx.

Referenced by IsRestartListing(), and SetRestartListing().

◆ m_bRestartPRE

bool HTMLAttrContext::m_bRestartPRE
private

Definition at line 237 of file swhtml.hxx.

Referenced by IsRestartPRE(), and SetRestartPRE().

◆ m_bRestartXMP

bool HTMLAttrContext::m_bRestartXMP
private

Definition at line 238 of file swhtml.hxx.

Referenced by IsRestartXMP(), and SetRestartXMP().

◆ m_bSpansSection

bool HTMLAttrContext::m_bSpansSection
private

Definition at line 234 of file swhtml.hxx.

Referenced by GetSpansSection(), and SetSpansSection().

◆ m_bULSpaceChanged

bool HTMLAttrContext::m_bULSpaceChanged
private

Definition at line 232 of file swhtml.hxx.

Referenced by GetULSpace(), IsULSpaceChanged(), and SetULSpace().

◆ m_bVisible

bool HTMLAttrContext::m_bVisible = true
private

Definition at line 242 of file swhtml.hxx.

Referenced by IsVisible(), and SetVisible().

◆ m_eAppend

SwHTMLAppendMode HTMLAttrContext::m_eAppend
private

Definition at line 229 of file swhtml.hxx.

Referenced by GetAppendMode(), and SetAppendMode().

◆ m_nFirstLineIndent

sal_uInt16 HTMLAttrContext::m_nFirstLineIndent
private

Definition at line 224 of file swhtml.hxx.

Referenced by GetMargins(), and SetMargins().

◆ m_nLeftMargin

sal_uInt16 HTMLAttrContext::m_nLeftMargin
private

Definition at line 222 of file swhtml.hxx.

Referenced by GetMargins(), and SetMargins().

◆ m_nLowerSpace

sal_uInt16 HTMLAttrContext::m_nLowerSpace
private

Definition at line 227 of file swhtml.hxx.

Referenced by GetULSpace(), and SetULSpace().

◆ m_nRightMargin

sal_uInt16 HTMLAttrContext::m_nRightMargin
private

Definition at line 223 of file swhtml.hxx.

Referenced by GetMargins(), and SetMargins().

◆ m_nTextFormatColl

sal_uInt16 HTMLAttrContext::m_nTextFormatColl
private

Definition at line 220 of file swhtml.hxx.

Referenced by GetDefaultTextFormatColl(), and GetTextFormatColl().

◆ m_nToken

HtmlTokenId HTMLAttrContext::m_nToken
private

Definition at line 218 of file swhtml.hxx.

Referenced by GetToken().

◆ m_nUpperSpace

sal_uInt16 HTMLAttrContext::m_nUpperSpace
private

Definition at line 226 of file swhtml.hxx.

Referenced by GetULSpace(), and SetULSpace().

◆ m_pFrameItemSet

std::unique_ptr<SfxItemSet> HTMLAttrContext::m_pFrameItemSet
private

Definition at line 216 of file swhtml.hxx.

Referenced by GetFrameItemSet().

◆ m_pSaveDocContext

std::unique_ptr<HTMLAttrContext_SaveDoc> HTMLAttrContext::m_pSaveDocContext
private

The documentation for this class was generated from the following files: