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::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 29 of file vbapagesetup.cxx.

References mxModel, and xModel.

Member Function Documentation

◆ getDifferentFirstPageHeaderFooter()

sal_Bool SAL_CALL SwVbaPageSetup::getDifferentFirstPageHeaderFooter ( )
overridevirtual

Definition at line 134 of file vbapagesetup.cxx.

References getStyleOfFirstPage().

Referenced by setDifferentFirstPageHeaderFooter().

◆ getFooterDistance()

double SAL_CALL SwVbaPageSetup::getFooterDistance ( )
overridevirtual

Definition at line 100 of file vbapagesetup.cxx.

References VbaPageSetupBase::getFooterMargin().

◆ getGutter()

double SAL_CALL SwVbaPageSetup::getGutter ( )
overridevirtual

Definition at line 41 of file vbapagesetup.cxx.

◆ getHeaderDistance()

double SAL_CALL SwVbaPageSetup::getHeaderDistance ( )
overridevirtual

Definition at line 57 of file vbapagesetup.cxx.

References VbaPageSetupBase::getHeaderMargin().

◆ getSectionStart()

sal_Int32 SAL_CALL SwVbaPageSetup::getSectionStart ( )
override

Definition at line 223 of file vbapagesetup.cxx.

◆ getServiceImplName()

OUString SwVbaPageSetup::getServiceImplName ( )
overridevirtual

Definition at line 245 of file vbapagesetup.cxx.

◆ getServiceNames()

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

Definition at line 251 of file vbapagesetup.cxx.

References aServiceNames.

◆ getStyleOfFirstPage()

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

Definition at line 201 of file vbapagesetup.cxx.

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

Referenced by getDifferentFirstPageHeaderFooter().

◆ setDifferentFirstPageHeaderFooter()

void SAL_CALL SwVbaPageSetup::setDifferentFirstPageHeaderFooter ( sal_Bool  status)
overridevirtual

◆ setFooterDistance()

void SAL_CALL SwVbaPageSetup::setFooterDistance ( double  _footerdistance)
overridevirtual

Definition at line 109 of file vbapagesetup.cxx.

◆ setGutter()

void SAL_CALL SwVbaPageSetup::setGutter ( double  _gutter)
overridevirtual

◆ setHeaderDistance()

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
headerDistance is the value that is set in MS Word for the distance from the top of the page to the header

Definition at line 75 of file vbapagesetup.cxx.

◆ setSectionStart()

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

Definition at line 238 of file vbapagesetup.cxx.


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