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... | |
css::uno::Reference< css::style::XStyle > | m_aCellStyles [STYLE_COUNT] |
A text table style is a UNO API wrapper for a SwTableAutoFormat.
Definition at line 231 of file unostyle.hxx.
|
private |
Definition at line 246 of file unostyle.hxx.
SwXTextTableStyle::SwXTextTableStyle | ( | SwDocShell * | pDocShell, |
SwTableAutoFormat * | pTableAutoFormat | ||
) |
Definition at line 4273 of file unostyle.cxx.
References UpdateCellStylesMapping().
Referenced by CreateXTextTableStyle().
SwXTextTableStyle::SwXTextTableStyle | ( | SwDocShell * | pDocShell, |
const OUString & | rTableAutoFormatName | ||
) |
Create non physical style.
Definition at line 4279 of file unostyle.cxx.
References m_pTableAutoFormat, m_pTableAutoFormat_Impl, and UpdateCellStylesMapping().
|
overridevirtual |
Definition at line 4494 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4504 of file unostyle.cxx.
References SAL_WARN.
|
static |
Definition at line 4286 of file unostyle.cxx.
References SwTableAutoFormat::GetName(), GetTableAutoFormat(), SwTableAutoFormat::GetXObject(), SAL_INFO, SwTableAutoFormat::SetXObject(), and SwXTextTableStyle().
|
overridevirtual |
Definition at line 4515 of file unostyle.cxx.
References GetCellStyleNameMap(), and m_aCellStyles.
|
staticprivate |
Definition at line 4328 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 4526 of file unostyle.cxx.
References GetCellStyleNameMap(), and comphelper::mapKeysToSequence().
|
overridevirtual |
Definition at line 4585 of file unostyle.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 4596 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4447 of file unostyle.cxx.
References SwStyleNameMapper::FillProgName(), SwTableAutoFormat::GetName(), m_pTableAutoFormat, and TabStyle.
|
overridevirtual |
Definition at line 4438 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4462 of file unostyle.cxx.
References aSwMapProvider, SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertySetInfo(), and PROPERTY_MAP_TABLE_STYLE.
|
overridevirtual |
Definition at line 4473 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 4606 of file unostyle.cxx.
|
static |
This function looks for a SwTableAutoFormat with given name. Returns nullptr if could not be found.
Definition at line 4358 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 4353 of file unostyle.cxx.
References m_pTableAutoFormat.
|
overridevirtual |
Definition at line 4531 of file unostyle.cxx.
References GetCellStyleNameMap().
|
overridevirtual |
Definition at line 4590 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4539 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4417 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 4407 of file unostyle.cxx.
References SwDocShell::GetDoc(), SwTableAutoFormat::GetName(), SwDoc::GetTableStyles(), m_pDocShell, and m_pTableAutoFormat.
|
overridevirtual |
Definition at line 4579 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4499 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4509 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4544 of file unostyle.cxx.
References SwXTextCellStyle::GetBoxFormat(), SwTableAutoFormat::GetBoxFormat(), GetCellStyleNameMap(), SwDoc::GetCellStyles(), SwDocShell::GetDoc(), SwTableAutoFormat::GetTableTemplateMap(), SwXTextCellStyle::IsPhysical(), m_aCellStyles, m_pDocShell, m_pTableAutoFormat, SwCellStyleTable::RemoveBoxFormat(), SwTableAutoFormat::SetBoxFormat(), SwXTextCellStyle::SetBoxFormat(), and SwBoxAutoFormat::SetXObject().
|
overridevirtual |
Definition at line 4455 of file unostyle.cxx.
References m_pTableAutoFormat, and SwTableAutoFormat::SetName().
|
overridevirtual |
Definition at line 4443 of file unostyle.cxx.
void SwXTextTableStyle::SetPhysical | ( | ) |
take care of children, make SwXTextCellStyles use new core SwBoxAutoFormats
Definition at line 4373 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, SwXTextCellStyle::SetBoxFormat(), SwBoxAutoFormat::SetXObject(), and SwTableAutoFormat::SetXObject().
|
overridevirtual |
Definition at line 4468 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4601 of file unostyle.cxx.
References cppu::supportsService().
|
private |
Fills m_aCellStyles with SwXTextCellStyles pointing to children of this style.
Definition at line 4311 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 270 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 244 of file unostyle.hxx.
Referenced by isInUse(), and SetPhysical().
|
private |
Definition at line 239 of file unostyle.hxx.
Referenced by isInUse(), isUserDefined(), replaceByName(), SetPhysical(), and UpdateCellStylesMapping().
|
private |
Definition at line 240 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 242 of file unostyle.hxx.
Referenced by SetPhysical(), and SwXTextTableStyle().