LibreOffice Module sw (master) 1
|
A text table style is a UNO API wrapper for a SwTableAutoFormat. More...
#include <unostyle.hxx>
Public Member Functions | |
SwXTextTableStyle (SwDocShell *pDocShell, SwTableAutoFormat *pTableAutoFormat) | |
SwXTextTableStyle (SwDocShell *pDocShell, const OUString &rTableAutoFormatName) | |
Create non physical style. More... | |
SwTableAutoFormat * | GetTableFormat () |
Returns box format assigned to this style. More... | |
void | SetPhysical () |
virtual sal_Bool SAL_CALL | isUserDefined () override |
virtual sal_Bool SAL_CALL | isInUse () override |
virtual OUString SAL_CALL | getParentStyle () override |
virtual void SAL_CALL | setParentStyle (const OUString &aParentStyle) override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &rName) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual css::uno::Any SAL_CALL | getByName (const OUString &rName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
virtual sal_Bool SAL_CALL | hasByName (const OUString &rName) override |
virtual void SAL_CALL | insertByName (const OUString &rName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | replaceByName (const OUString &rName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | removeByName (const OUString &rName) override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Static Public Member Functions | |
static SwTableAutoFormat * | GetTableAutoFormat (SwDocShell *pDocShell, std::u16string_view sName) |
This function looks for a SwTableAutoFormat with given name. Returns nullptr if could not be found. More... | |
static css::uno::Reference< css::style::XStyle > | CreateXTextTableStyle (SwDocShell *pDocShell, const OUString &rTableAutoFormatName) |
Private Member Functions | |
void | UpdateCellStylesMapping () |
Fills m_aCellStyles with SwXTextCellStyles pointing to children of this style. More... | |
Static Private Member Functions | |
static const CellStyleNameMap & | GetCellStyleNameMap () |
Private Attributes | |
SwDocShell * | m_pDocShell |
SwTableAutoFormat * | m_pTableAutoFormat |
std::unique_ptr< SwTableAutoFormat > | m_pTableAutoFormat_Impl |
Stores SwTableAutoFormat when this is not a physical style. More... | |
bool | m_bPhysical |
If true, then it points to a core object, if false, then this is a created, but not-yet-inserted format. More... | |
rtl::Reference< SwXTextCellStyle > | m_aCellStyles [STYLE_COUNT] |
A text table style is a UNO API wrapper for a SwTableAutoFormat.
Definition at line 232 of file unostyle.hxx.
|
private |
Definition at line 247 of file unostyle.hxx.
SwXTextTableStyle::SwXTextTableStyle | ( | SwDocShell * | pDocShell, |
SwTableAutoFormat * | pTableAutoFormat | ||
) |
Definition at line 4311 of file unostyle.cxx.
References UpdateCellStylesMapping().
Referenced by CreateXTextTableStyle().
SwXTextTableStyle::SwXTextTableStyle | ( | SwDocShell * | pDocShell, |
const OUString & | rTableAutoFormatName | ||
) |
Create non physical style.
Definition at line 4317 of file unostyle.cxx.
References m_pTableAutoFormat, m_pTableAutoFormat_Impl, and UpdateCellStylesMapping().
|
overridevirtual |
Definition at line 4531 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4541 of file unostyle.cxx.
References SAL_WARN.
|
static |
Definition at line 4324 of file unostyle.cxx.
References SwTableAutoFormat::GetName(), GetTableAutoFormat(), SwTableAutoFormat::GetXObject(), SAL_INFO, SwTableAutoFormat::SetXObject(), and SwXTextTableStyle().
|
overridevirtual |
Definition at line 4552 of file unostyle.cxx.
References sw::proofreadingiterator::get(), GetCellStyleNameMap(), and m_aCellStyles.
|
staticprivate |
Definition at line 4366 of file unostyle.cxx.
References aMap, BACKGROUND_STYLE, BODY_STYLE, EVEN_COLUMNS_STYLE, EVEN_ROWS_STYLE, FIRST_COLUMN_STYLE, FIRST_ROW_END_COLUMN_STYLE, FIRST_ROW_EVEN_COLUMN_STYLE, FIRST_ROW_START_COLUMN_STYLE, FIRST_ROW_STYLE, LAST_COLUMN_STYLE, LAST_ROW_END_COLUMN_STYLE, LAST_ROW_EVEN_COLUMN_STYLE, LAST_ROW_START_COLUMN_STYLE, LAST_ROW_STYLE, ODD_COLUMNS_STYLE, and ODD_ROWS_STYLE.
Referenced by getByName(), getElementNames(), hasByName(), and replaceByName().
|
overridevirtual |
Definition at line 4564 of file unostyle.cxx.
References GetCellStyleNameMap(), and comphelper::mapKeysToSequence().
|
overridevirtual |
Definition at line 4619 of file unostyle.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 4630 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4484 of file unostyle.cxx.
References SwStyleNameMapper::FillProgName(), SwTableAutoFormat::GetName(), m_pTableAutoFormat, and TabStyle.
|
overridevirtual |
Definition at line 4475 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4499 of file unostyle.cxx.
References aSwMapProvider, SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertySetInfo(), and PROPERTY_MAP_TABLE_STYLE.
|
overridevirtual |
Definition at line 4510 of file unostyle.cxx.
References SwTableAutoFormat::FirstRowEndColumnIsRow(), SwTableAutoFormat::FirstRowStartColumnIsRow(), SwTableAutoFormat::GetName(), SwTableAutoFormat::LastRowEndColumnIsRow(), SwTableAutoFormat::LastRowStartColumnIsRow(), m_pTableAutoFormat, UNO_NAME_DISPLAY_NAME, UNO_NAME_TABLE_FIRST_ROW_END_COLUMN, UNO_NAME_TABLE_FIRST_ROW_START_COLUMN, UNO_NAME_TABLE_LAST_ROW_END_COLUMN, and UNO_NAME_TABLE_LAST_ROW_START_COLUMN.
|
overridevirtual |
Definition at line 4640 of file unostyle.cxx.
|
static |
This function looks for a SwTableAutoFormat with given name. Returns nullptr if could not be found.
Definition at line 4396 of file unostyle.cxx.
References SwDocShell::GetDoc(), SwTableAutoFormat::GetName(), SwDoc::GetTableStyles(), i, SwTableAutoFormatTable::size(), and sName.
Referenced by CreateXTextTableStyle(), and SetPhysical().
SwTableAutoFormat * SwXTextTableStyle::GetTableFormat | ( | ) |
Returns box format assigned to this style.
Definition at line 4391 of file unostyle.cxx.
References m_pTableAutoFormat.
|
overridevirtual |
Definition at line 4569 of file unostyle.cxx.
References GetCellStyleNameMap().
|
overridevirtual |
Definition at line 4624 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4577 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4454 of file unostyle.cxx.
References SwTable::FindTable(), SwDocShell::GetDoc(), SwTableAutoFormat::GetName(), SwDoc::GetNodes(), SwDoc::GetTableFrameFormats(), SwTable::GetTableStyleName(), m_bPhysical, m_pDocShell, and m_pTableAutoFormat.
|
overridevirtual |
Definition at line 4444 of file unostyle.cxx.
References SwDocShell::GetDoc(), SwTableAutoFormat::GetName(), SwDoc::GetTableStyles(), m_pDocShell, and m_pTableAutoFormat.
|
overridevirtual |
Definition at line 4613 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4536 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4546 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4582 of file unostyle.cxx.
References sw::proofreadingiterator::get(), SwTableAutoFormat::GetBoxFormat(), GetCellStyleNameMap(), SwDoc::GetCellStyles(), SwDocShell::GetDoc(), SwTableAutoFormat::GetTableTemplateMap(), m_aCellStyles, m_pDocShell, m_pTableAutoFormat, SwCellStyleTable::RemoveBoxFormat(), SwTableAutoFormat::SetBoxFormat(), and SwBoxAutoFormat::SetXObject().
|
overridevirtual |
Definition at line 4492 of file unostyle.cxx.
References m_pTableAutoFormat, and SwTableAutoFormat::SetName().
|
overridevirtual |
Definition at line 4480 of file unostyle.cxx.
void SwXTextTableStyle::SetPhysical | ( | ) |
take care of children, make SwXTextCellStyles use new core SwBoxAutoFormats
Definition at line 4411 of file unostyle.cxx.
References SwTableAutoFormat::GetBoxFormat(), SwTableAutoFormat::GetName(), GetTableAutoFormat(), SwTableAutoFormat::GetTableTemplateMap(), SwBoxAutoFormat::GetXObject(), i, m_bPhysical, m_pDocShell, m_pTableAutoFormat, m_pTableAutoFormat_Impl, SAL_WARN, SwBoxAutoFormat::SetXObject(), and SwTableAutoFormat::SetXObject().
|
overridevirtual |
Definition at line 4505 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4635 of file unostyle.cxx.
References cppu::supportsService().
|
private |
Fills m_aCellStyles with SwXTextCellStyles pointing to children of this style.
Definition at line 4349 of file unostyle.cxx.
References SwTableAutoFormat::GetBoxFormat(), SwTableAutoFormat::GetName(), SwTableAutoFormat::GetTableTemplateMap(), SwBoxAutoFormat::GetXObject(), i, m_aCellStyles, m_pDocShell, m_pTableAutoFormat, SwBoxAutoFormat::SetXObject(), and STYLE_COUNT.
Referenced by SwXTextTableStyle().
|
private |
Definition at line 271 of file unostyle.hxx.
Referenced by getByName(), replaceByName(), and UpdateCellStylesMapping().
|
private |
If true, then it points to a core object, if false, then this is a created, but not-yet-inserted format.
Definition at line 245 of file unostyle.hxx.
Referenced by isInUse(), and SetPhysical().
|
private |
Definition at line 240 of file unostyle.hxx.
Referenced by isInUse(), isUserDefined(), replaceByName(), SetPhysical(), and UpdateCellStylesMapping().
|
private |
Definition at line 241 of file unostyle.hxx.
Referenced by getName(), getPropertyValue(), GetTableFormat(), isInUse(), isUserDefined(), replaceByName(), setName(), SetPhysical(), SwXTextTableStyle(), and UpdateCellStylesMapping().
|
private |
Stores SwTableAutoFormat when this is not a physical style.
Definition at line 243 of file unostyle.hxx.
Referenced by SetPhysical(), and SwXTextTableStyle().