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

#include <vbapagesetup.hxx>

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

Public Member Functions

 SwVbaPageSetup (const css::uno::Reference< ooo::vba::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::beans::XPropertySet > &xProps)
 
virtual double SAL_CALL getGutter () override
 
virtual void SAL_CALL setGutter (double _gutter) override
 
virtual double SAL_CALL getHeaderDistance () override
 
virtual void SAL_CALL setHeaderDistance (double _headerdistance) override
 changes the value of TopMargin to the value of new MS-Word-HeaderDistance. More...
 
virtual double SAL_CALL getFooterDistance () override
 
virtual void SAL_CALL setFooterDistance (double _footerdistance) override
 
virtual sal_Bool SAL_CALL getDifferentFirstPageHeaderFooter () override
 
virtual void SAL_CALL setDifferentFirstPageHeaderFooter (sal_Bool status) override
 
virtual ::sal_Int32 SAL_CALL getSectionStart () override
 
virtual void SAL_CALL setSectionStart (::sal_Int32 _sectionstart) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 

Private Member Functions

OUString getStyleOfFirstPage () const
 

Detailed Description

Definition at line 31 of file vbapagesetup.hxx.

Constructor & Destructor Documentation

SwVbaPageSetup::SwVbaPageSetup ( const css::uno::Reference< ooo::vba::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::frame::XModel > &  xModel,
const css::uno::Reference< css::beans::XPropertySet > &  xProps 
)
Exceptions
css::uno::RuntimeException

Definition at line 32 of file vbapagesetup.cxx.

References mxModel.

Member Function Documentation

sal_Bool SAL_CALL SwVbaPageSetup::getDifferentFirstPageHeaderFooter ( )
overridevirtual

Definition at line 137 of file vbapagesetup.cxx.

References getStyleOfFirstPage().

Referenced by setDifferentFirstPageHeaderFooter().

double SAL_CALL SwVbaPageSetup::getFooterDistance ( )
overridevirtual

Definition at line 103 of file vbapagesetup.cxx.

References VbaPageSetupBase::getFooterMargin().

double SAL_CALL SwVbaPageSetup::getGutter ( )
overridevirtual

Definition at line 44 of file vbapagesetup.cxx.

double SAL_CALL SwVbaPageSetup::getHeaderDistance ( )
overridevirtual

Definition at line 60 of file vbapagesetup.cxx.

References VbaPageSetupBase::getHeaderMargin().

sal_Int32 SAL_CALL SwVbaPageSetup::getSectionStart ( )
override

Definition at line 226 of file vbapagesetup.cxx.

OUString SwVbaPageSetup::getServiceImplName ( )
overridevirtual

Definition at line 248 of file vbapagesetup.cxx.

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

Definition at line 254 of file vbapagesetup.cxx.

OUString SwVbaPageSetup::getStyleOfFirstPage ( ) const
private
Exceptions
css::uno::RuntimeException

Definition at line 204 of file vbapagesetup.cxx.

References ooo::vba::word::getXTextViewCursor(), and mxModel.

Referenced by getDifferentFirstPageHeaderFooter().

void SAL_CALL SwVbaPageSetup::setDifferentFirstPageHeaderFooter ( sal_Bool  status)
overridevirtual
void SAL_CALL SwVbaPageSetup::setFooterDistance ( double  _footerdistance)
overridevirtual

Definition at line 112 of file vbapagesetup.cxx.

void SAL_CALL SwVbaPageSetup::setGutter ( double  _gutter)
overridevirtual
void SAL_CALL SwVbaPageSetup::setHeaderDistance ( double  _headerdistance)
overridevirtual

changes the value of TopMargin to the value of new MS-Word-HeaderDistance.

Subtracts the difference between old TopMargin and the new headerDistance from the value of HeaderSpacing (which defines the space between the header and the body of the text). calculates the new HeaderHeight (= height of the header + headerBodyDistance).

Parameters

Definition at line 78 of file vbapagesetup.cxx.

void SAL_CALL SwVbaPageSetup::setSectionStart ( ::sal_Int32  _sectionstart)
overridevirtual

Definition at line 241 of file vbapagesetup.cxx.


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