Kaydet (Commit) abc2e216 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS swqbugfixes06 (1.4.40); FILE MERGED

2004/08/24 14:22:06 od 1.4.40.1: #i33242# - correct handling of anchor position of at-character anchored
           Writer fly frames and drawing objects of type 'Text'.
üst 597ae7a2
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLTextFrameHyperlinkContext.hxx,v $ * $RCSfile: XMLTextFrameHyperlinkContext.hxx,v $
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* last change: $Author: rt $ $Date: 2004-07-13 08:39:23 $ * last change: $Author: obo $ $Date: 2004-09-09 10:48:40 $
* *
* 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
...@@ -112,6 +112,10 @@ public: ...@@ -112,6 +112,10 @@ public:
::com::sun::star::text::TextContentAnchorType GetAnchorType() const; ::com::sun::star::text::TextContentAnchorType GetAnchorType() const;
::com::sun::star::uno::Reference < ::com::sun::star::uno::Reference <
::com::sun::star::text::XTextContent > GetTextContent() const; ::com::sun::star::text::XTextContent > GetTextContent() const;
// --> OD 2004-08-24 #i33242#
::com::sun::star::uno::Reference <
::com::sun::star::drawing::XShape > GetShape() const;
// <--
}; };
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: txtparaimphint.hxx,v $ * $RCSfile: txtparaimphint.hxx,v $
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* last change: $Author: rt $ $Date: 2004-07-14 14:03:35 $ * last change: $Author: obo $ $Date: 2004-09-09 10:49:08 $
* *
* 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
...@@ -311,6 +311,20 @@ public: ...@@ -311,6 +311,20 @@ public:
return xTxt; return xTxt;
} }
// --> OD 2004-08-24 #i33242#
Reference < drawing::XShape > GetShape() const
{
Reference < drawing::XShape > xShape;
SvXMLImportContext *pContext = &xContext;
if( pContext->ISA( XMLTextFrameContext ) )
xShape = PTR_CAST( XMLTextFrameContext, pContext )->GetShape();
else if( pContext->ISA( XMLTextFrameHyperlinkContext ) )
xShape = PTR_CAST( XMLTextFrameHyperlinkContext, pContext )->GetShape();
return xShape;
}
// <--
sal_Bool IsBoundAtChar() const sal_Bool IsBoundAtChar() const
{ {
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
...@@ -345,10 +359,12 @@ public: ...@@ -345,10 +359,12 @@ public:
{ {
} }
SvXMLShapeContext* GetShapeContext() const // --> OD 2004-08-24 #i33242#
Reference < drawing::XShape > GetShape() const
{ {
return static_cast<SvXMLShapeContext*>(&xContext); return static_cast<SvXMLShapeContext*>(&xContext)->getShape();
} }
// <--
}; };
// <-- // <--
#endif #endif
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