LibreOffice Module sw (master) 1
|
#include <stdlib.h>
#include <hintids.hxx>
#include <comphelper/string.hxx>
#include <svl/urihelper.hxx>
#include <svl/languageoptions.hxx>
#include <rtl/tencinfo.h>
#include <sfx2/linkmgr.hxx>
#include <sfx2/docfile.hxx>
#include <svtools/htmlcfg.hxx>
#include <svtools/htmltokn.h>
#include <svtools/htmlkywd.hxx>
#include <vcl/svapp.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <sfx2/frmhtmlw.hxx>
#include <svx/xoutbmp.hxx>
#include <svx/unobrushitemhelper.hxx>
#include <sfx2/htmlmode.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/langitem.hxx>
#include <svl/stritem.hxx>
#include <editeng/frmdiritem.hxx>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <fmthdft.hxx>
#include <fmtfld.hxx>
#include <fmtpdsc.hxx>
#include <txatbase.hxx>
#include <frmatr.hxx>
#include <charfmt.hxx>
#include <docary.hxx>
#include <pam.hxx>
#include <doc.hxx>
#include <ndtxt.hxx>
#include <mdiexp.hxx>
#include <fltini.hxx>
#include <viewopt.hxx>
#include <IMark.hxx>
#include <poolfmt.hxx>
#include <pagedesc.hxx>
#include <section.hxx>
#include <swtable.hxx>
#include <fldbas.hxx>
#include <fmtclds.hxx>
#include <docsh.hxx>
#include "wrthtml.hxx"
#include "htmlnum.hxx"
#include "htmlfly.hxx"
#include <swmodule.hxx>
#include <strings.hrc>
#include <swerror.h>
#include <rtl/strbuf.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <IDocumentMarkAccess.hxx>
#include <xmloff/odffields.hxx>
#include <tools/urlobj.hxx>
#include <osl/file.hxx>
#include <comphelper/scopeguard.hxx>
#include <unotools/tempfile.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Writer.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/sequence.hxx>
Go to the source code of this file.
Macros | |
#define | MAX_INDENT_LEVEL 20 |
Functions | |
static const SwFormatCol * | lcl_html_GetFormatCol (const SwSection &rSection, const SwSectionFormat &rFormat) |
static bool | lcl_html_IsMultiColStart (const SwHTMLWriter &rHTMLWrt, SwNodeOffset nIndex) |
static bool | lcl_html_IsMultiColEnd (const SwHTMLWriter &rHTMLWrt, SwNodeOffset nIndex) |
static void | lcl_html_OutSectionStartTag (SwHTMLWriter &rHTMLWrt, const SwSection &rSection, const SwSectionFormat &rFormat, const SwFormatCol *pCol, bool bContinued=false) |
static void | lcl_html_OutSectionEndTag (SwHTMLWriter &rHTMLWrt) |
static SwHTMLWriter & | OutHTML_Section (SwHTMLWriter &rWrt, const SwSectionNode &rSectNd) |
static void | OutBodyColor (const char *pTag, const SwFormat *pFormat, SwHTMLWriter &rHWrt) |
void | GetHTMLWriter (std::u16string_view rFilterOptions, const OUString &rBaseURL, WriterRef &xRet) |
Variables | |
static char | sIndentTabs [MAX_INDENT_LEVEL+2] |
#define MAX_INDENT_LEVEL 20 |
Definition at line 90 of file wrthtml.cxx.
void GetHTMLWriter | ( | std::u16string_view | rFilterOptions, |
const OUString & | rBaseURL, | ||
WriterRef & | xRet | ||
) |
Definition at line 1675 of file wrthtml.cxx.
Referenced by SwTranslateHelper::ExportPaMToHTML(), SwSrcView::Load(), and SwTransferable::WriteObject().
|
static |
Definition at line 673 of file wrthtml.cxx.
References FileLink, SwFormat::GetAttrSet(), SfxItemSet::GetItemIfSet(), SwFormatCol::GetNumCols(), SwSection::GetType(), and RES_COL().
Referenced by lcl_html_IsMultiColStart(), and OutHTML_Section().
|
static |
Definition at line 702 of file wrthtml.cxx.
References SwDoc::GetNodes(), lcl_html_IsMultiColStart(), Writer::m_pDoc, nIndex, and SwNode::StartOfSectionIndex().
Referenced by OutHTML_Section().
|
static |
Definition at line 686 of file wrthtml.cxx.
References SwSection::GetFormat(), SwDoc::GetNodes(), SwSectionNode::GetSection(), lcl_html_GetFormatCol(), Writer::m_pDoc, and nIndex.
Referenced by lcl_html_IsMultiColEnd(), and OutHTML_Section().
|
static |
Definition at line 804 of file wrthtml.cxx.
References SwHTMLWriter::DecIndentLevel(), SwHTMLWriter::GetNamespace(), SwHTMLWriter::m_bLFPossible, OOO_STRING_SVTOOLS_HTML_division, HTMLOutFuncs::Out_AsciiTag(), SwHTMLWriter::OutNewLine(), and Writer::Strm().
Referenced by OutHTML_Section().
|
static |
Definition at line 713 of file wrthtml.cxx.
References aURL, cDelim, sfx2::cTokenSeparator, FileLink, SwFormat::GetAttrSet(), Writer::GetBaseURL(), Application::GetDefaultDevice(), SwFormatCol::GetGutterWidth(), SwHTMLWriter::GetHTMLDirection(), SwSection::GetLinkFileName(), SwHTMLWriter::GetNamespace(), SwSection::GetSectionName(), SwSection::GetType(), HTMLMODE_ON, SwHTMLWriter::IncIndentLevel(), SwHTMLWriter::IsHTMLMode(), SwHTMLWriter::m_bCfgOutStyles, SwHTMLWriter::m_bLFPossible, SwHTMLWriter::mbXHTML, OOO_STRING_SVTOOLS_HTML_division, OOO_STRING_SVTOOLS_HTML_O_gutter, OOO_STRING_SVTOOLS_HTML_O_href, OOO_STRING_SVTOOLS_HTML_O_id, HTMLOutFuncs::Out_String(), SwHTMLWriter::OutCSS1_SectionFormatOptions(), SwHTMLWriter::OutDirection(), SwHTMLWriter::OutImplicitMark(), SwHTMLWriter::OutNewLine(), URIHelper::simpleNormalizedMakeRelative(), Writer::Strm(), u, Width, SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by OutHTML_Section().
|
static |
Definition at line 979 of file wrthtml.cxx.
References COL_AUTO(), COL_BLACK(), SwFormat::GetAttrSet(), SfxItemPool::GetDefaultItem(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetPool(), SwFormat::GetPoolFormatId(), SwHTMLWriter::GetTemplateFormat(), SvxColorItem::GetValue(), Color::IsRGBEqual(), SwHTMLWriter::m_xDfltColor, SwHTMLWriter::m_xTemplate, HTMLOutFuncs::Out_Color(), RES_CHRATR_COLOR(), RES_POOLCOLL_STANDARD, Writer::Strm(), and SvStream::WriteOString().
Referenced by SwHTMLWriter::MakeHeader().
|
static |
Definition at line 813 of file wrthtml.cxx.
References SwHTMLWriter::ChangeParaToken(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNode::FindSectionNode(), SwNode::FindTableBoxStartNode(), SwSection::GetFormat(), SwNode::GetIndex(), SwSectionNode::GetSection(), lcl_html_GetFormatCol(), lcl_html_IsMultiColEnd(), lcl_html_IsMultiColStart(), lcl_html_OutSectionEndTag(), lcl_html_OutSectionStartTag(), Writer::m_pCurrentPam, SwHTMLWriter::Out_SwDoc(), SwHTMLWriter::OutAndSetDefList(), and SwNode::StartOfSectionNode().
Referenced by SwHTMLWriter::Out_SwDoc().
|
static |
Definition at line 94 of file wrthtml.cxx.
Referenced by SwHTMLWriter::GetIndentString(), and SwHTMLWriter::OutNewLine().