LibreOffice Module vcl (master) 1
|
#include <print.hxx>
Classes | |
struct | UIControlOptions |
Public Member Functions | |
PrinterOptionsHelper () | |
Create without ui properties. More... | |
bool | processProperties (const css::uno::Sequence< css::beans::PropertyValue > &i_rNewProp) |
Process a new set of properties. More... | |
void | appendPrintUIOptions (css::uno::Sequence< css::beans::PropertyValue > &io_rProps) const |
Append to a sequence of property values the ui property sequence passed at creation. More... | |
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 |
Static Public Member Functions | |
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()) |
Show general control. More... | |
static css::uno::Any | setGroupControlOpt (const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId) |
Show and set the title of a TagPage of id i_rID. More... | |
static css::uno::Any | setSubgroupControlOpt (const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId, const UIControlOptions &i_rControlOptions=UIControlOptions()) |
Show and set the label of a VclFrame of id i_rID. More... | |
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()) |
Show a bool option as a checkbox. More... | |
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()) |
Show a set of choices in a list box. More... | |
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()) |
Show a set of choices as radio buttons. More... | |
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) |
Show an integer range (e.g. More... | |
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) |
Show a string field. More... | |
Protected Attributes | |
std::unordered_map< OUString, css::uno::Any > | m_aPropertyMap |
std::vector< css::beans::PropertyValue > | m_aUIProperties |
|
inline |
void PrinterOptionsHelper::appendPrintUIOptions | ( | css::uno::Sequence< css::beans::PropertyValue > & | io_rProps | ) | const |
Append to a sequence of property values the ui property sequence passed at creation.
as the "ExtraPrintUIOptions" property. if that sequence was empty, no "ExtraPrintUIOptions" property will be appended.
Definition at line 1903 of file print3.cxx.
References comphelper::containerToSequence(), m_aUIProperties, comphelper::makePropertyValue(), and nIndex.
|
inline |
bool PrinterOptionsHelper::getBoolValue | ( | const OUString & | i_rPropertyName, |
bool | i_bDefault | ||
) | const |
Definition at line 1863 of file print3.cxx.
References getValue().
|
inline |
sal_Int64 PrinterOptionsHelper::getIntValue | ( | const OUString & | i_rPropertyName, |
sal_Int64 | i_nDefault | ||
) | const |
Definition at line 1870 of file print3.cxx.
References getValue().
|
inline |
OUString PrinterOptionsHelper::getStringValue | ( | const OUString & | i_rPropertyName | ) | const |
Definition at line 1877 of file print3.cxx.
References getValue().
css::uno::Any PrinterOptionsHelper::getValue | ( | const OUString & | i_rPropertyName | ) | const |
Definition at line 1853 of file print3.cxx.
References m_aPropertyMap.
Referenced by getBoolValue(), getIntValue(), and getStringValue().
bool PrinterOptionsHelper::processProperties | ( | const css::uno::Sequence< css::beans::PropertyValue > & | i_rNewProp | ) |
Process a new set of properties.
merges changed properties and returns "true" if any occurred
Definition at line 1884 of file print3.cxx.
References m_aPropertyMap.
|
static |
Show a bool option as a checkbox.
Definition at line 2031 of file print3.cxx.
References setUIControlOpt().
|
static |
Show a set of choices in a list box.
Definition at line 2077 of file print3.cxx.
References vcl::PrinterOptionsHelper::UIControlOptions::maAddProps, and setUIControlOpt().
|
static |
Show a set of choices as radio buttons.
Definition at line 2051 of file print3.cxx.
References vcl::PrinterOptionsHelper::UIControlOptions::maAddProps, and setUIControlOpt().
|
static |
Show a string field.
note: max value < min value means do not apply min/max values
Definition at line 2137 of file print3.cxx.
References setUIControlOpt().
|
static |
Show and set the title of a TagPage of id i_rID.
Definition at line 2002 of file print3.cxx.
References setUIControlOpt().
|
static |
Show an integer range (e.g.
a spin field)
note: max value < min value means do not apply min/max values
Definition at line 2104 of file print3.cxx.
References vcl::PrinterOptionsHelper::UIControlOptions::maAddProps, and setUIControlOpt().
|
static |
Show and set the label of a VclFrame of id i_rID.
Definition at line 2016 of file print3.cxx.
References setUIControlOpt().
|
static |
Show general control.
Definition at line 1914 of file print3.cxx.
References i, vcl::PrinterOptionsHelper::UIControlOptions::maAddProps, vcl::PrinterOptionsHelper::UIControlOptions::maDependsOnName, vcl::PrinterOptionsHelper::UIControlOptions::maGroupHint, vcl::PrinterOptionsHelper::UIControlOptions::mbAttachToDependency, vcl::PrinterOptionsHelper::UIControlOptions::mbEnabled, vcl::PrinterOptionsHelper::UIControlOptions::mbInternalOnly, vcl::PrinterOptionsHelper::UIControlOptions::mnDependsOnEntry, nElements, and SAL_WARN_IF.
Referenced by setBoolControlOpt(), setChoiceListControlOpt(), setChoiceRadiosControlOpt(), setEditControlOpt(), setGroupControlOpt(), setRangeControlOpt(), and setSubgroupControlOpt().
|
protected |
Definition at line 493 of file print.hxx.
Referenced by getValue(), and processProperties().
|
protected |
Definition at line 495 of file print.hxx.
Referenced by appendPrintUIOptions().