diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-08-23 07:00:29 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-08-23 07:00:29 +0000 |
commit | 22f1f4e13f17117987e9fbf1f8311db23962d31a (patch) | |
tree | 1139bcfe40ea8ec0c6977c5c6026b1bff0dba803 /sw/inc/anchoreddrawobject.hxx | |
parent | INTEGRATION: CWS carlowfilterteam27 (1.15.118); FILE MERGED (diff) | |
download | core-22f1f4e13f17117987e9fbf1f8311db23962d31a.tar.gz core-22f1f4e13f17117987e9fbf1f8311db23962d31a.zip |
INTEGRATION: CWS swdrawobjapi (1.2.60); FILE MERGED
2004/08/12 06:56:31 od 1.2.60.4: RESYNC: (1.2-1.3); FILE MERGED
resolve merge conflict.
2004/08/10 09:30:33 od 1.2.60.3: #i28749# class <SwAnchoredDrawObject> - new member <mbNotYetPositioned>
and new method <_ConvertPositioningAttr()> for the conversion
of the OpenOffice.org file format shape positioning attributes.
2004/08/06 04:45:25 od 1.2.60.2: #i31698# - adjustments for changed drawing object API in Writer
2004/07/29 13:20:05 od 1.2.60.1: #i31698# - adjustments for changed drawing object API in Writer
Diffstat (limited to 'sw/inc/anchoreddrawobject.hxx')
-rw-r--r-- | sw/inc/anchoreddrawobject.hxx | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/sw/inc/anchoreddrawobject.hxx b/sw/inc/anchoreddrawobject.hxx index 50702a25f693..a1c4df32869e 100644 --- a/sw/inc/anchoreddrawobject.hxx +++ b/sw/inc/anchoreddrawobject.hxx @@ -2,9 +2,9 @@ * * $RCSfile: anchoreddrawobject.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: od $ $Date: 2004-08-03 05:50:32 $ + * last change: $Author: rt $ $Date: 2004-08-23 08:00:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,6 +64,9 @@ #ifndef _ANCHOREDOBJECT_HXX #include <anchoredobject.hxx> #endif +#ifndef _GEN_HXX +#include <tools/gen.hxx> +#endif /** class for the positioning of drawing objects @@ -83,35 +86,42 @@ class SwAnchoredDrawObject : public SwAnchoredObject // boolean, indicating that anchored drawing object hasn't been attached // to a anchor frame yet. Once, it is attached to a anchor frame the - // boolean change its state. + // boolean changes its state. bool mbNotYetAttachedToAnchorFrame; - /** method to determine positioning attributes as long as the anchored - drawing object isn't attached to a anchor frame + // --> OD 2004-08-09 #i28749# - boolean, indicating that anchored + // drawing object hasn't been positioned yet. Once, it's positioned the + // boolean changes its state. + bool mbNotYetPositioned; + + /** method to convert positioning attributes from horizontal + left-to-right layout to the layout direction of its anchor frame - The positioning attributes are determined by the current object - geometry. + OD 2004-08-09 #i28749# + The positioning attributes are converted by the current object geometry. + Conversion has to be done for drawing objects (not anchored + as-character) imported from OpenOffice.org file format only once + and directly before the first positioning. @author OD */ - void _SetPositioningAttr(); + void _ConvertPositioningAttr(); /** method to set internal anchor position of <SdrObject> instance - of the drawing according to its positioning alignments. + of the drawing object For drawing objects the internal anchor position of the <SdrObject> - instance has to be set. The <SdrObject> instance represents - the drawing object in the drawing layer and is responsible for - storing the position coordinates in the file format. - The setting has to be performed according to its positioning - alignments, in order to get the correct positioning coordinates - saved in the file format. + instance has to be set. Note: This adjustment is not be done for as-character anchored drawing object - the positioning code takes care of this. + OD 2004-07-29 #i31698# - API for drawing objects in Writer has + been adjusted. Thus, this method will only set the internal anchor + position of the <SdrObject> instance to the anchor position given + by its anchor frame. @author OD */ - void _SetDrawObjAnchor( const Point _aOffsetToFrmAnchorPos ); + void _SetDrawObjAnchor(); /** method to invalidate the given page frame @@ -122,12 +132,6 @@ class SwAnchoredDrawObject : public SwAnchoredObject void _InvalidatePage( SwPageFrm* _pPageFrm ); protected: - - /** method to indicate, that anchored drawing object is attached to - a anchor frame - - @author OD - */ virtual void ObjectAttachedToAnchorFrame(); /** method to assure that anchored object is registered at the correct @@ -173,17 +177,15 @@ class SwAnchoredDrawObject : public SwAnchoredObject */ void AdjustPositioningAttr( const SwFrm* _pNewAnchorFrm ); - /** method to set positioning attributes as long as the anchored drawing - object isn't attached to a anchor frame + /** anchored drawing object not yet attached to a anchor frame + + OD 2004-08-04 #i31698# @author OD */ - inline void SetPositioningAttr() + inline bool NotYetAttachedToAnchorFrm() const { - if ( mbNotYetAttachedToAnchorFrame ) - { - _SetPositioningAttr(); - } + return mbNotYetAttachedToAnchorFrame; } /** method to notify background of drawing object |