LibreOffice Module sw (master) 1
|
A text cell style is a UNO API wrapper for a SwBoxAutoFormat core class. More...
#include <unostyle.hxx>
Public Member Functions | |
SwXTextCellStyle (SwDocShell *pDocShell, SwBoxAutoFormat *pBoxAutoFormat, OUString sParentStyle) | |
SwXTextCellStyle (SwDocShell *pDocShell, OUString sName) | |
Create non physical style. More... | |
SwBoxAutoFormat * | GetBoxFormat () |
returns box format assigned to this style More... | |
void | SetBoxFormat (SwBoxAutoFormat *pBoxFormat) |
Sets the address of SwBoxAutoFormat this style is bound to. Usable only when style is physical. More... | |
void | SetPhysical () |
bool | IsPhysical () const |
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 &sName) 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::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) 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 SwBoxAutoFormat * | GetBoxAutoFormat (SwDocShell *pDocShell, std::u16string_view sName, OUString *pParentName) |
This function looks for a SwBoxAutoFormat with given name. More... | |
static css::uno::Reference< css::style::XStyle > | CreateXTextCellStyle (SwDocShell *pDocShell, const OUString &sName) |
Private Attributes | |
SwDocShell * | m_pDocShell |
SwBoxAutoFormat * | m_pBoxAutoFormat |
std::shared_ptr< SwBoxAutoFormat > | m_pBoxAutoFormat_Impl |
Stores SwBoxAutoFormat when this is not a physical style. More... | |
OUString | m_sParentStyle |
OUString | m_sName |
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... | |
A text cell style is a UNO API wrapper for a SwBoxAutoFormat core class.
Definition at line 325 of file unostyle.hxx.
SwXTextCellStyle::SwXTextCellStyle | ( | SwDocShell * | pDocShell, |
SwBoxAutoFormat * | pBoxAutoFormat, | ||
OUString | sParentStyle | ||
) |
Definition at line 4646 of file unostyle.cxx.
Referenced by CreateXTextCellStyle().
SwXTextCellStyle::SwXTextCellStyle | ( | SwDocShell * | pDocShell, |
OUString | sName | ||
) |
Create non physical style.
Definition at line 4653 of file unostyle.cxx.
References m_pBoxAutoFormat, m_pBoxAutoFormat_Impl, m_sName, make_shared(), and sName.
|
overridevirtual |
Definition at line 5214 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 5224 of file unostyle.cxx.
References SAL_WARN.
|
static |
Definition at line 4739 of file unostyle.cxx.
References GetBoxAutoFormat(), SwBoxAutoFormat::GetXObject(), SwBoxAutoFormat::SetXObject(), sName, and SwXTextCellStyle().
|
static |
This function looks for a SwBoxAutoFormat with given name.
Parses the name and returns parent name.
pDocShell | pointer to a SwDocShell. |
sName | Name of a SwBoxAutoFormat to look for. |
pParentName | Optional output. Pointer to an OUString where parsed parent name will be returned. |
Definition at line 4699 of file unostyle.cxx.
References SwStyleNameMapper::FillUIName(), SwTableAutoFormatTable::FindAutoFormat(), SwTableAutoFormat::GetBoxFormat(), SwCellStyleTable::GetBoxFormat(), SwDoc::GetCellStyles(), SwDocShell::GetDoc(), SwDoc::GetTableStyles(), SwTableAutoFormat::GetTableTemplateMap(), o3tl::make_unsigned(), sName, TabStyle, and o3tl::toInt32().
Referenced by CreateXTextCellStyle(), and SetPhysical().
SwBoxAutoFormat * SwXTextCellStyle::GetBoxFormat | ( | ) |
returns box format assigned to this style
Definition at line 4662 of file unostyle.cxx.
References m_pBoxAutoFormat.
|
overridevirtual |
Definition at line 5602 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4817 of file unostyle.cxx.
References SwStyleNameMapper::FillProgName(), SwTableAutoFormatTable::FindAutoFormat(), SwCellStyleTable::GetBoxFormatName(), SwDoc::GetCellStyles(), SwDocShell::GetDoc(), SwDoc::GetTableStyles(), SwTableAutoFormat::GetTableTemplateCellSubName(), m_bPhysical, m_pBoxAutoFormat, m_pDocShell, m_sName, m_sParentStyle, sName, and TabStyle.
Referenced by setName().
|
overridevirtual |
Definition at line 4804 of file unostyle.cxx.
|
overridevirtual |
Definition at line 5594 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 4855 of file unostyle.cxx.
References aSwMapProvider, SwUnoPropertyMapProvider::GetPropertySet(), SfxItemPropertySet::getPropertySetInfo(), and PROPERTY_MAP_CELL_STYLE.
|
overridevirtual |
Definition at line 5235 of file unostyle.cxx.
References getPropertyStates().
|
overridevirtual |
Definition at line 5243 of file unostyle.cxx.
References aSwMapProvider, AutoFormatBase::GetAdjust(), AutoFormatBase::GetBackground(), AutoFormatBase::GetBox(), SfxItemPropertyMap::getByName(), AutoFormatBase::GetCJKFont(), AutoFormatBase::GetCJKHeight(), AutoFormatBase::GetCJKPosture(), AutoFormatBase::GetCJKWeight(), AutoFormatBase::GetColor(), AutoFormatBase::GetContour(), AutoFormatBase::GetCrossedOut(), AutoFormatBase::GetCTLFont(), AutoFormatBase::GetCTLHeight(), AutoFormatBase::GetCTLPosture(), AutoFormatBase::GetCTLWeight(), SwTableAutoFormat::GetDefaultBoxFormat(), AutoFormatBase::GetFont(), AutoFormatBase::GetHeight(), AutoFormatBase::GetPosture(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), AutoFormatBase::GetShadowed(), SwBoxAutoFormat::GetTextOrientation(), AutoFormatBase::GetUnderline(), SwBoxAutoFormat::GetValueFormat(), SwBoxAutoFormat::GetVerticalAlignment(), AutoFormatBase::GetWeight(), i, m_pBoxAutoFormat, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, PROPERTY_MAP_CELL_STYLE, SvxAdjustItem::QueryValue(), SvxBoxItem::QueryValue(), SvxBrushItem::QueryValue(), SvxColorItem::QueryValue(), SvxCrossedOutItem::QueryValue(), SvxFontHeightItem::QueryValue(), SvxFontItem::QueryValue(), SvxFrameDirectionItem::QueryValue(), SvxPostureItem::QueryValue(), SvxTextLineItem::QueryValue(), SvxWeightItem::QueryValue(), SwFormatVertOrient::QueryValue(), RES_BACKGROUND(), RES_BOX(), RES_BOXATR_FORMAT(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_COLOR(), RES_CHRATR_CONTOUR(), RES_CHRATR_CROSSEDOUT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_CTL_POSTURE(), RES_CHRATR_CTL_WEIGHT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_POSTURE(), RES_CHRATR_SHADOWED(), RES_CHRATR_UNDERLINE(), RES_CHRATR_WEIGHT(), RES_FRAMEDIR(), RES_PARATR_ADJUST(), RES_VERT_ORIENT(), and SAL_WARN.
Referenced by getPropertyState().
|
overridevirtual |
Definition at line 5050 of file unostyle.cxx.
References aSwMapProvider, AutoFormatBase::GetAdjust(), AutoFormatBase::GetBackground(), AutoFormatBase::GetBox(), SfxItemPropertyMap::getByName(), AutoFormatBase::GetCJKFont(), AutoFormatBase::GetCJKHeight(), AutoFormatBase::GetCJKPosture(), AutoFormatBase::GetCJKWeight(), AutoFormatBase::GetColor(), AutoFormatBase::GetContour(), AutoFormatBase::GetCrossedOut(), AutoFormatBase::GetCTLFont(), AutoFormatBase::GetCTLHeight(), AutoFormatBase::GetCTLPosture(), AutoFormatBase::GetCTLWeight(), SwDocShell::GetDoc(), AutoFormatBase::GetFont(), AutoFormatBase::GetHeight(), SvNumberFormatter::GetIndexPuttingAndConverting(), SwDoc::GetNumberFormatter(), AutoFormatBase::GetPosture(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), AutoFormatBase::GetShadowed(), SwBoxAutoFormat::GetTextOrientation(), AutoFormatBase::GetUnderline(), SwBoxAutoFormat::GetValueFormat(), SwBoxAutoFormat::GetVerticalAlignment(), AutoFormatBase::GetWeight(), m_pBoxAutoFormat, m_pDocShell, SfxItemPropertyMapEntry::nMemberId, nType, SfxItemPropertyMapEntry::nWID, PROPERTY_MAP_CELL_STYLE, SvxAdjustItem::QueryValue(), SvxBoxItem::QueryValue(), SvxBrushItem::QueryValue(), SvxColorItem::QueryValue(), SvxCrossedOutItem::QueryValue(), SvxFontHeightItem::QueryValue(), SvxFontItem::QueryValue(), SvxFrameDirectionItem::QueryValue(), SvxPostureItem::QueryValue(), SvxTextLineItem::QueryValue(), SvxWeightItem::QueryValue(), SwFormatVertOrient::QueryValue(), RES_BACKGROUND(), RES_BOX(), RES_BOXATR_FORMAT(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_COLOR(), RES_CHRATR_CONTOUR(), RES_CHRATR_CROSSEDOUT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_CTL_POSTURE(), RES_CHRATR_CTL_WEIGHT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_POSTURE(), RES_CHRATR_SHADOWED(), RES_CHRATR_UNDERLINE(), RES_CHRATR_WEIGHT(), RES_FRAMEDIR(), RES_PARATR_ADJUST(), RES_VERT_ORIENT(), and SAL_WARN.
|
overridevirtual |
Definition at line 5612 of file unostyle.cxx.
|
overridevirtual |
Definition at line 4780 of file unostyle.cxx.
References SfxObjectShell::GetModel(), m_pDocShell, and m_sParentStyle.
bool SwXTextCellStyle::IsPhysical | ( | ) | const |
Definition at line 4694 of file unostyle.cxx.
References m_bPhysical.
|
overridevirtual |
Definition at line 4770 of file unostyle.cxx.
References SwTableAutoFormatTable::FindAutoFormat(), SwDocShell::GetDoc(), SwDoc::GetTableStyles(), m_pDocShell, and m_sParentStyle.
|
overridevirtual |
Definition at line 5219 of file unostyle.cxx.
References SAL_WARN.
|
overridevirtual |
Definition at line 5229 of file unostyle.cxx.
References SAL_WARN.
void SwXTextCellStyle::SetBoxFormat | ( | SwBoxAutoFormat * | pBoxFormat | ) |
Sets the address of SwBoxAutoFormat this style is bound to. Usable only when style is physical.
Definition at line 4667 of file unostyle.cxx.
References m_bPhysical, m_pBoxAutoFormat, and SAL_INFO.
|
overridevirtual |
Definition at line 4844 of file unostyle.cxx.
References SwCellStyleTable::ChangeBoxFormatName(), SwDoc::GetCellStyles(), SwDocShell::GetDoc(), getName(), m_bPhysical, m_pDocShell, m_sName, and sName.
|
overridevirtual |
Definition at line 4810 of file unostyle.cxx.
References SAL_INFO.
void SwXTextCellStyle::SetPhysical | ( | ) |
Definition at line 4675 of file unostyle.cxx.
References GetBoxAutoFormat(), m_bPhysical, m_pBoxAutoFormat, m_pBoxAutoFormat_Impl, m_pDocShell, m_sName, m_sParentStyle, SAL_WARN, and SwBoxAutoFormat::SetXObject().
|
overridevirtual |
Definition at line 5393 of file unostyle.cxx.
References aSwMapProvider, AutoFormatBase::GetAdjust(), AutoFormatBase::GetBackground(), AutoFormatBase::GetBox(), SfxItemPropertyMap::getByName(), AutoFormatBase::GetCJKFont(), AutoFormatBase::GetCJKHeight(), AutoFormatBase::GetCJKPosture(), AutoFormatBase::GetCJKWeight(), AutoFormatBase::GetColor(), AutoFormatBase::GetContour(), AutoFormatBase::GetCrossedOut(), AutoFormatBase::GetCTLFont(), AutoFormatBase::GetCTLHeight(), AutoFormatBase::GetCTLPosture(), AutoFormatBase::GetCTLWeight(), SwTableAutoFormat::GetDefaultBoxFormat(), AutoFormatBase::GetFont(), AutoFormatBase::GetHeight(), AutoFormatBase::GetPosture(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), AutoFormatBase::GetShadowed(), SwBoxAutoFormat::GetTextOrientation(), AutoFormatBase::GetUnderline(), SwBoxAutoFormat::GetValueFormat(), SwBoxAutoFormat::GetVerticalAlignment(), AutoFormatBase::GetWeight(), m_pBoxAutoFormat, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, PROPERTY_MAP_CELL_STYLE, SvxAdjustItem::PutValue(), SvxBoxItem::PutValue(), SvxBrushItem::PutValue(), SvxColorItem::PutValue(), SvxCrossedOutItem::PutValue(), SvxFontHeightItem::PutValue(), SvxFontItem::PutValue(), SvxFrameDirectionItem::PutValue(), SvxPostureItem::PutValue(), SvxTextLineItem::PutValue(), SvxWeightItem::PutValue(), SwFormatVertOrient::PutValue(), SvxAdjustItem::QueryValue(), SvxBoxItem::QueryValue(), SvxBrushItem::QueryValue(), SvxColorItem::QueryValue(), SvxCrossedOutItem::QueryValue(), SvxFontHeightItem::QueryValue(), SvxFontItem::QueryValue(), SvxFrameDirectionItem::QueryValue(), SvxPostureItem::QueryValue(), SvxTextLineItem::QueryValue(), SvxWeightItem::QueryValue(), SwFormatVertOrient::QueryValue(), RES_BACKGROUND(), RES_BOX(), RES_BOXATR_FORMAT(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_COLOR(), RES_CHRATR_CONTOUR(), RES_CHRATR_CROSSEDOUT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_CTL_POSTURE(), RES_CHRATR_CTL_WEIGHT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_POSTURE(), RES_CHRATR_SHADOWED(), RES_CHRATR_UNDERLINE(), RES_CHRATR_WEIGHT(), RES_FRAMEDIR(), RES_PARATR_ADJUST(), RES_VERT_ORIENT(), SAL_WARN, AutoFormatBase::SetAdjust(), AutoFormatBase::SetBackground(), AutoFormatBase::SetBox(), AutoFormatBase::SetCJKFont(), AutoFormatBase::SetCJKHeight(), AutoFormatBase::SetCJKPosture(), AutoFormatBase::SetCJKWeight(), AutoFormatBase::SetColor(), AutoFormatBase::SetContour(), AutoFormatBase::SetCrossedOut(), AutoFormatBase::SetCTLFont(), AutoFormatBase::SetCTLHeight(), AutoFormatBase::SetCTLPosture(), AutoFormatBase::SetCTLWeight(), AutoFormatBase::SetFont(), AutoFormatBase::SetHeight(), AutoFormatBase::SetPosture(), AutoFormatBase::SetShadowed(), SwBoxAutoFormat::SetTextOrientation(), AutoFormatBase::SetUnderline(), SwBoxAutoFormat::SetValueFormat(), SwBoxAutoFormat::SetVerticalAlignment(), and AutoFormatBase::SetWeight().
|
overridevirtual |
Definition at line 4861 of file unostyle.cxx.
References aSwMapProvider, AutoFormatBase::GetAdjust(), GetAppLanguage(), AutoFormatBase::GetBackground(), AutoFormatBase::GetBox(), SfxItemPropertyMap::getByName(), AutoFormatBase::GetCJKFont(), AutoFormatBase::GetCJKHeight(), AutoFormatBase::GetCJKPosture(), AutoFormatBase::GetCJKWeight(), AutoFormatBase::GetColor(), AutoFormatBase::GetContour(), AutoFormatBase::GetCrossedOut(), AutoFormatBase::GetCTLFont(), AutoFormatBase::GetCTLHeight(), AutoFormatBase::GetCTLPosture(), AutoFormatBase::GetCTLWeight(), SwDocShell::GetDoc(), SvNumberFormatter::GetEntry(), AutoFormatBase::GetFont(), SvNumberformat::GetFormatstring(), AutoFormatBase::GetHeight(), SvNumberformat::GetLanguage(), SwDoc::GetNumberFormatter(), AutoFormatBase::GetPosture(), SfxItemPropertySet::getPropertyMap(), SwUnoPropertyMapProvider::GetPropertySet(), AutoFormatBase::GetShadowed(), SwBoxAutoFormat::GetTextOrientation(), AutoFormatBase::GetUnderline(), SwBoxAutoFormat::GetVerticalAlignment(), AutoFormatBase::GetWeight(), m_pBoxAutoFormat, m_pDocShell, SfxItemPropertyMapEntry::nMemberId, SfxItemPropertyMapEntry::nWID, PROPERTY_MAP_CELL_STYLE, SvxAdjustItem::PutValue(), SvxBoxItem::PutValue(), SvxBrushItem::PutValue(), SvxColorItem::PutValue(), SvxCrossedOutItem::PutValue(), SvxFontHeightItem::PutValue(), SvxFontItem::PutValue(), SvxFrameDirectionItem::PutValue(), SvxPostureItem::PutValue(), SvxTextLineItem::PutValue(), SvxWeightItem::PutValue(), SwFormatVertOrient::PutValue(), RES_BACKGROUND(), RES_BOX(), RES_BOXATR_FORMAT(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_FONTSIZE(), RES_CHRATR_CJK_POSTURE(), RES_CHRATR_CJK_WEIGHT(), RES_CHRATR_COLOR(), RES_CHRATR_CONTOUR(), RES_CHRATR_CROSSEDOUT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_FONTSIZE(), RES_CHRATR_CTL_POSTURE(), RES_CHRATR_CTL_WEIGHT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_POSTURE(), RES_CHRATR_SHADOWED(), RES_CHRATR_UNDERLINE(), RES_CHRATR_WEIGHT(), RES_FRAMEDIR(), RES_PARATR_ADJUST(), RES_VERT_ORIENT(), SAL_WARN, AutoFormatBase::SetAdjust(), AutoFormatBase::SetBackground(), AutoFormatBase::SetBox(), AutoFormatBase::SetCJKFont(), AutoFormatBase::SetCJKHeight(), AutoFormatBase::SetCJKPosture(), AutoFormatBase::SetCJKWeight(), AutoFormatBase::SetColor(), AutoFormatBase::SetContour(), AutoFormatBase::SetCrossedOut(), AutoFormatBase::SetCTLFont(), AutoFormatBase::SetCTLHeight(), AutoFormatBase::SetCTLPosture(), AutoFormatBase::SetCTLWeight(), AutoFormatBase::SetFont(), AutoFormatBase::SetHeight(), AutoFormatBase::SetPosture(), AutoFormatBase::SetShadowed(), SwBoxAutoFormat::SetTextOrientation(), AutoFormatBase::SetUnderline(), SwBoxAutoFormat::SetValueFormat(), SwBoxAutoFormat::SetVerticalAlignment(), and AutoFormatBase::SetWeight().
|
overridevirtual |
Definition at line 5607 of file unostyle.cxx.
References cppu::supportsService().
|
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 340 of file unostyle.hxx.
Referenced by getName(), IsPhysical(), SetBoxFormat(), setName(), and SetPhysical().
|
private |
Definition at line 334 of file unostyle.hxx.
Referenced by GetBoxFormat(), getName(), getPropertyStates(), getPropertyValue(), SetBoxFormat(), SetPhysical(), setPropertyToDefault(), setPropertyValue(), and SwXTextCellStyle().
|
private |
Stores SwBoxAutoFormat when this is not a physical style.
Definition at line 336 of file unostyle.hxx.
Referenced by SetPhysical(), and SwXTextCellStyle().
|
private |
Definition at line 333 of file unostyle.hxx.
Referenced by getName(), getPropertyValue(), isInUse(), isUserDefined(), setName(), SetPhysical(), and setPropertyValue().
|
private |
Definition at line 338 of file unostyle.hxx.
Referenced by getName(), setName(), and SetPhysical().
|
private |
Definition at line 337 of file unostyle.hxx.
Referenced by getName(), isInUse(), isUserDefined(), and SetPhysical().