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

#include <wrthtml.hxx>

Inheritance diagram for SwHTMLWriter:
[legend]
Collaboration diagram for SwHTMLWriter:
[legend]

Public Member Functions

 SwHTMLWriter (const OUString &rBaseURL, std::u16string_view rFilterOptions=std::u16string_view())
 Construct an instance of SwHTMLWriter and optionally give it the filter options directly, which can also be set via SetupFilterOptions(). More...
 
virtual ~SwHTMLWriter () override
 
void Out_SwDoc (SwPaM *)
 
void OutAnchor (const OUString &rName)
 
void OutBookmarks ()
 
void OutPointFieldmarks (const SwPosition &rPos)
 
void OutImplicitMark (std::u16string_view rMark, const char *pMarkType)
 
OUString convertHyperlinkHRefValue (const OUString &rURL)
 
void OutHyperlinkHRefValue (const OUString &rURL)
 
bool OutFlyFrame (SwNodeOffset nNdIdx, sal_Int32 nContentIdx, HtmlPosition nPos)
 
void OutFrameFormat (AllHtmlFlags nType, const SwFrameFormat &rFormat, const SdrObject *pSdrObj)
 
void OutForm (bool bTagOn=true, const SwStartNode *pStNd=nullptr)
 
void OutHiddenForms ()
 
void OutHiddenForm (const css::uno::Reference< css::form::XForm > &rForm)
 
void OutForm (bool bOn, const css::uno::Reference< css::container::XIndexContainer > &rFormComps)
 
void OutHiddenControls (const css::uno::Reference< css::container::XIndexContainer > &rFormComps, const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
 
bool HasControls () const
 
void OutFootEndNoteInfo ()
 
void OutFootEndNotes ()
 
OUString GetFootEndNoteSym (const SwFormatFootnote &rFormatFootnote)
 
void OutFootEndNoteSym (const SwFormatFootnote &rFormatFootnote, const OUString &rNum, sal_uInt16 nScript)
 
void OutBasic (const SwHTMLWriter &rHTMLWrt)
 
void OutAndSetDefList (sal_uInt16 nNewLvl)
 
void OutStyleSheet (const SwPageDesc &rPageDesc)
 
void OutCSS1_PropertyAscii (std::string_view pProp, std::string_view rVal)
 
void OutCSS1_Property (std::string_view pProp, const OUString &rVal)
 
void OutCSS1_Property (std::string_view pProp, std::string_view pVal, const OUString *pSVal, std::optional< sw::Css1Background > oBackground=std::nullopt)
 
void OutCSS1_UnitProperty (std::string_view pProp, tools::Long nVal)
 
void OutCSS1_PixelProperty (std::string_view pProp, tools::Long nVal, bool bVert)
 
void OutCSS1_SfxItemSet (const SfxItemSet &rItemSet, bool bDeep=true)
 
void OutBasicBodyEvents ()
 
void OutBackground (const SvxBrushItem *pBrushItem, bool bGraphic)
 
void OutBackground (const SfxItemSet &rItemSet, bool bGraphic)
 
void OutLanguage (LanguageType eLang)
 
SvxFrameDirection GetHTMLDirection (SvxFrameDirection nDir) const
 
SvxFrameDirection GetHTMLDirection (const SfxItemSet &rItemSet) const
 
void OutDirection (SvxFrameDirection nDir)
 
OString OutFrameFormatOptions (const SwFrameFormat &rFrameFormat, const OUString &rAltText, HtmlFrmOpts nFrameOpts)
 
void writeFrameFormatOptions (HtmlWriter &aHtml, const SwFrameFormat &rFrameFormat, std::u16string_view rAltText, HtmlFrmOpts nFrameOpts)
 
void OutCSS1_TableFrameFormatOptions (const SwFrameFormat &rFrameFormat)
 Writes the formatting for tables. More...
 
void OutCSS1_TableCellBordersAndBG (const SwFrameFormat &rFrameFormat, const SvxBrushItem *pBrushItem)
 Writes the borders and background for table cells. More...
 
void OutCSS1_SectionFormatOptions (const SwFrameFormat &rFrameFormat, const SwFormatCol *pCol)
 
void OutCSS1_FrameFormatOptions (const SwFrameFormat &rFrameFormat, HtmlFrmOpts nFrameOpts, const SdrObject *pSdrObj=nullptr, const SfxItemSet *pItemSet=nullptr)
 
void OutCSS1_FrameFormatBackground (const SwFrameFormat &rFrameFormat)
 
void ChangeParaToken (HtmlTokenId nNew)
 
void IncIndentLevel ()
 
void DecIndentLevel ()
 
OString GetIndentString (sal_uInt16 nIncLvl=0)
 
sal_Int32 GetLineLen ()
 
void OutNewLine (bool bCheck=false)
 
SwPaMGetEndPaM ()
 
void SetEndPaM (SwPaM *pPam)
 
SwHTMLFrameType GuessFrameType (const SwFrameFormat &rFrameFormat, const SdrObject *&rpStrObj)
 
void CollectFlyFrames ()
 
sal_uInt16 GetHTMLFontSize (sal_uInt32 nFontHeight) const
 
SwHTMLNumRuleInfoGetNumInfo ()
 
SwHTMLNumRuleInfoGetNextNumInfo ()
 
std::unique_ptr< SwHTMLNumRuleInfoReleaseNextNumInfo ()
 
void SetNextNumInfo (std::unique_ptr< SwHTMLNumRuleInfo > pNxt)
 
void FillNextNumInfo ()
 
void ClearNextNumInfo ()
 
sal_uInt32 GetHTMLMode () const
 
bool IsHTMLMode (sal_uInt32 nMode) const
 
bool IsCSS1Source (sal_uInt16 n) const
 
bool IsCSS1Script (sal_uInt16 n) const
 
FieldUnit GetCSS1Unit () const
 
sal_Int32 indexOfDotLeaders (sal_uInt16 nPoolId, std::u16string_view rText)
 
OString GetNamespace () const
 Determines the prefix string needed to respect the requested namespace alias. More...
 
- Public Member Functions inherited from Writer
 Writer ()
 
virtual ~Writer () override
 
virtual ErrCode Write (SwPaM &, SfxMedium &, const OUString *)
 
ErrCode Write (SwPaM &, SvStream &, const OUString *)
 
virtual ErrCode Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr)
 
virtual ErrCode Write (SwPaM &, SotStorage &, const OUString *)
 
virtual void SetupFilterOptions (SfxMedium &rMedium)
 
virtual bool IsStgWriter () const
 
void SetShowProgress (bool bFlag)
 
const OUString * GetOrigFileName () const
 
const SwAsciiOptionsGetAsciiOptions () const
 
void SetAsciiOptions (const SwAsciiOptions &rOpt)
 
const OUString & GetBaseURL () const
 
sal_Int32 FindPos_Bkmk (const SwPosition &rPos) const
 
void CreateBookmarkTable ()
 
bool GetBookmarks (const SwContentNode &rNd, sal_Int32 nStt, sal_Int32 nEnd, std::vector< const ::sw::mark::IMark * > &rArr)
 
bool CopyLocalFileToINet (OUString &rFileNm)
 
void SetStream (SvStream *const pStream)
 
SvStreamStrm ()
 
void SetOrganizerMode (bool bSet)
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Static Public Member Functions

static OString convertDirection (SvxFrameDirection nDirection)
 
static sal_uInt32 ToPixel (sal_uInt32 nVal, const bool bVert)
 
static SwHTMLFrameType GuessOLENodeFrameType (const SwNode &rNd)
 
static const SdrObjectGetHTMLControl (const SwDrawFrameFormat &rFormat)
 
static const SdrObjectGetMarqueeTextObj (const SwDrawFrameFormat &rFormat)
 
static sal_uInt16 GetCSS1Selector (const SwFormat *pFormat, OString &rToken, OUString &rClass, sal_uInt16 &rRefPoolId, OUString *pPseudo=nullptr)
 
static const SwFormatGetTemplateFormat (sal_uInt16 nPoolId, IDocumentStylePoolAccess *pTemplate)
 
static const SwFormatGetParentFormat (const SwFormat &rFormat, sal_uInt16 nDeep)
 
static void SubtractItemSet (SfxItemSet &rItemSet, const SfxItemSet &rRefItemSet, bool bSetDefaults, bool bClearSame=true, const SfxItemSet *pRefScriptItemSet=nullptr)
 
static bool HasScriptDependentItems (const SfxItemSet &rItemSet, bool bCheckDropCap)
 
static void GetEEAttrsFromDrwObj (SfxItemSet &rItemSet, const SdrObject *pObj)
 
static sal_uInt16 GetDefListLvl (std::u16string_view rNm, sal_uInt16 nPoolId)
 
static const char * GetNumFormat (sal_uInt16 nFormat)
 
static void PrepareFontList (const SvxFontItem &rFontItem, OUString &rNames, sal_Unicode cQuote, bool bGeneric)
 
static sal_uInt16 GetCSS1ScriptForScriptType (sal_uInt16 nScriptType)
 
static sal_uInt16 GetLangWhichIdFromScript (sal_uInt16 nScript)
 
- Static Public Member Functions inherited from Writer
static std::shared_ptr< SwUnoCursorNewUnoCursor (SwDoc &rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx)
 

Public Attributes

std::vector< OUString > m_aImgMapNames
 
std::set< OUString > m_aImplicitMarks
 
std::set< OUString > m_aNumRuleNames
 
std::set< OUString > m_aScriptParaStyles
 
std::set< OUString > m_aScriptTextStyles
 
std::vector< OUString > m_aOutlineMarks
 
std::vector< SwNodeOffsetm_aOutlineMarkPoss
 
HTMLControls m_aHTMLControls
 
SwHTMLFormatInfos m_CharFormatInfos
 
SwHTMLFormatInfos m_TextCollInfos
 
std::vector< SwFormatINetFormat * > m_aINetFormats
 
std::optional< std::vector< SwTextFootnote * > > m_xFootEndNotes
 
OUString m_aCSS1Selector
 
OUString m_aBulletGrfs [MAXLEVEL]
 
css::uno::Reference< css::container::XIndexContainer > mxFormComps
 
rtl::Reference< SwDocm_xTemplate
 
std::optional< Colorm_xDfltColor
 
SwNodeIndexm_pStartNdIdx
 
const SwPageDescm_pCurrPageDesc
 
const SwFormatFootnotem_pFormatFootnote
 
sal_uInt32 m_aFontHeights [7]
 
ErrCode m_nWarn
 
sal_uInt32 m_nLastLFPos
 
HtmlTokenId m_nLastParaToken
 
sal_Int32 m_nBkmkTabPos
 
sal_uInt16 m_nImgMapCnt
 
sal_uInt16 m_nFormCntrlCnt
 
sal_uInt16 m_nEndNote
 
sal_uInt16 m_nFootNote
 
sal_Int32 m_nLeftMargin
 
sal_Int32 m_nDfltLeftMargin
 
sal_Int32 m_nDfltRightMargin
 
short m_nFirstLineIndent
 
short m_nDfltFirstLineIndent
 
sal_uInt16 m_nDfltTopMargin
 
sal_uInt16 m_nDfltBottomMargin
 
sal_uInt16 m_nIndentLvl
 
sal_Int32 m_nWishLineLen
 
sal_uInt16 m_nDefListLvl
 
sal_Int32 m_nDefListMargin
 
sal_uInt16 m_nHeaderFooterSpace
 
sal_uInt16 m_nTextAttrsToIgnore
 
sal_uInt16 m_nExportMode
 
sal_uInt16 m_nCSS1OutMode
 
sal_uInt16 m_nCSS1Script
 
SvxFrameDirection m_nDirection
 
LanguageType m_eLang
 
bool m_bCfgOutStyles: 1
 
bool m_bCfgPreferStyles: 1
 
bool m_bCfgFormFeed: 1
 
bool m_bCfgStarBasic: 1
 
bool m_bCfgCpyLinkedGrfs: 1
 
bool m_bFirstLine: 1
 
bool m_bTagOn: 1
 
bool m_bTextAttr: 1
 
bool m_bOutOpts: 1
 
bool m_bOutTable: 1
 
bool m_bOutHeader: 1
 
bool m_bOutFooter: 1
 
bool m_bOutFlyFrame: 1
 
bool m_bFirstCSS1Rule: 1
 
bool m_bFirstCSS1Property: 1
 
bool m_bCSS1IgnoreFirstPageDesc: 1
 
bool m_bNoAlign: 1
 
bool m_bClearLeft: 1
 
bool m_bClearRight: 1
 
bool m_bLFPossible: 1
 
bool m_bPreserveForm: 1
 
bool m_bCfgNetscape4: 1
 
bool mbSkipImages: 1
 
bool mbSkipHeaderFooter: 1
 If HTML header and footer should be written as well, or just the content itself. More...
 
bool mbEmbedImages: 1
 
std::unique_ptr< utl::TempFileNamedmpTempBaseURL
 Temporary base URL for paste of images. More...
 
bool mbXHTML = false
 If XHTML markup should be written instead of HTML. More...
 
OString maNamespace
 XML namespace, in case of XHTML. More...
 
bool mbReqIF = false
 If the ReqIF subset of XHTML should be written. More...
 
bool m_bCfgPrintLayout: 1
 
bool m_bParaDotLeaders: 1
 
bool m_bPrettyPrint: 1
 
std::map< sal_uInt16, intmaStartedAttributes
 Tracks which text portion attributes are currently open: a which id -> open count map. More...
 
OUString m_aRTFOLEMimeType
 
bool m_bExportImagesAsOLE = false
 ReqIF mode: export images as OLE objects. More...
 
std::optional< sal_Int32 > m_nShapeDPI
 DPI used when exporting a vector shape as a bitmap. More...
 
std::optional< sal_Int32 > m_nLeadingTabWidth
 If set, replace leading tabs with this many non-breaking spaces. More...
 
- Public Attributes inherited from Writer
SwDocm_pDoc
 
SwPaMm_pOrigPam
 
std::shared_ptr< SwUnoCursorm_pCurrentPam
 
bool m_bWriteAll: 1
 
bool m_bShowProgress: 1
 
bool m_bWriteClipboardDoc: 1
 
bool m_bWriteOnlyFirstTable: 1
 
bool m_bASCII_ParaAsCR: 1
 
bool m_bASCII_ParaAsBlank: 1
 
bool m_bASCII_NoLastLineEnd: 1
 
bool m_bUCS2_WithStartChar: 1
 
bool m_bExportParagraphNumbering: 1
 
bool m_bBlock: 1
 
bool m_bOrganizerMode: 1
 
bool m_bHideDeleteRedlines: 1
 

Protected Member Functions

ErrCode WriteStream () override
 
void SetupFilterOptions (SfxMedium &rMedium) override
 
void SetupFilterFromPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &rPropertyValues)
 
- Protected Member Functions inherited from Writer
void ResetWriter ()
 
bool CopyNextPam (SwPaM **)
 
void PutNumFormatFontsInAttrPool ()
 
void PutEditEngFontsInAttrPool ()
 
virtual ErrCode WriteStream ()=0
 
void SetBaseURL (const OUString &rURL)
 
IDocumentSettingAccessgetIDocumentSettingAccess ()
 
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 
IDocumentStylePoolAccessgetIDocumentStylePoolAccess ()
 
const IDocumentStylePoolAccessgetIDocumentStylePoolAccess () const
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

sal_uInt16 OutHeaderAttrs ()
 
const SwPageDescMakeHeader (sal_uInt16 &rHeaderAtrs)
 
void GetControls ()
 
void AddLinkTarget (std::u16string_view aURL)
 
void CollectLinkTargets ()
 
void SetupFilterOptions (std::u16string_view rFilterOptions)
 

Private Attributes

SwHTMLPosFlyFrames m_aHTMLPosFlyFrames
 
std::unique_ptr< SwHTMLNumRuleInfom_pNumRuleInfo
 
std::unique_ptr< SwHTMLNumRuleInfom_pNextNumRuleInfo
 
sal_uInt32 m_nHTMLMode
 
FieldUnit m_eCSS1Unit
 

Additional Inherited Members

- Protected Attributes inherited from Writer
const OUString * m_pOrigFileName
 

Detailed Description

Definition at line 272 of file wrthtml.hxx.

Constructor & Destructor Documentation

◆ SwHTMLWriter()

SwHTMLWriter::SwHTMLWriter ( const OUString &  rBaseURL,
std::u16string_view  rFilterOptions = std::u16string_view() 
)
explicit

Construct an instance of SwHTMLWriter and optionally give it the filter options directly, which can also be set via SetupFilterOptions().

Definition at line 97 of file wrthtml.cxx.

References Horizontal_LR_TB, LANGUAGE_DONTKNOW, m_bNoAlign, mbXHTML, mpTempBaseURL, Writer::SetBaseURL(), and SetupFilterOptions().

◆ ~SwHTMLWriter()

SwHTMLWriter::~SwHTMLWriter ( )
overridevirtual

Definition at line 177 of file wrthtml.cxx.

Member Function Documentation

◆ AddLinkTarget()

void SwHTMLWriter::AddLinkTarget ( std::u16string_view  aURL)
private

◆ ChangeParaToken()

void SwHTMLWriter::ChangeParaToken ( HtmlTokenId  nNew)

◆ ClearNextNumInfo()

void SwHTMLWriter::ClearNextNumInfo ( )

◆ CollectFlyFrames()

void SwHTMLWriter::CollectFlyFrames ( )

◆ CollectLinkTargets()

void SwHTMLWriter::CollectLinkTargets ( )
private

◆ convertDirection()

OString SwHTMLWriter::convertDirection ( SvxFrameDirection  nDirection)
static

◆ convertHyperlinkHRefValue()

OUString SwHTMLWriter::convertHyperlinkHRefValue ( const OUString &  rURL)

◆ DecIndentLevel()

void SwHTMLWriter::DecIndentLevel ( )
inline

◆ FillNextNumInfo()

void SwHTMLWriter::FillNextNumInfo ( )

◆ GetControls()

void SwHTMLWriter::GetControls ( )
private

◆ GetCSS1ScriptForScriptType()

sal_uInt16 SwHTMLWriter::GetCSS1ScriptForScriptType ( sal_uInt16  nScriptType)
static

◆ GetCSS1Selector()

sal_uInt16 SwHTMLWriter::GetCSS1Selector ( const SwFormat pFormat,
OString &  rToken,
OUString &  rClass,
sal_uInt16 &  rRefPoolId,
OUString *  pPseudo = nullptr 
)
static

Definition at line 600 of file css1atr.cxx.

References CSS1_FMT_CMPREF, CSS1_FMT_ISTAG, CSS1_FMT_SPECIAL, SwFormat::DerivedFrom(), GetAppCharClass(), GetDefListLvl(), SwFormat::GetName(), SwFormat::GetPoolFormatId(), HTML_DLCOLL_DD, SwFormat::IsDefault(), CharClass::lowercase(), nPos, OOO_STRING_SVTOOLS_HTML_address, OOO_STRING_SVTOOLS_HTML_anchor, OOO_STRING_SVTOOLS_HTML_blockquote, OOO_STRING_SVTOOLS_HTML_citation, OOO_STRING_SVTOOLS_HTML_code, OOO_STRING_SVTOOLS_HTML_dd, OOO_STRING_SVTOOLS_HTML_definstance, OOO_STRING_SVTOOLS_HTML_dt, OOO_STRING_SVTOOLS_HTML_emphasis, OOO_STRING_SVTOOLS_HTML_head1, OOO_STRING_SVTOOLS_HTML_head2, OOO_STRING_SVTOOLS_HTML_head3, OOO_STRING_SVTOOLS_HTML_head4, OOO_STRING_SVTOOLS_HTML_head5, OOO_STRING_SVTOOLS_HTML_head6, OOO_STRING_SVTOOLS_HTML_horzrule, OOO_STRING_SVTOOLS_HTML_keyboard, OOO_STRING_SVTOOLS_HTML_listing, OOO_STRING_SVTOOLS_HTML_parabreak, OOO_STRING_SVTOOLS_HTML_preformtxt, OOO_STRING_SVTOOLS_HTML_sample, OOO_STRING_SVTOOLS_HTML_sdendnote, OOO_STRING_SVTOOLS_HTML_sdfootnote, OOO_STRING_SVTOOLS_HTML_strong, OOO_STRING_SVTOOLS_HTML_tabledata, OOO_STRING_SVTOOLS_HTML_tableheader, OOO_STRING_SVTOOLS_HTML_teletype, OOO_STRING_SVTOOLS_HTML_variable, OOO_STRING_SVTOOLS_HTML_xmp, RES_CHRFMT(), 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, RES_POOLCHR_INET_NORMAL, RES_POOLCHR_INET_VISIT, 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_HEADLINE_BASE, RES_POOLCOLL_HTML_BLOCKQUOTE, RES_POOLCOLL_HTML_DD, RES_POOLCOLL_HTML_DT, RES_POOLCOLL_HTML_HR, RES_POOLCOLL_HTML_PRE, RES_POOLCOLL_SEND_ADDRESS, RES_POOLCOLL_STANDARD, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, RES_POOLCOLL_TEXT, sCSS1_link, sCSS1_visited, u, USER_FMT, and SwFormat::Which().

Referenced by GetCSS1Selector(), and SwHTMLFormatInfo::SwHTMLFormatInfo().

◆ GetCSS1Unit()

FieldUnit SwHTMLWriter::GetCSS1Unit ( ) const
inline

Definition at line 612 of file wrthtml.hxx.

Referenced by OutCSS1_SvxBox(), and OutCSS1_SwPageDesc().

◆ GetDefListLvl()

sal_uInt16 SwHTMLWriter::GetDefListLvl ( std::u16string_view  rNm,
sal_uInt16  nPoolId 
)
static

◆ GetEEAttrsFromDrwObj()

void SwHTMLWriter::GetEEAttrsFromDrwObj ( SfxItemSet rItemSet,
const SdrObject pObj 
)
static

◆ GetEndPaM()

SwPaM * SwHTMLWriter::GetEndPaM ( )
inline

Definition at line 542 of file wrthtml.hxx.

◆ GetFootEndNoteSym()

OUString SwHTMLWriter::GetFootEndNoteSym ( const SwFormatFootnote rFormatFootnote)

◆ GetHTMLControl()

const SdrObject * SwHTMLWriter::GetHTMLControl ( const SwDrawFrameFormat rFormat)
static

◆ GetHTMLDirection() [1/2]

SvxFrameDirection SwHTMLWriter::GetHTMLDirection ( const SfxItemSet rItemSet) const

Definition at line 1466 of file wrthtml.cxx.

References SfxItemSet::Get(), GetHTMLDirection(), and RES_FRAMEDIR().

◆ GetHTMLDirection() [2/2]

SvxFrameDirection SwHTMLWriter::GetHTMLDirection ( SvxFrameDirection  nDir) const

◆ GetHTMLFontSize()

sal_uInt16 SwHTMLWriter::GetHTMLFontSize ( sal_uInt32  nFontHeight) const

Definition at line 1553 of file wrthtml.cxx.

References i, and m_aFontHeights.

Referenced by OutHTML_SvxFontHeight().

◆ GetHTMLMode()

sal_uInt32 SwHTMLWriter::GetHTMLMode ( ) const
inline

Definition at line 594 of file wrthtml.hxx.

Referenced by OutHTML_SwTextNode().

◆ GetIndentString()

OString SwHTMLWriter::GetIndentString ( sal_uInt16  nIncLvl = 0)

Definition at line 1520 of file wrthtml.cxx.

References m_nIndentLvl, MAX_INDENT_LEVEL, and sIndentTabs.

Referenced by MakeHeader().

◆ GetLangWhichIdFromScript()

sal_uInt16 SwHTMLWriter::GetLangWhichIdFromScript ( sal_uInt16  nScript)
static

◆ GetLineLen()

sal_Int32 SwHTMLWriter::GetLineLen ( )
inline

Definition at line 535 of file wrthtml.hxx.

Referenced by OutHTML_SwTextNode().

◆ GetMarqueeTextObj()

const SdrObject * SwHTMLWriter::GetMarqueeTextObj ( const SwDrawFrameFormat rFormat)
static

Definition at line 56 of file htmldrawwriter.cxx.

References SwFrameFormat::FindSdrObject(), and IsMarqueeTextObj().

Referenced by GuessFrameType().

◆ GetNamespace()

OString SwHTMLWriter::GetNamespace ( ) const

◆ GetNextNumInfo()

SwHTMLNumRuleInfo * SwHTMLWriter::GetNextNumInfo ( )
inline

Definition at line 560 of file wrthtml.hxx.

Referenced by OutHTML_SwFormat(), OutHTML_SwFormatOff(), and OutHTML_SwTableNode().

◆ GetNumFormat()

const char * SwHTMLWriter::GetNumFormat ( sal_uInt16  nFormat)
static

◆ GetNumInfo()

SwHTMLNumRuleInfo & SwHTMLWriter::GetNumInfo ( )
inline

◆ GetParentFormat()

const SwFormat * SwHTMLWriter::GetParentFormat ( const SwFormat rFormat,
sal_uInt16  nDeep 
)
static

◆ GetTemplateFormat()

const SwFormat * SwHTMLWriter::GetTemplateFormat ( sal_uInt16  nPoolId,
IDocumentStylePoolAccess pTemplate 
)
static

◆ GuessFrameType()

SwHTMLFrameType SwHTMLWriter::GuessFrameType ( const SwFrameFormat rFrameFormat,
const SdrObject *&  rpStrObj 
)

◆ GuessOLENodeFrameType()

SwHTMLFrameType SwHTMLWriter::GuessOLENodeFrameType ( const SwNode rNd)
static

◆ HasControls()

bool SwHTMLWriter::HasControls ( ) const

◆ HasScriptDependentItems()

bool SwHTMLWriter::HasScriptDependentItems ( const SfxItemSet rItemSet,
bool  bCheckDropCap 
)
static

◆ IncIndentLevel()

void SwHTMLWriter::IncIndentLevel ( )
inline

◆ indexOfDotLeaders()

sal_Int32 SwHTMLWriter::indexOfDotLeaders ( sal_uInt16  nPoolId,
std::u16string_view  rText 
)

◆ IsCSS1Script()

bool SwHTMLWriter::IsCSS1Script ( sal_uInt16  n) const
inline

◆ IsCSS1Source()

bool SwHTMLWriter::IsCSS1Source ( sal_uInt16  n) const
inline

◆ IsHTMLMode()

bool SwHTMLWriter::IsHTMLMode ( sal_uInt32  nMode) const
inline

◆ MakeHeader()

const SwPageDesc * SwHTMLWriter::MakeHeader ( sal_uInt16 &  rHeaderAtrs)
private

Definition at line 1082 of file wrthtml.cxx.

References Count, DecIndentLevel(), SwContentNode::GetAttr(), SwFormat::GetAttrSet(), Writer::GetBaseURL(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwNode::GetContentNode(), SwDoc::GetDocShell(), SwTable::GetFrameFormat(), GetHTMLDirection(), SwDoc::getIDocumentStylePoolAccess(), GetIndentString(), SwPageDesc::GetMaster(), SfxObjectShell::GetModel(), GetNamespace(), SwDoc::GetNodes(), SwFormatPageDesc::GetPageDesc(), SwFormat::GetPageDesc(), SwDoc::GetPageDesc(), getSvxBrushItemFromSourceSet(), SwTableNode::GetTable(), SwNode::GetTableNode(), IDocumentStylePoolAccess::GetTextCollFromPool(), IncIndentLevel(), SwNode::IsContentNode(), SwNode::IsTableNode(), m_bCfgOutStyles, m_eLang, m_nDirection, Writer::m_pCurrentPam, Writer::m_pDoc, mbReqIF, mbSkipHeaderFooter, mbXHTML, OOO_STRING_SVTOOLS_HTML_body, OOO_STRING_SVTOOLS_HTML_division, OOO_STRING_SVTOOLS_HTML_doctype, OOO_STRING_SVTOOLS_HTML_doctype5, OOO_STRING_SVTOOLS_HTML_head, OOO_STRING_SVTOOLS_HTML_html, OOO_STRING_SVTOOLS_HTML_O_link, OOO_STRING_SVTOOLS_HTML_O_text, OOO_STRING_SVTOOLS_HTML_O_vlink, OOO_STRING_SVTOOLS_XHTML_doctype11, HTMLOutFuncs::Out_AsciiTag(), SfxFrameHTMLWriter::Out_DocInfo(), OutBackground(), OutBasic(), OutBasicBodyEvents(), OutBodyColor(), OutCSS1_BodyTagStyleOpt(), OutDirection(), OutFootEndNoteInfo(), OutHeaderAttrs(), OutLanguage(), OutNewLine(), OutStyleSheet(), RES_BACKGROUND(), RES_PAGEDESC(), RES_POOLCHR_INET_NORMAL, RES_POOLCHR_INET_VISIT, RES_POOLCOLL_STANDARD, Writer::Strm(), SvStream::WriteChar(), and SvStream::WriteOString().

Referenced by WriteStream().

◆ Out_SwDoc()

void SwHTMLWriter::Out_SwDoc ( SwPaM pPam)

◆ OutAnchor()

void SwHTMLWriter::OutAnchor ( const OUString &  rName)

◆ OutAndSetDefList()

void SwHTMLWriter::OutAndSetDefList ( sal_uInt16  nNewLvl)

◆ OutBackground() [1/2]

void SwHTMLWriter::OutBackground ( const SfxItemSet rItemSet,
bool  bGraphic 
)

Definition at line 1423 of file wrthtml.cxx.

References SfxItemSet::GetItemIfSet(), OutBackground(), and RES_BACKGROUND().

◆ OutBackground() [2/2]

void SwHTMLWriter::OutBackground ( const SvxBrushItem pBrushItem,
bool  bGraphic 
)

◆ OutBasic()

void SwHTMLWriter::OutBasic ( const SwHTMLWriter rHTMLWrt)

◆ OutBasicBodyEvents()

void SwHTMLWriter::OutBasicBodyEvents ( )

◆ OutBookmarks()

void SwHTMLWriter::OutBookmarks ( )

◆ OutCSS1_FrameFormatBackground()

void SwHTMLWriter::OutCSS1_FrameFormatBackground ( const SwFrameFormat rFrameFormat)

◆ OutCSS1_FrameFormatOptions()

void SwHTMLWriter::OutCSS1_FrameFormatOptions ( const SwFrameFormat rFrameFormat,
HtmlFrmOpts  nFrameOpts,
const SdrObject pSdrObj = nullptr,
const SfxItemSet pItemSet = nullptr 
)

Definition at line 1840 of file css1atr.cxx.

References AbsSize, Align, AnySize, CSS1_OUTMODE_ENCODE, CSS1_OUTMODE_FRAME, CSS1_OUTMODE_STYLE_OPT_ON, SwFrameFormat::FindSdrObject(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), SwFormat::GetBox(), SwFormat::GetFrameSize(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SfxItemSet::GetItemState(), SvxLRSpaceItem::GetLeft(), SdrObject::GetLogicRect(), SwFormat::GetLRSpace(), SwFormatVertOrient::GetPos(), SwFormatHoriOrient::GetPos(), SwFormatVertOrient::GetRelationOrient(), SwFormatHoriOrient::GetRelationOrient(), SdrObject::GetRelativePos(), tools::Rectangle::GetSize(), SwFormat::GetULSpace(), SvxULSpaceItem::GetUpper(), SwFormatVertOrient::GetVertOrient(), SwFormat::GetVertOrient(), Size::Height(), HTMLMODE_FLY_MARGINS, IsHTMLMode(), m_bFirstCSS1Property, SwPostItHelper::NONE, OutCSS1_FrameFormatBackground(), OutCSS1_PixelProperty(), OutCSS1_PropertyAscii(), OutCSS1_SfxItemSet(), OutCSS1_SvxBox(), OutCSS1_SvxULSpace_SvxLRSpace(), OutCSS1_SwFormatFrameSize(), OutCSS1_UnitProperty(), RES_BOX(), RES_DRAWFRMFMT(), RES_LR_SPACE(), RES_UL_SPACE(), SAlign, SBackground, SBorder, sCSS1_P_float, sCSS1_P_height, sCSS1_P_left, sCSS1_P_position, sCSS1_P_top, sCSS1_P_width, sCSS1_PV_absolute, sCSS1_PV_left, sCSS1_PV_right, SvxLRSpaceItem::SetLeft(), SvxULSpaceItem::SetUpper(), SHeight, SNoBorder, SPixSize, SSize, SSpace, Writer::Strm(), SWidth, SwFormat::Which(), Size::Width(), SvStream::WriteChar(), Point::X(), and Point::Y().

Referenced by OutFrameFormat(), OutHTML_DrawFrameFormatAsControl(), OutHTML_DrawFrameFormatAsMarquee(), OutHTML_FrameFormatAsDivOrSpan(), OutHTML_FrameFormatAsMulticol(), OutHTML_FrameFormatOLENode(), and OutHTML_ImageStart().

◆ OutCSS1_PixelProperty()

void SwHTMLWriter::OutCSS1_PixelProperty ( std::string_view  pProp,
tools::Long  nVal,
bool  bVert 
)

◆ OutCSS1_Property() [1/2]

void SwHTMLWriter::OutCSS1_Property ( std::string_view  pProp,
const OUString &  rVal 
)
inline

◆ OutCSS1_Property() [2/2]

void SwHTMLWriter::OutCSS1_Property ( std::string_view  pProp,
std::string_view  pVal,
const OUString *  pSVal,
std::optional< sw::Css1Background oBackground = std::nullopt 
)

◆ OutCSS1_PropertyAscii()

void SwHTMLWriter::OutCSS1_PropertyAscii ( std::string_view  pProp,
std::string_view  rVal 
)
inline

◆ OutCSS1_SectionFormatOptions()

void SwHTMLWriter::OutCSS1_SectionFormatOptions ( const SwFrameFormat rFrameFormat,
const SwFormatCol pCol 
)

◆ OutCSS1_SfxItemSet()

void SwHTMLWriter::OutCSS1_SfxItemSet ( const SfxItemSet rItemSet,
bool  bDeep = true 
)

◆ OutCSS1_TableCellBordersAndBG()

void SwHTMLWriter::OutCSS1_TableCellBordersAndBG ( const SwFrameFormat rFrameFormat,
const SvxBrushItem pBrushItem 
)

◆ OutCSS1_TableFrameFormatOptions()

void SwHTMLWriter::OutCSS1_TableFrameFormatOptions ( const SwFrameFormat rFrameFormat)

◆ OutCSS1_UnitProperty()

void SwHTMLWriter::OutCSS1_UnitProperty ( std::string_view  pProp,
tools::Long  nVal 
)

◆ OutDirection()

void SwHTMLWriter::OutDirection ( SvxFrameDirection  nDir)

◆ OutFlyFrame()

bool SwHTMLWriter::OutFlyFrame ( SwNodeOffset  nNdIdx,
sal_Int32  nContentIdx,
HtmlPosition  nPos 
)

◆ OutFootEndNoteInfo()

void SwHTMLWriter::OutFootEndNoteInfo ( )

◆ OutFootEndNotes()

void SwHTMLWriter::OutFootEndNotes ( )

◆ OutFootEndNoteSym()

void SwHTMLWriter::OutFootEndNoteSym ( const SwFormatFootnote rFormatFootnote,
const OUString &  rNum,
sal_uInt16  nScript 
)

◆ OutForm() [1/2]

void SwHTMLWriter::OutForm ( bool  bOn,
const css::uno::Reference< css::container::XIndexContainer > &  rFormComps 
)

◆ OutForm() [2/2]

void SwHTMLWriter::OutForm ( bool  bTagOn = true,
const SwStartNode pStNd = nullptr 
)

◆ OutFrameFormat()

void SwHTMLWriter::OutFrameFormat ( AllHtmlFlags  nType,
const SwFrameFormat rFormat,
const SdrObject pSdrObj 
)

◆ OutFrameFormatOptions()

OString SwHTMLWriter::OutFrameFormatOptions ( const SwFrameFormat rFrameFormat,
const OUString &  rAltText,
HtmlFrmOpts  nFrameOpts 
)

Definition at line 507 of file htmlflywriter.cxx.

References AbsSize, Size::AdjustHeight(), Size::AdjustWidth(), Align, Alt, AnySize, BrClear, SvxBoxItem::CalcLineSpace(), Dir, Fixed, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), Application::GetDefaultDevice(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightPercent(), SwFormatFrameSize::GetHeightSizeType(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), GetHTMLDirection(), SfxItemSet::GetItemIfSet(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), SwFormat::GetName(), SwFormatHoriOrient::GetRelationOrient(), SvxLRSpaceItem::GetRight(), SwFormatSurround::GetSurround(), SvxULSpaceItem::GetUpper(), SwFormatVertOrient::GetVertOrient(), SvxSizeItem::GetWidth(), SwFormatFrameSize::GetWidthPercent(), Size::Height(), Height, Id, SwFormatSurround::IsAnchorOnly(), OutputDevice::LogicToPixel(), m_bClearLeft, m_bClearRight, m_nDfltBottomMargin, m_nDfltLeftMargin, m_nDfltRightMargin, m_nDfltTopMargin, MarginSize, mbReqIF, Name, SwPostItHelper::NONE, OOO_STRING_SVTOOLS_HTML_AL_left, OOO_STRING_SVTOOLS_HTML_AL_right, OOO_STRING_SVTOOLS_HTML_linebreak, OOO_STRING_SVTOOLS_HTML_O_align, OOO_STRING_SVTOOLS_HTML_O_alt, OOO_STRING_SVTOOLS_HTML_O_clear, OOO_STRING_SVTOOLS_HTML_O_height, OOO_STRING_SVTOOLS_HTML_O_hspace, OOO_STRING_SVTOOLS_HTML_O_id, OOO_STRING_SVTOOLS_HTML_O_name, OOO_STRING_SVTOOLS_HTML_O_vspace, OOO_STRING_SVTOOLS_HTML_O_width, OOO_STRING_SVTOOLS_HTML_VA_absbottom, OOO_STRING_SVTOOLS_HTML_VA_absmiddle, OOO_STRING_SVTOOLS_HTML_VA_bottom, OOO_STRING_SVTOOLS_HTML_VA_middle, OOO_STRING_SVTOOLS_HTML_VA_texttop, OOO_STRING_SVTOOLS_HTML_VA_top, HTMLOutFuncs::Out_String(), OutDirection(), RES_BOX(), RES_FRM_SIZE(), RES_LR_SPACE(), RES_SURROUND(), RES_UL_SPACE(), RES_VERT_ORIENT(), SAlign, Size::setHeight(), Size::setWidth(), Size, Space, Writer::Strm(), Size::Width(), Width, and SvStream::WriteOString().

Referenced by OutHTML_DrawFrameFormatAsControl(), OutHTML_DrawFrameFormatAsMarquee(), OutHTML_FrameFormatAsDivOrSpan(), OutHTML_FrameFormatAsMulticol(), OutHTML_FrameFormatAsSpacer(), and OutHTML_FrameFormatOLENode().

◆ OutHeaderAttrs()

sal_uInt16 SwHTMLWriter::OutHeaderAttrs ( )
private

◆ OutHiddenControls()

void SwHTMLWriter::OutHiddenControls ( const css::uno::Reference< css::container::XIndexContainer > &  rFormComps,
const css::uno::Reference< css::beans::XPropertySet > &  rPropSet 
)

◆ OutHiddenForm()

void SwHTMLWriter::OutHiddenForm ( const css::uno::Reference< css::form::XForm > &  rForm)

◆ OutHiddenForms()

void SwHTMLWriter::OutHiddenForms ( )

◆ OutHyperlinkHRefValue()

void SwHTMLWriter::OutHyperlinkHRefValue ( const OUString &  rURL)

Definition at line 1373 of file wrthtml.cxx.

References convertHyperlinkHRefValue(), HTMLOutFuncs::Out_String(), and Writer::Strm().

Referenced by OutHTML_INetFormat().

◆ OutImplicitMark()

void SwHTMLWriter::OutImplicitMark ( std::u16string_view  rMark,
const char *  pMarkType 
)

◆ OutLanguage()

void SwHTMLWriter::OutLanguage ( LanguageType  eLang)

◆ OutNewLine()

void SwHTMLWriter::OutNewLine ( bool  bCheck = false)

◆ OutPointFieldmarks()

void SwHTMLWriter::OutPointFieldmarks ( const SwPosition rPos)

◆ OutStyleSheet()

void SwHTMLWriter::OutStyleSheet ( const SwPageDesc rPageDesc)

◆ PrepareFontList()

void SwHTMLWriter::PrepareFontList ( const SvxFontItem rFontItem,
OUString &  rNames,
sal_Unicode  cQuote,
bool  bGeneric 
)
static

◆ ReleaseNextNumInfo()

std::unique_ptr< SwHTMLNumRuleInfo > SwHTMLWriter::ReleaseNextNumInfo ( )

Definition at line 181 of file wrthtml.cxx.

References m_pNextNumRuleInfo.

Referenced by HTMLSaveData::HTMLSaveData().

◆ SetEndPaM()

void SwHTMLWriter::SetEndPaM ( SwPaM pPam)
inline

Definition at line 543 of file wrthtml.hxx.

Referenced by HTMLSaveData::HTMLSaveData(), and HTMLSaveData::~HTMLSaveData().

◆ SetNextNumInfo()

void SwHTMLWriter::SetNextNumInfo ( std::unique_ptr< SwHTMLNumRuleInfo pNxt)

Definition at line 81 of file htmlnumwriter.cxx.

References m_pNextNumRuleInfo.

Referenced by HTMLSaveData::~HTMLSaveData().

◆ SetupFilterFromPropertyValues()

void SwHTMLWriter::SetupFilterFromPropertyValues ( const css::uno::Sequence< css::beans::PropertyValue > &  rPropertyValues)
protected

◆ SetupFilterOptions() [1/2]

void SwHTMLWriter::SetupFilterOptions ( SfxMedium rMedium)
overrideprotectedvirtual

◆ SetupFilterOptions() [2/2]

void SwHTMLWriter::SetupFilterOptions ( std::u16string_view  rFilterOptions)
private

◆ SubtractItemSet()

void SwHTMLWriter::SubtractItemSet ( SfxItemSet rItemSet,
const SfxItemSet rRefItemSet,
bool  bSetDefaults,
bool  bClearSame = true,
const SfxItemSet pRefScriptItemSet = nullptr 
)
static

◆ ToPixel()

sal_uInt32 SwHTMLWriter::ToPixel ( sal_uInt32  nVal,
const bool  bVert 
)
static

◆ writeFrameFormatOptions()

void SwHTMLWriter::writeFrameFormatOptions ( HtmlWriter aHtml,
const SwFrameFormat rFrameFormat,
std::u16string_view  rAltText,
HtmlFrmOpts  nFrameOpts 
)

Definition at line 792 of file htmlflywriter.cxx.

References AbsSize, Size::AdjustHeight(), Size::AdjustWidth(), Align, Alt, AnySize, HtmlWriter::attribute(), BrClear, SvxBoxItem::CalcLineSpace(), convertDirection(), Dir, HtmlWriter::end(), SwFrameFormat::FindSdrObject(), Fixed, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), Application::GetDefaultDevice(), SvxSizeItem::GetHeight(), SwFormatFrameSize::GetHeightPercent(), SwFormatFrameSize::GetHeightSizeType(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), GetHTMLDirection(), SfxItemSet::GetItemIfSet(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), SwFormat::GetName(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), SwFormatHoriOrient::GetRelationOrient(), SvxLRSpaceItem::GetRight(), SwFormatSurround::GetSurround(), SvxULSpaceItem::GetUpper(), SwFormatVertOrient::GetVertOrient(), SvxSizeItem::GetWidth(), SwFormatFrameSize::GetWidthPercent(), Size::Height(), Height, Id, SwFormatSurround::IsAnchorOnly(), OutputDevice::LogicToPixel(), m_bClearLeft, m_bClearRight, m_nDfltBottomMargin, m_nDfltLeftMargin, m_nDfltRightMargin, m_nDfltTopMargin, MarginSize, mbReqIF, mbXHTML, Name, SwPostItHelper::NONE, OOO_STRING_SVTOOLS_HTML_AL_left, OOO_STRING_SVTOOLS_HTML_AL_right, OOO_STRING_SVTOOLS_HTML_linebreak, OOO_STRING_SVTOOLS_HTML_O_align, OOO_STRING_SVTOOLS_HTML_O_alt, OOO_STRING_SVTOOLS_HTML_O_clear, OOO_STRING_SVTOOLS_HTML_O_dir, OOO_STRING_SVTOOLS_HTML_O_height, OOO_STRING_SVTOOLS_HTML_O_hspace, OOO_STRING_SVTOOLS_HTML_O_id, OOO_STRING_SVTOOLS_HTML_O_name, OOO_STRING_SVTOOLS_HTML_O_vspace, OOO_STRING_SVTOOLS_HTML_O_width, OOO_STRING_SVTOOLS_HTML_VA_absbottom, OOO_STRING_SVTOOLS_HTML_VA_absmiddle, OOO_STRING_SVTOOLS_HTML_VA_bottom, OOO_STRING_SVTOOLS_HTML_VA_middle, OOO_STRING_SVTOOLS_HTML_VA_texttop, OOO_STRING_SVTOOLS_HTML_VA_top, pObject, Replacement, RES_BOX(), RES_FRM_SIZE(), RES_LR_SPACE(), RES_SURROUND(), RES_UL_SPACE(), RES_VERT_ORIENT(), SAlign, Size::setHeight(), Size::setWidth(), Size, Space, HtmlWriter::start(), Size::Width(), and Width.

Referenced by OutHTML_ImageStart().

◆ WriteStream()

ErrCode SwHTMLWriter::WriteStream ( )
overrideprotectedvirtual

Implements Writer.

Definition at line 353 of file wrthtml.cxx.

References aName, BROWSE_MODE, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), SwHTMLNumRuleInfo::Clear(), ClearNextNumInfo(), CollectFlyFrames(), CollectLinkTargets(), HTMLOutFuncs::ConvertStringToHTML(), SwNodes::Count(), CSS1_OUTMODE_CJK, CSS1_OUTMODE_CTL, CSS1_OUTMODE_WESTERN, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwNode::EndOfSectionNode(), EndProgress(), ERRCODE_ABORT, ERRCODE_NONE, FileLink, SwNode::FindSectionNode(), sw::proofreadingiterator::get(), IDocumentSettingAccess::get(), GetAppLanguage(), SwFormat::GetAttrSet(), GetControls(), SwDoc::GetDefault(), SwDoc::GetDocShell(), SvxHtmlOptions::GetExportMode(), SwFormatFooter::GetFooterFormat(), GetFormat(), SwFormatHeader::GetHeaderFormat(), GetHtmlMode(), SwDoc::getIDocumentSettingAccess(), Writer::getIDocumentStylePoolAccess(), SfxItemSet::GetItemIfSet(), SwLangHelper::GetLanguage(), GetLangWhichIdFromScript(), SwPageDesc::GetMaster(), GetNamespace(), SwDoc::GetNodes(), GetNumInfo(), SvtLanguageOptions::GetScriptTypeOfLanguage(), SwSectionNode::GetSection(), SwSection::GetSectionName(), IDocumentStylePoolAccess::GetTextCollFromPool(), SvxTextLeftMarginItem::GetTextLeft(), SwFormat::GetTextLeftMargin(), SwSection::GetType(), HTML_CFG_MSIE, HTML_CFG_NS40, HTML_CFG_WRITER, HTML_MODE, HTMLMODE_ABS_POS_DRAW, HTMLMODE_ABS_POS_FLY, HTMLMODE_BLOCK_SPACER, HTMLMODE_BORDER_NONE, HTMLMODE_FLOAT_FRAME, HTMLMODE_FLY_MARGINS, HTMLMODE_FONT_GENERIC, HTMLMODE_FULL_STYLES, HTMLMODE_LSPACE_IN_NUMBER_BULLET, HTMLMODE_NBSP_IN_TABLES, HTMLMODE_NO_CONTROL_CENTERING, HTMLMODE_PRINT_EXT, HTMLMODE_SOME_STYLES, IsHTMLMode(), SvxHtmlOptions::IsPrintLayoutExtension(), m_aBulletGrfs, m_aFontHeights, m_aHTMLControls, m_aHTMLPosFlyFrames, m_aImgMapNames, m_aImplicitMarks, m_aNumRuleNames, m_aOutlineMarkPoss, m_aOutlineMarks, m_aScriptParaStyles, m_aScriptTextStyles, m_bCfgCpyLinkedGrfs, m_bCfgFormFeed, m_bCfgNetscape4, m_bCfgOutStyles, m_bCfgPreferStyles, m_bCfgPrintLayout, m_bCfgStarBasic, m_bClearLeft, m_bClearRight, m_bCSS1IgnoreFirstPageDesc, m_bFirstCSS1Property, m_bFirstCSS1Rule, m_bLFPossible, m_bOutFlyFrame, m_bOutFooter, m_bOutHeader, m_bOutTable, m_bPreserveForm, Writer::m_bShowProgress, Writer::m_bWriteAll, Writer::m_bWriteClipboardDoc, Writer::m_bWriteOnlyFirstTable, m_CharFormatInfos, m_eCSS1Unit, m_eLang, m_nCSS1OutMode, m_nCSS1Script, m_nDefListLvl, m_nDefListMargin, m_nDfltBottomMargin, m_nDfltFirstLineIndent, m_nDfltLeftMargin, m_nDfltRightMargin, m_nDfltTopMargin, m_nEndNote, m_nExportMode, m_nFirstLineIndent, m_nFootNote, m_nFormCntrlCnt, m_nHeaderFooterSpace, m_nHTMLMode, m_nIndentLvl, m_nLastLFPos, m_nLastParaToken, m_nLeftMargin, m_nTextAttrsToIgnore, m_nWarn, Writer::m_pCurrentPam, m_pCurrPageDesc, Writer::m_pDoc, m_pFormatFootnote, m_pNextNumRuleInfo, Writer::m_pOrigPam, m_pStartNdIdx, m_TextCollInfos, m_xDfltColor, m_xFootEndNotes, m_xTemplate, MakeHeader(), mbReqIF, mbSkipHeaderFooter, mxFormComps, OOO_STRING_SVTOOLS_HTML_body, OOO_STRING_SVTOOLS_HTML_division, OOO_STRING_SVTOOLS_HTML_html, OOO_STRING_SVTOOLS_HTML_O_id, HTMLOutFuncs::Out_AsciiTag(), Out_SwDoc(), OutFootEndNotes(), OutForm(), OutHiddenForms(), OutHTML_FrameFormatOLENodeGrf(), OutHTML_HeaderFooter(), OutNewLine(), ReadHTML, RES_FOOTER(), RES_HEADER(), RES_POOLCOLL_HTML_DD, Writer::SetStream(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), SwNode::StartOfSectionNode(), StartProgress(), Writer::Strm(), SW_MOD, and SvStream::WriteOString().

Member Data Documentation

◆ m_aBulletGrfs

OUString SwHTMLWriter::m_aBulletGrfs[MAXLEVEL]

Definition at line 311 of file wrthtml.hxx.

Referenced by OutHTML_NumberBulletListStart(), OutHTML_SwFormat(), and WriteStream().

◆ m_aCSS1Selector

OUString SwHTMLWriter::m_aCSS1Selector

Definition at line 310 of file wrthtml.hxx.

Referenced by OutCSS1_Property().

◆ m_aFontHeights

sal_uInt32 SwHTMLWriter::m_aFontHeights[7]

Definition at line 321 of file wrthtml.hxx.

Referenced by GetHTMLFontSize(), and WriteStream().

◆ m_aHTMLControls

HTMLControls SwHTMLWriter::m_aHTMLControls

Definition at line 304 of file wrthtml.hxx.

Referenced by GetControls(), HasControls(), OutForm(), and WriteStream().

◆ m_aHTMLPosFlyFrames

SwHTMLPosFlyFrames SwHTMLWriter::m_aHTMLPosFlyFrames
private

Definition at line 274 of file wrthtml.hxx.

Referenced by CollectFlyFrames(), GetControls(), GuessFrameType(), OutFlyFrame(), and WriteStream().

◆ m_aImgMapNames

std::vector<OUString> SwHTMLWriter::m_aImgMapNames

Definition at line 297 of file wrthtml.hxx.

Referenced by WriteStream().

◆ m_aImplicitMarks

std::set<OUString> SwHTMLWriter::m_aImplicitMarks

Definition at line 298 of file wrthtml.hxx.

Referenced by AddLinkTarget(), OutImplicitMark(), and WriteStream().

◆ m_aINetFormats

std::vector<SwFormatINetFormat*> SwHTMLWriter::m_aINetFormats

Definition at line 307 of file wrthtml.hxx.

Referenced by OutHTML_ImageEnd(), OutHTML_ImageStart(), and OutHTML_SwFormatINetFormat().

◆ m_aNumRuleNames

std::set<OUString> SwHTMLWriter::m_aNumRuleNames

Definition at line 299 of file wrthtml.hxx.

Referenced by OutHTML_NumberBulletListStart(), and WriteStream().

◆ m_aOutlineMarkPoss

std::vector<SwNodeOffset> SwHTMLWriter::m_aOutlineMarkPoss

Definition at line 303 of file wrthtml.hxx.

Referenced by AddLinkTarget(), OutBookmarks(), and WriteStream().

◆ m_aOutlineMarks

std::vector<OUString> SwHTMLWriter::m_aOutlineMarks

Definition at line 302 of file wrthtml.hxx.

Referenced by AddLinkTarget(), OutBookmarks(), and WriteStream().

◆ m_aRTFOLEMimeType

OUString SwHTMLWriter::m_aRTFOLEMimeType

Definition at line 425 of file wrthtml.hxx.

Referenced by OutHTML_FrameFormatOLENodeGrf(), and SetupFilterFromPropertyValues().

◆ m_aScriptParaStyles

std::set<OUString> SwHTMLWriter::m_aScriptParaStyles

Definition at line 300 of file wrthtml.hxx.

Referenced by OutCSS1_SwFormat(), OutHTML_SwFormat(), and WriteStream().

◆ m_aScriptTextStyles

std::set<OUString> SwHTMLWriter::m_aScriptTextStyles

◆ m_bCfgCpyLinkedGrfs

bool SwHTMLWriter::m_bCfgCpyLinkedGrfs

◆ m_bCfgFormFeed

bool SwHTMLWriter::m_bCfgFormFeed

Definition at line 357 of file wrthtml.hxx.

Referenced by OutHTML_SwTextNode(), and WriteStream().

◆ m_bCfgNetscape4

bool SwHTMLWriter::m_bCfgNetscape4

Definition at line 401 of file wrthtml.hxx.

Referenced by OutCSS1_SvxLineSpacing(), OutHTML_SwFormat(), and WriteStream().

◆ m_bCfgOutStyles

bool SwHTMLWriter::m_bCfgOutStyles

◆ m_bCfgPreferStyles

bool SwHTMLWriter::m_bCfgPreferStyles

Definition at line 356 of file wrthtml.hxx.

Referenced by OutCSS1_SvxColor(), OutHTML_SvxColor(), and WriteStream().

◆ m_bCfgPrintLayout

bool SwHTMLWriter::m_bCfgPrintLayout

Definition at line 417 of file wrthtml.hxx.

Referenced by indexOfDotLeaders(), OutCSS1_Property(), OutHTML_SwFormat(), and WriteStream().

◆ m_bCfgStarBasic

bool SwHTMLWriter::m_bCfgStarBasic

◆ m_bClearLeft

bool SwHTMLWriter::m_bClearLeft

◆ m_bClearRight

bool SwHTMLWriter::m_bClearRight

◆ m_bCSS1IgnoreFirstPageDesc

bool SwHTMLWriter::m_bCSS1IgnoreFirstPageDesc

◆ m_bExportImagesAsOLE

bool SwHTMLWriter::m_bExportImagesAsOLE = false

ReqIF mode: export images as OLE objects.

Definition at line 428 of file wrthtml.hxx.

Referenced by OutHTML_FrameFormatAsImage(), OutHTML_FrameFormatGrfNode(), OutHTML_ImageOLEEnd(), OutHTML_ImageOLEStart(), and SetupFilterFromPropertyValues().

◆ m_bFirstCSS1Property

bool SwHTMLWriter::m_bFirstCSS1Property

◆ m_bFirstCSS1Rule

bool SwHTMLWriter::m_bFirstCSS1Rule

Definition at line 384 of file wrthtml.hxx.

Referenced by OutCSS1_Property(), OutStyleSheet(), and WriteStream().

◆ m_bFirstLine

bool SwHTMLWriter::m_bFirstLine

Definition at line 363 of file wrthtml.hxx.

Referenced by Out_SwDoc(), and OutHTML_SwFormat().

◆ m_bLFPossible

bool SwHTMLWriter::m_bLFPossible

◆ m_bNoAlign

bool SwHTMLWriter::m_bNoAlign

Definition at line 392 of file wrthtml.hxx.

Referenced by OutCSS1_SvxAdjust(), OutHTML_SwFormat(), and SwHTMLWriter().

◆ m_bOutFlyFrame

bool SwHTMLWriter::m_bOutFlyFrame

◆ m_bOutFooter

bool SwHTMLWriter::m_bOutFooter

◆ m_bOutHeader

bool SwHTMLWriter::m_bOutHeader

◆ m_bOutOpts

bool SwHTMLWriter::m_bOutOpts

◆ m_bOutTable

bool SwHTMLWriter::m_bOutTable

◆ m_bParaDotLeaders

bool SwHTMLWriter::m_bParaDotLeaders

◆ m_bPreserveForm

bool SwHTMLWriter::m_bPreserveForm

Definition at line 399 of file wrthtml.hxx.

Referenced by OutForm(), OutHTML_SwTableNode(), and WriteStream().

◆ m_bPrettyPrint

bool SwHTMLWriter::m_bPrettyPrint

◆ m_bTagOn

bool SwHTMLWriter::m_bTagOn

◆ m_bTextAttr

bool SwHTMLWriter::m_bTextAttr

◆ m_CharFormatInfos

SwHTMLFormatInfos SwHTMLWriter::m_CharFormatInfos

◆ m_eCSS1Unit

FieldUnit SwHTMLWriter::m_eCSS1Unit
private

Definition at line 279 of file wrthtml.hxx.

Referenced by OutCSS1_UnitProperty(), and WriteStream().

◆ m_eLang

LanguageType SwHTMLWriter::m_eLang

Definition at line 351 of file wrthtml.hxx.

Referenced by MakeHeader(), OutHTML_SwFormat(), and WriteStream().

◆ m_nBkmkTabPos

sal_Int32 SwHTMLWriter::m_nBkmkTabPos

Definition at line 327 of file wrthtml.hxx.

Referenced by Out_SwDoc(), OutBookmarks(), and HTMLSaveData::~HTMLSaveData().

◆ m_nCSS1OutMode

sal_uInt16 SwHTMLWriter::m_nCSS1OutMode

◆ m_nCSS1Script

sal_uInt16 SwHTMLWriter::m_nCSS1Script

◆ m_nDefListLvl

sal_uInt16 SwHTMLWriter::m_nDefListLvl

◆ m_nDefListMargin

sal_Int32 SwHTMLWriter::m_nDefListMargin

Definition at line 342 of file wrthtml.hxx.

Referenced by OutHTML_SwFormat(), OutHTML_SwTableNode(), and WriteStream().

◆ m_nDfltBottomMargin

sal_uInt16 SwHTMLWriter::m_nDfltBottomMargin

◆ m_nDfltFirstLineIndent

short SwHTMLWriter::m_nDfltFirstLineIndent

◆ m_nDfltLeftMargin

sal_Int32 SwHTMLWriter::m_nDfltLeftMargin

◆ m_nDfltRightMargin

sal_Int32 SwHTMLWriter::m_nDfltRightMargin

◆ m_nDfltTopMargin

sal_uInt16 SwHTMLWriter::m_nDfltTopMargin

◆ m_nDirection

SvxFrameDirection SwHTMLWriter::m_nDirection

◆ m_nEndNote

sal_uInt16 SwHTMLWriter::m_nEndNote

◆ m_nExportMode

sal_uInt16 SwHTMLWriter::m_nExportMode

Definition at line 345 of file wrthtml.hxx.

Referenced by CollectFlyFrames(), OutHTML_SwFlyCnt(), and WriteStream().

◆ m_nFirstLineIndent

short SwHTMLWriter::m_nFirstLineIndent

◆ m_nFootNote

sal_uInt16 SwHTMLWriter::m_nFootNote

◆ m_nFormCntrlCnt

sal_uInt16 SwHTMLWriter::m_nFormCntrlCnt

◆ m_nHeaderFooterSpace

sal_uInt16 SwHTMLWriter::m_nHeaderFooterSpace

Definition at line 343 of file wrthtml.hxx.

Referenced by OutHTML_HeaderFooter(), OutHTML_SwFormat(), and WriteStream().

◆ m_nHTMLMode

sal_uInt32 SwHTMLWriter::m_nHTMLMode
private

Definition at line 277 of file wrthtml.hxx.

Referenced by WriteStream().

◆ m_nImgMapCnt

sal_uInt16 SwHTMLWriter::m_nImgMapCnt

Definition at line 328 of file wrthtml.hxx.

◆ m_nIndentLvl

sal_uInt16 SwHTMLWriter::m_nIndentLvl

Definition at line 339 of file wrthtml.hxx.

Referenced by GetIndentString(), OutNewLine(), and WriteStream().

◆ m_nLastLFPos

sal_uInt32 SwHTMLWriter::m_nLastLFPos

Definition at line 324 of file wrthtml.hxx.

Referenced by OutNewLine(), and WriteStream().

◆ m_nLastParaToken

HtmlTokenId SwHTMLWriter::m_nLastParaToken

◆ m_nLeadingTabWidth

std::optional<sal_Int32> SwHTMLWriter::m_nLeadingTabWidth

If set, replace leading tabs with this many non-breaking spaces.

Definition at line 434 of file wrthtml.hxx.

Referenced by OutHTML_SwTextNode(), and SetupFilterFromPropertyValues().

◆ m_nLeftMargin

sal_Int32 SwHTMLWriter::m_nLeftMargin

◆ m_nShapeDPI

std::optional<sal_Int32> SwHTMLWriter::m_nShapeDPI

DPI used when exporting a vector shape as a bitmap.

Definition at line 431 of file wrthtml.hxx.

Referenced by OutHTML_FrameFormatAsImage(), and SetupFilterFromPropertyValues().

◆ m_nTextAttrsToIgnore

sal_uInt16 SwHTMLWriter::m_nTextAttrsToIgnore

Definition at line 344 of file wrthtml.hxx.

Referenced by OutHTML_SwTextNode(), and WriteStream().

◆ m_nWarn

ErrCode SwHTMLWriter::m_nWarn

◆ m_nWishLineLen

sal_Int32 SwHTMLWriter::m_nWishLineLen

Definition at line 340 of file wrthtml.hxx.

Referenced by OutHTML_SwTextNode(), and SetupFilterFromPropertyValues().

◆ m_pCurrPageDesc

const SwPageDesc* SwHTMLWriter::m_pCurrPageDesc

Definition at line 318 of file wrthtml.hxx.

Referenced by OutCSS1_FrameFormatBackground(), and WriteStream().

◆ m_pFormatFootnote

const SwFormatFootnote* SwHTMLWriter::m_pFormatFootnote

Definition at line 319 of file wrthtml.hxx.

Referenced by OutFootEndNotes(), OutHTML_SwTextNode(), and WriteStream().

◆ m_pNextNumRuleInfo

std::unique_ptr<SwHTMLNumRuleInfo> SwHTMLWriter::m_pNextNumRuleInfo
private

◆ m_pNumRuleInfo

std::unique_ptr<SwHTMLNumRuleInfo> SwHTMLWriter::m_pNumRuleInfo
private

Definition at line 275 of file wrthtml.hxx.

◆ m_pStartNdIdx

SwNodeIndex* SwHTMLWriter::m_pStartNdIdx

◆ m_TextCollInfos

SwHTMLFormatInfos SwHTMLWriter::m_TextCollInfos

Definition at line 306 of file wrthtml.hxx.

Referenced by OutHTML_SwFormat(), and WriteStream().

◆ m_xDfltColor

std::optional<Color> SwHTMLWriter::m_xDfltColor

Definition at line 316 of file wrthtml.hxx.

Referenced by OutBodyColor(), OutHTML_SwTextNode(), and WriteStream().

◆ m_xFootEndNotes

std::optional<std::vector<SwTextFootnote*> > SwHTMLWriter::m_xFootEndNotes

Definition at line 308 of file wrthtml.hxx.

Referenced by OutFootEndNotes(), OutHTML_SwFormatFootnote(), and WriteStream().

◆ m_xTemplate

rtl::Reference<SwDoc> SwHTMLWriter::m_xTemplate

◆ maNamespace

OString SwHTMLWriter::maNamespace

◆ maStartedAttributes

std::map<sal_uInt16, int> SwHTMLWriter::maStartedAttributes

Tracks which text portion attributes are currently open: a which id -> open count map.

Definition at line 423 of file wrthtml.hxx.

Referenced by OutHTML_SwFormatField().

◆ mbEmbedImages

bool SwHTMLWriter::mbEmbedImages

◆ mbReqIF

bool SwHTMLWriter::mbReqIF = false

◆ mbSkipHeaderFooter

bool SwHTMLWriter::mbSkipHeaderFooter

If HTML header and footer should be written as well, or just the content itself.

Definition at line 405 of file wrthtml.hxx.

Referenced by MakeHeader(), OutCSS1_SvxFormatBreak_SwFormatPDesc_SvxFormatKeep(), SetupFilterFromPropertyValues(), and WriteStream().

◆ mbSkipImages

bool SwHTMLWriter::mbSkipImages

◆ mbXHTML

bool SwHTMLWriter::mbXHTML = false

◆ mpTempBaseURL

std::unique_ptr<utl::TempFileNamed> SwHTMLWriter::mpTempBaseURL

Temporary base URL for paste of images.

Definition at line 408 of file wrthtml.hxx.

Referenced by OutHTML_ImageStart(), and SwHTMLWriter().

◆ mxFormComps

css::uno::Reference<css::container::XIndexContainer> SwHTMLWriter::mxFormComps

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