LibreOffice Module sw (master)  1
Classes | Enumerations | Functions | Variables
xmltbli.cxx File Reference
#include <hintids.hxx>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/text/XTextTable.hpp>
#include <com/sun/star/table/XCellRange.hpp>
#include <o3tl/numeric.hxx>
#include <o3tl/safeint.hxx>
#include <sal/log.hxx>
#include <svl/itemset.hxx>
#include <svl/zformat.hxx>
#include <sax/tools/converter.hxx>
#include <unotools/configmgr.hxx>
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/xmltkmap.hxx>
#include <xmloff/nmspmap.hxx>
#include <xmloff/families.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/i18nmap.hxx>
#include <editeng/protitem.hxx>
#include <editeng/lrspitem.hxx>
#include <poolfmt.hxx>
#include <fmtfsize.hxx>
#include <fmtornt.hxx>
#include <fmtfordr.hxx>
#include <doc.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <swtable.hxx>
#include <swtblfmt.hxx>
#include <pam.hxx>
#include <unotbl.hxx>
#include <unotextrange.hxx>
#include <unocrsr.hxx>
#include <cellatr.hxx>
#include <swddetbl.hxx>
#include <ddefld.hxx>
#include <sfx2/linkmgr.hxx>
#include "xmlimp.hxx"
#include "xmltbli.hxx"
#include <vcl/svapp.hxx>
#include <ndtxt.hxx>
#include <algorithm>
#include <vector>
#include <memory>
#include <limits.h>
Include dependency graph for xmltbli.cxx:

Go to the source code of this file.

Classes

class  SwXMLTableCell_Impl
 
class  SwXMLTableRow_Impl
 
class  SwXMLTableCellContext_Impl
 
class  SwXMLTableColContext_Impl
 
class  SwXMLTableColsContext_Impl
 
class  SwXMLTableRowContext_Impl
 
class  SwXMLTableRowsContext_Impl
 
class  SwXMLDDETableContext_Impl
 
class  TableBoxIndex
 
class  TableBoxIndexHasher
 

Enumerations

enum  SwXMLTableElemTokens {
  XML_TOK_TABLE_HEADER_COLS,
  XML_TOK_TABLE_COLS,
  XML_TOK_TABLE_COL,
  XML_TOK_TABLE_HEADER_ROWS,
  XML_TOK_TABLE_ROWS,
  XML_TOK_TABLE_ROW,
  XML_TOK_OFFICE_DDE_SOURCE
}
 
enum  SwXMLTableCellAttrTokens {
  XML_TOK_TABLE_XMLID,
  XML_TOK_TABLE_STYLE_NAME,
  XML_TOK_TABLE_NUM_COLS_SPANNED,
  XML_TOK_TABLE_NUM_ROWS_SPANNED,
  XML_TOK_TABLE_NUM_COLS_REPEATED,
  XML_TOK_TABLE_FORMULA,
  XML_TOK_TABLE_VALUE,
  XML_TOK_TABLE_TIME_VALUE,
  XML_TOK_TABLE_DATE_VALUE,
  XML_TOK_TABLE_BOOLEAN_VALUE,
  XML_TOK_TABLE_PROTECTED,
  XML_TOK_TABLE_STRING_VALUE,
  XML_TOK_TABLE_VALUE_TYPE
}
 

Functions

static OUString lcl_GenerateFieldTypeName (const OUString &sPrefix, SwTableNode *pTableNode)
 
static SwDDEFieldTypelcl_GetDDEFieldType (SwXMLDDETableContext_Impl *pContext, SwTableNode *pTableNode)
 

Variables

static const SvXMLTokenMapEntry aTableElemTokenMap []
 
static const SvXMLTokenMapEntry aTableCellAttrTokenMap []
 

Enumeration Type Documentation

Enumerator
XML_TOK_TABLE_XMLID 
XML_TOK_TABLE_STYLE_NAME 
XML_TOK_TABLE_NUM_COLS_SPANNED 
XML_TOK_TABLE_NUM_ROWS_SPANNED 
XML_TOK_TABLE_NUM_COLS_REPEATED 
XML_TOK_TABLE_FORMULA 
XML_TOK_TABLE_VALUE 
XML_TOK_TABLE_TIME_VALUE 
XML_TOK_TABLE_DATE_VALUE 
XML_TOK_TABLE_BOOLEAN_VALUE 
XML_TOK_TABLE_PROTECTED 
XML_TOK_TABLE_STRING_VALUE 
XML_TOK_TABLE_VALUE_TYPE 

Definition at line 91 of file xmltbli.cxx.

Enumerator
XML_TOK_TABLE_HEADER_COLS 
XML_TOK_TABLE_COLS 
XML_TOK_TABLE_COL 
XML_TOK_TABLE_HEADER_ROWS 
XML_TOK_TABLE_ROWS 
XML_TOK_TABLE_ROW 
XML_TOK_OFFICE_DDE_SOURCE 

Definition at line 80 of file xmltbli.cxx.

Function Documentation

static OUString lcl_GenerateFieldTypeName ( const OUString &  sPrefix,
SwTableNode pTableNode 
)
static
static SwDDEFieldType* lcl_GetDDEFieldType ( SwXMLDDETableContext_Impl pContext,
SwTableNode pTableNode 
)
static

Variable Documentation

const SvXMLTokenMapEntry aTableCellAttrTokenMap[]
static
Initial value:
=
{
{ XML_NAMESPACE_XML, XML_ID, XML_TOK_TABLE_XMLID },
{ XML_NAMESPACE_TABLE, XML_STYLE_NAME, XML_TOK_TABLE_STYLE_NAME },
{ XML_NAMESPACE_TABLE, XML_FORMULA, XML_TOK_TABLE_FORMULA },
{ XML_NAMESPACE_OFFICE, XML_VALUE, XML_TOK_TABLE_VALUE },
{ XML_NAMESPACE_OFFICE, XML_TIME_VALUE, XML_TOK_TABLE_TIME_VALUE },
{ XML_NAMESPACE_OFFICE, XML_DATE_VALUE, XML_TOK_TABLE_DATE_VALUE },
{ XML_NAMESPACE_OFFICE, XML_BOOLEAN_VALUE, XML_TOK_TABLE_BOOLEAN_VALUE },
{ XML_NAMESPACE_TABLE, XML_PROTECTED, XML_TOK_TABLE_PROTECTED },
{ XML_NAMESPACE_TABLE, XML_PROTECT, XML_TOK_TABLE_PROTECTED },
{ XML_NAMESPACE_OFFICE, XML_STRING_VALUE, XML_TOK_TABLE_STRING_VALUE },
{ XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_TOK_TABLE_VALUE_TYPE },
}
XML_NUMBER_ROWS_SPANNED
XML_VALUE_TYPE
XML_STYLE_NAME
XML_ID
XML_VALUE
#define XML_TOKEN_MAP_END
XML_NUMBER_COLUMNS_REPEATED
XML_PROTECTED
XML_NUMBER_COLUMNS_SPANNED
XML_STRING_VALUE
XML_PROTECT
XML_BOOLEAN_VALUE
XML_DATE_VALUE
XML_TIME_VALUE
XML_FORMULA

Definition at line 133 of file xmltbli.cxx.

const SvXMLTokenMapEntry aTableElemTokenMap[]
static
Initial value:
=
{
{ XML_NAMESPACE_TABLE, XML_TABLE_HEADER_COLUMNS,
{ XML_NAMESPACE_TABLE, XML_TABLE_COLUMNS, XML_TOK_TABLE_COLS },
{ XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, XML_TOK_TABLE_COL },
{ XML_NAMESPACE_LO_EXT, XML_TABLE_COLUMN, XML_TOK_TABLE_COL },
{ XML_NAMESPACE_TABLE, XML_TABLE_HEADER_ROWS,
{ XML_NAMESPACE_TABLE, XML_TABLE_ROWS, XML_TOK_TABLE_ROWS },
{ XML_NAMESPACE_TABLE, XML_TABLE_ROW, XML_TOK_TABLE_ROW },
{ XML_NAMESPACE_LO_EXT, XML_TABLE_ROW, XML_TOK_TABLE_ROW },
{ XML_NAMESPACE_OFFICE, XML_DDE_SOURCE,
{ XML_NAMESPACE_TABLE, XML_TABLE_COLUMN_GROUP, XML_TOK_TABLE_COLS },
}
XML_TABLE_COLUMN_GROUP
#define XML_TOKEN_MAP_END
XML_TABLE_HEADER_COLUMNS
XML_TABLE_ROW
XML_DDE_SOURCE
XML_TABLE_COLUMNS
XML_TABLE_COLUMN
XML_TABLE_HEADER_ROWS
XML_TABLE_ROWS

Definition at line 108 of file xmltbli.cxx.