diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-02 17:02:38 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 10:20:06 -0400 |
commit | a41ea233419e4c573e889bf30df7b23fca700348 (patch) | |
tree | a722fceec395c71b0e94c772e4c69c63007a165d /editeng | |
parent | Merged editdoc2.cxx into editdoc.cxx. (diff) | |
download | core-a41ea233419e4c573e889bf30df7b23fca700348.tar.gz core-a41ea233419e4c573e889bf30df7b23fca700348.zip |
Little code shuffling (now that it's all in one source file).
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 8ce17f720d20..807ecee18aaa 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -171,6 +171,7 @@ DBG_NAME( EE_TextPortion ); DBG_NAME( EE_EditLine ); DBG_NAME( EE_ContentNode ); DBG_NAME( EE_CharAttribList ); +DBG_NAME( EE_ParaPortion ) const SfxItemInfo aItemInfos[EDITITEMCOUNT] = { { SID_ATTR_FRAMEDIRECTION, SFX_ITEM_POOLABLE }, // EE_PARA_WRITINGDIR @@ -396,12 +397,8 @@ EditCharAttrib* MakeCharAttrib( SfxItemPool& rPool, const SfxPoolItem& rAttr, sa return pNew; } - -DBG_NAME( EE_ParaPortion ) - SV_IMPL_VARARR( CharPosArray, sal_Int32 ); - TextPortionList::TextPortionList() { } @@ -711,11 +708,6 @@ size_t ParaPortionList::Count() const return maPortions.size(); } -size_t EditDoc::GetPos(const ContentNode* p) const -{ - return FastGetPos(maContents, p, nLastCache); -} - void ParaPortionList::Reset() { maPortions.clear(); @@ -1842,6 +1834,11 @@ ContentNode* EditDoc::SafeGetObject(size_t nPos) return ( nPos < Count() ) ? GetObject( nPos ) : 0; } +size_t EditDoc::GetPos(const ContentNode* p) const +{ + return FastGetPos(maContents, p, nLastCache); +} + const ContentNode* EditDoc::GetObject(size_t nPos) const { return nPos < maContents.size() ? &maContents[nPos] : NULL; |