LibreOffice Module sc (master) 1
Macros | Variables
xmlstyle.cxx File Reference
#include "xmlstyle.hxx"
#include "xmlexprt.hxx"
#include <rangeutl.hxx>
#include <unonames.hxx>
#include <o3tl/safeint.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmltypes.hxx>
#include <xmloff/families.hxx>
#include <xmloff/contextid.hxx>
#include <xmloff/txtprmap.hxx>
#include <xmloff/XMLComplexColorHandler.hxx>
#include <xmloff/XMLComplexColorExport.hxx>
#include <docmodel/color/ComplexColor.hxx>
#include <docmodel/uno/UnoComplexColor.hxx>
#include <sax/tools/converter.hxx>
#include <com/sun/star/util/CellProtection.hpp>
#include <com/sun/star/table/CellOrientation.hpp>
#include <com/sun/star/table/CellVertJustify2.hpp>
#include <com/sun/star/table/CellHoriJustify.hpp>
#include <com/sun/star/table/CellJustifyMethod.hpp>
#include <com/sun/star/table/BorderLine2.hpp>
#include <com/sun/star/util/XComplexColor.hpp>
#include <com/sun/star/sheet/XSheetConditionalEntry.hpp>
#include <com/sun/star/sheet/XSheetCondition.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <comphelper/extract.hxx>
#include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h>
Include dependency graph for xmlstyle.cxx:

Go to the source code of this file.

Macros

#define MAP(name, prefix, token, type, context)   { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_010, false }
 
#define MAP_ODF13(name, prefix, token, type, context)   { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_013, false }
 
#define MAP_EXT(name, prefix, token, type, context)   { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, false }
 
#define MAP_EXT_I(name, prefix, token, type, context)   { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, true }
 
#define MAP_END()   { nullptr }
 

Variables

const XMLPropertyMapEntry aXMLScCellStylesProperties []
 
const XMLPropertyMapEntry aXMLScColumnStylesProperties []
 
const XMLPropertyMapEntry aXMLScRowStylesImportProperties []
 
const XMLPropertyMapEntry aXMLScRowStylesProperties []
 
const XMLPropertyMapEntry aXMLScFromXLSRowStylesProperties []
 
const XMLPropertyMapEntry aXMLScTableStylesImportProperties []
 
const XMLPropertyMapEntry aXMLScTableStylesProperties []
 

Macro Definition Documentation

◆ MAP

#define MAP (   name,
  prefix,
  token,
  type,
  context 
)    { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_010, false }

Definition at line 57 of file xmlstyle.cxx.

◆ MAP_END

#define MAP_END ( )    { nullptr }

Definition at line 63 of file xmlstyle.cxx.

◆ MAP_EXT

#define MAP_EXT (   name,
  prefix,
  token,
  type,
  context 
)    { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, false }

Definition at line 60 of file xmlstyle.cxx.

◆ MAP_EXT_I

#define MAP_EXT_I (   name,
  prefix,
  token,
  type,
  context 
)    { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, true }

Definition at line 62 of file xmlstyle.cxx.

◆ MAP_ODF13

#define MAP_ODF13 (   name,
  prefix,
  token,
  type,
  context 
)    { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_013, false }

Definition at line 58 of file xmlstyle.cxx.

Variable Documentation

◆ aXMLScCellStylesProperties

const XMLPropertyMapEntry aXMLScCellStylesProperties[]

Definition at line 65 of file xmlstyle.cxx.

Referenced by ScXMLExport::ScXMLExport(), and ScXMLImport::ScXMLImport().

◆ aXMLScColumnStylesProperties

const XMLPropertyMapEntry aXMLScColumnStylesProperties[]
Initial value:
=
{
MAP( SC_UNONAME_MANPAGE, XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_COLUMN|XML_SC_TYPE_BREAKBEFORE, 0),
MAP( SC_UNONAME_CELLVIS, XML_NAMESPACE_TABLE, XML_DISPLAY, XML_TYPE_PROP_TABLE_COLUMN|XML_SC_TYPE_EQUAL|MID_FLAG_SPECIAL_ITEM, CTF_SC_ISVISIBLE ),
MAP( SC_UNONAME_CELLWID, XML_NAMESPACE_STYLE, XML_COLUMN_WIDTH, XML_TYPE_PROP_TABLE_COLUMN|XML_TYPE_MEASURE, 0 ),
}
constexpr OUStringLiteral SC_UNONAME_CELLWID
Definition: unonames.hxx:173
constexpr OUStringLiteral SC_UNONAME_MANPAGE
Definition: unonames.hxx:176
constexpr OUStringLiteral SC_UNONAME_CELLVIS
Definition: unonames.hxx:174
#define MAP(name, prefix, token, type, context)
Definition: xmlstyle.cxx:57
#define XML_SC_TYPE_BREAKBEFORE
Definition: xmlstyle.hxx:98
#define XML_SC_TYPE_EQUAL
Definition: xmlstyle.hxx:55
#define CTF_SC_ISVISIBLE
Definition: xmlstyle.hxx:92

Definition at line 121 of file xmlstyle.cxx.

Referenced by ScXMLExport::ScXMLExport(), and ScXMLImport::ScXMLImport().

◆ aXMLScFromXLSRowStylesProperties

const XMLPropertyMapEntry aXMLScFromXLSRowStylesProperties[]
Initial value:
=
{
MAP( SC_UNONAME_CELLHGT, XML_NAMESPACE_STYLE, XML_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_MEASURE, CTF_SC_ROWHEIGHT),
MAP( SC_UNONAME_MANPAGE, XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_ROW|XML_SC_TYPE_BREAKBEFORE, CTF_SC_ROWBREAKBEFORE),
MAP( SC_UNONAME_OHEIGHT, XML_NAMESPACE_STYLE, XML_USE_OPTIMAL_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_BOOL_FALSE, CTF_SC_ROWOPTIMALHEIGHT),
}
constexpr OUStringLiteral SC_UNONAME_CELLHGT
Definition: unonames.hxx:172
constexpr OUStringLiteral SC_UNONAME_OHEIGHT
Definition: unonames.hxx:178
#define CTF_SC_ROWHEIGHT
Definition: xmlstyle.hxx:89
#define CTF_SC_ROWOPTIMALHEIGHT
Definition: xmlstyle.hxx:90
#define CTF_SC_ROWBREAKBEFORE
Definition: xmlstyle.hxx:91

Definition at line 153 of file xmlstyle.cxx.

Referenced by ScXMLExport::exportDoc().

◆ aXMLScRowStylesImportProperties

const XMLPropertyMapEntry aXMLScRowStylesImportProperties[]
Initial value:
=
{
MAP( SC_UNONAME_CELLBACK, XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP( SC_UNONAME_CELLHGT, XML_NAMESPACE_STYLE, XML_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_MEASURE, CTF_SC_ROWHEIGHT),
MAP( SC_UNONAME_CELLTRAN, XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_ISTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP_EXT( SC_UNONAME_CELL_BACKGROUND_COMPLEX_COLOR, XML_NAMESPACE_LO_EXT, XML_BACKGROUND_COMPLEX_COLOR, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_COMPLEX_COLOR, CTF_COMPLEX_COLOR ),
MAP( SC_UNONAME_MANPAGE, XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_ROW|XML_SC_TYPE_BREAKBEFORE, CTF_SC_ROWBREAKBEFORE),
MAP( SC_UNONAME_OHEIGHT, XML_NAMESPACE_STYLE, XML_USE_OPTIMAL_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_BOOL, CTF_SC_ROWOPTIMALHEIGHT),
}
constexpr OUStringLiteral SC_UNONAME_CELL_BACKGROUND_COMPLEX_COLOR
Definition: unonames.hxx:101
constexpr OUStringLiteral SC_UNONAME_CELLTRAN
Definition: unonames.hxx:102
constexpr OUStringLiteral SC_UNONAME_CELLBACK
Definition: unonames.hxx:100
#define MAP_EXT(name, prefix, token, type, context)
Definition: xmlstyle.cxx:60

Definition at line 129 of file xmlstyle.cxx.

Referenced by ScXMLImport::ScXMLImport().

◆ aXMLScRowStylesProperties

const XMLPropertyMapEntry aXMLScRowStylesProperties[]
Initial value:
=
{
MAP( SC_UNONAME_CELLHGT, XML_NAMESPACE_STYLE, XML_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_MEASURE, CTF_SC_ROWHEIGHT),
MAP( SC_UNONAME_MANPAGE, XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_ROW|XML_SC_TYPE_BREAKBEFORE, CTF_SC_ROWBREAKBEFORE),
MAP( SC_UNONAME_OHEIGHT, XML_NAMESPACE_STYLE, XML_USE_OPTIMAL_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_BOOL, CTF_SC_ROWOPTIMALHEIGHT),
}

Definition at line 145 of file xmlstyle.cxx.

Referenced by ScXMLExport::ScXMLExport().

◆ aXMLScTableStylesImportProperties

const XMLPropertyMapEntry aXMLScTableStylesImportProperties[]
Initial value:
=
{
MAP( SC_UNONAME_CELLBACK, XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP( SC_UNONAME_CELLTRAN, XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_ISTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP_EXT( SC_UNONAME_CELL_BACKGROUND_COMPLEX_COLOR, XML_NAMESPACE_LO_EXT, XML_BACKGROUND_COMPLEX_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COMPLEX_COLOR, CTF_COMPLEX_COLOR ),
MAP( SC_UNONAME_CELLVIS, XML_NAMESPACE_TABLE, XML_DISPLAY, XML_TYPE_PROP_TABLE|XML_TYPE_BOOL, 0 ),
MAP( SC_UNONAME_PAGESTL, XML_NAMESPACE_STYLE, XML_MASTER_PAGE_NAME, XML_TYPE_PROP_TABLE|XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM, CTF_SC_MASTERPAGENAME ),
MAP( SC_UNONAME_TABLAYOUT, XML_NAMESPACE_STYLE, XML_WRITING_MODE, XML_TYPE_PROP_TABLE|XML_TYPE_TEXT_WRITING_MODE, 0 ),
MAP_ODF13( SC_UNONAME_TABCOLOR, XML_NAMESPACE_TABLE, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
MAP_ODF13( SC_UNONAME_TABCOLOR, XML_NAMESPACE_TABLE_EXT, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
}
constexpr OUStringLiteral SC_UNONAME_TABCOLOR
Definition: unonames.hxx:191
constexpr OUStringLiteral SC_UNONAME_TABLAYOUT
Definition: unonames.hxx:189
constexpr OUStringLiteral SC_UNONAME_PAGESTL
Definition: unonames.hxx:180
#define MAP_ODF13(name, prefix, token, type, context)
Definition: xmlstyle.cxx:58
#define CTF_SC_MASTERPAGENAME
Definition: xmlstyle.hxx:94

Definition at line 161 of file xmlstyle.cxx.

Referenced by ScXMLImport::ScXMLImport().

◆ aXMLScTableStylesProperties

const XMLPropertyMapEntry aXMLScTableStylesProperties[]
Initial value:
=
{
MAP( SC_UNONAME_CELLVIS, XML_NAMESPACE_TABLE, XML_DISPLAY, XML_TYPE_PROP_TABLE|XML_TYPE_BOOL, 0 ),
MAP( SC_UNONAME_PAGESTL, XML_NAMESPACE_STYLE, XML_MASTER_PAGE_NAME, XML_TYPE_PROP_TABLE|XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM, CTF_SC_MASTERPAGENAME ),
MAP( SC_UNONAME_TABLAYOUT, XML_NAMESPACE_STYLE, XML_WRITING_MODE, XML_TYPE_PROP_TABLE|XML_TYPE_TEXT_WRITING_MODE, 0 ),
MAP_ODF13( SC_UNONAME_TABCOLOR, XML_NAMESPACE_TABLE, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
MAP_ODF13( SC_UNONAME_TABCOLOR, XML_NAMESPACE_TABLE_EXT, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
}

Definition at line 179 of file xmlstyle.cxx.

Referenced by ScXMLExport::ScXMLExport().