LibreOffice Module sc (master)  1
Macros | Functions | Variables
xlstyle.cxx File Reference
#include <xlstyle.hxx>
#include <com/sun/star/awt/FontFamily.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/awt/FontStrikeout.hpp>
#include <com/sun/star/awt/FontUnderline.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/font.hxx>
#include <sal/macros.h>
#include <sal/log.hxx>
#include <rtl/tencinfo.h>
#include <svtools/colorcfg.hxx>
#include <vcl/unohelp.hxx>
#include <editeng/svxfont.hxx>
#include <global.hxx>
#include <xlroot.hxx>
#include <xltools.hxx>
Include dependency graph for xlstyle.cxx:

Go to the source code of this file.

Macros

#define EXC_PALETTE_EGA_COLORS_LIGHT   Color(0x000000), Color(0xFFFFFF), Color(0xFF0000), Color(0x00FF00), Color(0x0000FF), Color(0xFFFF00), Color(0xFF00FF), Color(0x00FFFF)
 Standard EGA colors, bright. More...
 
#define EXC_PALETTE_EGA_COLORS_DARK   Color(0x800000), Color(0x008000), Color(0x000080), Color(0x808000), Color(0x800080), Color(0x008080), Color(0xC0C0C0), Color(0x808080)
 Standard EGA colors, dark. More...
 
#define EXC_NUMFMT_STRING(nXclNumFmt, pcUtf8)   { nXclNumFmt, pcUtf8, NF_NUMBER_STANDARD, 0 }
 Defines a literal Excel built-in number format. More...
 
#define EXC_NUMFMT_OFFSET(nXclNumFmt, eOffset)   { nXclNumFmt, nullptr, eOffset, 0 }
 Defines an Excel built-in number format that maps to an own built-in format. More...
 
#define EXC_NUMFMT_REUSE(nXclNumFmt, nXclReuse)   { nXclNumFmt, nullptr, PRV_NF_INDEX_REUSE, nXclReuse }
 Defines an Excel built-in number format that is the same as the specified. More...
 
#define EXC_NUMFMT_ENDTABLE()   { EXC_FORMAT_NOTFOUND, nullptr, NF_NUMBER_STANDARD, 0 }
 Terminates an Excel built-in number format table. More...
 
#define UTF8_BAHT   "\340\270\277"
 
#define UTF8_EURO   "\342\202\254"
 
#define UTF8_POUND_UK   "\302\243"
 
#define UTF8_SHEQEL   "\342\202\252"
 
#define UTF8_WON   "\357\277\246"
 
#define UTF8_YEN_CS   "\357\277\245"
 
#define UTF8_YEN_JP   "\302\245"
 
#define UTF8_CJ_YEAR   "\345\271\264"
 
#define UTF8_CJ_MON   "\346\234\210"
 
#define UTF8_CJ_DAY   "\346\227\245"
 
#define UTF8_CJ_HOUR   "\346\231\202"
 
#define UTF8_CJ_MIN   "\345\210\206"
 
#define UTF8_CJ_SEC   "\347\247\222"
 
#define UTF8_CS_HOUR   "\346\227\266"
 
#define UTF8_KO_YEAR   "\353\205\204"
 
#define UTF8_KO_MON   "\354\233\224"
 
#define UTF8_KO_DAY   "\354\235\274"
 
#define UTF8_KO_HOUR   "\354\213\234"
 
#define UTF8_KO_MIN   "\353\266\204"
 
#define UTF8_KO_SEC   "\354\264\210"
 

Functions

bool operator== (const XclFontData &rLeft, const XclFontData &rRight)
 
bool operator== (const XclCellProt &rLeft, const XclCellProt &rRight)
 
bool operator== (const XclCellAlign &rLeft, const XclCellAlign &rRight)
 
bool operator== (const XclCellBorder &rLeft, const XclCellBorder &rRight)
 
bool operator== (const XclCellArea &rLeft, const XclCellArea &rRight)
 

Variables

const Color spnDefColorTable2 []
 Default color table for BIFF2. More...
 
const Color spnDefColorTable3 []
 Default color table for BIFF3/BIFF4. More...
 
const Color spnDefColorTable5 []
 Default color table for BIFF5/BIFF7. More...
 
const Color spnDefColorTable8 []
 Default color table for BIFF8. More...
 

Macro Definition Documentation

#define EXC_NUMFMT_ENDTABLE ( )    { EXC_FORMAT_NOTFOUND, nullptr, NF_NUMBER_STANDARD, 0 }

Terminates an Excel built-in number format table.

Definition at line 792 of file xlstyle.cxx.

#define EXC_NUMFMT_OFFSET (   nXclNumFmt,
  eOffset 
)    { nXclNumFmt, nullptr, eOffset, 0 }

Defines an Excel built-in number format that maps to an own built-in format.

Definition at line 784 of file xlstyle.cxx.

#define EXC_NUMFMT_REUSE (   nXclNumFmt,
  nXclReuse 
)    { nXclNumFmt, nullptr, PRV_NF_INDEX_REUSE, nXclReuse }

Defines an Excel built-in number format that is the same as the specified.

Definition at line 788 of file xlstyle.cxx.

#define EXC_NUMFMT_STRING (   nXclNumFmt,
  pcUtf8 
)    { nXclNumFmt, pcUtf8, NF_NUMBER_STANDARD, 0 }

Defines a literal Excel built-in number format.

Definition at line 780 of file xlstyle.cxx.

#define EXC_PALETTE_EGA_COLORS_DARK   Color(0x800000), Color(0x008000), Color(0x000080), Color(0x808000), Color(0x800080), Color(0x008080), Color(0xC0C0C0), Color(0x808080)

Standard EGA colors, dark.

Definition at line 44 of file xlstyle.cxx.

#define EXC_PALETTE_EGA_COLORS_LIGHT   Color(0x000000), Color(0xFFFFFF), Color(0xFF0000), Color(0x00FF00), Color(0x0000FF), Color(0xFFFF00), Color(0xFF00FF), Color(0x00FFFF)

Standard EGA colors, bright.

Definition at line 41 of file xlstyle.cxx.

#define UTF8_BAHT   "\340\270\277"

Definition at line 796 of file xlstyle.cxx.

#define UTF8_CJ_DAY   "\346\227\245"

Definition at line 807 of file xlstyle.cxx.

#define UTF8_CJ_HOUR   "\346\231\202"

Definition at line 808 of file xlstyle.cxx.

#define UTF8_CJ_MIN   "\345\210\206"

Definition at line 809 of file xlstyle.cxx.

#define UTF8_CJ_MON   "\346\234\210"

Definition at line 806 of file xlstyle.cxx.

#define UTF8_CJ_SEC   "\347\247\222"

Definition at line 810 of file xlstyle.cxx.

#define UTF8_CJ_YEAR   "\345\271\264"

Definition at line 805 of file xlstyle.cxx.

#define UTF8_CS_HOUR   "\346\227\266"

Definition at line 813 of file xlstyle.cxx.

#define UTF8_EURO   "\342\202\254"

Definition at line 797 of file xlstyle.cxx.

#define UTF8_KO_DAY   "\354\235\274"

Definition at line 818 of file xlstyle.cxx.

#define UTF8_KO_HOUR   "\354\213\234"

Definition at line 819 of file xlstyle.cxx.

#define UTF8_KO_MIN   "\353\266\204"

Definition at line 820 of file xlstyle.cxx.

#define UTF8_KO_MON   "\354\233\224"

Definition at line 817 of file xlstyle.cxx.

#define UTF8_KO_SEC   "\354\264\210"

Definition at line 821 of file xlstyle.cxx.

#define UTF8_KO_YEAR   "\353\205\204"

Definition at line 816 of file xlstyle.cxx.

#define UTF8_POUND_UK   "\302\243"

Definition at line 798 of file xlstyle.cxx.

#define UTF8_SHEQEL   "\342\202\252"

Definition at line 799 of file xlstyle.cxx.

#define UTF8_WON   "\357\277\246"

Definition at line 800 of file xlstyle.cxx.

#define UTF8_YEN_CS   "\357\277\245"

Definition at line 801 of file xlstyle.cxx.

#define UTF8_YEN_JP   "\302\245"

Definition at line 802 of file xlstyle.cxx.

Function Documentation

bool operator== ( const XclFontData rLeft,
const XclFontData rRight 
)
bool operator== ( const XclCellProt rLeft,
const XclCellProt rRight 
)

Definition at line 1539 of file xlstyle.cxx.

References XclCellProt::mbHidden, and XclCellProt::mbLocked.

bool operator== ( const XclCellAlign rLeft,
const XclCellAlign rRight 
)
bool operator== ( const XclCellBorder rLeft,
const XclCellBorder rRight 
)
bool operator== ( const XclCellArea rLeft,
const XclCellArea rRight 
)

Variable Documentation

const Color spnDefColorTable2[]
Initial value:
=
{
}
#define EXC_PALETTE_EGA_COLORS_LIGHT
Standard EGA colors, bright.
Definition: xlstyle.cxx:41

Default color table for BIFF2.

Definition at line 48 of file xlstyle.cxx.

Referenced by XclDefaultPalette::XclDefaultPalette().

const Color spnDefColorTable3[]
Initial value:
=
{
}
#define EXC_PALETTE_EGA_COLORS_DARK
Standard EGA colors, dark.
Definition: xlstyle.cxx:44
#define EXC_PALETTE_EGA_COLORS_LIGHT
Standard EGA colors, bright.
Definition: xlstyle.cxx:41

Default color table for BIFF3/BIFF4.

Definition at line 54 of file xlstyle.cxx.

Referenced by XclDefaultPalette::XclDefaultPalette().

const Color spnDefColorTable5[]
Initial value:
=
{
Color(0x8080FF), Color(0x802060), Color(0xFFFFC0), Color(0xA0E0E0), Color(0x600080), Color(0xFF8080), Color(0x0080C0), Color(0xC0C0FF),
Color(0x000080), Color(0xFF00FF), Color(0xFFFF00), Color(0x00FFFF), Color(0x800080), Color(0x800000), Color(0x008080), Color(0x0000FF),
Color(0x00CFFF), Color(0x69FFFF), Color(0xE0FFE0), Color(0xFFFF80), Color(0xA6CAF0), Color(0xDD9CB3), Color(0xB38FEE), Color(0xE3E3E3),
Color(0x2A6FF9), Color(0x3FB8CD), Color(0x488436), Color(0x958C41), Color(0x8E5E42), Color(0xA0627A), Color(0x624FAC), Color(0x969696),
Color(0x1D2FBE), Color(0x286676), Color(0x004500), Color(0x453E01), Color(0x6A2813), Color(0x85396A), Color(0x4A3285), Color(0x424242)
}
#define EXC_PALETTE_EGA_COLORS_DARK
Standard EGA colors, dark.
Definition: xlstyle.cxx:44
#define EXC_PALETTE_EGA_COLORS_LIGHT
Standard EGA colors, bright.
Definition: xlstyle.cxx:41

Default color table for BIFF5/BIFF7.

Definition at line 62 of file xlstyle.cxx.

Referenced by XclDefaultPalette::XclDefaultPalette().

const Color spnDefColorTable8[]
Initial value:
=
{
Color(0x9999FF), Color(0x993366), Color(0xFFFFCC), Color(0xCCFFFF), Color(0x660066), Color(0xFF8080), Color(0x0066CC), Color(0xCCCCFF),
Color(0x000080), Color(0xFF00FF), Color(0xFFFF00), Color(0x00FFFF), Color(0x800080), Color(0x800000), Color(0x008080), Color(0x0000FF),
Color(0x00CCFF), Color(0xCCFFFF), Color(0xCCFFCC), Color(0xFFFF99), Color(0x99CCFF), Color(0xFF99CC), Color(0xCC99FF), Color(0xFFCC99),
Color(0x3366FF), Color(0x33CCCC), Color(0x99CC00), Color(0xFFCC00), Color(0xFF9900), Color(0xFF6600), Color(0x666699), Color(0x969696),
Color(0x003366), Color(0x339966), Color(0x003300), Color(0x333300), Color(0x993300), Color(0x993366), Color(0x333399), Color(0x333333)
}
#define EXC_PALETTE_EGA_COLORS_DARK
Standard EGA colors, dark.
Definition: xlstyle.cxx:44
#define EXC_PALETTE_EGA_COLORS_LIGHT
Standard EGA colors, bright.
Definition: xlstyle.cxx:41

Default color table for BIFF8.

Definition at line 75 of file xlstyle.cxx.

Referenced by XclDefaultPalette::XclDefaultPalette().