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 <utility>
#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 <conditio.hxx>
#include <colorscale.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.WriteOString( SAL_NEWLINE_STRING ).WriteOString( GetIndentStr() )
 
#define TAG_ON_LF(tag)   (TAG_ON( tag ).WriteOString( SAL_NEWLINE_STRING ).WriteOString( GetIndentStr() ))
 
#define TAG_OFF_LF(tag)   (TAG_OFF( tag ).WriteOString( SAL_NEWLINE_STRING ).WriteOString( GetIndentStr() ))
 
#define OUT_HR()   TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_horzrule )
 
#define OUT_COMMENT(comment)
 
#define OUT_SP_CSTR_ASS(s)   rStrm.WriteChar(' ').WriteOString( 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 131 of file htmlexp.cxx.

◆ OUT_COMMENT

#define OUT_COMMENT (   comment)
Value:
.WriteOString( sMyEndComment ).WriteOString( SAL_NEWLINE_STRING ) \
.WriteOString( GetIndentStr() ))
SvStream & WriteOString(std::string_view rStr)
#define OUT_STR(str)
Definition: htmlexp.cxx:120
const char sMyEndComment[]
Definition: htmlexp.cxx:94
const char sMyBegComment[]
Definition: htmlexp.cxx:93
void SvStream & rStrm

Definition at line 125 of file htmlexp.cxx.

◆ OUT_HR

#define OUT_HR ( )    TAG_ON_LF( OOO_STRING_SVTOOLS_HTML_horzrule )

Definition at line 124 of file htmlexp.cxx.

◆ OUT_LF

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

Definition at line 121 of file htmlexp.cxx.

◆ OUT_SP_CSTR_ASS

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

Definition at line 129 of file htmlexp.cxx.

◆ OUT_STR

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

Definition at line 120 of file htmlexp.cxx.

◆ TAG_OFF

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

Definition at line 119 of file htmlexp.cxx.

◆ TAG_OFF_LF

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

Definition at line 123 of file htmlexp.cxx.

◆ TAG_ON

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

Definition at line 118 of file htmlexp.cxx.

◆ TAG_ON_LF

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

Definition at line 122 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 189 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 97 of file htmlexp.cxx.

Referenced by ScHTMLExport::WriteHeader().

◆ sBorder

const char sBorder[] = "border:"

Definition at line 96 of file htmlexp.cxx.

Referenced by ScHTMLExport::WriteHeader().

◆ sDisplay

const char sDisplay[] = "display:"

Definition at line 95 of file htmlexp.cxx.

Referenced by ScHTMLExport::WriteHeader().

◆ sMyBegComment

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

Definition at line 93 of file htmlexp.cxx.

◆ sMyEndComment

const char sMyEndComment[] = " -->"

Definition at line 94 of file htmlexp.cxx.