Files
libreoffice/sw/source/core/inc/frmtool.hxx

548 lines
17 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2011-03-31 10:05:04 +02:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-09-18 23:08:29 +00:00
#ifndef _FRMTOOL_HXX
#define _FRMTOOL_HXX
2000-09-18 23:08:29 +00:00
#include "swtypes.hxx"
#include "layfrm.hxx"
#include "frmatr.hxx"
#include "swcache.hxx"
2011-02-12 22:48:50 +01:00
// #i96772#
#include <editeng/lrspitem.hxx>
2000-09-18 23:08:29 +00:00
class SwPageFrm;
class SwFlyFrm;
class SwCntntFrm;
class SwRootFrm;
2000-09-18 23:08:29 +00:00
class SwDoc;
class SwAttrSet;
class SdrObject;
class BigInt;
class SvxBrushItem;
class XFillStyleItem;
class XFillGradientItem;
2000-09-18 23:08:29 +00:00
class SdrMarkList;
class SwNodeIndex;
class OutputDevice;
class SwPageDesc;
#define FAR_AWAY LONG_MAX - 20000 // initial position of a Fly
#define BROWSE_HEIGHT 56700L * 10L // 10 Meters
2000-09-18 23:08:29 +00:00
#define GRFNUM_NO 0
#define GRFNUM_YES 1
#define GRFNUM_REPLACE 2
// draw background with brush or graphics
// The 6th parameter indicates that the method should consider background
// transparency, saved in the color of the brush item.
void DrawGraphic( const SvxBrushItem *, const XFillStyleItem*, const XFillGradientItem*, OutputDevice *,
const SwRect &rOrg, const SwRect &rOut, const sal_uInt8 nGrfNum = GRFNUM_NO,
const sal_Bool bConsiderBackgroundTransparency = sal_False );
2000-09-18 23:08:29 +00:00
// method to align rectangle.
// Created declaration here to avoid <extern> declarations
void SwAlignRect( SwRect &rRect, const ViewShell *pSh );
// method to align graphic rectangle
// Created declaration here to avoid <extern> declarations
void SwAlignGrfRect( SwRect *pGrfRect, const OutputDevice &rOut );
// get Fly, if no List is given use the current shell
// Implementation in feshview.cxx
2000-09-18 23:08:29 +00:00
SwFlyFrm *GetFlyFromMarked( const SdrMarkList *pLst, ViewShell *pSh );
sal_uLong SqRt( BigInt nX );
2000-09-18 23:08:29 +00:00
SwFrm *SaveCntnt( SwLayoutFrm *pLay, SwFrm *pStart );
void RestoreCntnt( SwFrm *pSav, SwLayoutFrm *pParent, SwFrm *pSibling, bool bGrow );
// Get CntntNodes, create CntntFrms, and add them to LayFrm.
void _InsertCnt( SwLayoutFrm *pLay, SwDoc *pDoc, sal_uLong nIndex,
sal_Bool bPages = sal_False, sal_uLong nEndIndex = 0,
2000-09-18 23:08:29 +00:00
SwFrm *pPrv = 0 );
// Creation of frames for a specific section (uses _InsertCnt)
2000-09-18 23:08:29 +00:00
void MakeFrms( SwDoc *pDoc, const SwNodeIndex &rSttIdx,
const SwNodeIndex &rEndIdx );
// prevent creation of Flys in _InsertCnt, e.g. for table headlines
extern bool bDontCreateObjects;
2000-09-18 23:08:29 +00:00
// for FlyCnts, see SwFlyAtCntFrm::MakeAll()
extern bool bSetCompletePaintOnInvalidate;
2000-09-18 23:08:29 +00:00
// for table settings via keyboard
long CalcRowRstHeight( SwLayoutFrm *pRow );
long CalcHeightWidthFlys( const SwFrm *pFrm );
2000-09-18 23:08:29 +00:00
SwPageFrm *InsertNewPage( SwPageDesc &rDesc, SwFrm *pUpper,
bool bOdd, bool bFirst, bool bInsertEmpty, sal_Bool bFtn,
2000-09-18 23:08:29 +00:00
SwFrm *pSibling );
// connect Flys with page
2000-09-18 23:08:29 +00:00
void RegistFlys( SwPageFrm*, const SwLayoutFrm* );
// notification of Fly's background if needed
void Notify( SwFlyFrm *pFly, SwPageFrm *pOld, const SwRect &rOld,
const SwRect* pOldRect = 0 );
2000-09-18 23:08:29 +00:00
void Notify_Background( const SdrObject* pObj,
SwPageFrm* pPage,
const SwRect& rRect,
const PrepareHint eHint,
const sal_Bool bInva );
2000-09-18 23:08:29 +00:00
const SwFrm* GetVirtualUpper( const SwFrm* pFrm, const Point& rPos );
bool Is_Lower_Of( const SwFrm *pCurrFrm, const SdrObject* pObj );
2000-09-18 23:08:29 +00:00
// FIXME: EasyHack (refactoring): rename method and parameter name in all files
const SwFrm *FindKontext( const SwFrm *pFrm, sal_uInt16 nAdditionalKontextTyp );
2000-09-18 23:08:29 +00:00
bool IsFrmInSameKontext( const SwFrm *pInnerFrm, const SwFrm *pFrm );
2000-09-18 23:08:29 +00:00
const SwFrm * FindPage( const SwRect &rRect, const SwFrm *pPage );
2000-09-18 23:08:29 +00:00
// used by SwCntntNode::GetFrm and SwFlyFrm::GetFrm
SwFrm* GetFrmOfModify( const SwRootFrm* pLayout,
SwModify const&,
sal_uInt16 const nFrmType,
const Point* = 0,
const SwPosition *pPos = 0,
const sal_Bool bCalcFrm = sal_False );
2000-09-18 23:08:29 +00:00
// Should extra data (reline stroke, line numbers) be painted?
bool IsExtraData( const SwDoc *pDoc );
2000-09-18 23:08:29 +00:00
2011-02-12 22:48:50 +01:00
// #i11760# - method declaration <CalcCntnt(..)>
void CalcCntnt( SwLayoutFrm *pLay,
bool bNoColl = false,
bool bNoCalcFollow = false );
// Notify classes memorize the current sizes in their constructor and do
// the necessary notifications in their destructor if needed
2000-09-18 23:08:29 +00:00
class SwFrmNotify
{
protected:
SwFrm *pFrm;
const SwRect aFrm;
const SwRect aPrt;
SwTwips mnFlyAnchorOfst;
SwTwips mnFlyAnchorOfstNoWrap;
sal_Bool bHadFollow;
sal_Bool bInvaKeep;
sal_Bool bValidSize;
2011-02-12 22:48:50 +01:00
// #i49383#
bool mbFrmDeleted;
2002-03-08 12:23:38 +00:00
2000-09-18 23:08:29 +00:00
public:
SwFrmNotify( SwFrm *pFrm );
~SwFrmNotify();
const SwRect &Frm() const { return aFrm; }
const SwRect &Prt() const { return aPrt; }
void SetInvaKeep() { bInvaKeep = sal_True; }
2011-02-12 22:48:50 +01:00
// #i49383#
void FrmDeleted()
{
mbFrmDeleted = true;
}
2000-09-18 23:08:29 +00:00
};
class SwLayNotify : public SwFrmNotify
{
sal_Bool bLowersComplete;
2000-09-18 23:08:29 +00:00
SwLayoutFrm *GetLay() { return (SwLayoutFrm*)pFrm; }
2000-09-18 23:08:29 +00:00
public:
SwLayNotify( SwLayoutFrm *pLayFrm );
~SwLayNotify();
void SetLowersComplete( sal_Bool b ) { bLowersComplete = b; }
sal_Bool IsLowersComplete() { return bLowersComplete; }
2000-09-18 23:08:29 +00:00
};
class SwFlyNotify : public SwLayNotify
{
SwPageFrm *pOldPage;
const SwRect aFrmAndSpace;
SwFlyFrm *GetFly() { return (SwFlyFrm*)pFrm; }
2000-09-18 23:08:29 +00:00
public:
SwFlyNotify( SwFlyFrm *pFlyFrm );
~SwFlyNotify();
SwPageFrm *GetOldPage() const { return pOldPage; }
};
class SwCntntNotify : public SwFrmNotify
{
private:
2011-02-12 22:48:50 +01:00
// #i11859#
bool mbChkHeightOfLastLine;
SwTwips mnHeightOfLastLine;
2011-02-12 22:48:50 +01:00
// #i25029#
bool mbInvalidatePrevPrtArea;
bool mbBordersJoinedWithPrev;
2000-09-18 23:08:29 +00:00
SwCntntFrm *GetCnt() { return (SwCntntFrm*)pFrm; }
2000-09-18 23:08:29 +00:00
public:
SwCntntNotify( SwCntntFrm *pCntFrm );
~SwCntntNotify();
2011-02-12 22:48:50 +01:00
// #i25029#
void SetInvalidatePrevPrtArea()
{
mbInvalidatePrevPrtArea = true;
}
void SetBordersJoinedWithPrev()
{
mbBordersJoinedWithPrev = true;
}
2000-09-18 23:08:29 +00:00
};
// SwBorderAttrs encapsulates the calculation for margin attributes including
// border. The whole class is cached.
//
// WARNING! If more attributes should be cached also adjust the method
// Modify::Modify!
2000-09-18 23:08:29 +00:00
class SwBorderAttrs : public SwCacheObj
{
const SwAttrSet &rAttrSet;
const SvxULSpaceItem &rUL;
2011-02-12 22:48:50 +01:00
// #i96772#
SvxLRSpaceItem rLR;
2000-09-18 23:08:29 +00:00
const SvxBoxItem &rBox;
const SvxShadowItem &rShadow;
const Size aFrmSize;
2000-09-18 23:08:29 +00:00
// Is it a frame that can have a margin without a border?
sal_Bool bBorderDist : 1;
2000-09-18 23:08:29 +00:00
// the following bool values set the cached values to INVALID - until they
// are calculated for the first time
sal_Bool bTopLine : 1;
sal_Bool bBottomLine : 1;
sal_Bool bLeftLine : 1;
sal_Bool bRightLine : 1;
sal_Bool bTop : 1;
sal_Bool bBottom : 1;
sal_Bool bLine : 1;
sal_Bool bIsLine : 1; // border on at least one side?
sal_Bool bCacheGetLine : 1; // cache GetTopLine(), GetBottomLine()?
sal_Bool bCachedGetTopLine : 1; // is GetTopLine() cached?
sal_Bool bCachedGetBottomLine : 1; // is GetBottomLine() cached?
// Booleans indicate that <bJoinedWithPrev> and <bJoinedWithNext> are
// cached and valid.
// Caching depends on value of <bCacheGetLine>.
mutable sal_Bool bCachedJoinedWithPrev : 1;
mutable sal_Bool bCachedJoinedWithNext : 1;
// Booleans indicate that borders are joined with previous/next frame.
sal_Bool bJoinedWithPrev :1;
sal_Bool bJoinedWithNext :1;
2000-09-18 23:08:29 +00:00
// The cached values (un-defined until calculated for the first time)
sal_uInt16 nTopLine,
2000-09-18 23:08:29 +00:00
nBottomLine,
nLeftLine,
nRightLine,
nTop,
nBottom,
nGetTopLine,
nGetBottomLine;
// only calculate lines and shadow
2000-09-18 23:08:29 +00:00
void _CalcTopLine();
void _CalcBottomLine();
void _CalcLeftLine();
void _CalcRightLine();
// lines + shadow + margin
2000-09-18 23:08:29 +00:00
void _CalcTop();
void _CalcBottom();
void _IsLine();
// #i25029# - If <_pPrevFrm> is set, its value is taken for testing, if
// borders/shadow have to be joined with previous frame.
void _GetTopLine ( const SwFrm& _rFrm,
const SwFrm* _pPrevFrm = 0L );
void _GetBottomLine( const SwFrm& _rFrm );
2000-09-18 23:08:29 +00:00
// calculate cached values <bJoinedWithPrev> and <bJoinedWithNext>
// #i25029# - If <_pPrevFrm> is set, its value is taken for testing, if
// borders/shadow have to be joined with previous frame.
void _CalcJoinedWithPrev( const SwFrm& _rFrm,
const SwFrm* _pPrevFrm = 0L );
void _CalcJoinedWithNext( const SwFrm& _rFrm );
// internal helper method for _CalcJoinedWithPrev and _CalcJoinedWithNext
sal_Bool _JoinWithCmp( const SwFrm& _rCallerFrm,
const SwFrm& _rCmpFrm ) const;
// Are the left and right line and the LRSpace equal?
sal_Bool CmpLeftRight( const SwBorderAttrs &rCmpAttrs,
const SwFrm *pCaller,
2000-09-18 23:08:29 +00:00
const SwFrm *pCmp ) const;
public:
DECL_FIXEDMEMPOOL_NEWDEL(SwBorderAttrs)
SwBorderAttrs( const SwModify *pOwner, const SwFrm *pConstructor );
~SwBorderAttrs();
inline const SwAttrSet &GetAttrSet() const { return rAttrSet; }
inline const SvxULSpaceItem &GetULSpace() const { return rUL; }
inline const SvxLRSpaceItem &GetLRSpace() const { return rLR; }
inline const SvxBoxItem &GetBox() const { return rBox; }
inline const SvxShadowItem &GetShadow() const { return rShadow; }
inline sal_uInt16 CalcTopLine() const;
inline sal_uInt16 CalcBottomLine() const;
inline sal_uInt16 CalcLeftLine() const;
inline sal_uInt16 CalcRightLine() const;
inline sal_uInt16 CalcTop() const;
inline sal_uInt16 CalcBottom() const;
2000-09-18 23:08:29 +00:00
long CalcLeft( const SwFrm *pCaller ) const;
long CalcRight( const SwFrm *pCaller ) const;
2000-09-18 23:08:29 +00:00
inline sal_Bool IsLine() const;
2000-09-18 23:08:29 +00:00
inline const Size &GetSize() const { return aFrmSize; }
inline sal_Bool IsBorderDist() const { return bBorderDist; }
2000-09-18 23:08:29 +00:00
// Should upper (or lower) border be evaluated for this frame?
// #i25029# - If <_pPrevFrm> is set, its value is taken for testing, if
// borders/shadow have to be joined with previous frame.
inline sal_uInt16 GetTopLine ( const SwFrm& _rFrm,
const SwFrm* _pPrevFrm = 0L ) const;
inline sal_uInt16 GetBottomLine( const SwFrm& _rFrm ) const;
inline void SetGetCacheLine( sal_Bool bNew ) const;
// Accessors for cached values <bJoinedWithPrev> and <bJoinedWithPrev>
// #i25029# - If <_pPrevFrm> is set, its value is taken for testing, if
// borders/shadow have to be joined with previous frame.
sal_Bool JoinedWithPrev( const SwFrm& _rFrm,
const SwFrm* _pPrevFrm = 0L ) const;
sal_Bool JoinedWithNext( const SwFrm& _rFrm ) const;
2000-09-18 23:08:29 +00:00
};
class SwBorderAttrAccess : public SwCacheAccess
{
const SwFrm *pConstructor; //opt: for passing on to SwBorderAttrs
2000-09-18 23:08:29 +00:00
protected:
virtual SwCacheObj *NewObj();
public:
SwBorderAttrAccess( SwCache &rCache, const SwFrm *pOwner );
SwBorderAttrs *Get();
};
// Iterator for draw objects of a page. The objects will be iterated sorted by
// their Z-order. Iterating is not cheap since for each operation the _whole_
// SortArray needs to be traversed.
2000-09-18 23:08:29 +00:00
class SwOrderIter
{
const SwPageFrm *pPage;
const SdrObject *pCurrent;
const sal_Bool bFlysOnly;
2000-09-18 23:08:29 +00:00
public:
SwOrderIter( const SwPageFrm *pPage, sal_Bool bFlysOnly = sal_True );
2000-09-18 23:08:29 +00:00
void Current( const SdrObject *pNew ) { pCurrent = pNew; }
const SdrObject *Current() const { return pCurrent; }
const SdrObject *operator()() const { return pCurrent; }
const SdrObject *Top();
const SdrObject *Bottom();
const SdrObject *Next();
const SdrObject *Prev();
};
class StackHack
{
static sal_uInt8 nCnt;
static sal_Bool bLocked;
2000-09-18 23:08:29 +00:00
public:
StackHack()
{
if ( ++StackHack::nCnt > 50 )
StackHack::bLocked = sal_True;
2000-09-18 23:08:29 +00:00
}
~StackHack()
{
if ( --StackHack::nCnt < 5 )
StackHack::bLocked = sal_False;
2000-09-18 23:08:29 +00:00
}
static sal_Bool IsLocked() { return StackHack::bLocked; }
static sal_uInt8 Count() { return StackHack::nCnt; }
2000-09-18 23:08:29 +00:00
};
// Should upper (or lower) border be evaluated for this frame?
// #i25029# - If <_pPrevFrm> is set, its value is taken for testing, if
// borders/shadow have to be joined with previous frame.
inline sal_uInt16 SwBorderAttrs::GetTopLine ( const SwFrm& _rFrm,
const SwFrm* _pPrevFrm ) const
2000-09-18 23:08:29 +00:00
{
if ( !bCachedGetTopLine || _pPrevFrm )
{
const_cast<SwBorderAttrs*>(this)->_GetTopLine( _rFrm, _pPrevFrm );
}
2000-09-18 23:08:29 +00:00
return nGetTopLine;
}
inline sal_uInt16 SwBorderAttrs::GetBottomLine( const SwFrm& _rFrm ) const
2000-09-18 23:08:29 +00:00
{
if ( !bCachedGetBottomLine )
const_cast<SwBorderAttrs*>(this)->_GetBottomLine( _rFrm );
2000-09-18 23:08:29 +00:00
return nGetBottomLine;
}
inline void SwBorderAttrs::SetGetCacheLine( sal_Bool bNew ) const
2000-09-18 23:08:29 +00:00
{
((SwBorderAttrs*)this)->bCacheGetLine = bNew;
((SwBorderAttrs*)this)->bCachedGetBottomLine =
((SwBorderAttrs*)this)->bCachedGetTopLine = sal_False;
// invalidate cache for values <bJoinedWithPrev> and <bJoinedWithNext>
bCachedJoinedWithPrev = sal_False;
bCachedJoinedWithNext = sal_False;
2000-09-18 23:08:29 +00:00
}
inline sal_uInt16 SwBorderAttrs::CalcTopLine() const
2000-09-18 23:08:29 +00:00
{
if ( bTopLine )
((SwBorderAttrs*)this)->_CalcTopLine();
return nTopLine;
}
inline sal_uInt16 SwBorderAttrs::CalcBottomLine() const
2000-09-18 23:08:29 +00:00
{
if ( bBottomLine )
((SwBorderAttrs*)this)->_CalcBottomLine();
return nBottomLine;
}
inline sal_uInt16 SwBorderAttrs::CalcLeftLine() const
2000-09-18 23:08:29 +00:00
{
if ( bLeftLine )
((SwBorderAttrs*)this)->_CalcLeftLine();
return nLeftLine;
}
inline sal_uInt16 SwBorderAttrs::CalcRightLine() const
2000-09-18 23:08:29 +00:00
{
if ( bRightLine )
((SwBorderAttrs*)this)->_CalcRightLine();
return nRightLine;
}
inline sal_uInt16 SwBorderAttrs::CalcTop() const
2000-09-18 23:08:29 +00:00
{
if ( bTop )
((SwBorderAttrs*)this)->_CalcTop();
return nTop;
}
inline sal_uInt16 SwBorderAttrs::CalcBottom() const
2000-09-18 23:08:29 +00:00
{
if ( bBottom )
((SwBorderAttrs*)this)->_CalcBottom();
return nBottom;
}
inline sal_Bool SwBorderAttrs::IsLine() const
2000-09-18 23:08:29 +00:00
{
if ( bLine )
((SwBorderAttrs*)this)->_IsLine();
return bIsLine;
}
/** method to determine the spacing values of a frame
2011-02-12 22:48:50 +01:00
#i28701#
Values only provided for flow frames (table, section or text frames)
Note: line spacing value is only determined for text frames
2011-02-12 22:48:50 +01:00
#i102458#
CWS-TOOLING: integrate CWS sw32numbf01 2009-09-04 10:01:07 +0200 od r275780 : #i95907# method <SwWrtShell::NumOfBulletOn(..)> - adjust indentation of newly created automatic list style --> due to MRU add actual paragraph indentation to created automatic list style's indentation 2009-09-02 11:57:40 +0200 od r275703 : #i95907# method <SwTxtMargin::CtorInitTxtMargin(..)> - correct handling of paragraph indents, when list level indents are applicable. 2009-09-01 16:59:47 +0200 od r275671 : CWS-TOOLING: rebase CWS sw32numbf01 to trunk@275331 (milestone: DEV300:m56) 2009-08-28 16:42:34 +0200 od r275540 : #i102458# method <SwFlowFrm::CalcUpperSpace(..)> - correct handling of leading line spacing method <GetSpacingValuesOfFrm(..)> - add output parameter <obIsLineSpacingProportional> 2009-08-27 17:03:07 +0200 od r275496 : #i101516# method <SwTxtNode::SwTxtNode(..)> - in case that the paragraph is add to a list, apply paragraph style's assigned outline style list level as list level, if paragraph has no list level set already. 2009-08-27 15:23:34 +0200 od r275489 : #i101234# method <SwWrtShell::NumOrBulletOn(..)> - check before activation of certain list level of outline numbering, a numbering format is already set. In this only continue the outline numbering. 2009-08-27 14:15:07 +0200 od r275483 : #i95907# method <SwWrtShell::NumOrBulletOn(..)> - consider leading tab stops and intentation of paragraph first text line, when a new list style is created for its application to the selection. 2009-08-26 09:51:39 +0200 od r275401 : #i86492# Adjust copy of text nodes regarding lists - copy of part of paragraph in list does not copy list style and list id - copy of paragraphs in list into another list continues destination list - copy of paragraphs (at least one not in a list) at empty paragraph following a list does not continue the destination list. 2009-08-25 10:30:53 +0200 od r275339 : #i101349# method <XMLTextImportHelper::SetStyleAndAttrs(..) - assure that list style of automatic paragraph style is applied at paragraph.
2009-09-08 13:44:38 +00:00
Add output parameter <obIsLineSpacingProportional>
CWS-TOOLING: integrate CWS sw32numbf01 2009-09-04 10:01:07 +0200 od r275780 : #i95907# method <SwWrtShell::NumOfBulletOn(..)> - adjust indentation of newly created automatic list style --> due to MRU add actual paragraph indentation to created automatic list style's indentation 2009-09-02 11:57:40 +0200 od r275703 : #i95907# method <SwTxtMargin::CtorInitTxtMargin(..)> - correct handling of paragraph indents, when list level indents are applicable. 2009-09-01 16:59:47 +0200 od r275671 : CWS-TOOLING: rebase CWS sw32numbf01 to trunk@275331 (milestone: DEV300:m56) 2009-08-28 16:42:34 +0200 od r275540 : #i102458# method <SwFlowFrm::CalcUpperSpace(..)> - correct handling of leading line spacing method <GetSpacingValuesOfFrm(..)> - add output parameter <obIsLineSpacingProportional> 2009-08-27 17:03:07 +0200 od r275496 : #i101516# method <SwTxtNode::SwTxtNode(..)> - in case that the paragraph is add to a list, apply paragraph style's assigned outline style list level as list level, if paragraph has no list level set already. 2009-08-27 15:23:34 +0200 od r275489 : #i101234# method <SwWrtShell::NumOrBulletOn(..)> - check before activation of certain list level of outline numbering, a numbering format is already set. In this only continue the outline numbering. 2009-08-27 14:15:07 +0200 od r275483 : #i95907# method <SwWrtShell::NumOrBulletOn(..)> - consider leading tab stops and intentation of paragraph first text line, when a new list style is created for its application to the selection. 2009-08-26 09:51:39 +0200 od r275401 : #i86492# Adjust copy of text nodes regarding lists - copy of part of paragraph in list does not copy list style and list id - copy of paragraphs in list into another list continues destination list - copy of paragraphs (at least one not in a list) at empty paragraph following a list does not continue the destination list. 2009-08-25 10:30:53 +0200 od r275339 : #i101349# method <XMLTextImportHelper::SetStyleAndAttrs(..) - assure that list style of automatic paragraph style is applied at paragraph.
2009-09-08 13:44:38 +00:00
@param rFrm
input parameter - frame, for which the spacing values are determined.
CWS-TOOLING: integrate CWS sw32numbf01 2009-09-04 10:01:07 +0200 od r275780 : #i95907# method <SwWrtShell::NumOfBulletOn(..)> - adjust indentation of newly created automatic list style --> due to MRU add actual paragraph indentation to created automatic list style's indentation 2009-09-02 11:57:40 +0200 od r275703 : #i95907# method <SwTxtMargin::CtorInitTxtMargin(..)> - correct handling of paragraph indents, when list level indents are applicable. 2009-09-01 16:59:47 +0200 od r275671 : CWS-TOOLING: rebase CWS sw32numbf01 to trunk@275331 (milestone: DEV300:m56) 2009-08-28 16:42:34 +0200 od r275540 : #i102458# method <SwFlowFrm::CalcUpperSpace(..)> - correct handling of leading line spacing method <GetSpacingValuesOfFrm(..)> - add output parameter <obIsLineSpacingProportional> 2009-08-27 17:03:07 +0200 od r275496 : #i101516# method <SwTxtNode::SwTxtNode(..)> - in case that the paragraph is add to a list, apply paragraph style's assigned outline style list level as list level, if paragraph has no list level set already. 2009-08-27 15:23:34 +0200 od r275489 : #i101234# method <SwWrtShell::NumOrBulletOn(..)> - check before activation of certain list level of outline numbering, a numbering format is already set. In this only continue the outline numbering. 2009-08-27 14:15:07 +0200 od r275483 : #i95907# method <SwWrtShell::NumOrBulletOn(..)> - consider leading tab stops and intentation of paragraph first text line, when a new list style is created for its application to the selection. 2009-08-26 09:51:39 +0200 od r275401 : #i86492# Adjust copy of text nodes regarding lists - copy of part of paragraph in list does not copy list style and list id - copy of paragraphs in list into another list continues destination list - copy of paragraphs (at least one not in a list) at empty paragraph following a list does not continue the destination list. 2009-08-25 10:30:53 +0200 od r275339 : #i101349# method <XMLTextImportHelper::SetStyleAndAttrs(..) - assure that list style of automatic paragraph style is applied at paragraph.
2009-09-08 13:44:38 +00:00
@param onPrevLowerSpacing
output parameter - lower spacing of the frame in SwTwips
CWS-TOOLING: integrate CWS sw32numbf01 2009-09-04 10:01:07 +0200 od r275780 : #i95907# method <SwWrtShell::NumOfBulletOn(..)> - adjust indentation of newly created automatic list style --> due to MRU add actual paragraph indentation to created automatic list style's indentation 2009-09-02 11:57:40 +0200 od r275703 : #i95907# method <SwTxtMargin::CtorInitTxtMargin(..)> - correct handling of paragraph indents, when list level indents are applicable. 2009-09-01 16:59:47 +0200 od r275671 : CWS-TOOLING: rebase CWS sw32numbf01 to trunk@275331 (milestone: DEV300:m56) 2009-08-28 16:42:34 +0200 od r275540 : #i102458# method <SwFlowFrm::CalcUpperSpace(..)> - correct handling of leading line spacing method <GetSpacingValuesOfFrm(..)> - add output parameter <obIsLineSpacingProportional> 2009-08-27 17:03:07 +0200 od r275496 : #i101516# method <SwTxtNode::SwTxtNode(..)> - in case that the paragraph is add to a list, apply paragraph style's assigned outline style list level as list level, if paragraph has no list level set already. 2009-08-27 15:23:34 +0200 od r275489 : #i101234# method <SwWrtShell::NumOrBulletOn(..)> - check before activation of certain list level of outline numbering, a numbering format is already set. In this only continue the outline numbering. 2009-08-27 14:15:07 +0200 od r275483 : #i95907# method <SwWrtShell::NumOrBulletOn(..)> - consider leading tab stops and intentation of paragraph first text line, when a new list style is created for its application to the selection. 2009-08-26 09:51:39 +0200 od r275401 : #i86492# Adjust copy of text nodes regarding lists - copy of part of paragraph in list does not copy list style and list id - copy of paragraphs in list into another list continues destination list - copy of paragraphs (at least one not in a list) at empty paragraph following a list does not continue the destination list. 2009-08-25 10:30:53 +0200 od r275339 : #i101349# method <XMLTextImportHelper::SetStyleAndAttrs(..) - assure that list style of automatic paragraph style is applied at paragraph.
2009-09-08 13:44:38 +00:00
@param onPrevLineSpacing
output parameter - line spacing of the frame in SwTwips
CWS-TOOLING: integrate CWS sw32numbf01 2009-09-04 10:01:07 +0200 od r275780 : #i95907# method <SwWrtShell::NumOfBulletOn(..)> - adjust indentation of newly created automatic list style --> due to MRU add actual paragraph indentation to created automatic list style's indentation 2009-09-02 11:57:40 +0200 od r275703 : #i95907# method <SwTxtMargin::CtorInitTxtMargin(..)> - correct handling of paragraph indents, when list level indents are applicable. 2009-09-01 16:59:47 +0200 od r275671 : CWS-TOOLING: rebase CWS sw32numbf01 to trunk@275331 (milestone: DEV300:m56) 2009-08-28 16:42:34 +0200 od r275540 : #i102458# method <SwFlowFrm::CalcUpperSpace(..)> - correct handling of leading line spacing method <GetSpacingValuesOfFrm(..)> - add output parameter <obIsLineSpacingProportional> 2009-08-27 17:03:07 +0200 od r275496 : #i101516# method <SwTxtNode::SwTxtNode(..)> - in case that the paragraph is add to a list, apply paragraph style's assigned outline style list level as list level, if paragraph has no list level set already. 2009-08-27 15:23:34 +0200 od r275489 : #i101234# method <SwWrtShell::NumOrBulletOn(..)> - check before activation of certain list level of outline numbering, a numbering format is already set. In this only continue the outline numbering. 2009-08-27 14:15:07 +0200 od r275483 : #i95907# method <SwWrtShell::NumOrBulletOn(..)> - consider leading tab stops and intentation of paragraph first text line, when a new list style is created for its application to the selection. 2009-08-26 09:51:39 +0200 od r275401 : #i86492# Adjust copy of text nodes regarding lists - copy of part of paragraph in list does not copy list style and list id - copy of paragraphs in list into another list continues destination list - copy of paragraphs (at least one not in a list) at empty paragraph following a list does not continue the destination list. 2009-08-25 10:30:53 +0200 od r275339 : #i101349# method <XMLTextImportHelper::SetStyleAndAttrs(..) - assure that list style of automatic paragraph style is applied at paragraph.
2009-09-08 13:44:38 +00:00
@param obIsLineSpacingProportional
*/
CWS-TOOLING: integrate CWS sw32numbf01 2009-09-04 10:01:07 +0200 od r275780 : #i95907# method <SwWrtShell::NumOfBulletOn(..)> - adjust indentation of newly created automatic list style --> due to MRU add actual paragraph indentation to created automatic list style's indentation 2009-09-02 11:57:40 +0200 od r275703 : #i95907# method <SwTxtMargin::CtorInitTxtMargin(..)> - correct handling of paragraph indents, when list level indents are applicable. 2009-09-01 16:59:47 +0200 od r275671 : CWS-TOOLING: rebase CWS sw32numbf01 to trunk@275331 (milestone: DEV300:m56) 2009-08-28 16:42:34 +0200 od r275540 : #i102458# method <SwFlowFrm::CalcUpperSpace(..)> - correct handling of leading line spacing method <GetSpacingValuesOfFrm(..)> - add output parameter <obIsLineSpacingProportional> 2009-08-27 17:03:07 +0200 od r275496 : #i101516# method <SwTxtNode::SwTxtNode(..)> - in case that the paragraph is add to a list, apply paragraph style's assigned outline style list level as list level, if paragraph has no list level set already. 2009-08-27 15:23:34 +0200 od r275489 : #i101234# method <SwWrtShell::NumOrBulletOn(..)> - check before activation of certain list level of outline numbering, a numbering format is already set. In this only continue the outline numbering. 2009-08-27 14:15:07 +0200 od r275483 : #i95907# method <SwWrtShell::NumOrBulletOn(..)> - consider leading tab stops and intentation of paragraph first text line, when a new list style is created for its application to the selection. 2009-08-26 09:51:39 +0200 od r275401 : #i86492# Adjust copy of text nodes regarding lists - copy of part of paragraph in list does not copy list style and list id - copy of paragraphs in list into another list continues destination list - copy of paragraphs (at least one not in a list) at empty paragraph following a list does not continue the destination list. 2009-08-25 10:30:53 +0200 od r275339 : #i101349# method <XMLTextImportHelper::SetStyleAndAttrs(..) - assure that list style of automatic paragraph style is applied at paragraph.
2009-09-08 13:44:38 +00:00
void GetSpacingValuesOfFrm( const SwFrm& rFrm,
SwTwips& onLowerSpacing,
SwTwips& onLineSpacing,
bool& obIsLineSpacingProportional );
/** method to get the content of the table cell
Content from any nested tables will be omitted.
Note: line spacing value is only determined for text frames
@param rCell_
input parameter - the cell which should be searched for content.
return
pointer to the found content frame or 0
*/
const SwCntntFrm* GetCellCntnt( const SwLayoutFrm& rCell_ );
/** helper class to check if a frame has been deleted during an operation
* WARNING! This should only be used as a last and desperate means to make the
* code robust.
*/
class SwDeletionChecker
{
private:
const SwFrm* mpFrm;
const SwModify* mpRegIn;
public:
SwDeletionChecker( const SwFrm* pFrm )
: mpFrm( pFrm ),
mpRegIn( pFrm ? const_cast<SwFrm*>(pFrm)->GetRegisteredIn() : 0 )
{
}
/**
* return
* true if mpFrm != 0 and mpFrm is not client of pRegIn
* false otherwise
*/
bool HasBeenDeleted();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */