Kaydet (Commit) ecbc6cd5 authored tarafından Oliver Specht's avatar Oliver Specht

#83255# export of gradient, hatch ...

üst 665114b0
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unotxdoc.cxx,v $ * $RCSfile: unotxdoc.cxx,v $
* *
* $Revision: 1.13 $ * $Revision: 1.14 $
* *
* last change: $Author: os $ $Date: 2001-01-24 13:36:11 $ * last change: $Author: os $ $Date: 2001-01-30 08:11:37 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -189,6 +189,9 @@ ...@@ -189,6 +189,9 @@
#ifndef _SVX_UNOMID_HXX #ifndef _SVX_UNOMID_HXX
#include <svx/unomid.hxx> #include <svx/unomid.hxx>
#endif #endif
#ifndef _SVX_UNOFILL_HXX_
#include <svx/unofill.hxx>
#endif
#ifndef _UNO_LINGU_HXX #ifndef _UNO_LINGU_HXX
#include <svx/unolingu.hxx> #include <svx/unolingu.hxx>
#endif #endif
...@@ -1723,12 +1726,42 @@ Reference< XInterface > SwXTextDocument::createInstance(const OUString& rServic ...@@ -1723,12 +1726,42 @@ Reference< XInterface > SwXTextDocument::createInstance(const OUString& rServic
sal_Bool bShape = sCategory == C2U("drawing"); sal_Bool bShape = sCategory == C2U("drawing");
if( bShape || sCategory == C2U("form")) if( bShape || sCategory == C2U("form"))
{ {
//hier den Draw - Service suchen
Reference< XInterface > xTmp = SvxFmMSFactory::createInstance(rServiceName);
if(bShape) if(bShape)
xRet = *new SwXShape( xTmp ); {
else if( 0 == rServiceName.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.DashTable") ) )
xRet = xTmp; {
xRet = SvxUnoDashTable_createInstance( pDocShell->GetDoc()->MakeDrawModel() );
}
if( 0 == rServiceName.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.GradientTable") ) )
{
xRet = SvxUnoGradientTable_createInstance( pDocShell->GetDoc()->MakeDrawModel() );
}
if( 0 == rServiceName.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.HatchTable") ) )
{
xRet = SvxUnoHatchTable_createInstance( pDocShell->GetDoc()->MakeDrawModel() );
}
if( 0 == rServiceName.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.BitmapTable") ) )
{
xRet = SvxUnoBitmapTable_createInstance( pDocShell->GetDoc()->MakeDrawModel() );
}
if( 0 == rServiceName.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.TransparencyGradientTable") ) )
{
xRet = SvxUnoTransGradientTable_createInstance( pDocShell->GetDoc()->MakeDrawModel() );
}
if( 0 == rServiceName.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.MarkerTable") ) )
{
xRet = SvxUnoMarkerTable_createInstance( pDocShell->GetDoc()->MakeDrawModel() );
}
}
if(!xRet.is())
{
//hier den Draw - Service suchen
Reference< XInterface > xTmp = SvxFmMSFactory::createInstance(rServiceName);
if(bShape)
xRet = *new SwXShape( xTmp );
else
xRet = xTmp;
}
} }
} }
else else
......
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