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:
Collaboration diagram for SwVbaPageSetup:

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 

Definition at line 29 of file vbapagesetup.cxx.

References mxModel, and xModel.

Member Function Documentation

◆ getDifferentFirstPageHeaderFooter()

sal_Bool SAL_CALL SwVbaPageSetup::getDifferentFirstPageHeaderFooter ( )

Definition at line 134 of file vbapagesetup.cxx.

References getStyleOfFirstPage().

Referenced by setDifferentFirstPageHeaderFooter().

◆ getFooterDistance()

double SAL_CALL SwVbaPageSetup::getFooterDistance ( )

Definition at line 100 of file vbapagesetup.cxx.

References VbaPageSetupBase::getFooterMargin().

◆ getGutter()

double SAL_CALL SwVbaPageSetup::getGutter ( )

Definition at line 41 of file vbapagesetup.cxx.

◆ getHeaderDistance()

double SAL_CALL SwVbaPageSetup::getHeaderDistance ( )

Definition at line 57 of file vbapagesetup.cxx.

References VbaPageSetupBase::getHeaderMargin().

◆ getSectionStart()

sal_Int32 SAL_CALL SwVbaPageSetup::getSectionStart ( )

Definition at line 223 of file vbapagesetup.cxx.

◆ getServiceImplName()

OUString SwVbaPageSetup::getServiceImplName ( )

Definition at line 245 of file vbapagesetup.cxx.

◆ getServiceNames()

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

Definition at line 251 of file vbapagesetup.cxx.

References aServiceNames.

◆ getStyleOfFirstPage()

OUString SwVbaPageSetup::getStyleOfFirstPage ( ) const

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)

◆ setFooterDistance()

void SAL_CALL SwVbaPageSetup::setFooterDistance ( double  _footerdistance)

Definition at line 109 of file vbapagesetup.cxx.

◆ setGutter()

void SAL_CALL SwVbaPageSetup::setGutter ( double  _gutter)

◆ setHeaderDistance()

void SAL_CALL SwVbaPageSetup::setHeaderDistance ( double  _headerdistance)

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).

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)

Definition at line 238 of file vbapagesetup.cxx.

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