ka102: SVG import implementation

This commit is contained in:
ka
2011-02-04 14:49:25 +01:00
parent 99ff7a9fb5
commit d1da85e8f5
32 changed files with 952 additions and 423 deletions

View File

@@ -82,6 +82,7 @@
#include <lineaction.hxx>
#include <pointaction.hxx>
#include <polypolyaction.hxx>
#include <rendergraphicaction.hxx>
#include <textaction.hxx>
#include <transparencygroupaction.hxx>
#include <vector>
@@ -2646,6 +2647,32 @@ namespace cppcanvas
}
break;
case META_RENDERGRAPHIC_ACTION:
{
MetaRenderGraphicAction* pAct = static_cast<MetaRenderGraphicAction*>(pCurrAct);
ActionSharedPtr pRenderGraphicAction(
internal::RenderGraphicActionFactory::createRenderGraphicAction(
pAct->GetRenderGraphic(),
getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetSize() ),
rCanvas,
getState( rStates ) ) );
if( pRenderGraphicAction )
{
maActions.push_back(
MtfAction(
pRenderGraphicAction,
io_rCurrActionIndex ) );
io_rCurrActionIndex += pRenderGraphicAction->getActionCount()-1;
}
}
break;
default:
OSL_ENSURE( false,
"Unknown meta action type encountered" );