LibreOffice Module sw (master)  1
Functions | Variables
htmlflywriter.cxx File Reference
#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 <svx/svxids.hrc>
#include <hintids.hxx>
#include <tools/fract.hxx>
#include <svl/urihelper.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.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 <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 <docary.hxx>
#include <ndgrf.hxx>
#include <doc.hxx>
#include <ndtxt.hxx>
#include <pam.hxx>
#include <swerror.h>
#include <frmfmt.hxx>
#include "wrthtml.hxx"
#include "css1kywd.hxx"
#include "htmlatr.hxx"
#include "htmlfly.hxx"
#include "htmlreqifreader.hxx"
Include dependency graph for htmlflywriter.cxx:

Go to the source code of this file.

Functions

static WriterOutHTML_FrameFormatTableNode (Writer &rWrt, const SwFrameFormat &rFrameFormat)
 
static WriterOutHTML_FrameFormatAsMulticol (Writer &rWrt, const SwFrameFormat &rFormat, bool bInCntnr)
 
static WriterOutHTML_FrameFormatAsSpacer (Writer &rWrt, const SwFrameFormat &rFormat)
 
static WriterOutHTML_FrameFormatAsDivOrSpan (Writer &rWrt, const SwFrameFormat &rFrameFormat, bool bSpan)
 
static WriterOutHTML_FrameFormatAsImage (Writer &rWrt, const SwFrameFormat &rFormat)
 
static WriterOutHTML_FrameFormatGrfNode (Writer &rWrt, const SwFrameFormat &rFormat, bool bInCntnr)
 
static WriterOutHTML_FrameFormatAsMarquee (Writer &rWrt, const SwFrameFormat &rFrameFormat, const SdrObject &rSdrObj)
 
WriterOutHTML_Image (Writer &rWrt, const SwFrameFormat &rFrameFormat, const OUString &rGraphicURL, Graphic const &rGraphic, const OUString &rAlternateText, const Size &rRealSize, HtmlFrmOpts nFrameOpts, const sal_Char *pMarkType, const ImageMap *pAltImgMap, const OUString &rMimeType)
 
WriterOutHTML_BulletImage (Writer &rWrt, const sal_Char *pTag, const SvxBrushItem *pBrush, const OUString &rGraphicURL)
 
WriterOutHTML_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
 
static HTMLOutEvent const aImageEventTable []
 
static HTMLOutEvent const aIMapEventTable []
 

Function Documentation

Writer& OutHTML_BulletImage ( Writer rWrt,
const sal_Char pTag,
const SvxBrushItem pBrush,
const OUString &  rGraphicURL 
)
static Writer & OutHTML_FrameFormatAsDivOrSpan ( Writer rWrt,
const SwFrameFormat rFrameFormat,
bool  bSpan 
)
static
static Writer & OutHTML_FrameFormatAsImage ( Writer rWrt,
const SwFrameFormat rFormat 
)
static
static Writer & OutHTML_FrameFormatAsMarquee ( Writer rWrt,
const SwFrameFormat rFrameFormat,
const SdrObject rSdrObj 
)
static
static Writer & OutHTML_FrameFormatAsMulticol ( Writer rWrt,
const SwFrameFormat rFormat,
bool  bInCntnr 
)
static
static Writer & OutHTML_FrameFormatAsSpacer ( Writer rWrt,
const SwFrameFormat rFormat 
)
static
static Writer & OutHTML_FrameFormatGrfNode ( Writer rWrt,
const SwFrameFormat rFormat,
bool  bInCntnr 
)
static

Definition at line 1782 of file htmlflywriter.cxx.

References aMimeType, aName, Both, Writer::CopyLocalFileToINet(), Dont, INetURLObject::getBase(), Writer::GetBaseURL(), Graphic::GetChecksum(), SwFormat::GetContent(), SwFormatContent::GetContentIdx(), INetURLObject::getExtension(), SwGrfNode::GetFileFilterNms(), SwFormat::GetFrameSize(), SwNoTextNode::GetGraphic(), SwGrfNode::GetGrf(), SwNodeIndex::GetIndex(), INetURLObject::GetMainURL(), URIHelper::GetMaybeFileHdl(), SwAttrSet::GetMirrorGrf(), SwHTMLWriter::GetNamespace(), SwDoc::GetNodes(), Writer::GetOrigFileName(), SvxSizeItem::GetSize(), SwContentNode::GetSwAttrSet(), SwNoTextNode::GetTitle(), SwGrfNode::GetTwipSize(), SfxEnumItem< EnumT >::GetValue(), Graphic::GetXGraphic(), Horizontal, HTML_FRMOPTS_IMG, HTML_FRMOPTS_IMG_CNTNR, HTML_FRMOPTS_IMG_CSS1, HTMLMODE_ABS_POS_FLY, Graphic::isAvailable(), SwHTMLWriter::IsHTMLMode(), SwGrfNode::IsLinkedFile(), OutputDevice::LogicToLogic(), SwHTMLWriter::m_bCfgCpyLinkedGrfs, SwHTMLWriter::m_nWarn, Writer::m_pDoc, Graphic::makeAvailable(), SwHTMLWriter::mbEmbedImages, SwHTMLWriter::mbReqIF, SwHTMLWriter::mbSkipImages, INetURLObject::NONE, OOO_STRING_SVTOOLS_HTML_object, OutHTML_Image(), SwHTMLWriter::OutNewLine(), SAL_WARN, INetURLObject::setBase(), INetURLObject::setExtension(), URIHelper::simpleNormalizedMakeRelative(), URIHelper::SmartRel2Abs(), Writer::Strm(), Vertical, WARN_SWG_POOR_LOAD, SwReqIfReader::WrapGraphicInRtf(), XOutBitmap::WriteGraphic(), and SvStream::WriteOString().

Referenced by SwHTMLWriter::OutFrameFormat().

static Writer & OutHTML_FrameFormatTableNode ( Writer rWrt,
const SwFrameFormat rFrameFormat 
)
static
Writer& OutHTML_HeaderFooter ( Writer rWrt,
const SwFrameFormat rFrameFormat,
bool  bHeader 
)
Writer& OutHTML_Image ( Writer rWrt,
const SwFrameFormat rFrameFormat,
const OUString &  rGraphicURL,
Graphic const &  rGraphic,
const OUString &  rAlternateText,
const Size rRealSize,
HtmlFrmOpts  nFrameOpts,
const sal_Char pMarkType,
const ImageMap pAltImgMap,
const OUString &  rMimeType 
)

Definition at line 1204 of file htmlflywriter.cxx.

References aAnchorEventTable, Size::AdjustHeight(), Size::AdjustWidth(), aName, HtmlWriterHelper::applyColor(), HtmlWriterHelper::applyEvents(), Border, SwHTMLWriter::convertHyperlinkHRefValue(), SvxMacroTableDtor::empty(), SwFormat::GetAttrSet(), Writer::GetBaseURL(), SvxBoxItem::GetBottom(), Application::GetDefaultDevice(), SfxItemSet::GetItemState(), 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::maNamespace, SwHTMLWriter::mbEmbedImages, SwHTMLWriter::mbReqIF, SwHTMLWriter::mbSkipImages, SwHTMLWriter::mpTempBaseURL, 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(), Writer::Strm(), WARN_SWG_POOR_LOAD, Size::Width(), and SwHTMLWriter::writeFrameFormatOptions().

Referenced by OutHTML_FrameFormatAsImage(), OutHTML_FrameFormatGrfNode(), and OutHTML_FrameFormatOLENodeGrf().

Variable Documentation

HTMLOutEvent const aImageEventTable[]
static
Initial value:
=
{
{ nullptr, nullptr, SvMacroItemId::NONE }
}
#define OOO_STRING_SVTOOLS_HTML_O_onload
#define OOO_STRING_SVTOOLS_HTML_O_SDonabort
#define OOO_STRING_SVTOOLS_HTML_O_onabort
#define OOO_STRING_SVTOOLS_HTML_O_SDonerror
#define OOO_STRING_SVTOOLS_HTML_O_onerror
#define OOO_STRING_SVTOOLS_HTML_O_SDonload

Definition at line 148 of file htmlflywriter.cxx.

HTMLOutEvent const aIMapEventTable[]
static
Initial value:
=
{
{ nullptr, nullptr, SvMacroItemId::NONE }
}
#define OOO_STRING_SVTOOLS_HTML_O_SDonmouseover
#define OOO_STRING_SVTOOLS_HTML_O_onmouseout
#define OOO_STRING_SVTOOLS_HTML_O_onmouseover
#define OOO_STRING_SVTOOLS_HTML_O_SDonmouseout

Definition at line 156 of file htmlflywriter.cxx.

const HtmlFrmOpts HTML_FRMOPTS_CNTNR
const HtmlFrmOpts HTML_FRMOPTS_DIV
const HtmlFrmOpts HTML_FRMOPTS_IMG
const HtmlFrmOpts HTML_FRMOPTS_IMG_ALL
const HtmlFrmOpts HTML_FRMOPTS_IMG_CNTNR
Initial value:

Definition at line 80 of file htmlflywriter.cxx.

Referenced by OutHTML_FrameFormatGrfNode().

const HtmlFrmOpts HTML_FRMOPTS_IMG_CSS1
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL
const HtmlFrmOpts HTML_FRMOPTS_MULTICOL_CSS1
const HtmlFrmOpts HTML_FRMOPTS_SPACER