22#include <com/sun/star/uno/Reference.hxx>
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/rendering/XCachedPrimitive.hpp>
25#include <com/sun/star/rendering/ViewState.hpp>
56 css::uno::Reference< css::rendering::XCanvas > xTarget );
59 virtual void disposing(std::unique_lock<std::mutex>& rGuard)
override;
62 virtual ::sal_Int8 SAL_CALL redraw(
const css::rendering::ViewState& aState )
override;
93 virtual ::sal_Int8
doRedraw(
const css::rendering::ViewState& rNewState,
94 const css::rendering::ViewState& rOldState,
95 const css::uno::Reference< css::rendering::XCanvas >& rTargetCanvas,
96 bool bSameViewTransform ) = 0;
99 css::uno::Reference< css::rendering::XCanvas >
mxTarget;
Base class, providing common functionality for implementers of the XCachedPrimitive interface.
CachedPrimitiveBase & operator=(const CachedPrimitiveBase &)=delete
css::rendering::ViewState maUsedViewState
css::uno::Reference< css::rendering::XCanvas > mxTarget
CachedPrimitiveBase(css::rendering::ViewState rUsedViewState, css::uno::Reference< css::rendering::XCanvas > xTarget)
Create an XCachedPrimitive for given target canvas.
CachedPrimitiveBase(const CachedPrimitiveBase &)=delete
virtual ::sal_Int8 doRedraw(const css::rendering::ViewState &rNewState, const css::rendering::ViewState &rOldState, const css::uno::Reference< css::rendering::XCanvas > &rTargetCanvas, bool bSameViewTransform)=0
Actually perform the requested redraw.
comphelper::WeakComponentImplHelper< css::rendering::XCachedPrimitive, css::lang::XServiceInfo > CachedPrimitiveBase_Base
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)