summaryrefslogtreecommitdiff
path: root/sw/inc/ndtxt.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-05-25 17:02:28 +0200
committerMichael Stahl <mst@openoffice.org>2010-05-25 17:02:28 +0200
commit2aaba84b23c9b23a78a5ec813b5d4a4584f59318 (patch)
tree02d8ab21094d55f658cfd8cbb0da15a4254a8a0b /sw/inc/ndtxt.hxx
parent96cd75686a6da042a029510c5fa36a781190905e (diff)
sw33bf04: #i111677#: prevent number string expansion in clipboard:
SwTxtNode: add member: number string cache. [how to add this to SwNodeNum is not obvious, so add it to SwTxtNode.] SwTxtNode::GetNumString(): use cached number string in clipboard. SwTxtNode::CopyText(): cache source number string in clipboard.
Diffstat (limited to 'sw/inc/ndtxt.hxx')
-rw-r--r--sw/inc/ndtxt.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index 868340edc800..ff6082043b0d 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -24,8 +24,8 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-#ifndef _NDTXT_HXX
-#define _NDTXT_HXX
+#ifndef SW_NDTXT_HXX
+#define SW_NDTXT_HXX
#include <cppuhelper/weakref.hxx>
@@ -133,6 +133,8 @@ class SW_DLLPUBLIC SwTxtNode: public SwCntntNode, public ::sfx2::Metadatable
// pointer to the list, to whose the text node is added to
SwList* mpList;
// <--
+ /// #i111677# cached expansion (for clipboard)
+ ::std::auto_ptr< ::rtl::OUString > m_pNumStringCache;
::com::sun::star::uno::WeakReference<
::com::sun::star::text::XTextContent> m_wXParagraph;