LibreOffice Module sc (master) 1
Functions | Variables
xltools.cxx File Reference
#include <algorithm>
#include <math.h>
#include <string_view>
#include <o3tl/unit_conversion.hxx>
#include <sal/mathconf.h>
#include <sal/macros.h>
#include <sal/log.hxx>
#include <tools/solar.h>
#include <o3tl/string_view.hxx>
#include <unotools/fontdefs.hxx>
#include <filter/msfilter/msvbahelper.hxx>
#include <xestream.hxx>
#include <formula/errorcodes.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <xlstyle.hxx>
#include <xlname.hxx>
#include <xistream.hxx>
#include <xltools.hxx>
Include dependency graph for xltools.cxx:

Go to the source code of this file.

Functions

bool operator== (const XclGuid &rCmp1, const XclGuid &rCmp2)
 
XclImpStreamoperator>> (XclImpStream &rStrm, XclGuid &rGuid)
 
XclExpStreamoperator<< (XclExpStream &rStrm, const XclGuid &rGuid)
 
template<typename N >
static N to (double f)
 
XclImpStreamoperator>> (XclImpStream &rStrm, Color &rColor)
 Reads a color from the passed stream. More...
 
XclExpStreamoperator<< (XclExpStream &rStrm, const Color &rColor)
 Reads a color to the passed stream. More...
 

Variables

const char maDefNamePrefix [] = "Excel_BuiltIn_"
 
const char maDefNamePrefixXml [] = "_xlnm."
 Prefix for built-in defined names. More...
 
const char *const ppcDefNames []
 Prefix for built-in defined names for OOX. More...
 
const char maStyleNamePrefix1 [] = "Excel_BuiltIn_"
 
const char maStyleNamePrefix2 [] = "Excel Built-in "
 Prefix for built-in cell style names. More...
 
const char *const ppcStyleNames []
 Prefix for built-in cell style names from OOX filter. More...
 
const char maCFStyleNamePrefix1 [] = "Excel_CondFormat_"
 
const char maCFStyleNamePrefix2 [] = "ConditionalStyle_"
 Prefix for cond. formatting style names. More...
 
const char maCFStyleNamePrefix3 [] = "ExtConditionalStyle_"
 Prefix for cond. formatting style names from OOX filter. More...
 
const char maSbMacroPrefix [] = "vnd.sun.star.script:"
 
const char maSbMacroSuffix [] = "?language=Basic&location=document"
 Prefix for StarBasic macros. More...
 

Function Documentation

◆ operator<<() [1/2]

XclExpStream & operator<< ( XclExpStream rStrm,
const Color rColor 
)

Reads a color to the passed stream.

@descr The color has the format (all values 8-bit): Red, Green, Blue, 0.

Definition at line 739 of file xltools.cxx.

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

◆ operator<<() [2/2]

XclExpStream & operator<< ( XclExpStream rStrm,
const XclGuid rGuid 
)

Definition at line 78 of file xltools.cxx.

References XclGuid::mpnData, and rStrm.

◆ operator==()

bool operator== ( const XclGuid rCmp1,
const XclGuid rCmp2 
)

Definition at line 67 of file xltools.cxx.

References XclGuid::mpnData.

◆ operator>>() [1/2]

XclImpStream & operator>> ( XclImpStream rStrm,
Color rColor 
)

Reads a color from the passed stream.

@descr The color has the format (all values 8-bit): Red, Green, Blue, 0.

Definition at line 729 of file xltools.cxx.

References rStrm.

◆ operator>>() [2/2]

XclImpStream & operator>> ( XclImpStream rStrm,
XclGuid rGuid 
)

Definition at line 72 of file xltools.cxx.

References XclGuid::mpnData, and rStrm.

◆ to()

template<typename N >
static N to ( double  f)
static

Variable Documentation

◆ maCFStyleNamePrefix1

const char maCFStyleNamePrefix1[] = "Excel_CondFormat_"

◆ maCFStyleNamePrefix2

const char maCFStyleNamePrefix2[] = "ConditionalStyle_"

Prefix for cond. formatting style names.

Definition at line 659 of file xltools.cxx.

Referenced by XclTools::IsCondFormatStyleName().

◆ maCFStyleNamePrefix3

const char maCFStyleNamePrefix3[] = "ExtConditionalStyle_"

Prefix for cond. formatting style names from OOX filter.

Definition at line 660 of file xltools.cxx.

Referenced by XclTools::IsCondFormatStyleName().

◆ maDefNamePrefix

const char maDefNamePrefix[] = "Excel_BuiltIn_"

Definition at line 463 of file xltools.cxx.

Referenced by XclTools::GetBuiltInDefName(), and XclTools::GetBuiltInDefNameIndex().

◆ maDefNamePrefixXml

const char maDefNamePrefixXml[] = "_xlnm."

Prefix for built-in defined names.

Definition at line 464 of file xltools.cxx.

Referenced by XclTools::GetBuiltInDefNameIndex(), and XclTools::GetBuiltInDefNameXml().

◆ maSbMacroPrefix

const char maSbMacroPrefix[] = "vnd.sun.star.script:"

Definition at line 702 of file xltools.cxx.

Referenced by XclTools::GetXclMacroName().

◆ maSbMacroSuffix

const char maSbMacroSuffix[] = "?language=Basic&location=document"

Prefix for StarBasic macros.

Definition at line 703 of file xltools.cxx.

Referenced by XclTools::GetXclMacroName().

◆ maStyleNamePrefix1

const char maStyleNamePrefix1[] = "Excel_BuiltIn_"

Definition at line 533 of file xltools.cxx.

Referenced by XclTools::GetBuiltInStyleName(), and XclTools::IsBuiltInStyleName().

◆ maStyleNamePrefix2

const char maStyleNamePrefix2[] = "Excel Built-in "

Prefix for built-in cell style names.

Definition at line 534 of file xltools.cxx.

Referenced by XclTools::IsBuiltInStyleName().

◆ ppcDefNames

const char* const ppcDefNames[]
Initial value:
=
{
"Consolidate_Area",
"Auto_Open",
"Auto_Close",
"Extract",
"Database",
"Criteria",
"Print_Area",
"Print_Titles",
"Recorder",
"Data_Form",
"Auto_Activate",
"Auto_Deactivate",
"Sheet_Title",
"_FilterDatabase"
}

Prefix for built-in defined names for OOX.

Definition at line 466 of file xltools.cxx.

Referenced by XclTools::GetXclBuiltInDefName().

◆ ppcStyleNames

const char* const ppcStyleNames[]
Initial value:
=
{
"",
"RowLevel_",
"ColumnLevel_",
"Comma",
"Currency",
"Percent",
"Comma_0",
"Currency_0",
"Hyperlink",
"Followed_Hyperlink"
}

Prefix for built-in cell style names from OOX filter.

Definition at line 536 of file xltools.cxx.

Referenced by XclTools::GetBuiltInStyleName(), and XclTools::IsBuiltInStyleName().