48 IDEResId( RID_STR_PRINTDLG_PAGES ), OUString(), aPrintRangeOpt);
51 OUString aPrintContentName(
"PrintContent" );
53 IDEResId(RID_STR_PRINTDLG_PRINTPAGES)};
54 const Sequence<OUString> aHelpIds{
".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0",
55 ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1"};
59 aHelpIds, aPrintContentName,
65 OUString(),
"PageRange",
66 OUString(), aPageRangeOpt);
71 uno::Sequence<OUString>(),
73 uno::Sequence<OUString>(),
75 uno::Sequence< sal_Bool >(),
89 if( aValue >>= xRenderDevice )
100 sal_Int64 nContent =
getIntValue(
"PrintContent", -1 );
101 return nContent != 2;
106 sal_Int64 nContent =
getIntValue(
"PrintContent", -1 );
107 return nContent != 3;
123 throw lang::IllegalArgumentException(
"no printer",
static_cast<cppu::OWeakObject*
>(
this), -1);
127 for (sal_Int32 nPage = 1; nPage <=
nCount; nPage++)
136 sal_Int64 nContent =
getIntValue(
"PrintContent", -1 );
137 sal_Int64 nEOContent =
getIntValue (
"EvenOdd", -1);
141 if( !aPageRange.isEmpty() )
144 sal_Int32 nSelCount = aRangeEnum.
size();
149 else if ( nEOContent == 1 || nEOContent == 2 )
168 Size aPageSize( pPrinter->PixelToLogic( pPrinter->GetPaperSizePixel(),
MapMode( MapUnit::Map100thMM ) ) );
171 aSize.Width = aPageSize.
Width();
172 aSize.Height = aPageSize.
Height();
173 aVals = ::comphelper::InitPropertySequence({
174 {
"PageSize",
Any(aSize) }
184 sal_Int32 nRenderer,
const Any&,
195 throw lang::IllegalArgumentException(
"no printer",
static_cast<cppu::OWeakObject*
>(
this), -1);
197 sal_Int64 nContent =
getIntValue(
"PrintContent", -1 );
201 if( !aPageRange.isEmpty() )
203 sal_Int32 nPageCount =
mpWindow->countPages( pPrinter );
206 for( ; it != aRangeEnum.
end() && nRenderer; --nRenderer )
209 sal_Int32 nPage = ( it != aRangeEnum.
end() ) ? *it : nRenderer;
210 mpWindow->printPage( nPage, pPrinter );
213 mpWindow->printPage( nRenderer, pPrinter );
constexpr tools::Long Height() const
constexpr tools::Long Width() const
Iterator end(const o3tl::sorted_vector< sal_Int32 > *i_pPossibleValues=nullptr) const
Iterator begin(const o3tl::sorted_vector< sal_Int32 > *i_pPossibleValues=nullptr) const
const VclPtr< OutputDevice > & GetOutputDevice() const
virtual ~Renderable() override
bool isPrintOddPages() const
virtual void SAL_CALL render(sal_Int32 nRenderer, const css::uno::Any &rSelection, const css::uno::Sequence< css::beans::PropertyValue > &rxOptions) override
VclPtr< BaseWindow > mpWindow
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
std::vector< sal_Int32 > maValidPages
VclPtr< Printer > getPrinter() const
static bool isOnEvenPage(sal_Int32 nPage)
bool isPrintEvenPages() const
virtual sal_Int32 SAL_CALL getRendererCount(const css::uno::Any &aSelection, const css::uno::Sequence< css::beans::PropertyValue > &xOptions) override
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())
OUString getStringValue(const OUString &i_rPropertyName) const
std::vector< css::beans::PropertyValue > m_aUIProperties
sal_Int64 getIntValue(const OUString &i_rPropertyName, sal_Int64 i_nDefault) const
static css::uno::Any setSubgroupControlOpt(const OUString &i_rID, const OUString &i_rTitle, const OUString &i_rHelpId, const UIControlOptions &i_rControlOptions=UIControlOptions())
css::uno::Any getValue(const OUString &i_rPropertyName) const
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())
bool processProperties(const css::uno::Sequence< css::beans::PropertyValue > &i_rNewProp)
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)
void appendPrintUIOptions(css::uno::Sequence< css::beans::PropertyValue > &io_rProps) const
OUString IDEResId(TranslateId aId)
VclPtr< vcl::Window > mpWindow