| 
    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 <comphelper/diagnose_ex.hxx>#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"#include <xmlprop.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 } | 
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 63 of file XMLTableExport.cxx.
| #define CMAP | ( | name, | |
| prefix, | |||
| token, | |||
| type, | |||
| context | |||
| ) | MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_COLUMN,context) | 
Definition at line 61 of file XMLTableExport.cxx.
| #define MAP_ | ( | name, | |
| prefix, | |||
| token, | |||
| type, | |||
| context | |||
| ) | { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_010, false } | 
Definition at line 60 of file XMLTableExport.cxx.
| #define MAP_END { nullptr } | 
Definition at line 64 of file XMLTableExport.cxx.
| #define RMAP | ( | name, | |
| prefix, | |||
| token, | |||
| type, | |||
| context | |||
| ) | MAP_(name,prefix,token,type|XML_TYPE_PROP_TABLE_ROW,context) | 
Definition at line 62 of file XMLTableExport.cxx.
| const XMLPropertyMapEntry * getCellPropertiesMap | ( | ) | 
Definition at line 91 of file XMLTableExport.cxx.
References CELLMAP, CTF_CHARALLBORDER, CTF_CHARALLBORDERDISTANCE, CTF_CHARBOTTOMBORDER, CTF_CHARBOTTOMBORDERDISTANCE, CTF_CHARLEFTBORDER, CTF_CHARLEFTBORDERDISTANCE, CTF_CHARRIGHTBORDER, CTF_CHARRIGHTBORDERDISTANCE, CTF_CHARTOPBORDER, CTF_CHARTOPBORDERDISTANCE, MAP_END, MID_FLAG_SPECIAL_ITEM, MID_FLAG_SPECIAL_ITEM_EXPORT, PROP_BackColor, PROP_BottomBorder, PROP_LeftBorder, PROP_RightBorder, PROP_RotateAngle, PROP_TextLeftDistance, PROP_TextLowerDistance, PROP_TextRightDistance, PROP_TextUpperDistance, PROP_TextVerticalAdjust, PROP_TopBorder, xmloff::token::XML_BACKGROUND_COLOR, xmloff::token::XML_BORDER, xmloff::token::XML_BORDER_BOTTOM, xmloff::token::XML_BORDER_LEFT, xmloff::token::XML_BORDER_RIGHT, xmloff::token::XML_BORDER_TOP, XML_NAMESPACE_FO, XML_NAMESPACE_STYLE, xmloff::token::XML_PADDING, xmloff::token::XML_PADDING_BOTTOM, xmloff::token::XML_PADDING_LEFT, xmloff::token::XML_PADDING_RIGHT, xmloff::token::XML_PADDING_TOP, xmloff::token::XML_ROTATION_ANGLE, XML_SD_TYPE_CELL_ROTATION_ANGLE, XML_SD_TYPE_VERTICAL_ALIGN, XML_TYPE_BORDER, XML_TYPE_COLORTRANSPARENT, XML_TYPE_MEASURE, and xmloff::token::XML_VERTICAL_ALIGN.
Referenced by XMLTableExport::XMLTableExport(), and XMLTableImport::XMLTableImport().
| const XMLPropertyMapEntry * getColumnPropertiesMap | ( | ) | 
Definition at line 66 of file XMLTableExport.cxx.
References CMAP, MAP_END, PROP_OptimalWidth, PROP_Width, 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 78 of file XMLTableExport.cxx.
References MAP_END, PROP_Height, PROP_MinHeight, PROP_OptimalHeight, 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 529 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 565 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 549 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 230 of file XMLTableExport.cxx.
Referenced by XMLTableExport::collectTableAutoStyles().