Kaydet (Commit) 1d6dca3c authored tarafından Andrzej Hunt's avatar Andrzej Hunt

Add Tiled Rendering outline to sd.

Change-Id: I810d827f330690f8071b662b9ddd05cc41655a71
üst 855eb54f
......@@ -45,6 +45,8 @@
#include <sfx2/sfxbasemodel.hxx>
#include <svx/fmdmod.hxx>
#include <vcl/ITiledRenderable.hxx>
#include <editeng/unoipset.hxx>
#include <comphelper/servicehelper.hxx>
......@@ -76,7 +78,8 @@ class SdXImpressDocument : public SfxBaseModel, // implements SfxListener, OWEAK
public ::com::sun::star::lang::XServiceInfo,
public ::com::sun::star::ucb::XAnyCompareFactory,
public ::com::sun::star::presentation::XHandoutMasterSupplier,
public ::com::sun::star::view::XRenderable
public ::com::sun::star::view::XRenderable,
public ::vcl::ITiledRenderable
{
friend class SdDrawPagesAccess;
friend class SdMasterPagesAccess;
......@@ -218,6 +221,19 @@ public:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// ITiledRenderable
virtual void paintTile( VirtualDevice& rDevice,
int nOutputWidth,
int nOutputHeight,
int nTilePosX,
int nTilePosY,
long nTileWidth,
long nTileHeight ) SAL_OVERRIDE;
virtual Size getDocumentSize() SAL_OVERRIDE;
virtual void setPart( int nPart ) SAL_OVERRIDE;
virtual int getPart() SAL_OVERRIDE;
virtual int getParts() SAL_OVERRIDE;
// XComponent
/** This dispose implementation releases the resources held by the
......
......@@ -2185,6 +2185,41 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r
}
}
void SdXImpressDocument::paintTile( VirtualDevice& rDevice,
int nOutputWidth, int nOutputHeight,
int nTilePosX, int nTilePosY,
long nTileWidth, long nTileHeight )
{
(void) rDevice;
(void) nOutputWidth;
(void) nOutputHeight;
(void) nTilePosX;
(void) nTilePosY;
(void) nTileWidth;
(void) nTileHeight;
}
void SdXImpressDocument::setPart( int nPart )
{
(void) nPart;
}
int SdXImpressDocument::getParts()
{
return mpDoc->GetPageCount();
}
int SdXImpressDocument::getPart()
{
return 0;
}
Size SdXImpressDocument::getDocumentSize()
{
return Size( 100, 100 );
}
uno::Reference< i18n::XForbiddenCharacters > SdXImpressDocument::getForbiddenCharsTable()
{
uno::Reference< i18n::XForbiddenCharacters > xForb(mxForbidenCharacters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment