LibreOffice Module sw (master)  1
Classes | Typedefs | Enumerations | Functions | Variables
htmlatr.cxx File Reference
#include <hintids.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <comphelper/string.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmltokn.h>
#include <svl/whiter.hxx>
#include <sfx2/event.hxx>
#include <sfx2/htmlmode.hxx>
#include <editeng/escapementitem.hxx>
#include <editeng/formatbreakitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/blinkitem.hxx>
#include <editeng/cmapitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/lspcitem.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <fchrfmt.hxx>
#include <fmtautofmt.hxx>
#include <fmtfsize.hxx>
#include <fmtclds.hxx>
#include <fmtpdsc.hxx>
#include <fmtflcnt.hxx>
#include <fmtinfmt.hxx>
#include <txatbase.hxx>
#include <frmatr.hxx>
#include <charfmt.hxx>
#include <fmtfld.hxx>
#include <doc.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
#include <paratr.hxx>
#include <poolfmt.hxx>
#include <pagedesc.hxx>
#include <swtable.hxx>
#include <fldbas.hxx>
#include <breakit.hxx>
#include "htmlatr.hxx"
#include "htmlnum.hxx"
#include "wrthtml.hxx"
#include "htmlfly.hxx"
#include <numrule.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/character.hxx>
#include <osl/diagnose.h>
#include <deque>
#include <svtools/HtmlWriter.hxx>
#include <memory>
#include <algorithm>
Include dependency graph for htmlatr.cxx:

Go to the source code of this file.

Classes

struct  SwHTMLTextCollOutputInfo
 
class  HTMLStartEndPos
 
class  HTMLEndPosLst
 

Typedefs

typedef std::vector< HTMLStartEndPos * > HTMLStartEndPositions
 

Enumerations

enum  HTMLOnOffState {
  HTML_NOT_SUPPORTED,
  HTML_REAL_VALUE,
  HTML_ON_VALUE,
  HTML_OFF_VALUE,
  HTML_CHRFMT_VALUE,
  HTML_COLOR_VALUE,
  HTML_STYLE_VALUE,
  HTML_DROPCAP_VALUE,
  HTML_AUTOFMT_VALUE
}
 

Functions

static WriterOutHTML_SvxAdjust (Writer &rWrt, const SfxPoolItem &rHt)
 
static void OutHTML_SwFormat (Writer &rWrt, const SwFormat &rFormat, const SfxItemSet *pNodeItemSet, SwHTMLTextCollOutputInfo &rInfo)
 
static void OutHTML_SwFormatOff (Writer &rWrt, const SwHTMLTextCollOutputInfo &rInfo)
 
WriterOutHTML_SwTextNode (Writer &rWrt, const SwContentNode &rNode)
 
static WriterOutHTML_CSS1Attr (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SvxColor (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SwPosture (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SvxFont (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SvxFontHeight (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SvxLanguage (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SwWeight (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SwCrossedOut (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SvxEscapement (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SwUnderline (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SwFlyCnt (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SwBlink (Writer &rWrt, const SfxPoolItem &rHt)
 
WriterOutHTML_INetFormat (Writer &rWrt, const SwFormatINetFormat &rINetFormat, bool bOn)
 
static WriterOutHTML_SwFormatINetFormat (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutHTML_SwTextCharFormat (Writer &rWrt, const SfxPoolItem &rHt)
 

Variables

HTMLOutEvent const aAnchorEventTable []
 
SwAttrFnTab aHTMLAttrFnTab
 

Typedef Documentation

typedef std::vector<HTMLStartEndPos *> HTMLStartEndPositions

Definition at line 1058 of file htmlatr.cxx.

Enumeration Type Documentation

Enumerator
HTML_NOT_SUPPORTED 
HTML_REAL_VALUE 
HTML_ON_VALUE 
HTML_OFF_VALUE 
HTML_CHRFMT_VALUE 
HTML_COLOR_VALUE 
HTML_STYLE_VALUE 
HTML_DROPCAP_VALUE 
HTML_AUTOFMT_VALUE 

Definition at line 1060 of file htmlatr.cxx.

Function Documentation

static Writer& OutHTML_CSS1Attr ( Writer rWrt,
const SfxPoolItem rHt 
)
static

Definition at line 2603 of file htmlatr.cxx.

References OutCSS1_HintSpanTag().

Writer& OutHTML_INetFormat ( Writer rWrt,
const SwFormatINetFormat rINetFormat,
bool  bOn 
)
static Writer & OutHTML_SvxAdjust ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SvxColor ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SvxEscapement ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SvxFont ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SvxFontHeight ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SvxLanguage ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SwBlink ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SwCrossedOut ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SwFlyCnt ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static void OutHTML_SwFormat ( Writer rWrt,
const SwFormat rFormat,
const SfxItemSet pNodeItemSet,
SwHTMLTextCollOutputInfo rInfo 
)
static

Definition at line 421 of file htmlatr.cxx.

References SwHTMLFormatInfo::aClass, SwHTMLTextCollOutputInfo::aToken, SwHTMLFormatInfo::aToken, SwHTMLTextCollOutputInfo::bInNumBulList, SwHTMLTextCollOutputInfo::bOutDiv, SwHTMLTextCollOutputInfo::bOutLi, SwHTMLTextCollOutputInfo::bOutPara, SwHTMLTextCollOutputInfo::bParaPossible, SwHTMLFormatInfo::bScriptDependent, CSS1_OUTMODE_CJK, CSS1_OUTMODE_CTL, CSS1_OUTMODE_WESTERN, SfxItemSet::Get(), SwNumRule::Get(), SwTextNode::GetActualListLevel(), SwTextNode::GetActualListStartValue(), SwContentNode::GetAnyFormatColl(), SwFormat::GetAttrSet(), SvxNumberFormat::GetBrush(), SwFormat::GetFrameDir(), SwLangHelper::GetLanguage(), SwHTMLWriter::GetLangWhichIdFromScript(), SwHTMLNumRuleInfo::GetLevel(), SvxULSpaceItem::GetLower(), SwFormat::GetLRSpace(), SwFormat::GetName(), SwDoc::GetNodes(), SwHTMLNumRuleInfo::GetNumRule(), SwAttrSet::GetPool(), SwFormat::GetPoolFormatId(), SwTextNode::GetText(), SvxLRSpaceItem::GetTextFirstLineOfst(), SvxLRSpaceItem::GetTextLeft(), SwFormat::GetULSpace(), GetValue, HTMLMODE_LSPACE_IN_NUMBUL, HTMLMODE_NO_CONTROL_CENTERING, i, SwTextNode::IsCountedInList(), SwTextNode::IsListRestart(), SwHTMLNumRuleInfo::IsNumbered(), LANGUAGE_DONTKNOW, Writer::m_pCurrentPam, Writer::m_pDoc, MAXLEVEL, SwHTMLFormatInfo::nBottomMargin, SwHTMLFormatInfo::nFirstLineIndent, nLeftMargin, SwHTMLFormatInfo::nLeftMargin, SwHTMLFormatInfo::nRightMargin, nToken, SwHTMLFormatInfo::nTopMargin, OOO_STRING_SVTOOLS_HTML_address, OOO_STRING_SVTOOLS_HTML_blockquote, OOO_STRING_SVTOOLS_HTML_dd, OOO_STRING_SVTOOLS_HTML_division, OOO_STRING_SVTOOLS_HTML_dt, OOO_STRING_SVTOOLS_HTML_image, OOO_STRING_SVTOOLS_HTML_li, OOO_STRING_SVTOOLS_HTML_O_class, OOO_STRING_SVTOOLS_HTML_O_span, OOO_STRING_SVTOOLS_HTML_O_value, OOO_STRING_SVTOOLS_HTML_parabreak, OOO_STRING_SVTOOLS_HTML_preformtxt, HTMLOutFuncs::Out_AsciiTag(), HTMLOutFuncs::Out_String(), OutCSS1_ParaTagStyleOpt(), OutHTML_BulletImage(), OutHTML_NumBulListStart(), OutHTML_SvxAdjust(), SwHTMLTextCollOutputInfo::pItemSet, SwHTMLFormatInfo::pItemSet, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_LANGUAGE, RES_CONDTXTFMTCOLL, RES_FRAMEDIR, RES_LR_SPACE, RES_PARATR_ADJUST, RES_TXTFMTCOLL, RES_UL_SPACE, SAL_NEWLINE_STRING, sCSS2_P_CLASS_leaders, SwHTMLNumRuleInfo::Set(), SvxULSpaceItem::SetLower(), SvxULSpaceItem::SetUpper(), HtmlWriter::start(), Writer::Strm(), USHRT_MAX, SwFormat::Which(), SvStream::WriteChar(), SvStream::WriteCharPtr(), and SvStream::WriteOString().

Referenced by OutHTML_SwTextNode().

static Writer& OutHTML_SwFormatINetFormat ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static void OutHTML_SwFormatOff ( Writer rWrt,
const SwHTMLTextCollOutputInfo rInfo 
)
static
static Writer& OutHTML_SwPosture ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SwTextCharFormat ( Writer rWrt,
const SfxPoolItem rHt 
)
static
Writer& OutHTML_SwTextNode ( Writer rWrt,
const SwContentNode rNode 
)

Definition at line 2005 of file htmlatr.cxx.

References aHTMLAttrFnTab, Any, HtmlWriterHelper::applyColor(), Before, CH_TXT_ATR_FORMELEMENT, SwHTMLWriter::ChangeParaToken(), COL_GRAY(), SfxItemSet::Count(), SwpHints::Count(), SwTextAttr::End(), SwNode::FindTableNode(), HTMLOutFuncs::FlushToAscii(), SfxItemSet::Get(), SwpHints::Get(), SwContentNode::GetAnyFormatColl(), SwTextAttr::GetAttr(), SvxBoxItem::GetBottom(), SwFormat::GetCol(), editeng::SvxBorderLine::GetColor(), SwNode::GetDoc(), SwHTMLWriter::GetFootEndNoteSym(), SwTableBox::GetFrameFormat(), SwFormat::GetFrameSize(), SwHTMLWriter::GetHTMLMode(), SwDoc::getIDocumentStylePoolAccess(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), editeng::SvxBorderLine::GetInWidth(), SfxItemSet::GetItemState(), SvxLRSpaceItem::GetLeft(), SwHTMLWriter::GetLineLen(), SvxULSpaceItem::GetLower(), SwFormat::GetLRSpace(), SwPageDesc::GetMaster(), SwFormat::GetName(), SwDoc::GetNodes(), SwFormatCol::GetNumCols(), SwTextNode::GetNumRule(), SwTextNode::GetNumString(), SwDoc::GetOutlineNumRule(), IDocumentStylePoolAccess::GetPageDescFromPool(), SwFormat::GetPoolFormatId(), SwContentNode::GetpSwAttrSet(), SvxLRSpaceItem::GetRight(), editeng::SvxBorderLine::GetScaledWidth(), SwTextAttr::GetStart(), SwNode::GetStartNode(), SwStartNode::GetStartNodeType(), SwContentNode::GetSwAttrSet(), SwTextNode::GetSwpHints(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwTextNode::GetText(), SvxSizeItem::GetWidth(), SwTextAttr::HasDummyChar(), SwTextNode::HasHints(), HTMLMODE_NBSP_IN_TABLES, SwHTMLWriter::indexOfDotLeaders(), HTMLEndPosLst::Insert(), Inside, SwNode::IsEndNode(), SwHTMLWriter::IsHTMLMode(), SwTextNode::IsOutline(), Color::IsRGBEqual(), SwNode::IsSectionNode(), SwNode::IsStartNode(), SwNode::IsTableNode(), SwHTMLWriter::m_aNonConvertableCharacters, SwHTMLWriter::m_aScriptTextStyles, SwHTMLWriter::m_bCfgFormFeed, SwHTMLWriter::m_bCfgOutStyles, SwHTMLWriter::m_bClearLeft, SwHTMLWriter::m_bClearRight, SwHTMLWriter::m_bLFPossible, SwHTMLWriter::m_bOutFlyFrame, SwHTMLWriter::m_bOutOpts, SwHTMLWriter::m_bOutTable, SwHTMLWriter::m_bTagOn, SwHTMLWriter::m_bTextAttr, Writer::m_bWriteAll, SwHTMLWriter::m_CharFormatInfos, SwHTMLWriter::m_eDestEnc, SwHTMLWriter::m_nCSS1Script, SwHTMLWriter::m_nLastParaToken, SwHTMLWriter::m_nTextAttrsToIgnore, SwHTMLWriter::m_nWhishLineLen, Writer::m_pCurrentPam, Writer::m_pDoc, SwHTMLWriter::m_pFormatFootnote, SwHTMLWriter::m_pStartNdIdx, SwHTMLWriter::m_xDfltColor, SwHTMLWriter::m_xTemplate, SwHTMLWriter::maNamespace, SwPosition::nContent, OOO_STRING_SVTOOLS_HTML_AL_all, OOO_STRING_SVTOOLS_HTML_AL_center, OOO_STRING_SVTOOLS_HTML_AL_left, OOO_STRING_SVTOOLS_HTML_AL_right, OOO_STRING_SVTOOLS_HTML_horzrule, OOO_STRING_SVTOOLS_HTML_linebreak, OOO_STRING_SVTOOLS_HTML_O_align, OOO_STRING_SVTOOLS_HTML_O_clear, OOO_STRING_SVTOOLS_HTML_O_color, OOO_STRING_SVTOOLS_HTML_O_noshade, OOO_STRING_SVTOOLS_HTML_O_size, OOO_STRING_SVTOOLS_HTML_O_width, OOO_STRING_SVTOOLS_HTML_S_nbsp, OUStringToOString(), Out(), HTMLOutFuncs::Out_Char(), HTMLOutFuncs::Out_String(), SwHTMLWriter::OutBookmarks(), SwHTMLWriter::OutFlyFrame(), SwHTMLWriter::OutFootEndNoteSym(), SwHTMLWriter::OutForm(), OutHTML_SwFormat(), OutHTML_SwFormatOff(), SwHTMLWriter::OutNewLine(), SwHTMLWriter::OutPointFieldmarks(), SwHTMLTextCollOutputInfo::pItemSet, Postit, Prefix, RES_BOX, RES_BREAK, RES_CHRATR_FONTSIZE, RES_DRAWFRMFMT, RES_LR_SPACE, RES_PAGEDESC, RES_POOLCOLL_HTML_HR, RES_POOLCOLL_STANDARD, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, RES_POOLPAGE_HTML, RES_TXTATR_ANNOTATION, RES_TXTATR_FIELD, RES_TXTATR_FLYCNT, RES_UL_SPACE, SAL_MAX_INT32, Script, HtmlWriter::single(), HtmlWriter::start(), SwNode::StartOfSectionIndex(), Writer::Strm(), SwTableBoxStartNode, SwHTMLWriter::ToPixel(), SfxPoolItem::Which(), SwFormat::Which(), SwTextAttr::Which(), SvStream::WriteChar(), SvStream::WriteCharPtr(), and SvStream::WriteOString().

Referenced by SwHTMLWriter::Out_SwDoc().

static Writer& OutHTML_SwUnderline ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutHTML_SwWeight ( Writer rWrt,
const SfxPoolItem rHt 
)
static

Variable Documentation

HTMLOutEvent const aAnchorEventTable[]
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_onclick
#define OOO_STRING_SVTOOLS_HTML_O_SDonmouseout
#define OOO_STRING_SVTOOLS_HTML_O_SDonclick

Definition at line 90 of file htmlatr.cxx.

Referenced by OutHTML_Image(), and OutHTML_INetFormat().

SwAttrFnTab aHTMLAttrFnTab