LibreOffice Module xmloff (master)
1
|
#include <xmloff/table/XMLTableExport.hxx>
#include <sal/config.h>
#include <sal/log.hxx>
#include <rtl/ustring.hxx>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/text/XText.hpp>
#include <com/sun/star/table/XCellRange.hpp>
#include <com/sun/star/table/XColumnRowRange.hpp>
#include <com/sun/star/table/XMergeableCell.hpp>
#include <com/sun/star/style/XStyle.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <tools/diagnose_ex.h>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmlprmap.hxx>
#include <xmloff/xmlexppr.hxx>
#include <xmloff/xmlexp.hxx>
#include <xmloff/xmltypes.hxx>
#include <xmlsdtypes.hxx>
#include <xmloff/maptype.hxx>
#include <xmloff/prhdlfac.hxx>
#include <xmloff/txtprmap.hxx>
#include "table.hxx"
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 | CMAP(name, prefix, token, type, context) MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_COLUMN,context) |
#define | RMAP(name, prefix, token, type, context) MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_ROW,context) |
#define | CELLMAP(name, prefix, token, type, context) MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_CELL,context) |
#define | MAP_END { nullptr, 0, XML_EMPTY, 0, 0, SvtSaveOptions::ODFSVER_010, false } |
Functions | |
const XMLPropertyMapEntry * | getColumnPropertiesMap () |
const XMLPropertyMapEntry * | getRowPropertiesMap () |
const XMLPropertyMapEntry * | getCellPropertiesMap () |
static bool | has_states (const std::vector< XMLPropertyState > &xPropStates) |
const TableStyleElement * | getTableStyleMap () |
const TableStyleElement * | getWriterSpecificTableStyleMap () |
static const TableStyleElement * | getWriterSpecificTableStyleAttributes () |
#define CELLMAP | ( | name, | |
prefix, | |||
token, | |||
type, | |||
context | |||
) | MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_CELL,context) |
Definition at line 62 of file XMLTableExport.cxx.
Referenced by getCellPropertiesMap().
#define CMAP | ( | name, | |
prefix, | |||
token, | |||
type, | |||
context | |||
) | MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_COLUMN,context) |
Definition at line 60 of file XMLTableExport.cxx.
Referenced by getColumnPropertiesMap().
#define MAP_ | ( | name, | |
prefix, | |||
token, | |||
type, | |||
context | |||
) | { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_010, false } |
Definition at line 59 of file XMLTableExport.cxx.
#define MAP_END { nullptr, 0, XML_EMPTY, 0, 0, SvtSaveOptions::ODFSVER_010, false } |
Definition at line 63 of file XMLTableExport.cxx.
Referenced by getCellPropertiesMap(), getColumnPropertiesMap(), and getRowPropertiesMap().
#define RMAP | ( | name, | |
prefix, | |||
token, | |||
type, | |||
context | |||
) | MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_ROW,context) |
Definition at line 61 of file XMLTableExport.cxx.
Referenced by getRowPropertiesMap().
const XMLPropertyMapEntry* getCellPropertiesMap | ( | ) |
Definition at line 90 of file XMLTableExport.cxx.
References CELLMAP, MAP_END, XML_NAMESPACE_STYLE, xmloff::token::XML_ROTATION_ANGLE, and XML_SD_TYPE_CELL_ROTATION_ANGLE.
Referenced by XMLTableExport::XMLTableExport(), and XMLTableImport::XMLTableImport().
const XMLPropertyMapEntry* getColumnPropertiesMap | ( | ) |
Definition at line 65 of file XMLTableExport.cxx.
References CMAP, MAP_END, xmloff::token::XML_COLUMN_WIDTH, XML_NAMESPACE_STYLE, XML_TYPE_BOOL, XML_TYPE_MEASURE, and xmloff::token::XML_USE_OPTIMAL_COLUMN_WIDTH.
Referenced by XMLTableExport::XMLTableExport(), and XMLTableImport::XMLTableImport().
const XMLPropertyMapEntry* getRowPropertiesMap | ( | ) |
Definition at line 77 of file XMLTableExport.cxx.
References MAP_END, RMAP, xmloff::token::XML_MIN_ROW_HEIGHT, XML_NAMESPACE_STYLE, xmloff::token::XML_ROW_HEIGHT, XML_TYPE_BOOL, XML_TYPE_MEASURE, and xmloff::token::XML_USE_OPTIMAL_ROW_HEIGHT.
Referenced by XMLTableExport::XMLTableExport(), and XMLTableImport::XMLTableImport().
const TableStyleElement* getTableStyleMap | ( | ) |
Definition at line 516 of file XMLTableExport.cxx.
References xmloff::token::XML_BACKGROUND, xmloff::token::XML_BODY, xmloff::token::XML_EVEN_COLUMNS, xmloff::token::XML_EVEN_ROWS, xmloff::token::XML_FIRST_COLUMN, xmloff::token::XML_FIRST_ROW, xmloff::token::XML_LAST_COLUMN, xmloff::token::XML_LAST_ROW, xmloff::token::XML_ODD_COLUMNS, xmloff::token::XML_ODD_ROWS, and xmloff::token::XML_TOKEN_END.
Referenced by XMLTableExport::exportTableTemplates().
|
static |
Definition at line 552 of file XMLTableExport.cxx.
References xmloff::token::XML_FIRST_ROW_END_COLUMN, xmloff::token::XML_FIRST_ROW_START_COLUMN, xmloff::token::XML_LAST_ROW_END_COLUMN, xmloff::token::XML_LAST_ROW_START_COLUMN, and xmloff::token::XML_TOKEN_END.
Referenced by XMLTableExport::exportTableTemplates().
const TableStyleElement* getWriterSpecificTableStyleMap | ( | ) |
Definition at line 536 of file XMLTableExport.cxx.
References xmloff::token::XML_FIRST_ROW_END_COLUMN, xmloff::token::XML_FIRST_ROW_EVEN_COLUMN, xmloff::token::XML_FIRST_ROW_START_COLUMN, xmloff::token::XML_LAST_ROW_END_COLUMN, xmloff::token::XML_LAST_ROW_EVEN_COLUMN, xmloff::token::XML_LAST_ROW_START_COLUMN, and xmloff::token::XML_TOKEN_END.
Referenced by XMLTableExport::exportTableTemplates().
|
static |
Definition at line 217 of file XMLTableExport.cxx.
Referenced by XMLTableExport::collectTableAutoStyles().