LibreOffice Module basctl (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
basctl::Renderable Class Reference

#include <basicrenderable.hxx>

Inheritance diagram for basctl::Renderable:
[legend]
Collaboration diagram for basctl::Renderable:
[legend]

Public Member Functions

 Renderable (BaseWindow *)
 
virtual ~Renderable () override
 
virtual sal_Int32 SAL_CALL getRendererCount (const css::uno::Any &aSelection, const css::uno::Sequence< css::beans::PropertyValue > &xOptions) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRenderer (sal_Int32 nRenderer, const css::uno::Any &rSelection, const css::uno::Sequence< css::beans::PropertyValue > &rxOptions) override
 
virtual void SAL_CALL render (sal_Int32 nRenderer, const css::uno::Any &rSelection, const css::uno::Sequence< css::beans::PropertyValue > &rxOptions) override
 
- Public Member Functions inherited from vcl::PrinterOptionsHelper
 PrinterOptionsHelper ()
 
bool processProperties (const css::uno::Sequence< css::beans::PropertyValue > &i_rNewProp)
 
void appendPrintUIOptions (css::uno::Sequence< css::beans::PropertyValue > &io_rProps) const
 
css::uno::Any getValue (const OUString &i_rPropertyName) const
 
bool getBoolValue (const OUString &i_rPropertyName, bool i_bDefault) const
 
bool getBoolValue (const char *i_pPropName, bool i_bDefault=false) const
 
sal_Int64 getIntValue (const OUString &i_rPropertyName, sal_Int64 i_nDefault) const
 
sal_Int64 getIntValue (const char *i_pPropName, sal_Int64 i_nDefault) const
 
OUString getStringValue (const OUString &i_rPropertyName) const
 
OUString getStringValue (const char *i_pPropName) const
 

Private Member Functions

VclPtr< PrintergetPrinter () const
 
bool isPrintOddPages () const
 
bool isPrintEvenPages () const
 

Static Private Member Functions

static bool isOnEvenPage (sal_Int32 nPage)
 

Private Attributes

VclPtr< BaseWindowmpWindow
 
osl::Mutex maMutex
 
std::vector< sal_Int32 > maValidPages
 

Additional Inherited Members

- Static Public Member Functions inherited from vcl::PrinterOptionsHelper
static css::uno::Any setUIControlOpt (const css::uno::Sequence< OUString > &i_rIDs, const OUString &i_rTitle, const css::uno::Sequence< OUString > &i_rHelpId, const OUString &i_rType, const css::beans::PropertyValue *i_pValue=nullptr, const UIControlOptions &i_rControlOptions=UIControlOptions())
 
static css::uno::Any setGroupControlOpt (const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId)
 
static css::uno::Any setSubgroupControlOpt (const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId, const UIControlOptions &i_rControlOptions=UIControlOptions())
 
static css::uno::Any setBoolControlOpt (const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId, const OUString &i_rProperty, bool i_bValue, const UIControlOptions &i_rControlOptions=UIControlOptions())
 
static css::uno::Any setChoiceListControlOpt (const OUString &i_rID, const OUString &i_rTitle, const css::uno::Sequence< OUString > &i_rHelpId, const OUString &i_rProperty, const css::uno::Sequence< OUString > &i_rChoices, sal_Int32 i_nValue, const css::uno::Sequence< sal_Bool > &i_rDisabledChoices=css::uno::Sequence< sal_Bool >(), const UIControlOptions &i_rControlOptions=UIControlOptions())
 
static css::uno::Any setChoiceRadiosControlOpt (const css::uno::Sequence< OUString > &i_rIDs, const OUString &i_rTitle, const css::uno::Sequence< OUString > &i_rHelpId, const OUString &i_rProperty, const css::uno::Sequence< OUString > &i_rChoices, sal_Int32 i_nValue, const css::uno::Sequence< sal_Bool > &i_rDisabledChoices=css::uno::Sequence< sal_Bool >(), const UIControlOptions &i_rControlOptions=UIControlOptions())
 
static css::uno::Any setRangeControlOpt (const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId, const OUString &i_rProperty, sal_Int32 i_nValue, sal_Int32 i_nMinValue, sal_Int32 i_nMaxValue, const UIControlOptions &i_rControlOptions)
 
static css::uno::Any setEditControlOpt (const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId, const OUString &i_rProperty, const OUString &i_rValue, const UIControlOptions &i_rControlOptions)
 
- Protected Attributes inherited from vcl::PrinterOptionsHelper
std::unordered_map< OUString, css::uno::Any > m_aPropertyMap
 
std::vector< css::beans::PropertyValue > m_aUIProperties
 

Detailed Description

Definition at line 31 of file basicrenderable.hxx.

Constructor & Destructor Documentation

◆ Renderable()

basctl::Renderable::Renderable ( BaseWindow pWin)
explicit

◆ ~Renderable()

basctl::Renderable::~Renderable ( )
overridevirtual

Definition at line 79 of file basicrenderable.cxx.

Member Function Documentation

◆ getPrinter()

VclPtr< Printer > basctl::Renderable::getPrinter ( ) const
private

◆ getRenderer()

Sequence< beans::PropertyValue > SAL_CALL basctl::Renderable::getRenderer ( sal_Int32  nRenderer,
const css::uno::Any &  rSelection,
const css::uno::Sequence< css::beans::PropertyValue > &  rxOptions 
)
overridevirtual

◆ getRendererCount()

sal_Int32 SAL_CALL basctl::Renderable::getRendererCount ( const css::uno::Any &  aSelection,
const css::uno::Sequence< css::beans::PropertyValue > &  xOptions 
)
overridevirtual

◆ isOnEvenPage()

static bool basctl::Renderable::isOnEvenPage ( sal_Int32  nPage)
inlinestaticprivate

Definition at line 42 of file basicrenderable.hxx.

Referenced by getRendererCount().

◆ isPrintEvenPages()

bool basctl::Renderable::isPrintEvenPages ( ) const
private

Definition at line 104 of file basicrenderable.cxx.

References vcl::PrinterOptionsHelper::getIntValue().

Referenced by getRendererCount().

◆ isPrintOddPages()

bool basctl::Renderable::isPrintOddPages ( ) const
private

Definition at line 98 of file basicrenderable.cxx.

References vcl::PrinterOptionsHelper::getIntValue().

Referenced by getRendererCount().

◆ render()

void SAL_CALL basctl::Renderable::render ( sal_Int32  nRenderer,
const css::uno::Any &  rSelection,
const css::uno::Sequence< css::beans::PropertyValue > &  rxOptions 
)
overridevirtual

Member Data Documentation

◆ maMutex

osl::Mutex basctl::Renderable::maMutex
private

Definition at line 36 of file basicrenderable.hxx.

◆ maValidPages

std::vector<sal_Int32> basctl::Renderable::maValidPages
private

Definition at line 37 of file basicrenderable.hxx.

Referenced by getRendererCount(), and render().

◆ mpWindow

VclPtr<BaseWindow> basctl::Renderable::mpWindow
private

Definition at line 35 of file basicrenderable.hxx.

Referenced by getRendererCount(), and render().


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