diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-21 09:26:23 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-21 09:26:23 +0000 |
commit | 8b180340e773651c70b6a011c11b5f9e2d5eff89 (patch) | |
tree | 2c0be14d5f857361519e2d5772f5097eea205cb8 /sw/inc/anchoredobject.hxx | |
parent | #i10000# chg. sqrtf to sqrt (mbu) (diff) | |
download | core-8b180340e773651c70b6a011c11b5f9e2d5eff89.tar.gz core-8b180340e773651c70b6a011c11b5f9e2d5eff89.zip |
INTEGRATION: CWS swqbugfixes12 (1.9.8); FILE MERGED
2005/01/11 12:26:20 od 1.9.8.2: #i40147# class <SwAnchoredObject> - new member <mbKeepPositionLockedForSection>
including accessor
2005/01/07 15:32:32 od 1.9.8.1: #i30669# - new methods <GetRelPosToAnchorFrm()>, <GetRelPosToPageFrm()>,
<GetRelPosToChar()> and <GetRelPosToLine()> to provide
needed layout information for WW8 filter.
Diffstat (limited to 'sw/inc/anchoredobject.hxx')
-rw-r--r-- | sw/inc/anchoredobject.hxx | 67 |
1 files changed, 63 insertions, 4 deletions
diff --git a/sw/inc/anchoredobject.hxx b/sw/inc/anchoredobject.hxx index f086449048ab..4794fc4be8fb 100644 --- a/sw/inc/anchoredobject.hxx +++ b/sw/inc/anchoredobject.hxx @@ -2,9 +2,9 @@ * * $RCSfile: anchoredobject.hxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: vg $ $Date: 2004-12-23 10:01:24 $ + * last change: $Author: kz $ $Date: 2005-01-21 10:26:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -144,6 +144,10 @@ class SwAnchoredObject // is applied. bool mbConsiderForTextWrap; bool mbPositionLocked; + // --> OD 2005-01-10 #i40147# - boolean needed to keep position of + // anchored object locked due to special object positioning for sections. + bool mbKeepPositionLockedForSection; + // <-- bool mbRestartLayoutProcess; bool mbClearedEnvironment; // <-- @@ -446,8 +450,23 @@ class SwAnchoredObject bool ConsiderForTextWrap() const; void SetConsiderForTextWrap( const bool _bConsiderForTextWrap ); bool PositionLocked() const; - void LockPosition(); - void UnlockPosition(); + inline void LockPosition() + { + mbPositionLocked = true; + } + inline void UnlockPosition() + { + if ( !mbKeepPositionLockedForSection ) + { + mbPositionLocked = false; + } + } + // --> OD 2005-01-10 #i40147# + inline void SetKeepPosLocked( const bool _bKeepPosLocked ) + { + mbKeepPositionLockedForSection = _bKeepPosLocked; + } + // <-- bool RestartLayoutProcess() const; void SetRestartLayoutProcess( const bool _bRestartLayoutProcess ); // --> OD 2004-10-22 #i35911# - accessors for <mbClearedEnvironment> @@ -506,6 +525,46 @@ class SwAnchoredObject @author OD */ bool OverlapsPrevColumn() const; + + /** method to determine position of anchored object relative to + anchor frame + + OD 2005-01-06 #i30669# + Usage: Needed layout information for WW8 export + + @author OD + */ + Point GetRelPosToAnchorFrm() const; + + /** method to determine position of anchored object relative to + page frame + + OD 2005-01-06 #i30669# + Usage: Needed layout information for WW8 export + + @author OD + */ + Point GetRelPosToPageFrm() const; + + /** method to determine position of anchored object relative to + anchor character + + OD 2005-01-06 #i30669# + Usage: Needed layout information for WW8 export + + @author OD + */ + Point GetRelPosToChar() const; + + /** method to determine position of anchored object relative to + top of line + + OD 2005-01-06 #i30669# + Usage: Needed layout information for WW8 export + + @author OD + */ + Point GetRelPosToLine() const; }; // ============================================================================ |