LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SwVbaParagraphFormat Class Reference

#include <vbaparagraphformat.hxx>

Inheritance diagram for SwVbaParagraphFormat:
[legend]
Collaboration diagram for SwVbaParagraphFormat:
[legend]

Public Member Functions

 SwVbaParagraphFormat (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::beans::XPropertySet > xParaProps)
 
virtual ~SwVbaParagraphFormat () override
 
virtual ::sal_Int32 SAL_CALL getAlignment () override
 
virtual void SAL_CALL setAlignment (::sal_Int32 _alignment) override
 
virtual float SAL_CALL getFirstLineIndent () override
 
virtual void SAL_CALL setFirstLineIndent (float _firstlineindent) override
 
virtual css::uno::Any SAL_CALL getKeepTogether () override
 
virtual void SAL_CALL setKeepTogether (const css::uno::Any &_keeptogether) override
 
virtual css::uno::Any SAL_CALL getKeepWithNext () override
 
virtual void SAL_CALL setKeepWithNext (const css::uno::Any &_keepwithnext) override
 
virtual css::uno::Any SAL_CALL getHyphenation () override
 
virtual void SAL_CALL setHyphenation (const css::uno::Any &_hyphenation) override
 
virtual float SAL_CALL getLineSpacing () override
 
virtual void SAL_CALL setLineSpacing (float _linespacing) override
 
virtual ::sal_Int32 SAL_CALL getLineSpacingRule () override
 
virtual void SAL_CALL setLineSpacingRule (::sal_Int32 _linespacingrule) override
 
virtual css::uno::Any SAL_CALL getNoLineNumber () override
 
virtual void SAL_CALL setNoLineNumber (const css::uno::Any &_nolinenumber) override
 
virtual ::sal_Int32 SAL_CALL getOutlineLevel () override
 
virtual void SAL_CALL setOutlineLevel (::sal_Int32 _outlinelevel) override
 
virtual css::uno::Any SAL_CALL getPageBreakBefore () override
 
virtual void SAL_CALL setPageBreakBefore (const css::uno::Any &_pagebreakbefore) override
 
virtual float SAL_CALL getSpaceBefore () override
 
virtual void SAL_CALL setSpaceBefore (float _spacebefore) override
 
virtual float SAL_CALL getSpaceAfter () override
 
virtual void SAL_CALL setSpaceAfter (float _spaceafter) override
 
virtual float SAL_CALL getLeftIndent () override
 
virtual void SAL_CALL setLeftIndent (float _leftindent) override
 
virtual float SAL_CALL getRightIndent () override
 
virtual void SAL_CALL setRightIndent (float _rightindent) override
 
virtual css::uno::Any SAL_CALL getTabStops () override
 
virtual void SAL_CALL setTabStops (const css::uno::Any &_tabstops) override
 
virtual css::uno::Any SAL_CALL getWidowControl () override
 
virtual void SAL_CALL setWidowControl (const css::uno::Any &_widowcontrol) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< typename... Ifc >
 InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
 InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual OUString getServiceImplName ()=0
 
virtual css::uno::Sequence< OUString > getServiceNames ()=0
 
virtual ::sal_Int32 SAL_CALL getCreator () override
 
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent () override
 
virtual css::uno::Any SAL_CALL Application () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

css::style::LineSpacing getOOoLineSpacingFromRule (sal_Int32 _linespacingrule)
 
sal_Int16 getCharHeight ()
 

Static Private Member Functions

static css::style::LineSpacing getOOoLineSpacing (float _lineSpace, sal_Int16 mode)
 
static float getMSWordLineSpacing (css::style::LineSpacing const &rLineSpacing)
 
static sal_Int32 getMSWordLineSpacingRule (css::style::LineSpacing const &rLineSpacing)
 
static css::style::ParagraphAdjust getOOoAlignment (sal_Int32 _alignment)
 
static sal_Int32 getMSWordAlignment (css::style::ParagraphAdjust _alignment)
 

Private Attributes

css::uno::Reference< css::beans::XPropertySetmxParaProps
 

Additional Inherited Members

- Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 29 of file vbaparagraphformat.hxx.

Constructor & Destructor Documentation

◆ SwVbaParagraphFormat()

SwVbaParagraphFormat::SwVbaParagraphFormat ( const css::uno::Reference< ooo::vba::XHelperInterface > &  rParent,
const css::uno::Reference< css::uno::XComponentContext > &  rContext,
css::uno::Reference< css::beans::XPropertySet xParaProps 
)

Definition at line 41 of file vbaparagraphformat.cxx.

◆ ~SwVbaParagraphFormat()

SwVbaParagraphFormat::~SwVbaParagraphFormat ( )
overridevirtual

Definition at line 45 of file vbaparagraphformat.cxx.

Member Function Documentation

◆ getAlignment()

sal_Int32 SAL_CALL SwVbaParagraphFormat::getAlignment ( )
override

Definition at line 49 of file vbaparagraphformat.cxx.

References getMSWordAlignment(), and mxParaProps.

◆ getCharHeight()

sal_Int16 SwVbaParagraphFormat::getCharHeight ( )
private
Exceptions
css::uno::RuntimeException

Definition at line 478 of file vbaparagraphformat.cxx.

References mxParaProps.

Referenced by getOOoLineSpacingFromRule().

◆ getFirstLineIndent()

float SAL_CALL SwVbaParagraphFormat::getFirstLineIndent ( )
overridevirtual

Definition at line 62 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getHyphenation()

uno::Any SAL_CALL SwVbaParagraphFormat::getHyphenation ( )
overridevirtual

Definition at line 115 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getKeepTogether()

uno::Any SAL_CALL SwVbaParagraphFormat::getKeepTogether ( )
overridevirtual

Definition at line 75 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getKeepWithNext()

uno::Any SAL_CALL SwVbaParagraphFormat::getKeepWithNext ( )
overridevirtual

Definition at line 95 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getLeftIndent()

float SAL_CALL SwVbaParagraphFormat::getLeftIndent ( )
overridevirtual

Definition at line 268 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getLineSpacing()

float SAL_CALL SwVbaParagraphFormat::getLineSpacing ( )
overridevirtual

Definition at line 135 of file vbaparagraphformat.cxx.

References getMSWordLineSpacing(), and mxParaProps.

◆ getLineSpacingRule()

sal_Int32 SAL_CALL SwVbaParagraphFormat::getLineSpacingRule ( )
override

Definition at line 150 of file vbaparagraphformat.cxx.

References getMSWordLineSpacingRule(), and mxParaProps.

◆ getMSWordAlignment()

sal_Int32 SwVbaParagraphFormat::getMSWordAlignment ( css::style::ParagraphAdjust  _alignment)
staticprivate

Definition at line 518 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER.

Referenced by getAlignment().

◆ getMSWordLineSpacing()

float SwVbaParagraphFormat::getMSWordLineSpacing ( css::style::LineSpacing const &  rLineSpacing)
staticprivate

Definition at line 414 of file vbaparagraphformat.cxx.

References CHARACTER_INDENT_FACTOR, and PERCENT100.

Referenced by getLineSpacing().

◆ getMSWordLineSpacingRule()

sal_Int32 SwVbaParagraphFormat::getMSWordLineSpacingRule ( css::style::LineSpacing const &  rLineSpacing)
staticprivate

Definition at line 428 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, PERCENT100, PERCENT150, and PERCENT200.

Referenced by getLineSpacingRule().

◆ getNoLineNumber()

uno::Any SAL_CALL SwVbaParagraphFormat::getNoLineNumber ( )
overridevirtual

Definition at line 163 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getOOoAlignment()

style::ParagraphAdjust SwVbaParagraphFormat::getOOoAlignment ( sal_Int32  _alignment)
staticprivate

Definition at line 485 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER.

Referenced by setAlignment().

◆ getOOoLineSpacing()

style::LineSpacing SwVbaParagraphFormat::getOOoLineSpacing ( float  _lineSpace,
sal_Int16  mode 
)
staticprivate

Definition at line 333 of file vbaparagraphformat.cxx.

References CHARACTER_INDENT_FACTOR, mode, PERCENT100, PERCENT150, and PERCENT200.

Referenced by setLineSpacing().

◆ getOOoLineSpacingFromRule()

style::LineSpacing SwVbaParagraphFormat::getOOoLineSpacingFromRule ( sal_Int32  _linespacingrule)
private

◆ getOutlineLevel()

sal_Int32 SAL_CALL SwVbaParagraphFormat::getOutlineLevel ( )
override

Definition at line 183 of file vbaparagraphformat.cxx.

References mxParaProps, o3tl::toInt32(), and u.

Referenced by setOutlineLevel().

◆ getPageBreakBefore()

uno::Any SAL_CALL SwVbaParagraphFormat::getPageBreakBefore ( )
overridevirtual

Definition at line 205 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getRightIndent()

float SAL_CALL SwVbaParagraphFormat::getRightIndent ( )
overridevirtual

Definition at line 281 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getServiceImplName()

OUString SwVbaParagraphFormat::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

uno::Sequence< OUString > SwVbaParagraphFormat::getServiceNames ( )
overridevirtual

◆ getSpaceAfter()

float SAL_CALL SwVbaParagraphFormat::getSpaceAfter ( )
overridevirtual

Definition at line 255 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getSpaceBefore()

float SAL_CALL SwVbaParagraphFormat::getSpaceBefore ( )
overridevirtual

Definition at line 242 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ getTabStops()

uno::Any SAL_CALL SwVbaParagraphFormat::getTabStops ( )
overridevirtual

◆ getWidowControl()

uno::Any SAL_CALL SwVbaParagraphFormat::getWidowControl ( )
overridevirtual

Definition at line 304 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ setAlignment()

void SAL_CALL SwVbaParagraphFormat::setAlignment ( ::sal_Int32  _alignment)
overridevirtual

Definition at line 56 of file vbaparagraphformat.cxx.

References getOOoAlignment(), and mxParaProps.

◆ setFirstLineIndent()

void SAL_CALL SwVbaParagraphFormat::setFirstLineIndent ( float  _firstlineindent)
overridevirtual

Definition at line 69 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ setHyphenation()

void SAL_CALL SwVbaParagraphFormat::setHyphenation ( const css::uno::Any &  _hyphenation)
overridevirtual

Definition at line 122 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

◆ setKeepTogether()

void SAL_CALL SwVbaParagraphFormat::setKeepTogether ( const css::uno::Any &  _keeptogether)
overridevirtual

Definition at line 82 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

◆ setKeepWithNext()

void SAL_CALL SwVbaParagraphFormat::setKeepWithNext ( const css::uno::Any &  _keepwithnext)
overridevirtual

Definition at line 102 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

◆ setLeftIndent()

void SAL_CALL SwVbaParagraphFormat::setLeftIndent ( float  _leftindent)
overridevirtual

Definition at line 275 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ setLineSpacing()

void SAL_CALL SwVbaParagraphFormat::setLineSpacing ( float  _linespacing)
overridevirtual

Definition at line 142 of file vbaparagraphformat.cxx.

References getOOoLineSpacing(), and mxParaProps.

◆ setLineSpacingRule()

void SAL_CALL SwVbaParagraphFormat::setLineSpacingRule ( ::sal_Int32  _linespacingrule)
overridevirtual

Definition at line 157 of file vbaparagraphformat.cxx.

References getOOoLineSpacingFromRule(), and mxParaProps.

◆ setNoLineNumber()

void SAL_CALL SwVbaParagraphFormat::setNoLineNumber ( const css::uno::Any &  _nolinenumber)
overridevirtual

Definition at line 170 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

◆ setOutlineLevel()

void SAL_CALL SwVbaParagraphFormat::setOutlineLevel ( ::sal_Int32  _outlinelevel)
overridevirtual

Definition at line 197 of file vbaparagraphformat.cxx.

References getOutlineLevel().

◆ setPageBreakBefore()

void SAL_CALL SwVbaParagraphFormat::setPageBreakBefore ( const css::uno::Any &  _pagebreakbefore)
overridevirtual

Definition at line 213 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

◆ setRightIndent()

void SAL_CALL SwVbaParagraphFormat::setRightIndent ( float  _rightindent)
overridevirtual

Definition at line 288 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ setSpaceAfter()

void SAL_CALL SwVbaParagraphFormat::setSpaceAfter ( float  _spaceafter)
overridevirtual

Definition at line 262 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ setSpaceBefore()

void SAL_CALL SwVbaParagraphFormat::setSpaceBefore ( float  _spacebefore)
overridevirtual

Definition at line 249 of file vbaparagraphformat.cxx.

References mxParaProps.

◆ setTabStops()

void SAL_CALL SwVbaParagraphFormat::setTabStops ( const css::uno::Any &  _tabstops)
overridevirtual

Definition at line 299 of file vbaparagraphformat.cxx.

◆ setWidowControl()

void SAL_CALL SwVbaParagraphFormat::setWidowControl ( const css::uno::Any &  _widowcontrol)
overridevirtual

Definition at line 316 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

Member Data Documentation

◆ mxParaProps

css::uno::Reference< css::beans::XPropertySet > SwVbaParagraphFormat::mxParaProps
private

The documentation for this class was generated from the following files: