diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-02 17:24:10 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 10:20:07 -0400 |
commit | 94d833f674eea0d1486778f38e4955aa5f80153c (patch) | |
tree | a4a9fa8d2fb3e4a42c11317f9bf684471d457912 /editeng | |
parent | Use initializer for this. No need to call SetModified to false. (diff) | |
download | core-94d833f674eea0d1486778f38e4955aa5f80153c.tar.gz core-94d833f674eea0d1486778f38e4955aa5f80153c.zip |
Make them non inline.
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 12 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 16 |
2 files changed, 14 insertions, 14 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 4f1010eb5a05..15d3cd5799ff 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1973,6 +1973,18 @@ XubString EditDoc::GetParaAsString( return aStr; } +EditPaM EditDoc::GetStartPaM() const +{ + ContentNode* p = const_cast<ContentNode*>(GetObject(0)); + return EditPaM(p, 0); +} + +EditPaM EditDoc::GetEndPaM() const +{ + ContentNode* pLastNode = const_cast<ContentNode*>(GetObject(Count()-1)); + return EditPaM( pLastNode, pLastNode->Len() ); +} + sal_uLong EditDoc::GetTextLen() const { sal_uLong nLen = 0; diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index 750802a091a5..3dc13cc63d41 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -771,8 +771,8 @@ public: XubString GetParaAsString( sal_uInt16 nNode ) const; XubString GetParaAsString(const ContentNode* pNode, sal_uInt16 nStartPos = 0, sal_uInt16 nEndPos = 0xFFFF, bool bResolveFields = true) const; - inline EditPaM GetStartPaM() const; - inline EditPaM GetEndPaM() const; + EditPaM GetStartPaM() const; + EditPaM GetEndPaM() const; SfxItemPool& GetItemPool() { return *pItemPool; } const SfxItemPool& GetItemPool() const { return *pItemPool; } @@ -804,18 +804,6 @@ public: static XubString GetSepStr( LineEnd eEnd ); }; -inline EditPaM EditDoc::GetStartPaM() const -{ - ContentNode* p = const_cast<ContentNode*>(GetObject(0)); - return EditPaM(p, 0); -} - -inline EditPaM EditDoc::GetEndPaM() const -{ - ContentNode* pLastNode = const_cast<ContentNode*>(GetObject(Count()-1)); - return EditPaM( pLastNode, pLastNode->Len() ); -} - inline EditCharAttrib* GetAttrib(CharAttribList::AttribsType& rAttribs, size_t nAttr) { return (nAttr < rAttribs.size()) ? &rAttribs[nAttr] : NULL; |