21#include <com/sun/star/view/XRenderable.hpp>
32 public cppu::WeakComponentImplHelper< css::view::XRenderable >,
42 static bool isOnEvenPage( sal_Int32 nPage ) {
return nPage % 2 == 0; };
49 const css::uno::Any& aSelection,
50 const css::uno::Sequence<css::beans::PropertyValue >& xOptions)
override;
52 virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL
getRenderer (
54 const css::uno::Any& rSelection,
55 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
override;
57 virtual void SAL_CALL
render (
59 const css::uno::Any& rSelection,
60 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
override;
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