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, const css::uno::Reference< css::beans::XPropertySet > &rParaProps)
 
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< 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, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
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 ( const css::uno::Reference< ooo::vba::XHelperInterface > &  rParent,
const css::uno::Reference< css::uno::XComponentContext > &  rContext,
const css::uno::Reference< css::beans::XPropertySet > &  rParaProps 
)

Definition at line 40 of file vbaparagraphformat.cxx.

SwVbaParagraphFormat::~SwVbaParagraphFormat ( )
overridevirtual

Definition at line 44 of file vbaparagraphformat.cxx.

Member Function Documentation

sal_Int32 SAL_CALL SwVbaParagraphFormat::getAlignment ( )
override

Definition at line 48 of file vbaparagraphformat.cxx.

References getMSWordAlignment(), and mxParaProps.

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

Definition at line 477 of file vbaparagraphformat.cxx.

References mxParaProps.

Referenced by getOOoLineSpacingFromRule().

float SAL_CALL SwVbaParagraphFormat::getFirstLineIndent ( )
overridevirtual

Definition at line 61 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 114 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 74 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 94 of file vbaparagraphformat.cxx.

References mxParaProps.

float SAL_CALL SwVbaParagraphFormat::getLeftIndent ( )
overridevirtual

Definition at line 267 of file vbaparagraphformat.cxx.

References mxParaProps.

float SAL_CALL SwVbaParagraphFormat::getLineSpacing ( )
overridevirtual

Definition at line 134 of file vbaparagraphformat.cxx.

References getMSWordLineSpacing(), and mxParaProps.

sal_Int32 SAL_CALL SwVbaParagraphFormat::getLineSpacingRule ( )
override

Definition at line 149 of file vbaparagraphformat.cxx.

References getMSWordLineSpacingRule(), and mxParaProps.

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

Definition at line 517 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER.

Referenced by getAlignment().

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

Definition at line 413 of file vbaparagraphformat.cxx.

References CHARACTER_INDENT_FACTOR, and PERCENT100.

Referenced by getLineSpacing().

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

Definition at line 427 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, PERCENT100, PERCENT150, and PERCENT200.

Referenced by getLineSpacingRule().

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

Definition at line 162 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 484 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER.

Referenced by setAlignment().

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

Definition at line 332 of file vbaparagraphformat.cxx.

References CHARACTER_INDENT_FACTOR, PERCENT100, PERCENT150, and PERCENT200.

Referenced by setLineSpacing().

style::LineSpacing SwVbaParagraphFormat::getOOoLineSpacingFromRule ( sal_Int32  _linespacingrule)
private
sal_Int32 SAL_CALL SwVbaParagraphFormat::getOutlineLevel ( )
override

Definition at line 182 of file vbaparagraphformat.cxx.

References mxParaProps, and toInt32().

Referenced by setOutlineLevel().

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

Definition at line 204 of file vbaparagraphformat.cxx.

References mxParaProps.

float SAL_CALL SwVbaParagraphFormat::getRightIndent ( )
overridevirtual

Definition at line 280 of file vbaparagraphformat.cxx.

References mxParaProps.

OUString SwVbaParagraphFormat::getServiceImplName ( )
overridevirtual
uno::Sequence< OUString > SwVbaParagraphFormat::getServiceNames ( )
overridevirtual
float SAL_CALL SwVbaParagraphFormat::getSpaceAfter ( )
overridevirtual

Definition at line 254 of file vbaparagraphformat.cxx.

References mxParaProps.

float SAL_CALL SwVbaParagraphFormat::getSpaceBefore ( )
overridevirtual

Definition at line 241 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 303 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 55 of file vbaparagraphformat.cxx.

References getOOoAlignment(), and mxParaProps.

void SAL_CALL SwVbaParagraphFormat::setFirstLineIndent ( float  _firstlineindent)
overridevirtual

Definition at line 68 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 121 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

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

Definition at line 81 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

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

Definition at line 101 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

void SAL_CALL SwVbaParagraphFormat::setLeftIndent ( float  _leftindent)
overridevirtual

Definition at line 274 of file vbaparagraphformat.cxx.

References mxParaProps.

void SAL_CALL SwVbaParagraphFormat::setLineSpacing ( float  _linespacing)
overridevirtual

Definition at line 141 of file vbaparagraphformat.cxx.

References getOOoLineSpacing(), and mxParaProps.

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

Definition at line 156 of file vbaparagraphformat.cxx.

References getOOoLineSpacingFromRule(), and mxParaProps.

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

Definition at line 169 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

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

Definition at line 196 of file vbaparagraphformat.cxx.

References getOutlineLevel().

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

Definition at line 212 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

void SAL_CALL SwVbaParagraphFormat::setRightIndent ( float  _rightindent)
overridevirtual

Definition at line 287 of file vbaparagraphformat.cxx.

References mxParaProps.

void SAL_CALL SwVbaParagraphFormat::setSpaceAfter ( float  _spaceafter)
overridevirtual

Definition at line 261 of file vbaparagraphformat.cxx.

References mxParaProps.

void SAL_CALL SwVbaParagraphFormat::setSpaceBefore ( float  _spacebefore)
overridevirtual

Definition at line 248 of file vbaparagraphformat.cxx.

References mxParaProps.

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

Definition at line 298 of file vbaparagraphformat.cxx.

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

Definition at line 315 of file vbaparagraphformat.cxx.

References ERRCODE_BASIC_BAD_PARAMETER, and mxParaProps.

Member Data Documentation

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

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