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/xmlnmspe.hxx>
#include <xmloff/xmltypes.hxx>
#include <xmloff/families.hxx>
#include <xmloff/contextid.hxx>
#include <xmloff/txtprmap.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/sheet/XSheetConditionalEntry.hpp>
#include <com/sun/star/sheet/XSheetCondition.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertyState.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, sizeof(name)-1, prefix, token, type, context, SvtSaveOptions::ODFSVER_010, false }
 
#define MAP_ODF13(name, prefix, token, type, context)   { name, sizeof(name)-1, prefix, token, type, context, SvtSaveOptions::ODFSVER_013, false }
 
#define MAP_EXT(name, prefix, token, type, context)   { name, sizeof(name)-1, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, false }
 
#define MAP_EXT_I(name, prefix, token, type, context)   { name, sizeof(name)-1, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, true }
 
#define MAP_END()    { nullptr, 0, 0, XML_TOKEN_INVALID, 0, 0, SvtSaveOptions::ODFSVER_010, false }
 

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

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

Definition at line 53 of file xmlstyle.cxx.

#define MAP_END ( )    { nullptr, 0, 0, XML_TOKEN_INVALID, 0, 0, SvtSaveOptions::ODFSVER_010, false }

Definition at line 59 of file xmlstyle.cxx.

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

Definition at line 56 of file xmlstyle.cxx.

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

Definition at line 58 of file xmlstyle.cxx.

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

Definition at line 54 of file xmlstyle.cxx.

Variable Documentation

const XMLPropertyMapEntry aXMLScCellStylesProperties[]

Definition at line 61 of file xmlstyle.cxx.

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

const XMLPropertyMapEntry aXMLScColumnStylesProperties[]
Initial value:
=
{
MAP( "IsManualPageBreak", XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_COLUMN|XML_SC_TYPE_BREAKBEFORE, 0),
MAP( "IsVisible", XML_NAMESPACE_TABLE, XML_DISPLAY, XML_TYPE_PROP_TABLE_COLUMN|XML_SC_TYPE_EQUAL|MID_FLAG_SPECIAL_ITEM, CTF_SC_ISVISIBLE ),
MAP( "Width", XML_NAMESPACE_STYLE, XML_COLUMN_WIDTH, XML_TYPE_PROP_TABLE_COLUMN|XML_TYPE_MEASURE, 0 ),
}
#define XML_SC_TYPE_BREAKBEFORE
Definition: xmlstyle.hxx:99
#define MAP(name, prefix, token, type, context)
Definition: xmlstyle.cxx:53
#define CTF_SC_ISVISIBLE
Definition: xmlstyle.hxx:93
#define XML_SC_TYPE_EQUAL
Definition: xmlstyle.hxx:56

Definition at line 116 of file xmlstyle.cxx.

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

const XMLPropertyMapEntry aXMLScFromXLSRowStylesProperties[]
Initial value:
=
{
MAP( "Height", XML_NAMESPACE_STYLE, XML_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_MEASURE, CTF_SC_ROWHEIGHT),
MAP( "IsManualPageBreak", XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_ROW|XML_SC_TYPE_BREAKBEFORE, CTF_SC_ROWBREAKBEFORE),
MAP( "OptimalHeight", XML_NAMESPACE_STYLE, XML_USE_OPTIMAL_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_BOOL_FALSE, CTF_SC_ROWOPTIMALHEIGHT),
}
#define CTF_SC_ROWHEIGHT
Definition: xmlstyle.hxx:90
#define XML_SC_TYPE_BREAKBEFORE
Definition: xmlstyle.hxx:99
#define MAP(name, prefix, token, type, context)
Definition: xmlstyle.cxx:53
#define CTF_SC_ROWBREAKBEFORE
Definition: xmlstyle.hxx:92
#define CTF_SC_ROWOPTIMALHEIGHT
Definition: xmlstyle.hxx:91

Definition at line 147 of file xmlstyle.cxx.

Referenced by ScXMLExport::exportDoc().

const XMLPropertyMapEntry aXMLScRowStylesImportProperties[]
Initial value:
=
{
MAP( "CellBackColor", XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP( "Height", XML_NAMESPACE_STYLE, XML_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_MEASURE, CTF_SC_ROWHEIGHT),
MAP( "IsCellBackgroundTransparent", XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_ISTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP( "IsManualPageBreak", XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_ROW|XML_SC_TYPE_BREAKBEFORE, CTF_SC_ROWBREAKBEFORE),
MAP( "OptimalHeight", XML_NAMESPACE_STYLE, XML_USE_OPTIMAL_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_BOOL, CTF_SC_ROWOPTIMALHEIGHT),
}
#define CTF_SC_ROWHEIGHT
Definition: xmlstyle.hxx:90
#define XML_SC_TYPE_BREAKBEFORE
Definition: xmlstyle.hxx:99
#define MAP(name, prefix, token, type, context)
Definition: xmlstyle.cxx:53
#define CTF_SC_ROWBREAKBEFORE
Definition: xmlstyle.hxx:92
#define CTF_SC_ROWOPTIMALHEIGHT
Definition: xmlstyle.hxx:91

Definition at line 124 of file xmlstyle.cxx.

Referenced by ScXMLImport::ScXMLImport().

const XMLPropertyMapEntry aXMLScRowStylesProperties[]
Initial value:
=
{
MAP( "Height", XML_NAMESPACE_STYLE, XML_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_MEASURE, CTF_SC_ROWHEIGHT),
MAP( "IsManualPageBreak", XML_NAMESPACE_FO, XML_BREAK_BEFORE, XML_TYPE_PROP_TABLE_ROW|XML_SC_TYPE_BREAKBEFORE, CTF_SC_ROWBREAKBEFORE),
MAP( "OptimalHeight", XML_NAMESPACE_STYLE, XML_USE_OPTIMAL_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW|XML_TYPE_BOOL, CTF_SC_ROWOPTIMALHEIGHT),
}
#define CTF_SC_ROWHEIGHT
Definition: xmlstyle.hxx:90
#define XML_SC_TYPE_BREAKBEFORE
Definition: xmlstyle.hxx:99
#define MAP(name, prefix, token, type, context)
Definition: xmlstyle.cxx:53
#define CTF_SC_ROWBREAKBEFORE
Definition: xmlstyle.hxx:92
#define CTF_SC_ROWOPTIMALHEIGHT
Definition: xmlstyle.hxx:91

Definition at line 139 of file xmlstyle.cxx.

Referenced by ScXMLExport::ScXMLExport().

const XMLPropertyMapEntry aXMLScTableStylesImportProperties[]
Initial value:
=
{
MAP( "CellBackColor", XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP( "IsCellBackgroundTransparent", XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_ISTRANSPARENT|MID_FLAG_MULTI_PROPERTY|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
MAP( "IsVisible", XML_NAMESPACE_TABLE, XML_DISPLAY, XML_TYPE_PROP_TABLE|XML_TYPE_BOOL, 0 ),
MAP( "PageStyle", XML_NAMESPACE_STYLE, XML_MASTER_PAGE_NAME, XML_TYPE_PROP_TABLE|XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM, CTF_SC_MASTERPAGENAME ),
MAP( "TableLayout", XML_NAMESPACE_STYLE, XML_WRITING_MODE, XML_TYPE_PROP_TABLE|XML_TYPE_TEXT_WRITING_MODE, 0 ),
MAP_ODF13( "TabColor", XML_NAMESPACE_TABLE, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
MAP_ODF13( "TabColor", XML_NAMESPACE_TABLE_EXT, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
}
#define MAP_ODF13(name, prefix, token, type, context)
Definition: xmlstyle.cxx:54
#define CTF_SC_MASTERPAGENAME
Definition: xmlstyle.hxx:95
#define MAP(name, prefix, token, type, context)
Definition: xmlstyle.cxx:53

Definition at line 155 of file xmlstyle.cxx.

Referenced by ScXMLImport::ScXMLImport().

const XMLPropertyMapEntry aXMLScTableStylesProperties[]
Initial value:
=
{
MAP( "IsVisible", XML_NAMESPACE_TABLE, XML_DISPLAY, XML_TYPE_PROP_TABLE|XML_TYPE_BOOL, 0 ),
MAP( "PageStyle", XML_NAMESPACE_STYLE, XML_MASTER_PAGE_NAME, XML_TYPE_PROP_TABLE|XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM, CTF_SC_MASTERPAGENAME ),
MAP( "TableLayout", XML_NAMESPACE_STYLE, XML_WRITING_MODE, XML_TYPE_PROP_TABLE|XML_TYPE_TEXT_WRITING_MODE, 0 ),
MAP_ODF13( "TabColor", XML_NAMESPACE_TABLE, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
MAP_ODF13( "TabColor", XML_NAMESPACE_TABLE_EXT, XML_TAB_COLOR, XML_TYPE_PROP_TABLE|XML_TYPE_COLORAUTO, 0 ),
}
#define MAP_ODF13(name, prefix, token, type, context)
Definition: xmlstyle.cxx:54
#define CTF_SC_MASTERPAGENAME
Definition: xmlstyle.hxx:95
#define MAP(name, prefix, token, type, context)
Definition: xmlstyle.cxx:53

Definition at line 172 of file xmlstyle.cxx.

Referenced by ScXMLExport::ScXMLExport().