LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxPrintHelper Class Reference

#include <printhelper.hxx>

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

Public Member Functions

 SfxPrintHelper ()
 
virtual ~SfxPrintHelper () override
 
void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual void SAL_CALL addPrintJobListener (const css::uno::Reference< css::view::XPrintJobListener > &xListener) override
 
virtual void SAL_CALL removePrintJobListener (const css::uno::Reference< css::view::XPrintJobListener > &xListener) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPrinter () override
 
virtual void SAL_CALL setPrinter (const css::uno::Sequence< css::beans::PropertyValue > &seqPrinter) override
 
virtual void SAL_CALL print (const css::uno::Sequence< css::beans::PropertyValue > &seqOptions) override
 

Private Member Functions

void impl_setPrinter (const css::uno::Sequence< css::beans::PropertyValue > &rPrinter, VclPtr< SfxPrinter > &pPrinter, SfxPrinterChangeFlags &nChangeFlags, SfxViewShell *&pViewSh)
 

Private Attributes

std::unique_ptr< IMPL_PrintListener_DataContainerm_pData
 

Detailed Description

Definition at line 40 of file printhelper.hxx.

Constructor & Destructor Documentation

◆ SfxPrintHelper()

SfxPrintHelper::SfxPrintHelper ( )

Definition at line 144 of file printhelper.cxx.

References m_pData.

◆ ~SfxPrintHelper()

SfxPrintHelper::~SfxPrintHelper ( )
overridevirtual

Definition at line 161 of file printhelper.cxx.

Member Function Documentation

◆ addPrintJobListener()

void SAL_CALL SfxPrintHelper::addPrintJobListener ( const css::uno::Reference< css::view::XPrintJobListener > &  xListener)
overridevirtual

Definition at line 785 of file printhelper.cxx.

References m_pData.

◆ getPrinter()

uno::Sequence< beans::PropertyValue > SAL_CALL SfxPrintHelper::getPrinter ( )
overridevirtual

◆ impl_setPrinter()

void SfxPrintHelper::impl_setPrinter ( const css::uno::Sequence< css::beans::PropertyValue > &  rPrinter,
VclPtr< SfxPrinter > &  pPrinter,
SfxPrinterChangeFlags nChangeFlags,
SfxViewShell *&  pViewSh 
)
private

◆ initialize()

void SAL_CALL SfxPrintHelper::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
override

Definition at line 149 of file printhelper.cxx.

References aArguments, SfxObjectShell::GetShellFromComponent(), m_pData, and xModel.

◆ print()

void SAL_CALL SfxPrintHelper::print ( const css::uno::Sequence< css::beans::PropertyValue > &  seqOptions)
overridevirtual

◆ removePrintJobListener()

void SAL_CALL SfxPrintHelper::removePrintJobListener ( const css::uno::Reference< css::view::XPrintJobListener > &  xListener)
overridevirtual

Definition at line 791 of file printhelper.cxx.

References m_pData.

◆ setPrinter()

void SAL_CALL SfxPrintHelper::setPrinter ( const css::uno::Sequence< css::beans::PropertyValue > &  seqPrinter)
overridevirtual

Definition at line 414 of file printhelper.cxx.

References impl_setPrinter(), NONE, and SfxViewShell::SetPrinter().

Member Data Documentation

◆ m_pData

std::unique_ptr<IMPL_PrintListener_DataContainer> SfxPrintHelper::m_pData
private

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