summaryrefslogtreecommitdiffstats
path: root/sw/inc/ndarr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-07-19 13:12:17 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-25 14:13:45 +0200
commit63f792d9b1482c518f37b4d0681082ea49957a1e (patch)
tree20a971bd0aff47a6bfea9bba60ff189dba75829c /sw/inc/ndarr.hxx
parentsorted_vector: add erase(const_iterator) methods (diff)
downloadcore-63f792d9b1482c518f37b4d0681082ea49957a1e.tar.gz
core-63f792d9b1482c518f37b4d0681082ea49957a1e.zip
Convert SV_DECL_PTRARR_SORT(SwOutlineNodes) to o3tl::sorted_vector
Change-Id: I17c40bda4ab401bde42b64d090fd7e3259e79026
Diffstat (limited to 'sw/inc/ndarr.hxx')
-rw-r--r--sw/inc/ndarr.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index 0faba74af165..051476856231 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -35,11 +35,11 @@
#include <com/sun/star/embed/XEmbeddedObject.hpp>
-#include <svl/svarray.hxx>
#include <svtools/embedhlp.hxx>
#include <bparr.hxx>
#include <ndtyp.hxx>
+#include <o3tl/sorted_vector.hxx>
class Graphic;
class GraphicObject;
@@ -82,7 +82,16 @@ typedef SwNode * SwNodePtr;
typedef sal_Bool (*FnForEach_SwNodes)( const SwNodePtr&, void* pArgs );
typedef struct _xmlTextWriter *xmlTextWriterPtr;
-SV_DECL_PTRARR_SORT( SwOutlineNodes, SwNodePtr, 0 )
+struct CompareSwOutlineNodes
+{
+ bool operator()( SwNode* const& lhs, SwNode* const& rhs) const;
+};
+
+class SwOutlineNodes : public o3tl::sorted_vector<SwNode*, CompareSwOutlineNodes>
+{
+public:
+ bool Seek_Entry(SwNode* const &rP, sal_uInt16* pnPos) const;
+};
class SW_DLLPUBLIC SwNodes
: private BigPtrArray