Kaydet (Commit) c9bae4dd authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

com::sun::star->css in include/drawinglayer

Change-Id: Icc8bf14bd7876df321958bc0ed24a5587213827f
Reviewed-on: https://gerrit.libreoffice.org/19488Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 59a601d1
...@@ -46,8 +46,8 @@ class DRAWINGLAYER_DLLPUBLIC XShapeDumper ...@@ -46,8 +46,8 @@ class DRAWINGLAYER_DLLPUBLIC XShapeDumper
public: public:
XShapeDumper(); XShapeDumper();
static OUString dump(com::sun::star::uno::Reference<com::sun::star::drawing::XShapes> xPageShapes, bool bDumpInteropProperties=false); static OUString dump(css::uno::Reference<css::drawing::XShapes> xPageShapes, bool bDumpInteropProperties=false);
static OUString dump(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> xPageShapes, bool bDumpInteropProperties=false); static OUString dump(css::uno::Reference<css::drawing::XShape> xPageShapes, bool bDumpInteropProperties=false);
}; };
#endif #endif
......
...@@ -57,7 +57,7 @@ namespace drawinglayer ...@@ -57,7 +57,7 @@ namespace drawinglayer
const basegfx::BColor& rColor, const basegfx::BColor& rColor,
double fWidth = 0.0, double fWidth = 0.0,
basegfx::B2DLineJoin aB2DLineJoin = basegfx::B2DLineJoin::Round, basegfx::B2DLineJoin aB2DLineJoin = basegfx::B2DLineJoin::Round,
com::sun::star::drawing::LineCap aLineCap = com::sun::star::drawing::LineCap_BUTT); css::drawing::LineCap aLineCap = css::drawing::LineCap_BUTT);
LineAttribute(); LineAttribute();
LineAttribute(const LineAttribute& rCandidate); LineAttribute(const LineAttribute& rCandidate);
LineAttribute& operator=(const LineAttribute& rCandidate); LineAttribute& operator=(const LineAttribute& rCandidate);
...@@ -73,7 +73,7 @@ namespace drawinglayer ...@@ -73,7 +73,7 @@ namespace drawinglayer
const basegfx::BColor& getColor() const; const basegfx::BColor& getColor() const;
double getWidth() const; double getWidth() const;
basegfx::B2DLineJoin getLineJoin() const; basegfx::B2DLineJoin getLineJoin() const;
com::sun::star::drawing::LineCap getLineCap() const; css::drawing::LineCap getLineCap() const;
}; };
} // end of namespace attribute } // end of namespace attribute
} // end of namespace drawinglayer } // end of namespace drawinglayer
......
...@@ -58,7 +58,7 @@ namespace drawinglayer ...@@ -58,7 +58,7 @@ namespace drawinglayer
double fWidth, double fWidth,
double fTransparence, double fTransparence,
const basegfx::BColor& rColor, const basegfx::BColor& rColor,
com::sun::star::drawing::LineCap eCap, css::drawing::LineCap eCap,
const ::std::vector< double >& rDotDashArray, const ::std::vector< double >& rDotDashArray,
double fFullDotDashLen); double fFullDotDashLen);
SdrLineAttribute(); SdrLineAttribute();
...@@ -79,7 +79,7 @@ namespace drawinglayer ...@@ -79,7 +79,7 @@ namespace drawinglayer
const basegfx::BColor& getColor() const; const basegfx::BColor& getColor() const;
const ::std::vector< double >& getDotDashArray() const; const ::std::vector< double >& getDotDashArray() const;
double getFullDotDashLen() const; double getFullDotDashLen() const;
com::sun::star::drawing::LineCap getCap() const; css::drawing::LineCap getCap() const;
}; };
} // end of namespace attribute } // end of namespace attribute
} // end of namespace drawinglayer } // end of namespace drawinglayer
......
...@@ -53,11 +53,11 @@ namespace drawinglayer ...@@ -53,11 +53,11 @@ namespace drawinglayer
public: public:
// constructors/destructor // constructors/destructor
Sdr3DObjectAttribute( Sdr3DObjectAttribute(
::com::sun::star::drawing::NormalsKind aNormalsKind, css::drawing::NormalsKind aNormalsKind,
::com::sun::star::drawing::TextureProjectionMode aTextureProjectionX, css::drawing::TextureProjectionMode aTextureProjectionX,
::com::sun::star::drawing::TextureProjectionMode aTextureProjectionY, css::drawing::TextureProjectionMode aTextureProjectionY,
::com::sun::star::drawing::TextureKind2 aTextureKind, css::drawing::TextureKind2 aTextureKind,
::com::sun::star::drawing::TextureMode aTextureMode, css::drawing::TextureMode aTextureMode,
const MaterialAttribute3D& rMaterial, const MaterialAttribute3D& rMaterial,
bool bNormalsInvert, bool bNormalsInvert,
bool bDoubleSided, bool bDoubleSided,
...@@ -74,11 +74,11 @@ namespace drawinglayer ...@@ -74,11 +74,11 @@ namespace drawinglayer
bool operator==(const Sdr3DObjectAttribute& rCandidate) const; bool operator==(const Sdr3DObjectAttribute& rCandidate) const;
// data read access // data read access
::com::sun::star::drawing::NormalsKind getNormalsKind() const; css::drawing::NormalsKind getNormalsKind() const;
::com::sun::star::drawing::TextureProjectionMode getTextureProjectionX() const; css::drawing::TextureProjectionMode getTextureProjectionX() const;
::com::sun::star::drawing::TextureProjectionMode getTextureProjectionY() const; css::drawing::TextureProjectionMode getTextureProjectionY() const;
::com::sun::star::drawing::TextureKind2 getTextureKind() const; css::drawing::TextureKind2 getTextureKind() const;
::com::sun::star::drawing::TextureMode getTextureMode() const; css::drawing::TextureMode getTextureMode() const;
const MaterialAttribute3D& getMaterial() const; const MaterialAttribute3D& getMaterial() const;
bool getNormalsInvert() const; bool getNormalsInvert() const;
bool getDoubleSided() const; bool getDoubleSided() const;
......
...@@ -52,8 +52,8 @@ namespace drawinglayer ...@@ -52,8 +52,8 @@ namespace drawinglayer
SdrSceneAttribute( SdrSceneAttribute(
double fDistance, double fDistance,
double fShadowSlant, double fShadowSlant,
::com::sun::star::drawing::ProjectionMode aProjectionMode, css::drawing::ProjectionMode aProjectionMode,
::com::sun::star::drawing::ShadeMode aShadeMode, css::drawing::ShadeMode aShadeMode,
bool bTwoSidedLighting); bool bTwoSidedLighting);
SdrSceneAttribute(); SdrSceneAttribute();
SdrSceneAttribute(const SdrSceneAttribute& rCandidate); SdrSceneAttribute(const SdrSceneAttribute& rCandidate);
...@@ -68,8 +68,8 @@ namespace drawinglayer ...@@ -68,8 +68,8 @@ namespace drawinglayer
// data read access // data read access
double getShadowSlant() const; double getShadowSlant() const;
::com::sun::star::drawing::ProjectionMode getProjectionMode() const; css::drawing::ProjectionMode getProjectionMode() const;
::com::sun::star::drawing::ShadeMode getShadeMode() const; css::drawing::ShadeMode getShadeMode() const;
bool getTwoSidedLighting() const; bool getTwoSidedLighting() const;
}; };
} // end of namespace attribute } // end of namespace attribute
......
...@@ -52,7 +52,7 @@ namespace drawinglayer ...@@ -52,7 +52,7 @@ namespace drawinglayer
together with UNO API definitions and supports holding a sequence of PropertyValues. together with UNO API definitions and supports holding a sequence of PropertyValues.
The most used data is for convenience offered directly using basegfx tooling classes. The most used data is for convenience offered directly using basegfx tooling classes.
It is an implementation to support the sequence of PropertyValues used in a It is an implementation to support the sequence of PropertyValues used in a
::com::sun::star::graphic::XPrimitive2D for C++ implementations working with those css::graphic::XPrimitive2D for C++ implementations working with those
*/ */
class DRAWINGLAYER_DLLPUBLIC ViewInformation2D class DRAWINGLAYER_DLLPUBLIC ViewInformation2D
{ {
...@@ -96,9 +96,9 @@ namespace drawinglayer ...@@ -96,9 +96,9 @@ namespace drawinglayer
const basegfx::B2DHomMatrix& rObjectTransformation, const basegfx::B2DHomMatrix& rObjectTransformation,
const basegfx::B2DHomMatrix& rViewTransformation, const basegfx::B2DHomMatrix& rViewTransformation,
const basegfx::B2DRange& rViewport, const basegfx::B2DRange& rViewport,
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& rxDrawPage, const css::uno::Reference< css::drawing::XDrawPage >& rxDrawPage,
double fViewTime, double fViewTime,
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rExtendedParameters); const css::uno::Sequence< css::beans::PropertyValue >& rExtendedParameters);
/** Constructor: Create a ViewInformation2D /** Constructor: Create a ViewInformation2D
...@@ -107,7 +107,7 @@ namespace drawinglayer ...@@ -107,7 +107,7 @@ namespace drawinglayer
other parameters. This constructor is feeded completely with a sequence of PropertyValues other parameters. This constructor is feeded completely with a sequence of PropertyValues
which will be parsed to be able to offer the most used ones in a convenient way. which will be parsed to be able to offer the most used ones in a convenient way.
*/ */
explicit ViewInformation2D(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rViewParameters); explicit ViewInformation2D(const css::uno::Sequence< css::beans::PropertyValue >& rViewParameters);
/// default (empty) constructor /// default (empty) constructor
ViewInformation2D(); ViewInformation2D();
...@@ -130,7 +130,7 @@ namespace drawinglayer ...@@ -130,7 +130,7 @@ namespace drawinglayer
const basegfx::B2DHomMatrix& getViewTransformation() const; const basegfx::B2DHomMatrix& getViewTransformation() const;
const basegfx::B2DRange& getViewport() const; const basegfx::B2DRange& getViewport() const;
double getViewTime() const; double getViewTime() const;
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& getVisualizedPage() const; const css::uno::Reference< css::drawing::XDrawPage >& getVisualizedPage() const;
/// On-demand prepared Object to View transformation and its inverse for convenience /// On-demand prepared Object to View transformation and its inverse for convenience
const basegfx::B2DHomMatrix& getObjectToViewTransformation() const; const basegfx::B2DHomMatrix& getObjectToViewTransformation() const;
...@@ -153,7 +153,7 @@ namespace drawinglayer ...@@ -153,7 +153,7 @@ namespace drawinglayer
as PropertyValues. This set completely describes this ViewInformation2D and as PropertyValues. This set completely describes this ViewInformation2D and
can be used for complete information transport over UNO API. can be used for complete information transport over UNO API.
*/ */
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& getViewInformationSequence() const; const css::uno::Sequence< css::beans::PropertyValue >& getViewInformationSequence() const;
/** Get the uno::Sequence< beans::PropertyValue > which contains only ViewInformation /** Get the uno::Sequence< beans::PropertyValue > which contains only ViewInformation
not offered directly not offered directly
...@@ -163,7 +163,7 @@ namespace drawinglayer ...@@ -163,7 +163,7 @@ namespace drawinglayer
incarnations of ViewInformation2D without losing the only with PropertyValues incarnations of ViewInformation2D without losing the only with PropertyValues
defined data. It does not contain a complete description. defined data. It does not contain a complete description.
*/ */
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& getExtendedInformationSequence() const; const css::uno::Sequence< css::beans::PropertyValue >& getExtendedInformationSequence() const;
}; };
} // end of namespace geometry } // end of namespace geometry
} // end of namespace drawinglayer } // end of namespace drawinglayer
......
...@@ -50,7 +50,7 @@ namespace drawinglayer ...@@ -50,7 +50,7 @@ namespace drawinglayer
together with UNO API definitions and supports holding a sequence of PropertyValues. together with UNO API definitions and supports holding a sequence of PropertyValues.
The most used data is for convenience offered directly using basegfx tooling classes. The most used data is for convenience offered directly using basegfx tooling classes.
It is an implementation to support the sequence of PropertyValues used in a It is an implementation to support the sequence of PropertyValues used in a
::com::sun::star::graphic::XPrimitive3D for C++ implementations working with those css::graphic::XPrimitive3D for C++ implementations working with those
*/ */
class DRAWINGLAYER_DLLPUBLIC ViewInformation3D class DRAWINGLAYER_DLLPUBLIC ViewInformation3D
{ {
...@@ -103,7 +103,7 @@ namespace drawinglayer ...@@ -103,7 +103,7 @@ namespace drawinglayer
const basegfx::B3DHomMatrix& rProjection, const basegfx::B3DHomMatrix& rProjection,
const basegfx::B3DHomMatrix& rDeviceToView, const basegfx::B3DHomMatrix& rDeviceToView,
double fViewTime, double fViewTime,
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rExtendedParameters); const css::uno::Sequence< css::beans::PropertyValue >& rExtendedParameters);
/** Constructor: Create a ViewInformation3D /** Constructor: Create a ViewInformation3D
...@@ -112,7 +112,7 @@ namespace drawinglayer ...@@ -112,7 +112,7 @@ namespace drawinglayer
other parameters. This constructor is feeded completely with a sequence of PropertyValues other parameters. This constructor is feeded completely with a sequence of PropertyValues
which will be parsed to be able to offer the most used ones in a convenient way. which will be parsed to be able to offer the most used ones in a convenient way.
*/ */
explicit ViewInformation3D(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rViewParameters); explicit ViewInformation3D(const css::uno::Sequence< css::beans::PropertyValue >& rViewParameters);
/// default (empty) constructor /// default (empty) constructor
ViewInformation3D(); ViewInformation3D();
...@@ -150,7 +150,7 @@ namespace drawinglayer ...@@ -150,7 +150,7 @@ namespace drawinglayer
as PropertyValues. This set completely describes this ViewInformation3D and as PropertyValues. This set completely describes this ViewInformation3D and
can be used for complete information transport over UNO API. can be used for complete information transport over UNO API.
*/ */
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& getViewInformationSequence() const; const css::uno::Sequence< css::beans::PropertyValue >& getViewInformationSequence() const;
/** Get the uno::Sequence< beans::PropertyValue > which contains only ViewInformation /** Get the uno::Sequence< beans::PropertyValue > which contains only ViewInformation
not offered directly not offered directly
...@@ -160,7 +160,7 @@ namespace drawinglayer ...@@ -160,7 +160,7 @@ namespace drawinglayer
incarnations of ViewInformation3D without losing the only with PropertyValues incarnations of ViewInformation3D without losing the only with PropertyValues
defined data. It does not contain a complete description. defined data. It does not contain a complete description.
*/ */
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& getExtendedInformationSequence() const; const css::uno::Sequence< css::beans::PropertyValue >& getExtendedInformationSequence() const;
}; };
} // end of namespace geometry } // end of namespace geometry
} // end of namespace drawinglayer } // end of namespace drawinglayer
......
...@@ -50,9 +50,9 @@ namespace drawinglayer { namespace geometry { ...@@ -50,9 +50,9 @@ namespace drawinglayer { namespace geometry {
namespace drawinglayer { namespace primitive2d { namespace drawinglayer { namespace primitive2d {
/// typedefs for basePrimitive2DImplBase, Primitive2DSequence and Primitive2DReference /// typedefs for basePrimitive2DImplBase, Primitive2DSequence and Primitive2DReference
typedef cppu::WeakComponentImplHelper1< ::com::sun::star::graphic::XPrimitive2D > BasePrimitive2DImplBase; typedef cppu::WeakComponentImplHelper1< css::graphic::XPrimitive2D > BasePrimitive2DImplBase;
typedef ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XPrimitive2D > Primitive2DReference; typedef css::uno::Reference< css::graphic::XPrimitive2D > Primitive2DReference;
typedef ::com::sun::star::uno::Sequence< Primitive2DReference > Primitive2DSequence; typedef css::uno::Sequence< Primitive2DReference > Primitive2DSequence;
}} }}
...@@ -64,7 +64,7 @@ namespace drawinglayer ...@@ -64,7 +64,7 @@ namespace drawinglayer
{ {
/** BasePrimitive2D class /** BasePrimitive2D class
Baseclass for all C++ implementations of com::sun::star::graphic::XPrimitive2D Baseclass for all C++ implementations of css::graphic::XPrimitive2D
This class is strongly virtual due to the lack of getPrimitiveID() implementation. This class is strongly virtual due to the lack of getPrimitiveID() implementation.
This is by purpose, this base class shall not be incarnated and be used directly as This is by purpose, this base class shall not be incarnated and be used directly as
...@@ -174,12 +174,12 @@ namespace drawinglayer ...@@ -174,12 +174,12 @@ namespace drawinglayer
/** The getDecomposition implementation for UNO API will use getDecomposition from this implementation. It /** The getDecomposition implementation for UNO API will use getDecomposition from this implementation. It
will construct a ViewInformation2D from the ViewParameters for that purpose will construct a ViewInformation2D from the ViewParameters for that purpose
*/ */
virtual Primitive2DSequence SAL_CALL getDecomposition( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rViewParameters ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) override; virtual Primitive2DSequence SAL_CALL getDecomposition( const css::uno::Sequence< css::beans::PropertyValue >& rViewParameters ) throw ( css::uno::RuntimeException, std::exception ) override;
/** The getRange implementation for UNO API will use getRange from this implementation. It /** The getRange implementation for UNO API will use getRange from this implementation. It
will construct a ViewInformation2D from the ViewParameters for that purpose will construct a ViewInformation2D from the ViewParameters for that purpose
*/ */
virtual ::com::sun::star::geometry::RealRectangle2D SAL_CALL getRange( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rViewParameters ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) override; virtual css::geometry::RealRectangle2D SAL_CALL getRange( const css::uno::Sequence< css::beans::PropertyValue >& rViewParameters ) throw ( css::uno::RuntimeException, std::exception ) override;
}; };
} // end of namespace primitive2d } // end of namespace primitive2d
} // end of namespace drawinglayer } // end of namespace drawinglayer
...@@ -193,7 +193,7 @@ namespace drawinglayer ...@@ -193,7 +193,7 @@ namespace drawinglayer
{ {
/** BufferedDecompositionPrimitive2D class /** BufferedDecompositionPrimitive2D class
Baseclass for all C++ implementations of com::sun::star::graphic::XPrimitive2D Baseclass for all C++ implementations of css::graphic::XPrimitive2D
which want to buffer the decomoposition result which want to buffer the decomoposition result
Buffering the decomposition is the most-used buffering and is thus used my most Buffering the decomposition is the most-used buffering and is thus used my most
......
...@@ -77,7 +77,7 @@ namespace drawinglayer ...@@ -77,7 +77,7 @@ namespace drawinglayer
bool isSolidLine() const bool isSolidLine() const
{ {
return mnStyle == com::sun::star::table::BorderLineStyle::SOLID; return mnStyle == css::table::BorderLineStyle::SOLID;
} }
bool isInsideUsed() const bool isInsideUsed() const
......
...@@ -45,10 +45,10 @@ namespace drawinglayer ...@@ -45,10 +45,10 @@ namespace drawinglayer
private: private:
/// object's base data /// object's base data
basegfx::B2DHomMatrix maTransform; basegfx::B2DHomMatrix maTransform;
com::sun::star::uno::Reference< com::sun::star::awt::XControlModel > mxControlModel; css::uno::Reference< css::awt::XControlModel > mxControlModel;
/// the created an cached awt::XControl /// the created an cached awt::XControl
com::sun::star::uno::Reference< com::sun::star::awt::XControl > mxXControl; css::uno::Reference< css::awt::XControl > mxXControl;
/// the last used scaling, used from getDecomposition for buffering /// the last used scaling, used from getDecomposition for buffering
basegfx::B2DVector maLastViewScaling; basegfx::B2DVector maLastViewScaling;
...@@ -70,7 +70,7 @@ namespace drawinglayer ...@@ -70,7 +70,7 @@ namespace drawinglayer
/// constructor /// constructor
ControlPrimitive2D( ControlPrimitive2D(
const basegfx::B2DHomMatrix& rTransform, const basegfx::B2DHomMatrix& rTransform,
const com::sun::star::uno::Reference< com::sun::star::awt::XControlModel >& rxControlModel); const css::uno::Reference< css::awt::XControlModel >& rxControlModel);
/** constructor with an additional XControl as parameter to allow to hand it over at incarnation time /** constructor with an additional XControl as parameter to allow to hand it over at incarnation time
if it exists. This will avoid to create a 2nd one on demand in createXControl() if it exists. This will avoid to create a 2nd one on demand in createXControl()
...@@ -78,18 +78,18 @@ namespace drawinglayer ...@@ -78,18 +78,18 @@ namespace drawinglayer
*/ */
ControlPrimitive2D( ControlPrimitive2D(
const basegfx::B2DHomMatrix& rTransform, const basegfx::B2DHomMatrix& rTransform,
const com::sun::star::uno::Reference< com::sun::star::awt::XControlModel >& rxControlModel, const css::uno::Reference< css::awt::XControlModel >& rxControlModel,
const com::sun::star::uno::Reference< com::sun::star::awt::XControl >& rxXControl); const css::uno::Reference< css::awt::XControl >& rxXControl);
/// data read access /// data read access
const basegfx::B2DHomMatrix& getTransform() const { return maTransform; } const basegfx::B2DHomMatrix& getTransform() const { return maTransform; }
const com::sun::star::uno::Reference< com::sun::star::awt::XControlModel >& getControlModel() const { return mxControlModel; } const css::uno::Reference< css::awt::XControlModel >& getControlModel() const { return mxControlModel; }
/** mxControl access. This will on demand create the awt::XControl using createXControl() /** mxControl access. This will on demand create the awt::XControl using createXControl()
if it does not exist. It may already have been created or even handed over at if it does not exist. It may already have been created or even handed over at
incarnation incarnation
*/ */
const com::sun::star::uno::Reference< com::sun::star::awt::XControl >& getXControl() const; const css::uno::Reference< css::awt::XControl >& getXControl() const;
/// compare operator /// compare operator
virtual bool operator==(const BasePrimitive2D& rPrimitive) const override; virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
......
...@@ -47,7 +47,7 @@ namespace drawinglayer ...@@ -47,7 +47,7 @@ namespace drawinglayer
this will not only be used by the renderers to provide the correct decompose this will not only be used by the renderers to provide the correct decompose
graphic attribute context, but also to completely create the page's sub-content. graphic attribute context, but also to completely create the page's sub-content.
*/ */
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > mxDrawPage; const css::uno::Reference< css::drawing::XDrawPage > mxDrawPage;
/// the PageContent /// the PageContent
Primitive2DSequence maPageContent; Primitive2DSequence maPageContent;
...@@ -70,7 +70,7 @@ namespace drawinglayer ...@@ -70,7 +70,7 @@ namespace drawinglayer
public: public:
/// constructor /// constructor
PagePreviewPrimitive2D( PagePreviewPrimitive2D(
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& rxDrawPage, const css::uno::Reference< css::drawing::XDrawPage >& rxDrawPage,
const basegfx::B2DHomMatrix& rTransform, const basegfx::B2DHomMatrix& rTransform,
double fContentWidth, double fContentWidth,
double fContentHeight, double fContentHeight,
...@@ -78,7 +78,7 @@ namespace drawinglayer ...@@ -78,7 +78,7 @@ namespace drawinglayer
bool bKeepAspectRatio); bool bKeepAspectRatio);
/// data read access /// data read access
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& getXDrawPage() const { return mxDrawPage; } const css::uno::Reference< css::drawing::XDrawPage >& getXDrawPage() const { return mxDrawPage; }
const Primitive2DSequence& getPageContent() const { return maPageContent; } const Primitive2DSequence& getPageContent() const { return maPageContent; }
const basegfx::B2DHomMatrix& getTransform() const { return maTransform; } const basegfx::B2DHomMatrix& getTransform() const { return maTransform; }
double getContentWidth() const { return mfContentWidth; } double getContentWidth() const { return mfContentWidth; }
......
...@@ -87,7 +87,7 @@ namespace drawinglayer ...@@ -87,7 +87,7 @@ namespace drawinglayer
sal_Int32 nTextLength, sal_Int32 nTextLength,
const ::std::vector< double >& rDXArray, const ::std::vector< double >& rDXArray,
const attribute::FontAttribute& rFontAttribute, const attribute::FontAttribute& rFontAttribute,
const ::com::sun::star::lang::Locale& rLocale, const css::lang::Locale& rLocale,
const basegfx::BColor& rFontColor, const basegfx::BColor& rFontColor,
const Color& rFillColor, const Color& rFillColor,
......
...@@ -70,7 +70,7 @@ namespace drawinglayer ...@@ -70,7 +70,7 @@ namespace drawinglayer
const attribute::FontAttribute& rFontAttribute, const attribute::FontAttribute& rFontAttribute,
double fFontScaleX, double fFontScaleX,
double fFontScaleY, double fFontScaleY,
const ::com::sun::star::lang::Locale & rLocale); const css::lang::Locale & rLocale);
double getTextHeight() const; double getTextHeight() const;
double getOverlineHeight() const; double getOverlineHeight() const;
...@@ -130,7 +130,7 @@ namespace drawinglayer ...@@ -130,7 +130,7 @@ namespace drawinglayer
double fFontScaleX, double fFontScaleX,
double fFontScaleY, double fFontScaleY,
double fFontRotation, double fFontRotation,
const ::com::sun::star::lang::Locale & rLocale); const css::lang::Locale & rLocale);
/** Generate FontAttribute DataSet derived from the given VCL-Font. /** Generate FontAttribute DataSet derived from the given VCL-Font.
The FontScaling with fFontScaleY, fFontScaleX relationship (see The FontScaling with fFontScaleY, fFontScaleX relationship (see
......
...@@ -120,7 +120,7 @@ namespace drawinglayer ...@@ -120,7 +120,7 @@ namespace drawinglayer
attribute::FontAttribute maFontAttribute; attribute::FontAttribute maFontAttribute;
/// The Locale for the text /// The Locale for the text
::com::sun::star::lang::Locale maLocale; css::lang::Locale maLocale;
/// font color /// font color
basegfx::BColor maFontColor; basegfx::BColor maFontColor;
...@@ -147,7 +147,7 @@ namespace drawinglayer ...@@ -147,7 +147,7 @@ namespace drawinglayer
sal_Int32 nTextLength, sal_Int32 nTextLength,
const ::std::vector< double >& rDXArray, const ::std::vector< double >& rDXArray,
const attribute::FontAttribute& rFontAttribute, const attribute::FontAttribute& rFontAttribute,
const ::com::sun::star::lang::Locale& rLocale, const css::lang::Locale& rLocale,
const basegfx::BColor& rFontColor, const basegfx::BColor& rFontColor,
bool bFilled = false, bool bFilled = false,
long nWidthToFill = 0, long nWidthToFill = 0,
...@@ -166,7 +166,7 @@ namespace drawinglayer ...@@ -166,7 +166,7 @@ namespace drawinglayer
sal_Int32 getTextLength() const { return mnTextLength; } sal_Int32 getTextLength() const { return mnTextLength; }
const ::std::vector< double >& getDXArray() const { return maDXArray; } const ::std::vector< double >& getDXArray() const { return maDXArray; }
const attribute::FontAttribute& getFontAttribute() const { return maFontAttribute; } const attribute::FontAttribute& getFontAttribute() const { return maFontAttribute; }
const ::com::sun::star::lang::Locale& getLocale() const { return maLocale; } const css::lang::Locale& getLocale() const { return maLocale; }
const basegfx::BColor& getFontColor() const { return maFontColor; } const basegfx::BColor& getFontColor() const { return maFontColor; }
const Color& getTextFillColor() const { return maTextFillColor; } const Color& getTextFillColor() const { return maTextFillColor; }
bool isFilled() const { return mbFilled; } bool isFilled() const { return mbFilled; }
...@@ -183,7 +183,7 @@ namespace drawinglayer ...@@ -183,7 +183,7 @@ namespace drawinglayer
}; };
/// small helper to have a compare operator for Locale /// small helper to have a compare operator for Locale
bool DRAWINGLAYER_DLLPUBLIC LocalesAreEqual(const ::com::sun::star::lang::Locale& rA, const ::com::sun::star::lang::Locale& rB); bool DRAWINGLAYER_DLLPUBLIC LocalesAreEqual(const css::lang::Locale& rA, const css::lang::Locale& rB);
} // end of namespace primitive2d } // end of namespace primitive2d
} // end of namespace drawinglayer } // end of namespace drawinglayer
......
...@@ -74,7 +74,7 @@ namespace drawinglayer ...@@ -74,7 +74,7 @@ namespace drawinglayer
private: private:
sal_Unicode maStrikeoutChar; sal_Unicode maStrikeoutChar;
attribute::FontAttribute maFontAttribute; attribute::FontAttribute maFontAttribute;
::com::sun::star::lang::Locale maLocale; css::lang::Locale maLocale;
protected: protected:
/// local decomposition. /// local decomposition.
...@@ -88,12 +88,12 @@ namespace drawinglayer ...@@ -88,12 +88,12 @@ namespace drawinglayer
const basegfx::BColor& rFontColor, const basegfx::BColor& rFontColor,
sal_Unicode aStrikeoutChar, sal_Unicode aStrikeoutChar,
const attribute::FontAttribute& rFontAttribute, const attribute::FontAttribute& rFontAttribute,
const ::com::sun::star::lang::Locale& rLocale); const css::lang::Locale& rLocale);
/// data read access /// data read access
sal_Unicode getStrikeoutChar() const { return maStrikeoutChar; } sal_Unicode getStrikeoutChar() const { return maStrikeoutChar; }
const attribute::FontAttribute& getFontAttribute() const { return maFontAttribute; } const attribute::FontAttribute& getFontAttribute() const { return maFontAttribute; }
const ::com::sun::star::lang::Locale& getLocale() const { return maLocale; } const css::lang::Locale& getLocale() const { return maLocale; }
/// compare operator /// compare operator
virtual bool operator==( const BasePrimitive2D& rPrimitive ) const override; virtual bool operator==( const BasePrimitive2D& rPrimitive ) const override;
......
...@@ -50,9 +50,9 @@ namespace drawinglayer { namespace geometry { ...@@ -50,9 +50,9 @@ namespace drawinglayer { namespace geometry {
namespace drawinglayer { namespace primitive3d { namespace drawinglayer { namespace primitive3d {
/// typedefs for basePrimitive3DImplBase, Primitive3DSequence and Primitive3DReference /// typedefs for basePrimitive3DImplBase, Primitive3DSequence and Primitive3DReference
typedef cppu::WeakComponentImplHelper1< ::com::sun::star::graphic::XPrimitive3D > BasePrimitive3DImplBase; typedef cppu::WeakComponentImplHelper1< css::graphic::XPrimitive3D > BasePrimitive3DImplBase;
typedef ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XPrimitive3D > Primitive3DReference; typedef css::uno::Reference< css::graphic::XPrimitive3D > Primitive3DReference;
typedef ::com::sun::star::uno::Sequence< Primitive3DReference > Primitive3DSequence; typedef css::uno::Sequence< Primitive3DReference > Primitive3DSequence;
}} }}
...@@ -64,7 +64,7 @@ namespace drawinglayer ...@@ -64,7 +64,7 @@ namespace drawinglayer
{ {
/** BasePrimitive3D class /** BasePrimitive3D class
Baseclass for all C++ implementations of com::sun::star::graphic::XPrimitive2D Baseclass for all C++ implementations of css::graphic::XPrimitive2D
The description/functionality is identical with the 2D case in baseprimitive2d.hxx, The description/functionality is identical with the 2D case in baseprimitive2d.hxx,
please see there for detailed information. please see there for detailed information.
...@@ -117,12 +117,12 @@ namespace drawinglayer ...@@ -117,12 +117,12 @@ namespace drawinglayer
/** The getDecomposition implementation for UNO API will use getDecomposition from this implementation. It /** The getDecomposition implementation for UNO API will use getDecomposition from this implementation. It
will get the ViewInformation from the ViewParameters for that purpose will get the ViewInformation from the ViewParameters for that purpose
*/ */
virtual Primitive3DSequence SAL_CALL getDecomposition( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rViewParameters ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) override; virtual Primitive3DSequence SAL_CALL getDecomposition( const css::uno::Sequence< css::beans::PropertyValue >& rViewParameters ) throw ( css::uno::RuntimeException, std::exception ) override;
/** the getRange default implementation will use getDecomposition to create the range information from merging /** the getRange default implementation will use getDecomposition to create the range information from merging
getRange results from the single local decomposition primitives. getRange results from the single local decomposition primitives.
*/ */
virtual ::com::sun::star::geometry::RealRectangle3D SAL_CALL getRange( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rViewParameters ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) override; virtual css::geometry::RealRectangle3D SAL_CALL getRange( const css::uno::Sequence< css::beans::PropertyValue >& rViewParameters ) throw ( css::uno::RuntimeException, std::exception ) override;
}; };
} // end of namespace primitive3d } // end of namespace primitive3d
} // end of namespace drawinglayer } // end of namespace drawinglayer
...@@ -136,7 +136,7 @@ namespace drawinglayer ...@@ -136,7 +136,7 @@ namespace drawinglayer
{ {
/** BufferedDecompositionPrimitive3D class /** BufferedDecompositionPrimitive3D class
Baseclass for all C++ implementations of com::sun::star::graphic::XPrimitive2D Baseclass for all C++ implementations of css::graphic::XPrimitive2D
The description/functionality is identical with the 2D case in baseprimitive2d.hxx, The description/functionality is identical with the 2D case in baseprimitive2d.hxx,
please see there for detailed information please see there for detailed information
......
...@@ -56,7 +56,7 @@ namespace drawinglayer ...@@ -56,7 +56,7 @@ namespace drawinglayer
double mfDegreeStepWidth; double mfDegreeStepWidth;
double mfMiterMinimumAngle; double mfMiterMinimumAngle;
basegfx::B2DLineJoin maLineJoin; basegfx::B2DLineJoin maLineJoin;
com::sun::star::drawing::LineCap maLineCap; css::drawing::LineCap maLineCap;
protected: protected:
/** access methods to maLast3DDecomposition. The usage of this methods may allow /** access methods to maLast3DDecomposition. The usage of this methods may allow
...@@ -76,7 +76,7 @@ namespace drawinglayer ...@@ -76,7 +76,7 @@ namespace drawinglayer
const basegfx::BColor& rBColor, const basegfx::BColor& rBColor,
double fRadius, double fRadius,
basegfx::B2DLineJoin aLineJoin, basegfx::B2DLineJoin aLineJoin,
com::sun::star::drawing::LineCap aLineCap, css::drawing::LineCap aLineCap,
double fDegreeStepWidth = 10.0 * F_PI180, double fDegreeStepWidth = 10.0 * F_PI180,
double fMiterMinimumAngle = 15.0 * F_PI180); double fMiterMinimumAngle = 15.0 * F_PI180);
...@@ -85,7 +85,7 @@ namespace drawinglayer ...@@ -85,7 +85,7 @@ namespace drawinglayer
double getDegreeStepWidth() const { return mfDegreeStepWidth; } double getDegreeStepWidth() const { return mfDegreeStepWidth; }
double getMiterMinimumAngle() const { return mfMiterMinimumAngle; } double getMiterMinimumAngle() const { return mfMiterMinimumAngle; }
basegfx::B2DLineJoin getLineJoin() const { return maLineJoin; } basegfx::B2DLineJoin getLineJoin() const { return maLineJoin; }
com::sun::star::drawing::LineCap getLineCap() const { return maLineCap; } css::drawing::LineCap getLineCap() const { return maLineCap; }
/// compare operator /// compare operator
virtual bool operator==(const BasePrimitive3D& rPrimitive) const override; virtual bool operator==(const BasePrimitive3D& rPrimitive) const override;
......
...@@ -58,8 +58,8 @@ namespace drawinglayer ...@@ -58,8 +58,8 @@ namespace drawinglayer
// #i98314# // #i98314#
void DRAWINGLAYER_DLLPUBLIC applyTextureTo3DGeometry( void DRAWINGLAYER_DLLPUBLIC applyTextureTo3DGeometry(
::com::sun::star::drawing::TextureProjectionMode eModeX, css::drawing::TextureProjectionMode eModeX,
::com::sun::star::drawing::TextureProjectionMode eModeY, css::drawing::TextureProjectionMode eModeY,
::std::vector< basegfx::B3DPolyPolygon >& rFill, ::std::vector< basegfx::B3DPolyPolygon >& rFill,
const basegfx::B3DRange& rRange, const basegfx::B3DRange& rRange,
const basegfx::B2DVector& rTextureSize); const basegfx::B2DVector& rTextureSize);
......
...@@ -60,7 +60,7 @@ namespace drawinglayer ...@@ -60,7 +60,7 @@ namespace drawinglayer
to the corresponding API implementation (an uno::Sequence< beans::PropertyValue >) to the corresponding API implementation (an uno::Sequence< beans::PropertyValue >)
and recursively calls the method process(..) at the primitive with the decomposition and recursively calls the method process(..) at the primitive with the decomposition
derived from that primitive. This is the preparation to handle unknown implementations derived from that primitive. This is the preparation to handle unknown implementations
of the com::sun::star::graphic::XPrimitive2D interface in the future. of the css::graphic::XPrimitive2D interface in the future.
So, to implement a basic processor, it is necessary to override and implement the So, to implement a basic processor, it is necessary to override and implement the
processBasePrimitive2D(..) method. A minimal renderer has to support the processBasePrimitive2D(..) method. A minimal renderer has to support the
......
...@@ -59,7 +59,7 @@ namespace drawinglayer ...@@ -59,7 +59,7 @@ namespace drawinglayer
{ {
/** canvasProcessor2D class /** canvasProcessor2D class
A basic implementation of a renderer for com::sun::star::rendering::XCanvas A basic implementation of a renderer for css::rendering::XCanvas
as a target as a target
*/ */
class DRAWINGLAYER_DLLPUBLIC canvasProcessor2D : public BaseProcessor2D class DRAWINGLAYER_DLLPUBLIC canvasProcessor2D : public BaseProcessor2D
...@@ -67,9 +67,9 @@ namespace drawinglayer ...@@ -67,9 +67,9 @@ namespace drawinglayer
private: private:
// the (current) destination OutDev and canvas // the (current) destination OutDev and canvas
VclPtr<OutputDevice> mpOutputDevice; VclPtr<OutputDevice> mpOutputDevice;
com::sun::star::uno::Reference< com::sun::star::rendering::XCanvas > mxCanvas; css::uno::Reference< css::rendering::XCanvas > mxCanvas;
com::sun::star::rendering::ViewState maViewState; css::rendering::ViewState maViewState;
com::sun::star::rendering::RenderState maRenderState; css::rendering::RenderState maRenderState;
// the modifiedColorPrimitive stack // the modifiedColorPrimitive stack
basegfx::BColorModifierStack maBColorModifierStack; basegfx::BColorModifierStack maBColorModifierStack;
......
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