LibreOffice Module sw (master)  1
Classes | Namespaces | Macros | Enumerations | Functions | Variables
css1atr.cxx File Reference
#include <hintids.hxx>
#include <comphelper/string.hxx>
#include <vcl/svapp.hxx>
#include <svl/whiter.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/formatbreakitem.hxx>
#include <editeng/keepitem.hxx>
#include <editeng/widwitem.hxx>
#include <editeng/spltitem.hxx>
#include <editeng/orphitem.hxx>
#include <editeng/charhiddenitem.hxx>
#include <svx/xoutbmp.hxx>
#include <svx/svdobj.hxx>
#include <editeng/langitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/htmlkywd.hxx>
#include <sfx2/htmlmode.hxx>
#include <svl/urihelper.hxx>
#include <tools/urlobj.hxx>
#include <unotools/charclass.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <charfmt.hxx>
#include <fmtclds.hxx>
#include <fmtcol.hxx>
#include <fmtfsize.hxx>
#include <fmtornt.hxx>
#include <fmtpdsc.hxx>
#include <fmtlsplt.hxx>
#include <pagedesc.hxx>
#include <fmtanchr.hxx>
#include <docary.hxx>
#include <pam.hxx>
#include <viewsh.hxx>
#include <viewopt.hxx>
#include <swtable.hxx>
#include <ftninfo.hxx>
#include <ftnidx.hxx>
#include <txtftn.hxx>
#include <fmtftn.hxx>
#include <doc.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <swerror.h>
#include <charatr.hxx>
#include <paratr.hxx>
#include <frmatr.hxx>
#include <poolfmt.hxx>
#include <fltini.hxx>
#include "css1kywd.hxx"
#include "wrthtml.hxx"
#include "htmlnum.hxx"
#include "css1atr.hxx"
#include <IDocumentStylePoolAccess.hxx>
#include <numrule.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <rtl/strbuf.hxx>
Include dependency graph for css1atr.cxx:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< Css1FrameSize >
 

Namespaces

 o3tl
 

Macros

#define HTML_HEADSPACE   (12*20)
 
#define DOT_LEADERS_MAX_WIDTH   18
 

Enumerations

enum  Css1Background
 
enum  Css1FrameSize
 

Functions

static WriterOutCSS1_SwFormat (Writer &rWrt, const SwFormat &rFormat, IDocumentStylePoolAccess *pDoc, SwDoc *pTemplate)
 
static WriterOutCSS1_SwPageDesc (Writer &rWrt, const SwPageDesc &rFormat, IDocumentStylePoolAccess *pDoc, SwDoc *pTemplate, sal_uInt16 nRefPoolId, bool bExtRef, bool bPseudo=true)
 
static WriterOutCSS1_SwFootnoteInfo (Writer &rWrt, const SwEndNoteInfo &rInfo, SwDoc *pDoc, bool bHasNotes, bool bEndNote)
 
static void OutCSS1_SwFormatDropAttrs (SwHTMLWriter &rHWrt, const SwFormatDrop &rDrop, const SfxItemSet *pCharFormatItemSet=nullptr)
 
static WriterOutCSS1_SvxTextLn_SvxCrOut_SvxBlink (Writer &rWrt, const SvxUnderlineItem *pUItem, const SvxOverlineItem *pOItem, const SvxCrossedOutItem *pCOItem, const SvxBlinkItem *pBItem)
 
static WriterOutCSS1_SvxFontWeight (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxPosture (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxULSpace (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxLRSpace (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxULSpace_SvxLRSpace (Writer &rWrt, const SvxULSpaceItem *pULSpace, const SvxLRSpaceItem *pLRSpace)
 
static WriterOutCSS1_SvxULSpace_SvxLRSpace (Writer &rWrt, const SfxItemSet &rItemSet)
 
static WriterOutCSS1_SvxBrush (Writer &rWrt, const SfxPoolItem &rHt, Css1Background nMode, const OUString *pGraphicName)
 
static WriterOutCSS1_SvxBrush (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SwFormatFrameSize (Writer &rWrt, const SfxPoolItem &rHt, Css1FrameSize nMode)
 
static WriterOutCSS1_SvxFormatBreak_SwFormatPDesc_SvxFormatKeep (Writer &rWrt, const SfxItemSet &rItemSet, bool bDeep)
 
static WriterOutCSS1_SwFormatLayoutSplit (Writer &rWrt, const SfxPoolItem &rHt)
 
OString GetCSS1_Color (const Color &rColor)
 
static void AddUnitPropertyValue (OStringBuffer &rOut, long nVal, FieldUnit eUnit)
 
static sal_uInt16 GetCSS1Selector (const SwFormat *pFormat, OUString &rSelector, sal_uInt16 &rRefPoolId)
 
bool swhtml_css1atr_equalFontItems (const SfxPoolItem &r1, const SfxPoolItem &r2)
 
static bool OutCSS1Rule (SwHTMLWriter &rHTMLWrt, const OUString &rSelector, const SfxItemSet &rItemSet, bool bHasClass, bool bCheckForPseudo)
 
static void OutCSS1DropCapRule (SwHTMLWriter &rHTMLWrt, const OUString &rSelector, const SwFormatDrop &rDrop, bool bHasClass, bool bHasScriptDependencies)
 
WriterOutCSS1_BodyTagStyleOpt (Writer &rWrt, const SfxItemSet &rItemSet)
 
WriterOutCSS1_ParaTagStyleOpt (Writer &rWrt, const SfxItemSet &rItemSet)
 
WriterOutCSS1_TableBGStyleOpt (Writer &rWrt, const SfxPoolItem &rHt)
 
WriterOutCSS1_NumBulListStyleOpt (Writer &rWrt, const SwNumRule &rNumRule, sal_uInt8 nLevel)
 
static bool OutCSS1_FrameFormatBrush (SwHTMLWriter &rWrt, const SvxBrushItem &rBrushItem)
 
static WriterOutCSS1_SvxCaseMap (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxColor (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxCrossedOut (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxFont (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxFontHeight (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxKerning (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxLanguage (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxUnderline (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxOverline (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxHidden (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxBlink (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxLineSpacing (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxAdjust (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxFormatSplit (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxWidows (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxOrphans (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SwFormatDrop (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxFormatBreak_SwFormatPDesc_SvxFormatKeep (Writer &rWrt, const SvxFormatBreakItem *pBreakItem, const SwFormatPageDesc *pPDescItem, const SvxFormatKeepItem *pKeepItem)
 
static void OutCSS1_SvxBorderLine (SwHTMLWriter &rHTMLWrt, const sal_Char *pProperty, const SvxBorderLine *pLine)
 
WriterOutCSS1_SvxBox (Writer &rWrt, const SfxPoolItem &rHt)
 
static WriterOutCSS1_SvxFrameDirection (Writer &rWrt, const SfxPoolItem &rHt)
 
WriterOutCSS1_HintSpanTag (Writer &rWrt, const SfxPoolItem &rHt)
 
WriterOutCSS1_HintStyleOpt (Writer &rWrt, const SfxPoolItem &rHt)
 

Variables

static SwAttrFnTab const aCSS1AttrFnTab
 

Macro Definition Documentation

#define DOT_LEADERS_MAX_WIDTH   18

Definition at line 127 of file css1atr.cxx.

Referenced by SwHTMLWriter::OutCSS1_Property(), and OutCSS1_SvxLRSpace().

#define HTML_HEADSPACE   (12*20)

Definition at line 100 of file css1atr.cxx.

Referenced by OutCSS1_SwFormat().

Enumeration Type Documentation

enum Css1Background
strong

Definition at line 104 of file css1atr.cxx.

enum Css1FrameSize
strong

Definition at line 112 of file css1atr.cxx.

Function Documentation

static void AddUnitPropertyValue ( OStringBuffer &  rOut,
long  nVal,
FieldUnit  eUnit 
)
static
OString GetCSS1_Color ( const Color rColor)
static sal_uInt16 GetCSS1Selector ( const SwFormat pFormat,
OUString &  rSelector,
sal_uInt16 &  rRefPoolId 
)
static

Definition at line 945 of file css1atr.cxx.

References SwHTMLWriter::GetCSS1Selector().

Referenced by OutCSS1_SwFormat().

Writer& OutCSS1_BodyTagStyleOpt ( Writer rWrt,
const SfxItemSet rItemSet 
)
static bool OutCSS1_FrameFormatBrush ( SwHTMLWriter rWrt,
const SvxBrushItem rBrushItem 
)
static

output brush of frame format, if its background color is not "no fill"/"auto fill" or it has a background graphic.

Definition at line 2141 of file css1atr.cxx.

References COL_TRANSPARENT(), SvxBrushItem::GetColor(), SvxBrushItem::GetGraphicLink(), SvxBrushItem::GetGraphicPos(), and OutCSS1_SvxBrush().

Referenced by SwHTMLWriter::OutCSS1_FrameFormatBackground().

Writer& OutCSS1_HintSpanTag ( Writer rWrt,
const SfxPoolItem rHt 
)
Writer& OutCSS1_HintStyleOpt ( Writer rWrt,
const SfxPoolItem rHt 
)
Writer& OutCSS1_NumBulListStyleOpt ( Writer rWrt,
const SwNumRule rNumRule,
sal_uInt8  nLevel 
)
Writer& OutCSS1_ParaTagStyleOpt ( Writer rWrt,
const SfxItemSet rItemSet 
)
static Writer& OutCSS1_SvxAdjust ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxBlink ( Writer rWrt,
const SfxPoolItem rHt 
)
static

Definition at line 2665 of file css1atr.cxx.

References CSS1_OUTMODE_HINT, and OutCSS1_SvxTextLn_SvxCrOut_SvxBlink().

static void OutCSS1_SvxBorderLine ( SwHTMLWriter rHTMLWrt,
const sal_Char pProperty,
const SvxBorderLine pLine 
)
static
Writer& OutCSS1_SvxBox ( Writer rWrt,
const SfxPoolItem rHt 
)
static Writer & OutCSS1_SvxBrush ( Writer rWrt,
const SfxPoolItem rHt,
Css1Background  nMode,
const OUString *  pGraphicName 
)
static
static Writer & OutCSS1_SvxBrush ( Writer rWrt,
const SfxPoolItem rHt 
)
static

Definition at line 3126 of file css1atr.cxx.

References OutCSS1_SvxBrush().

static Writer& OutCSS1_SvxCaseMap ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxColor ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxCrossedOut ( Writer rWrt,
const SfxPoolItem rHt 
)
static

Definition at line 2419 of file css1atr.cxx.

References CSS1_OUTMODE_HINT, and OutCSS1_SvxTextLn_SvxCrOut_SvxBlink().

static Writer& OutCSS1_SvxFont ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxFontHeight ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer & OutCSS1_SvxFontWeight ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer & OutCSS1_SvxFormatBreak_SwFormatPDesc_SvxFormatKeep ( Writer rWrt,
const SfxItemSet rItemSet,
bool  bDeep 
)
static
static Writer& OutCSS1_SvxFormatBreak_SwFormatPDesc_SvxFormatKeep ( Writer rWrt,
const SvxFormatBreakItem pBreakItem,
const SwFormatPageDesc pPDescItem,
const SvxFormatKeepItem pKeepItem 
)
static
static Writer& OutCSS1_SvxFormatSplit ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxFrameDirection ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxHidden ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxKerning ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxLanguage ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxLineSpacing ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer & OutCSS1_SvxLRSpace ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer& OutCSS1_SvxOrphans ( Writer rWrt,
const SfxPoolItem rHt 
)
static

Definition at line 2791 of file css1atr.cxx.

References aStr, GetValue, SwHTMLWriter::OutCSS1_PropertyAscii(), and sCSS1_P_orphans.

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

Definition at line 2601 of file css1atr.cxx.

References CSS1_OUTMODE_HINT, and OutCSS1_SvxTextLn_SvxCrOut_SvxBlink().

static Writer & OutCSS1_SvxPosture ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer & OutCSS1_SvxTextLn_SvxCrOut_SvxBlink ( Writer rWrt,
const SvxUnderlineItem pUItem,
const SvxOverlineItem pOItem,
const SvxCrossedOutItem pCOItem,
const SvxBlinkItem pBItem 
)
static
static Writer & OutCSS1_SvxULSpace ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer & OutCSS1_SvxULSpace_SvxLRSpace ( Writer rWrt,
const SvxULSpaceItem pULSpace,
const SvxLRSpaceItem pLRSpace 
)
static
static Writer & OutCSS1_SvxULSpace_SvxLRSpace ( Writer rWrt,
const SfxItemSet rItemSet 
)
static
static Writer& OutCSS1_SvxUnderline ( Writer rWrt,
const SfxPoolItem rHt 
)
static

Definition at line 2589 of file css1atr.cxx.

References CSS1_OUTMODE_HINT, and OutCSS1_SvxTextLn_SvxCrOut_SvxBlink().

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

Definition at line 2781 of file css1atr.cxx.

References aStr, GetValue, SwHTMLWriter::OutCSS1_PropertyAscii(), and sCSS1_P_widows.

static Writer & OutCSS1_SwFootnoteInfo ( Writer rWrt,
const SwEndNoteInfo rInfo,
SwDoc pDoc,
bool  bHasNotes,
bool  bEndNote 
)
static
static Writer & OutCSS1_SwFormat ( Writer rWrt,
const SwFormat rFormat,
IDocumentStylePoolAccess pDoc,
SwDoc pTemplate 
)
static
static Writer& OutCSS1_SwFormatDrop ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static void OutCSS1_SwFormatDropAttrs ( SwHTMLWriter rHWrt,
const SwFormatDrop rDrop,
const SfxItemSet pCharFormatItemSet = nullptr 
)
static
static Writer & OutCSS1_SwFormatFrameSize ( Writer rWrt,
const SfxPoolItem rHt,
Css1FrameSize  nMode 
)
static
static Writer & OutCSS1_SwFormatLayoutSplit ( Writer rWrt,
const SfxPoolItem rHt 
)
static
static Writer & OutCSS1_SwPageDesc ( Writer rWrt,
const SwPageDesc rFormat,
IDocumentStylePoolAccess pDoc,
SwDoc pTemplate,
sal_uInt16  nRefPoolId,
bool  bExtRef,
bool  bPseudo = true 
)
static
Writer& OutCSS1_TableBGStyleOpt ( Writer rWrt,
const SfxPoolItem rHt 
)
static void OutCSS1DropCapRule ( SwHTMLWriter rHTMLWrt,
const OUString &  rSelector,
const SwFormatDrop rDrop,
bool  bHasClass,
bool  bHasScriptDependencies 
)
static
static bool OutCSS1Rule ( SwHTMLWriter rHTMLWrt,
const OUString &  rSelector,
const SfxItemSet rItemSet,
bool  bHasClass,
bool  bCheckForPseudo 
)
static
bool swhtml_css1atr_equalFontItems ( const SfxPoolItem r1,
const SfxPoolItem r2 
)

Variable Documentation

SwAttrFnTab const aCSS1AttrFnTab
static

Definition at line 3503 of file css1atr.cxx.