LibreOffice Module sc (master) 1
Macros | Functions | Variables
htmlexp.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <scitems.hxx>
#include <editeng/eeitem.hxx>
#include <vcl/svapp.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/justifyitem.hxx>
#include <svx/xoutbmp.hxx>
#include <editeng/editeng.hxx>
#include <svtools/htmlcfg.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/frmhtmlw.hxx>
#include <sfx2/objsh.hxx>
#include <svl/urihelper.hxx>
#include <svtools/htmlkywd.hxx>
#include <svtools/htmlout.hxx>
#include <svtools/parhtml.hxx>
#include <vcl/outdev.hxx>
#include <stdio.h>
#include <osl/diagnose.h>
#include <o3tl/unit_conversion.hxx>
#include <htmlexp.hxx>
#include <global.hxx>
#include <postit.hxx>
#include <document.hxx>
#include <attrib.hxx>
#include <patattr.hxx>
#include <stlpool.hxx>
#include <scresid.hxx>
#include <formulacell.hxx>
#include <cellform.hxx>
#include <docoptio.hxx>
#include <editutil.hxx>
#include <ftools.hxx>
#include <cellvalue.hxx>
#include <mtvelements.hxx>
#include <editeng/flditem.hxx>
#include <editeng/borderline.hxx>
#include <strings.hrc>
#include <globstr.hrc>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <rtl/strbuf.hxx>
#include <officecfg/Office/Common.hxx>
Include dependency graph for htmlexp.cxx:

Go to the source code of this file.

Macros

#define TAG_ON(tag)   HTMLOutFuncs::Out_AsciiTag( rStrm, tag )
 
#define TAG_OFF(tag)   HTMLOutFuncs::Out_AsciiTag( rStrm, tag, false )
 
#define OUT_STR(str)   HTMLOutFuncs::Out_String( rStrm, str, &aNonConvertibleChars )
 
#define OUT_LF()   rStrm.WriteCharPtr( SAL_NEWLINE_STRING ).WriteCharPtr( GetIndentStr() )
 
#define TAG_ON_LF(tag)   (TAG_ON( tag ).WriteCharPtr( SAL_NEWLINE_STRING ).WriteCharPtr( GetIndentStr() ))
 
#define TAG_OFF_LF(tag)   (TAG_OFF( tag ).WriteCharPtr( SAL_NEWLINE_STRING ).WriteCharPtr( GetIndentStr() ))
 
#define OUT_HR()   TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_horzrule )
 
#define OUT_COMMENT(comment)
 
#define OUT_SP_CSTR_ASS(s)   rStrm.WriteChar( ' ').WriteCharPtr( s ).WriteChar( '=' )
 
#define GLOBSTR(id)   ScResId( id )
 

Functions

static OString lcl_getColGroupString (sal_Int32 nSpan, sal_Int32 nWidth)
 
static void lcl_AddStamp (OUString &rStr, std::u16string_view rName, const css::util::DateTime &rDateTime, const LocaleDataWrapper &rLoc)
 
static OString lcl_makeHTMLColorTriplet (const Color &rColor)
 

Variables

const char sMyBegComment [] = "<!-- "
 
const char sMyEndComment [] = " -->"
 
const char sDisplay [] = "display:"
 
const char sBorder [] = "border:"
 
const char sBackground [] = "background:"
 

Macro Definition Documentation

◆ GLOBSTR

#define GLOBSTR (   id)    ScResId( id )

Definition at line 128 of file htmlexp.cxx.

◆ OUT_COMMENT

#define OUT_COMMENT (   comment)
Value:
.WriteCharPtr( sMyEndComment ).WriteCharPtr( SAL_NEWLINE_STRING ) \
.WriteCharPtr( GetIndentStr() ))
SvStream & WriteCharPtr(const char *pBuf)
#define OUT_STR(str)
Definition: htmlexp.cxx:117
const char sMyEndComment[]
Definition: htmlexp.cxx:91
const char sMyBegComment[]
Definition: htmlexp.cxx:90
void SvStream & rStrm

Definition at line 122 of file htmlexp.cxx.

◆ OUT_HR

#define OUT_HR ( )    TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_horzrule )

Definition at line 121 of file htmlexp.cxx.

◆ OUT_LF

#define OUT_LF ( )    rStrm.WriteCharPtr( SAL_NEWLINE_STRING ).WriteCharPtr( GetIndentStr() )

Definition at line 118 of file htmlexp.cxx.

◆ OUT_SP_CSTR_ASS

#define OUT_SP_CSTR_ASS (   s)    rStrm.WriteChar( ' ').WriteCharPtr( s ).WriteChar( '=' )

Definition at line 126 of file htmlexp.cxx.

◆ OUT_STR

#define OUT_STR (   str)    HTMLOutFuncs::Out_String( rStrm, str, &aNonConvertibleChars )

Definition at line 117 of file htmlexp.cxx.

◆ TAG_OFF

#define TAG_OFF (   tag)    HTMLOutFuncs::Out_AsciiTag( rStrm, tag, false )

Definition at line 116 of file htmlexp.cxx.

◆ TAG_OFF_LF

#define TAG_OFF_LF (   tag)    (TAG_OFF( tag ).WriteCharPtr( SAL_NEWLINE_STRING ).WriteCharPtr( GetIndentStr() ))

Definition at line 120 of file htmlexp.cxx.

◆ TAG_ON

#define TAG_ON (   tag)    HTMLOutFuncs::Out_AsciiTag( rStrm, tag )

Definition at line 115 of file htmlexp.cxx.

◆ TAG_ON_LF

#define TAG_ON_LF (   tag)    (TAG_ON( tag ).WriteCharPtr( SAL_NEWLINE_STRING ).WriteCharPtr( GetIndentStr() ))

Definition at line 119 of file htmlexp.cxx.

Function Documentation

◆ lcl_AddStamp()

static void lcl_AddStamp ( OUString &  rStr,
std::u16string_view  rName,
const css::util::DateTime rDateTime,
const LocaleDataWrapper rLoc 
)
static

◆ lcl_getColGroupString()

static OString lcl_getColGroupString ( sal_Int32  nSpan,
sal_Int32  nWidth 
)
static

◆ lcl_makeHTMLColorTriplet()

static OString lcl_makeHTMLColorTriplet ( const Color rColor)
static

Definition at line 186 of file htmlexp.cxx.

References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().

Referenced by ScHTMLExport::WriteCell().

Variable Documentation

◆ sBackground

const char sBackground[] = "background:"

Definition at line 94 of file htmlexp.cxx.

Referenced by ScHTMLExport::WriteHeader().

◆ sBorder

const char sBorder[] = "border:"

Definition at line 93 of file htmlexp.cxx.

Referenced by ScHTMLExport::WriteHeader().

◆ sDisplay

const char sDisplay[] = "display:"

Definition at line 92 of file htmlexp.cxx.

Referenced by ScHTMLExport::WriteHeader().

◆ sMyBegComment

const char sMyBegComment[] = "<!-- "

Definition at line 90 of file htmlexp.cxx.

◆ sMyEndComment

const char sMyEndComment[] = " -->"

Definition at line 91 of file htmlexp.cxx.