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 <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"
Include dependency graph for htmlflywriter.cxx:

Go to the source code of this file.

Functions

static SwHTMLWriterOutHTML_FrameFormatTableNode (SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat)
 
static SwHTMLWriterOutHTML_FrameFormatAsMulticol (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bInCntnr)
 
static SwHTMLWriterOutHTML_FrameFormatAsSpacer (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat)
 
static SwHTMLWriterOutHTML_FrameFormatAsDivOrSpan (SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, bool bSpan)
 
static SwHTMLWriterOutHTML_FrameFormatAsImage (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bPNGFallback)
 
static SwHTMLWriterOutHTML_FrameFormatGrfNode (SwHTMLWriter &rWrt, const SwFrameFormat &rFormat, bool bInCntnr, bool bPNGFallback)
 
static SwHTMLWriterOutHTML_FrameFormatAsMarquee (SwHTMLWriter &rWrt, const SwFrameFormat &rFrameFormat, const SdrObject &rSdrObj)
 
SwHTMLWriterOutHTML_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)
 
SwHTMLWriterOutHTML_ImageEnd (HtmlWriter &rHtml, SwHTMLWriter &rWrt)
 
SwHTMLWriterOutHTML_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...
 
SwHTMLWriterOutHTML_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 []
 

Function Documentation

◆ OutHTML_BulletImage()

SwHTMLWriter & OutHTML_BulletImage ( SwHTMLWriter rWrt,
const char *  pTag,
const SvxBrushItem pBrush,
const OUString &  rGraphicURL 
)

◆ OutHTML_FrameFormatAsDivOrSpan()

static SwHTMLWriter & OutHTML_FrameFormatAsDivOrSpan ( SwHTMLWriter rWrt,
const SwFrameFormat rFrameFormat,
bool  bSpan 
)
static

◆ OutHTML_FrameFormatAsImage()

static SwHTMLWriter & OutHTML_FrameFormatAsImage ( SwHTMLWriter rWrt,
const SwFrameFormat rFormat,
bool  bPNGFallback 
)
static

◆ OutHTML_FrameFormatAsMarquee()

static SwHTMLWriter & OutHTML_FrameFormatAsMarquee ( SwHTMLWriter rWrt,
const SwFrameFormat rFrameFormat,
const SdrObject rSdrObj 
)
static

◆ OutHTML_FrameFormatAsMulticol()

static SwHTMLWriter & OutHTML_FrameFormatAsMulticol ( SwHTMLWriter rWrt,
const SwFrameFormat rFormat,
bool  bInCntnr 
)
static

◆ OutHTML_FrameFormatAsSpacer()

static SwHTMLWriter & OutHTML_FrameFormatAsSpacer ( SwHTMLWriter rWrt,
const SwFrameFormat rFormat 
)
static

◆ OutHTML_FrameFormatGrfNode()

static SwHTMLWriter & OutHTML_FrameFormatGrfNode ( SwHTMLWriter rWrt,
const SwFrameFormat rFormat,
bool  bInCntnr,
bool  bPNGFallback 
)
static

◆ OutHTML_FrameFormatTableNode()

static SwHTMLWriter & OutHTML_FrameFormatTableNode ( SwHTMLWriter rWrt,
const SwFrameFormat rFrameFormat 
)
static

◆ OutHTML_HeaderFooter()

SwHTMLWriter & OutHTML_HeaderFooter ( SwHTMLWriter rWrt,
const SwFrameFormat rFrameFormat,
bool  bHeader 
)

◆ OutHTML_ImageEnd()

SwHTMLWriter & OutHTML_ImageEnd ( HtmlWriter rHtml,
SwHTMLWriter rWrt 
)

◆ OutHTML_ImageOLEEnd()

static void OutHTML_ImageOLEEnd ( SwHTMLWriter rWrt)
static

◆ OutHTML_ImageOLEStart()

static void OutHTML_ImageOLEStart ( SwHTMLWriter rWrt,
const Graphic rGraphic,
const SwFrameFormat rFrameFormat 
)
static

◆ OutHTML_ImageStart()

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().

Variable Documentation

◆ aImageEventTable

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

Definition at line 147 of file htmlflywriter.cxx.

Referenced by OutHTML_ImageStart().

◆ aIMapEventTable

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

Definition at line 155 of file htmlflywriter.cxx.

◆ HTML_FRMOPTS_CNTNR

const HtmlFrmOpts HTML_FRMOPTS_CNTNR

◆ HTML_FRMOPTS_DIV

const HtmlFrmOpts HTML_FRMOPTS_DIV

◆ HTML_FRMOPTS_IMG

const HtmlFrmOpts HTML_FRMOPTS_IMG
Initial value:

Definition at line 82 of file htmlflywriter.cxx.

Referenced by OutHTML_FrameFormatGrfNode().

◆ HTML_FRMOPTS_IMG_ALL

const HtmlFrmOpts HTML_FRMOPTS_IMG_ALL

◆ HTML_FRMOPTS_IMG_CNTNR

const HtmlFrmOpts HTML_FRMOPTS_IMG_CNTNR
Initial value:

Definition at line 79 of file htmlflywriter.cxx.

Referenced by OutHTML_FrameFormatGrfNode().

◆ HTML_FRMOPTS_IMG_CSS1

const HtmlFrmOpts HTML_FRMOPTS_IMG_CSS1
Initial value:

Definition at line 87 of file htmlflywriter.cxx.

Referenced by OutHTML_FrameFormatGrfNode().

◆ HTML_FRMOPTS_MULTICOL

const HtmlFrmOpts HTML_FRMOPTS_MULTICOL

◆ HTML_FRMOPTS_MULTICOL_CSS1

const HtmlFrmOpts HTML_FRMOPTS_MULTICOL_CSS1

◆ HTML_FRMOPTS_SPACER

const HtmlFrmOpts HTML_FRMOPTS_SPACER