diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-02 14:58:29 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-03 20:28:17 -0400 |
commit | e4e4b3d65788d14d5f10cd6bccc713cfe2411cb1 (patch) | |
tree | 627eb69f8e42c7f06f9049285f38e5dd6bdd2e2b /editeng/source/editeng/editobj.cxx | |
parent | 1e68b77bb785e5ab9a68e0052436d8e7e8163728 (diff) |
Another SV_DECL_PTRARR now gone.
Change-Id: I0521274a6e19414d2640a1473a249a90ce2224fc
Diffstat (limited to 'editeng/source/editeng/editobj.cxx')
-rw-r--r-- | editeng/source/editeng/editobj.cxx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index 21f0cbfd9a4a..0fd9de60a465 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -86,6 +86,25 @@ bool XEditAttribute::IsFeature() const return ((nWhich >= EE_FEATURE_START) && (nWhich <= EE_FEATURE_END)); } + +XParaPortionList::XParaPortionList( + OutputDevice* pRefDev, sal_uLong nPW, sal_uInt16 _nStretchX, sal_uInt16 _nStretchY) : + aRefMapMode(pRefDev->GetMapMode()), nStretchX(_nStretchX), nStretchY(_nStretchY) +{ + nRefDevPtr = (sal_uIntPtr)pRefDev; nPaperWidth = nPW; + eRefDevType = pRefDev->GetOutDevType(); +} + +void XParaPortionList::push_back(XParaPortion* p) +{ + maList.push_back(p); +} + +const XParaPortion& XParaPortionList::operator [](size_t i) const +{ + return maList[i]; +} + ContentInfo::ContentInfo( SfxItemPool& rPool ) : aParaAttribs( rPool, EE_PARA_START, EE_CHAR_END ) { eFamily = SFX_STYLE_FAMILY_PARA; @@ -740,8 +759,6 @@ void BinTextObject::ClearPortionInfo() { if ( pPortionInfo ) { - for ( sal_uInt16 n = pPortionInfo->Count(); n; ) - delete pPortionInfo->GetObject( --n ); delete pPortionInfo; pPortionInfo = NULL; } |