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 <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 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, bool bPNGFallback)
 
static WriterOutHTML_FrameFormatGrfNode (Writer &rWrt, const SwFrameFormat &rFormat, bool bInCntnr, bool bPNGFallback)
 
static WriterOutHTML_FrameFormatAsMarquee (Writer &rWrt, const SwFrameFormat &rFrameFormat, const SdrObject &rSdrObj)
 
WriterOutHTML_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)
 
WriterOutHTML_ImageEnd (HtmlWriter &rHtml, Writer &rWrt)
 
WriterOutHTML_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...
 
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
 
HTMLOutEvent const aImageEventTable []
 
HTMLOutEvent const aIMapEventTable []
 

Function Documentation

Writer& OutHTML_BulletImage ( Writer rWrt,
const 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,
bool  bPNGFallback 
)
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,
bool  bPNGFallback 
)
static
static Writer & OutHTML_FrameFormatTableNode ( Writer rWrt,
const SwFrameFormat rFrameFormat 
)
static
Writer& OutHTML_HeaderFooter ( Writer rWrt,
const SwFrameFormat rFrameFormat,
bool  bHeader 
)
Writer& OutHTML_ImageEnd ( HtmlWriter rHtml,
Writer rWrt 
)
static void OutHTML_ImageOLEEnd ( SwHTMLWriter rHTMLWrt)
static
static void OutHTML_ImageOLEStart ( SwHTMLWriter rHTMLWrt,
const Graphic rGraphic,
const SwFrameFormat rFrameFormat 
)
static
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 1212 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(), 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::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(), HtmlWriter::start(), WARN_SWG_POOR_LOAD, Size::Width(), and SwHTMLWriter::writeFrameFormatOptions().

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

Variable Documentation

HTMLOutEvent const aImageEventTable[]
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 146 of file htmlflywriter.cxx.

HTMLOutEvent const aIMapEventTable[]
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 154 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 78 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