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 <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 Writer & | OutHTML_FrameFormatTableNode (Writer &rWrt, const SwFrameFormat &rFrameFormat) |
static Writer & | OutHTML_FrameFormatAsMulticol (Writer &rWrt, const SwFrameFormat &rFormat, bool bInCntnr) |
static Writer & | OutHTML_FrameFormatAsSpacer (Writer &rWrt, const SwFrameFormat &rFormat) |
static Writer & | OutHTML_FrameFormatAsDivOrSpan (Writer &rWrt, const SwFrameFormat &rFrameFormat, bool bSpan) |
static Writer & | OutHTML_FrameFormatAsImage (Writer &rWrt, const SwFrameFormat &rFormat, bool bPNGFallback) |
static Writer & | OutHTML_FrameFormatGrfNode (Writer &rWrt, const SwFrameFormat &rFormat, bool bInCntnr, bool bPNGFallback) |
static Writer & | OutHTML_FrameFormatAsMarquee (Writer &rWrt, const SwFrameFormat &rFrameFormat, const SdrObject &rSdrObj) |
Writer & | OutHTML_ImageStart (HtmlWriter &rHtml, Writer &rWrt, const SwFrameFormat &rFrameFormat, const OUString &rGraphicURL, Graphic const &rGraphic, const OUString &rAlternateText, const Size &rRealSize, HtmlFrmOpts nFrameOpts, const char *pMarkType, const ImageMap *pAltImgMap, const OUString &rMimeType) |
Writer & | OutHTML_ImageEnd (HtmlWriter &rHtml, Writer &rWrt) |
Writer & | OutHTML_BulletImage (Writer &rWrt, const char *pTag, const SvxBrushItem *pBrush, const OUString &rGraphicURL) |
static void | OutHTML_ImageOLEStart (SwHTMLWriter &rHTMLWrt, const Graphic &rGraphic, const SwFrameFormat &rFrameFormat) |
Starts the OLE version of an image in the ReqIF + OLE case. More... | |
static void | OutHTML_ImageOLEEnd (SwHTMLWriter &rHTMLWrt) |
Ends the OLE version of an image in the ReqIF + OLE case. More... | |
Writer & | OutHTML_HeaderFooter (Writer &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 [] |
Writer& OutHTML_BulletImage | ( | Writer & | rWrt, |
const char * | pTag, | ||
const SvxBrushItem * | pBrush, | ||
const OUString & | rGraphicURL | ||
) |
Definition at line 1443 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 1667 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 1774 of file htmlflywriter.cxx.
References aMimeType, ERRCODE_NONE, SwFrameFormat::FindSdrObject(), GenImgMask, Writer::GetBaseURL(), Graphic::GetGfxLink(), ImageMap::GetIMapObjectCount(), URIHelper::GetMaybeFileHdl(), SwFormat::GetName(), Writer::GetOrigFileName(), Graphic::GetType(), Graphic::GetXGraphic(), SwHTMLWriter::m_bExportImagesAsOLE, SwHTMLWriter::m_nShapeDPI, SwHTMLWriter::m_nWarn, SwHTMLWriter::maNamespace, SwHTMLWriter::mbEmbedImages, SwHTMLWriter::mbReqIF, SwHTMLWriter::mbSkipImages, OutHTML_ImageEnd(), OutHTML_ImageOLEEnd(), OutHTML_ImageOLEStart(), OutHTML_ImageStart(), URIHelper::SmartRel2Abs(), Writer::Strm(), WARN_SWG_POOR_LOAD, and XOutBitmap::WriteGraphic().
Referenced by SwHTMLWriter::OutFrameFormat().
|
static |
Definition at line 2008 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 1562 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(), OutputDevice::LogicToPixel(), 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(), SvStream::WriteChar(), and SvStream::WriteOString().
Referenced by SwHTMLWriter::OutFrameFormat().
|
static |
Definition at line 1643 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 1868 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(), SfxEnumItem< class >::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, Graphic::makeAvailable(), SwHTMLWriter::maNamespace, SwHTMLWriter::mbEmbedImages, SwHTMLWriter::mbReqIF, SwHTMLWriter::mbSkipImages, o3tl::mm100, 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().
|
static |
Definition at line 1514 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().
Writer& OutHTML_HeaderFooter | ( | Writer & | rWrt, |
const SwFrameFormat & | rFrameFormat, | ||
bool | bHeader | ||
) |
Definition at line 2037 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().
Writer& OutHTML_ImageEnd | ( | HtmlWriter & | rHtml, |
Writer & | rWrt | ||
) |
Definition at line 1428 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 1765 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 1733 of file htmlflywriter.cxx.
References aName, aURL, INetURLObject::getBase(), Writer::GetBaseURL(), Graphic::GetChecksum(), INetURLObject::getExtension(), INetURLObject::GetMainURL(), SwHTMLWriter::GetNamespace(), Writer::GetOrigFileName(), SwHTMLWriter::m_bExportImagesAsOLE, SwHTMLWriter::mbReqIF, INetURLObject::NONE, OOO_STRING_SVTOOLS_HTML_object, SwHTMLWriter::OutNewLine(), SAL_WARN, INetURLObject::setBase(), INetURLObject::setExtension(), URIHelper::simpleNormalizedMakeRelative(), Writer::Strm(), u, SwReqIfReader::WrapGraphicInRtf(), and SvStream::WriteOString().
Referenced by OutHTML_FrameFormatAsImage(), and OutHTML_FrameFormatGrfNode().
Writer& OutHTML_ImageStart | ( | HtmlWriter & | rHtml, |
Writer & | rWrt, | ||
const SwFrameFormat & | rFrameFormat, | ||
const OUString & | rGraphicURL, | ||
Graphic const & | rGraphic, | ||
const OUString & | rAlternateText, | ||
const Size & | rRealSize, | ||
HtmlFrmOpts | nFrameOpts, | ||
const char * | pMarkType, | ||
const ImageMap * | pAltImgMap, | ||
const OUString & | rMimeType | ||
) |
Definition at line 1194 of file htmlflywriter.cxx.
References aAnchorEventTable, Size::AdjustHeight(), Size::AdjustWidth(), aName, HtmlWriterHelper::applyColor(), HtmlWriterHelper::applyEvents(), HtmlWriter::attribute(), Border, HtmlWriter::characters(), SwHTMLWriter::convertHyperlinkHRefValue(), SvxMacroTableDtor::empty(), SwFormat::GetAttrSet(), Writer::GetBaseURL(), SvxBoxItem::GetBottom(), Application::GetDefaultDevice(), 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 146 of file htmlflywriter.cxx.
HTMLOutEvent const aIMapEventTable[] |
Definition at line 154 of file htmlflywriter.cxx.
const HtmlFrmOpts HTML_FRMOPTS_CNTNR |
Definition at line 124 of file htmlflywriter.cxx.
Referenced by SwHTMLWriter::OutFrameFormat().
const HtmlFrmOpts HTML_FRMOPTS_DIV |
Definition at line 90 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsDivOrSpan().
const HtmlFrmOpts HTML_FRMOPTS_IMG |
Definition at line 81 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatGrfNode().
const HtmlFrmOpts HTML_FRMOPTS_IMG_ALL |
Definition at line 72 of file htmlflywriter.cxx.
const HtmlFrmOpts HTML_FRMOPTS_IMG_CNTNR |
Definition at line 78 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatGrfNode().
const HtmlFrmOpts HTML_FRMOPTS_IMG_CSS1 |
Definition at line 86 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatGrfNode().
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL |
Definition at line 102 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsMulticol().
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL_CSS1 |
Definition at line 109 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsMulticol().
const HtmlFrmOpts HTML_FRMOPTS_SPACER |
Definition at line 116 of file htmlflywriter.cxx.
Referenced by OutHTML_FrameFormatAsSpacer().