LibreOffice Module sw (master) 1
|
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/RelOrientation.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <hintids.hxx>
#include <tools/fract.hxx>
#include <svl/urihelper.hxx>
#include <vcl/svapp.hxx>
#include <sfx2/event.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/htmltokn.h>
#include <vcl/imap.hxx>
#include <vcl/imapobj.hxx>
#include <svtools/htmlcfg.hxx>
#include <svtools/HtmlWriter.hxx>
#include <svx/svdouno.hxx>
#include <svx/xoutbmp.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/brushitem.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <svx/svdograf.hxx>
#include <comphelper/xmlencode.hxx>
#include <fmtanchr.hxx>
#include <fmtornt.hxx>
#include <fmturl.hxx>
#include <fmtfsize.hxx>
#include <fmtclds.hxx>
#include <fmtcntnt.hxx>
#include <fmtsrnd.hxx>
#include <fmtinfmt.hxx>
#include <txtinet.hxx>
#include <frmatr.hxx>
#include <grfatr.hxx>
#include <flypos.hxx>
#include <ndgrf.hxx>
#include <doc.hxx>
#include <ndtxt.hxx>
#include <pam.hxx>
#include <swerror.h>
#include <frmfmt.hxx>
#include "wrthtml.hxx"
#include "htmlatr.hxx"
#include "htmlfly.hxx"
#include "htmlreqifreader.hxx"
Go to the source code of this file.
Functions | |
static SwHTMLWriter & | OutHTML_FrameFormatTableNode (SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat) |
static SwHTMLWriter & | OutHTML_FrameFormatAsMulticol (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bInCntnr) |
static SwHTMLWriter & | OutHTML_FrameFormatAsSpacer (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat) |
static SwHTMLWriter & | OutHTML_FrameFormatAsDivOrSpan (SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, bool bSpan) |
static SwHTMLWriter & | OutHTML_FrameFormatAsImage (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bPNGFallback) |
static SwHTMLWriter & | OutHTML_FrameFormatGrfNode (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bInCntnr, bool bPNGFallback) |
static SwHTMLWriter & | OutHTML_FrameFormatAsMarquee (SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, const SdrObject &rSdrObj) |
SwHTMLWriter & | OutHTML_ImageStart (HtmlWriter &rHtml, SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, const OUString &rGraphicURL, Graphic const &rGraphic, const OUString &rAlternateText, const Size &rRealSize, HtmlFrmOpts nFrameOpts, const char *pMarkType, const ImageMap *pAltImgMap, std::u16string_view rMimeType) |
SwHTMLWriter & | OutHTML_ImageEnd (HtmlWriter &rHtml, SwHTMLWriter &rWrt) |
SwHTMLWriter & | OutHTML_BulletImage (SwHTMLWriter &rWrt, const char *pTag, const SvxBrushItem *pBrush, const OUString &rGraphicURL) |
static void | OutHTML_ImageOLEStart (SwHTMLWriter &rWrt, const Graphic &rGraphic, const SwFrameFormat &rFrameFormat) |
Starts the OLE version of an image in the ReqIF + OLE case. More... | |
static void | OutHTML_ImageOLEEnd (SwHTMLWriter &rWrt) |
Ends the OLE version of an image in the ReqIF + OLE case. More... | |
SwHTMLWriter & | OutHTML_HeaderFooter (SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, bool bHeader) |
Variables | |
const HtmlFrmOpts | HTML_FRMOPTS_IMG_ALL |
const HtmlFrmOpts | HTML_FRMOPTS_IMG_CNTNR |
const HtmlFrmOpts | HTML_FRMOPTS_IMG |
const HtmlFrmOpts | HTML_FRMOPTS_IMG_CSS1 |
const HtmlFrmOpts | HTML_FRMOPTS_DIV |
const HtmlFrmOpts | HTML_FRMOPTS_MULTICOL |
const HtmlFrmOpts | HTML_FRMOPTS_MULTICOL_CSS1 |
const HtmlFrmOpts | HTML_FRMOPTS_SPACER |
const HtmlFrmOpts | HTML_FRMOPTS_CNTNR |
HTMLOutEvent const | aImageEventTable [] |
HTMLOutEvent const | aIMapEventTable [] |
SwHTMLWriter & OutHTML_BulletImage | ( | SwHTMLWriter & | rWrt, |
const char * | pTag, | ||
const SvxBrushItem * | pBrush, | ||
const OUString & | rGraphicURL | ||
) |
Definition at line 1513 of file htmlflywriter.cxx.
References Writer::CopyLocalFileToINet(), Writer::GetBaseURL(), SvxBrushItem::GetGraphic(), SvxBrushItem::GetGraphicLink(), XOutBitmap::GraphicToBase64(), SwHTMLWriter::m_bCfgCpyLinkedGrfs, SwHTMLWriter::m_nWarn, SwHTMLWriter::mbEmbedImages, OOO_STRING_SVTOOLS_HTML_O_data, OOO_STRING_SVTOOLS_HTML_O_src, OOO_STRING_SVTOOLS_HTML_O_style, HTMLOutFuncs::Out_String(), HTMLOutFuncs::PrivateURLToInternalImg(), URIHelper::simpleNormalizedMakeRelative(), Writer::Strm(), WARN_SWG_POOR_LOAD, and SvStream::WriteOString().
Referenced by OutHTML_NumberBulletListStart(), and OutHTML_SwFormat().
|
static |
Definition at line 1730 of file htmlflywriter.cxx.
References Any, SwHTMLWriter::ChangeParaToken(), SwHTMLWriter::DecIndentLevel(), SwNode::EndOfSectionIndex(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwNodeIndex::GetIndex(), SwHTMLWriter::GetNamespace(), SwDoc::GetNodes(), HTML_FRMOPTS_DIV, HTMLMODE_BORDER_NONE, SwHTMLWriter::IncIndentLevel(), SwHTMLWriter::IsHTMLMode(), SwHTMLWriter::m_bLFPossible, SwHTMLWriter::m_bOutFlyFrame, Writer::m_pCurrentPam, Writer::m_pDoc, OOO_STRING_SVTOOLS_HTML_division, OOO_STRING_SVTOOLS_HTML_span, HTMLOutFuncs::Out_AsciiTag(), SwHTMLWriter::Out_SwDoc(), SwHTMLWriter::OutAndSetDefList(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), SwHTMLWriter::OutFlyFrame(), SwHTMLWriter::OutFrameFormatOptions(), SwHTMLWriter::OutNewLine(), SNoBorder, Writer::Strm(), SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by SwHTMLWriter::OutFrameFormat().
|
static |
Definition at line 1835 of file htmlflywriter.cxx.
References aMimeType, ERRCODE_NONE, SwFrameFormat::FindSdrObject(), GenImgMask, Writer::GetBaseURL(), Graphic::GetGfxLink(), ImageMap::GetIMapObjectCount(), URIHelper::GetMaybeFileHdl(), SwFormat::GetName(), Writer::GetOrigFileName(), GfxLink::GetType(), Graphic::GetType(), Graphic::GetXGraphic(), SwHTMLWriter::m_bExportImagesAsOLE, SwHTMLWriter::m_nShapeDPI, SwHTMLWriter::m_nWarn, SwHTMLWriter::maNamespace, SwHTMLWriter::mbEmbedImages, SwHTMLWriter::mbReqIF, SwHTMLWriter::mbSkipImages, OutHTML_FrameFormatAsImage(), OutHTML_ImageEnd(), OutHTML_ImageOLEEnd(), OutHTML_ImageOLEStart(), OutHTML_ImageStart(), URIHelper::SmartRel2Abs(), Writer::Strm(), WARN_SWG_POOR_LOAD, and XOutBitmap::WriteGraphic().
Referenced by SwHTMLWriter::OutFrameFormat(), and OutHTML_FrameFormatAsImage().
|
static |
Definition at line 2075 of file htmlflywriter.cxx.
References aHTMLAttrFnTab, SwFormat::GetAttrSet(), SwHTMLWriter::GetEEAttrsFromDrwObj(), SfxItemSet::GetPool(), SwHTMLWriter::m_bCfgOutStyles, SwHTMLWriter::m_bTagOn, SwHTMLWriter::m_bTextAttr, Out_SfxItemSet(), and OutHTML_DrawFrameFormatAsMarquee().
Referenced by SwHTMLWriter::OutFrameFormat().
|
static |
Definition at line 1629 of file htmlflywriter.cxx.
References SwHTMLWriter::ChangeParaToken(), SwHTMLWriter::DecIndentLevel(), SwNode::EndOfSectionIndex(), SwFormat::GetCol(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), Application::GetDefaultDevice(), SwFormatCol::GetGutterWidth(), SwNodeIndex::GetIndex(), SwHTMLWriter::GetNamespace(), SwDoc::GetNodes(), SwFormatCol::GetNumCols(), HTML_FRMOPTS_MULTICOL, HTML_FRMOPTS_MULTICOL_CSS1, HTMLMODE_ABS_POS_FLY, SwHTMLWriter::IncIndentLevel(), SwHTMLWriter::IsHTMLMode(), SwHTMLWriter::m_bLFPossible, SwHTMLWriter::m_bOutFlyFrame, Writer::m_pCurrentPam, Writer::m_pDoc, OOO_STRING_SVTOOLS_HTML_multicol, OOO_STRING_SVTOOLS_HTML_O_cols, OOO_STRING_SVTOOLS_HTML_O_gutter, HTMLOutFuncs::Out_AsciiTag(), SwHTMLWriter::Out_SwDoc(), SwHTMLWriter::OutAndSetDefList(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), SwHTMLWriter::OutFrameFormatOptions(), SwHTMLWriter::OutNewLine(), Writer::Strm(), Width, SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by SwHTMLWriter::OutFrameFormat().
|
static |
Definition at line 1708 of file htmlflywriter.cxx.
References SwHTMLWriter::GetNamespace(), HTML_FRMOPTS_SPACER, SwHTMLWriter::m_bLFPossible, OOO_STRING_SVTOOLS_HTML_O_type, OOO_STRING_SVTOOLS_HTML_spacer, OOO_STRING_SVTOOLS_HTML_SPTYPE_block, SwHTMLWriter::OutFrameFormatOptions(), SwHTMLWriter::OutNewLine(), Writer::Strm(), SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by SwHTMLWriter::OutFrameFormat().
|
static |
Definition at line 1928 of file htmlflywriter.cxx.
References aMimeType, Both, o3tl::convert(), Writer::CopyLocalFileToINet(), Dont, Writer::GetBaseURL(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwGrfNode::GetFileFilterNms(), SwFormat::GetFrameSize(), Graphic::GetGfxLink(), SwNoTextNode::GetGraphic(), SwGrfNode::GetGrf(), SwNodeIndex::GetIndex(), URIHelper::GetMaybeFileHdl(), SwAttrSet::GetMirrorGrf(), SwDoc::GetNodes(), Writer::GetOrigFileName(), SvxSizeItem::GetSize(), SwContentNode::GetSwAttrSet(), SwNoTextNode::GetTitle(), SwGrfNode::GetTwipSize(), GfxLink::GetType(), Graphic::GetType(), SfxEnumItem< typename EnumT >::GetValue(), Graphic::getVectorGraphicData(), Graphic::GetXGraphic(), Horizontal, HTML_FRMOPTS_IMG, HTML_FRMOPTS_IMG_CNTNR, HTML_FRMOPTS_IMG_CSS1, HTMLMODE_ABS_POS_FLY, Graphic::isAvailable(), GfxLink::IsEMF(), SwHTMLWriter::IsHTMLMode(), SwGrfNode::IsLinkedFile(), SwHTMLWriter::m_bCfgCpyLinkedGrfs, SwHTMLWriter::m_bExportImagesAsOLE, SwHTMLWriter::m_nWarn, Writer::m_pDoc, SwHTMLWriter::maNamespace, SwHTMLWriter::mbEmbedImages, SwHTMLWriter::mbReqIF, SwHTMLWriter::mbSkipImages, o3tl::mm100, OutHTML_FrameFormatGrfNode(), OutHTML_ImageEnd(), OutHTML_ImageOLEEnd(), OutHTML_ImageOLEStart(), OutHTML_ImageStart(), URIHelper::SmartRel2Abs(), Writer::Strm(), o3tl::twip, Vertical, WARN_SWG_POOR_LOAD, and XOutBitmap::WriteGraphic().
Referenced by SwHTMLWriter::OutFrameFormat(), and OutHTML_FrameFormatGrfNode().
|
static |
Definition at line 1583 of file htmlflywriter.cxx.
References SwNode::EndOfSectionIndex(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwDoc::GetNodes(), SwNode::GetTableNode(), SwTextNode::GetText(), SwNode::GetTextNode(), SwHTMLWriter::m_bOutFlyFrame, Writer::m_pDoc, and OutHTML_SwTableNode().
Referenced by SwHTMLWriter::OutFrameFormat().
SwHTMLWriter & OutHTML_HeaderFooter | ( | SwHTMLWriter & | rWrt, |
const SwFrameFormat & | rFrameFormat, | ||
bool | bHeader | ||
) |
Definition at line 2102 of file htmlflywriter.cxx.
References SwHTMLWriter::DecIndentLevel(), SwNode::EndOfSectionIndex(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), Application::GetDefaultDevice(), SwNodeIndex::GetIndex(), SvxULSpaceItem::GetLower(), SwHTMLWriter::GetNamespace(), SwDoc::GetNodes(), SwFormat::GetULSpace(), SvxULSpaceItem::GetUpper(), HTML_PARSPACE, HTMLMODE_VERT_SPACER, SwHTMLWriter::IncIndentLevel(), SwHTMLWriter::IsHTMLMode(), OutputDevice::LogicToPixel(), SwHTMLWriter::m_bOutFooter, SwHTMLWriter::m_bOutHeader, SwHTMLWriter::m_nHeaderFooterSpace, Writer::m_pCurrentPam, Writer::m_pDoc, OOO_STRING_SVTOOLS_HTML_division, OOO_STRING_SVTOOLS_HTML_O_size, OOO_STRING_SVTOOLS_HTML_O_title, OOO_STRING_SVTOOLS_HTML_O_type, OOO_STRING_SVTOOLS_HTML_spacer, OOO_STRING_SVTOOLS_HTML_SPTYPE_vertical, HTMLOutFuncs::Out_AsciiTag(), SwHTMLWriter::Out_SwDoc(), SwHTMLWriter::OutNewLine(), and Writer::Strm().
Referenced by SwHTMLWriter::WriteStream().
SwHTMLWriter & OutHTML_ImageEnd | ( | HtmlWriter & | rHtml, |
SwHTMLWriter & | rWrt | ||
) |
Definition at line 1499 of file htmlflywriter.cxx.
References HtmlWriter::flushStack(), SwHTMLWriter::m_aINetFormats, and OutHTML_INetFormat().
Referenced by OutHTML_FrameFormatAsImage(), OutHTML_FrameFormatGrfNode(), and OutHTML_FrameFormatOLENodeGrf().
|
static |
Ends the OLE version of an image in the ReqIF + OLE case.
Definition at line 1826 of file htmlflywriter.cxx.
References SwHTMLWriter::GetNamespace(), SwHTMLWriter::m_bExportImagesAsOLE, SwHTMLWriter::mbReqIF, OOO_STRING_SVTOOLS_HTML_object, Writer::Strm(), and SvStream::WriteOString().
Referenced by OutHTML_FrameFormatAsImage(), and OutHTML_FrameFormatGrfNode().
|
static |
Starts the OLE version of an image in the ReqIF + OLE case.
Definition at line 1794 of file htmlflywriter.cxx.
References aName, aURL, Writer::GetBaseURL(), Graphic::GetChecksum(), SwHTMLWriter::GetNamespace(), Writer::GetOrigFileName(), SwHTMLWriter::m_bExportImagesAsOLE, SwHTMLWriter::mbReqIF, INetURLObject::NONE, OOO_STRING_SVTOOLS_HTML_object, SwHTMLWriter::OutNewLine(), SAL_WARN, URIHelper::simpleNormalizedMakeRelative(), Writer::Strm(), u, SwReqIfReader::WrapGraphicInRtf(), and SvStream::WriteOString().
Referenced by OutHTML_FrameFormatAsImage(), and OutHTML_FrameFormatGrfNode().
SwHTMLWriter & OutHTML_ImageStart | ( | HtmlWriter & | rHtml, |
SwHTMLWriter & | rWrt, | ||
const SwFrameFormat & | rFrameFormat, | ||
const OUString & | rGraphicURL, | ||
Graphic const & | rGraphic, | ||
const OUString & | rAlternateText, | ||
const Size & | rRealSize, | ||
HtmlFrmOpts | nFrameOpts, | ||
const char * | pMarkType, | ||
const ImageMap * | pAltImgMap, | ||
std::u16string_view | rMimeType | ||
) |
Definition at line 1261 of file htmlflywriter.cxx.
References aAnchorEventTable, Size::AdjustHeight(), Size::AdjustWidth(), aImageEventTable, aName, HtmlWriterHelper::applyColor(), HtmlWriterHelper::applyEvents(), HtmlWriter::attribute(), Border, HtmlWriter::characters(), SwHTMLWriter::convertHyperlinkHRefValue(), SvxMacroTableDtor::empty(), SwFormat::GetAttrSet(), Writer::GetBaseURL(), SvxBoxItem::GetBottom(), Application::GetDefaultDevice(), SfxItemSet::GetItemIfSet(), SvxBoxItem::GetLeft(), SvxMacroItem::GetMacroTable(), SwFormatURL::GetName(), SwFormat::GetName(), SvxBoxItem::GetRight(), SwFormatURL::GetTargetFrameName(), SvxBoxItem::GetTop(), SwFormatURL::GetURL(), XOutBitmap::GraphicToBase64(), Size::Height(), HTMLMODE_ABS_POS_FLY, if(), SwHTMLWriter::IsHTMLMode(), SwFormatURL::IsServerMap(), OutputDevice::LogicToPixel(), SwHTMLWriter::m_aINetFormats, SwHTMLWriter::m_bCfgStarBasic, SwHTMLWriter::m_bLFPossible, SwHTMLWriter::m_nWarn, SwHTMLWriter::mbEmbedImages, SwHTMLWriter::mbReqIF, SwHTMLWriter::mbSkipImages, SwHTMLWriter::mpTempBaseURL, nBorderWidth, OOO_STRING_SVTOOLS_HTML_anchor, OOO_STRING_SVTOOLS_HTML_font, OOO_STRING_SVTOOLS_HTML_image, OOO_STRING_SVTOOLS_HTML_O_border, OOO_STRING_SVTOOLS_HTML_O_color, OOO_STRING_SVTOOLS_HTML_O_data, OOO_STRING_SVTOOLS_HTML_O_href, OOO_STRING_SVTOOLS_HTML_O_ismap, OOO_STRING_SVTOOLS_HTML_O_name, OOO_STRING_SVTOOLS_HTML_O_src, OOO_STRING_SVTOOLS_HTML_O_target, OOO_STRING_SVTOOLS_HTML_O_type, OOO_STRING_SVTOOLS_HTML_O_usemap, OOO_STRING_SVTOOLS_HTML_object, OUStringToOString(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), OutHTML_INetFormat(), SwHTMLWriter::OutImplicitMark(), SwHTMLWriter::OutNewLine(), HTMLOutFuncs::PrivateURLToInternalImg(), Replacement, RES_BOX(), RES_FRMMACRO(), Size::setHeight(), Size::setWidth(), URIHelper::simpleNormalizedMakeRelative(), HtmlWriter::start(), WARN_SWG_POOR_LOAD, Size::Width(), and SwHTMLWriter::writeFrameFormatOptions().
Referenced by OutHTML_FrameFormatAsImage(), OutHTML_FrameFormatGrfNode(), and OutHTML_FrameFormatOLENodeGrf().
HTMLOutEvent const aImageEventTable[] |
Definition at line 147 of file htmlflywriter.cxx.
Referenced by OutHTML_ImageStart().
HTMLOutEvent const aIMapEventTable[] |
Definition at line 155 of file htmlflywriter.cxx.
const HtmlFrmOpts HTML_FRMOPTS_CNTNR |
Definition at line 125 of file htmlflywriter.cxx.
Referenced by SwHTMLWriter::OutFrameFormat().
const HtmlFrmOpts HTML_FRMOPTS_DIV |
Definition at line 91 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsDivOrSpan().
const HtmlFrmOpts HTML_FRMOPTS_IMG |
Definition at line 82 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatGrfNode().
const HtmlFrmOpts HTML_FRMOPTS_IMG_ALL |
Definition at line 73 of file htmlflywriter.cxx.
const HtmlFrmOpts HTML_FRMOPTS_IMG_CNTNR |
Definition at line 79 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatGrfNode().
const HtmlFrmOpts HTML_FRMOPTS_IMG_CSS1 |
Definition at line 87 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatGrfNode().
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL |
Definition at line 103 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsMulticol().
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL_CSS1 |
Definition at line 110 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsMulticol().
const HtmlFrmOpts HTML_FRMOPTS_SPACER |
Definition at line 117 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsSpacer().