LibreOffice Module xmloff (master) 1
|
#include <XMLTableExport.hxx>
Public Member Functions | |
XMLTableExport (SvXMLExport &rExp, const rtl::Reference< SvXMLExportPropertyMapper > &xCellExportPropertySetMapper, const rtl::Reference< XMLPropertyHandlerFactory > &xFactoryRef) | |
virtual | ~XMLTableExport () override |
void | collectTableAutoStyles (const css::uno::Reference< css::table::XColumnRowRange > &xColumnRowRange) |
void | exportTable (const css::uno::Reference< css::table::XColumnRowRange > &xColumnRowRange) |
void | exportTableStyles () |
void | exportAutoStyles () |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Member Functions | |
void | exportTableTemplates () |
SvXMLExport & | GetExport () |
const SvXMLExport & | GetExport () const |
SAL_DLLPRIVATE void | ImpExportText (const css::uno::Reference< css::table::XCell > &xCell) |
void | ExportCell (const css::uno::Reference< css::table::XCell > &xCell, const std::shared_ptr< XMLTableInfo > &pTableInfo, std::u16string_view sDefaultCellStyle) |
void | ExportTableColumns (const css::uno::Reference< css::container::XIndexAccess > &xtableColumns, const std::shared_ptr< XMLTableInfo > &pTableInfo) |
Private Attributes | |
SvXMLExport & | mrExport |
rtl::Reference< SvXMLExportPropertyMapper > | mxCellExportPropertySetMapper |
rtl::Reference< SvXMLExportPropertyMapper > | mxRowExportPropertySetMapper |
rtl::Reference< SvXMLExportPropertyMapper > | mxColumnExportPropertySetMapper |
std::map< const css::uno::Reference< css::table::XColumnRowRange >, std::shared_ptr< XMLTableInfo > > | maTableInfoMap |
bool | mbExportTables |
bool | mbWriter |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 56 of file XMLTableExport.hxx.
XMLTableExport::XMLTableExport | ( | SvXMLExport & | rExp, |
const rtl::Reference< SvXMLExportPropertyMapper > & | xCellExportPropertySetMapper, | ||
const rtl::Reference< XMLPropertyHandlerFactory > & | xFactoryRef | ||
) |
Definition at line 175 of file XMLTableExport.cxx.
References CELL, XMLTextParagraphExport::CreateParaExtPropMapper(), Exception, SvXMLExport::GetAutoStylePool(), getCellPropertiesMap(), getColumnPropertiesMap(), SvXMLExport::GetModel(), getRowPropertiesMap(), mbExportTables, mbWriter, mrExport, mxCellExportPropertySetMapper, mxColumnExportPropertySetMapper, mxRowExportPropertySetMapper, TABLE_CELL, TABLE_COLUMN, TABLE_ROW, XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME, XML_STYLE_FAMILY_TABLE_CELL_STYLES_PREFIX, XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME, XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_PREFIX, XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME, and XML_STYLE_FAMILY_TABLE_ROW_STYLES_PREFIX.
|
overridevirtual |
Definition at line 226 of file XMLTableExport.cxx.
void XMLTableExport::collectTableAutoStyles | ( | const css::uno::Reference< css::table::XColumnRowRange > & | xColumnRowRange | ) |
Definition at line 236 of file XMLTableExport.cxx.
References Exception, SvXMLExport::GetAutoStylePool(), GetExport(), SvXMLExport::GetTextParagraphExport(), has_states(), maTableInfoMap, mbExportTables, mrExport, mxCellExportPropertySetMapper, mxColumnExportPropertySetMapper, mxRowExportPropertySetMapper, TABLE_CELL, TABLE_COLUMN, TABLE_ROW, and TOOLS_WARN_EXCEPTION.
void XMLTableExport::exportAutoStyles | ( | ) |
Definition at line 519 of file XMLTableExport.cxx.
References SvXMLExport::GetAutoStylePool(), mbExportTables, mrExport, TABLE_CELL, TABLE_COLUMN, and TABLE_ROW.
|
private |
Definition at line 433 of file XMLTableExport.cxx.
References SvXMLExport::AddAttribute(), Exception, ImpExportText(), mrExport, SAL_WARN_IF, TOOLS_WARN_EXCEPTION, xmloff::token::XML_COVERED_TABLE_CELL, XML_NAMESPACE_TABLE, xmloff::token::XML_NUMBER_COLUMNS_SPANNED, xmloff::token::XML_NUMBER_ROWS_SPANNED, xmloff::token::XML_STYLE_NAME, and xmloff::token::XML_TABLE_CELL.
Referenced by exportTable().
void XMLTableExport::exportTable | ( | const css::uno::Reference< css::table::XColumnRowRange > & | xColumnRowRange | ) |
Definition at line 340 of file XMLTableExport.cxx.
References SvXMLExport::AddAttribute(), Exception, ExportCell(), ExportTableColumns(), maTableInfoMap, mbExportTables, mrExport, TOOLS_WARN_EXCEPTION, xmloff::token::XML_DEFAULT_CELL_STYLE_NAME, XML_NAMESPACE_TABLE, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_TABLE, and xmloff::token::XML_TABLE_ROW.
|
private |
Definition at line 406 of file XMLTableExport.cxx.
References SvXMLExport::AddAttribute(), mrExport, XML_NAMESPACE_TABLE, xmloff::token::XML_STYLE_NAME, and xmloff::token::XML_TABLE_COLUMN.
Referenced by exportTable().
void XMLTableExport::exportTableStyles | ( | ) |
Definition at line 493 of file XMLTableExport.cxx.
References exportTableTemplates(), SvXMLExport::GetAutoStylePool(), mbExportTables, mbWriter, mrExport, mxCellExportPropertySetMapper, TABLE_CELL, and XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME.
|
private |
Definition at line 579 of file XMLTableExport.cxx.
References SvXMLExport::AddAttribute(), Exception, GetExport(), SvXMLExport::GetModel(), SvXMLExport::getSaneDefaultVersion(), getTableStyleMap(), getWriterSpecificTableStyleAttributes(), getWriterSpecificTableStyleMap(), mbExportTables, mbWriter, TableStyleElement::meElement, mrExport, TableStyleElement::msStyleName, nIndex, SvtSaveOptions::ODFSVER_012_EXT_COMPAT, SvtSaveOptions::ODFSVER_EXTENDED, TOOLS_WARN_EXCEPTION, xmloff::token::XML_NAME, XML_NAMESPACE_LO_EXT, XML_NAMESPACE_TABLE, XML_NAMESPACE_TEXT, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_TABLE_TEMPLATE, and xmloff::token::XML_TOKEN_END.
Referenced by exportTableStyles().
|
inlineprivate |
Definition at line 86 of file XMLTableExport.hxx.
Referenced by collectTableAutoStyles(), and exportTableTemplates().
|
inlineprivate |
Definition at line 87 of file XMLTableExport.hxx.
|
private |
Definition at line 486 of file XMLTableExport.cxx.
References SvXMLExport::GetTextParagraphExport(), and mrExport.
Referenced by ExportCell().
|
private |
Definition at line 82 of file XMLTableExport.hxx.
Referenced by collectTableAutoStyles(), and exportTable().
|
private |
Definition at line 83 of file XMLTableExport.hxx.
Referenced by collectTableAutoStyles(), exportAutoStyles(), exportTable(), exportTableStyles(), exportTableTemplates(), and XMLTableExport().
|
private |
Definition at line 84 of file XMLTableExport.hxx.
Referenced by exportTableStyles(), exportTableTemplates(), and XMLTableExport().
|
private |
Definition at line 77 of file XMLTableExport.hxx.
Referenced by collectTableAutoStyles(), exportAutoStyles(), ExportCell(), exportTable(), ExportTableColumns(), exportTableStyles(), exportTableTemplates(), ImpExportText(), and XMLTableExport().
|
private |
Definition at line 78 of file XMLTableExport.hxx.
Referenced by collectTableAutoStyles(), exportTableStyles(), and XMLTableExport().
|
private |
Definition at line 80 of file XMLTableExport.hxx.
Referenced by collectTableAutoStyles(), and XMLTableExport().
|
private |
Definition at line 79 of file XMLTableExport.hxx.
Referenced by collectTableAutoStyles(), and XMLTableExport().