summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/TrackChangesHandler.hxx
diff options
context:
space:
mode:
authorAdam Co <rattles2013@gmail.com>2014-02-03 13:03:42 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-02-11 14:41:56 +0100
commit88fbcba044878173f2458eede798f03de25f9cb9 (patch)
tree8ac19649a3af81bad1908c52aa6f1fb08fe04511 /writerfilter/source/dmapper/TrackChangesHandler.hxx
parent94429caa64a1dca701f0b120f669bdd561b6ced9 (diff)
Add 'Track Changes Handler' for 'Extra' redlines
This handler will process 'track changes' information for 'extra' redline objects (such as 'table row insert\delete' redlines) Reviewed on: https://gerrit.libreoffice.org/7802 Change-Id: I8dd0bd70dbdcb3cb7eae76595957817de08c66fc
Diffstat (limited to 'writerfilter/source/dmapper/TrackChangesHandler.hxx')
-rw-r--r--writerfilter/source/dmapper/TrackChangesHandler.hxx48
1 files changed, 48 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/TrackChangesHandler.hxx b/writerfilter/source/dmapper/TrackChangesHandler.hxx
new file mode 100644
index 000000000000..4f1e34ccf990
--- /dev/null
+++ b/writerfilter/source/dmapper/TrackChangesHandler.hxx
@@ -0,0 +1,48 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+#ifndef INCLUDED_TRACKCHANGESHANDLER_HXX
+#define INCLUDED_TRACKCHANGESHANDLER_HXX
+
+#include <WriterFilterDllApi.hxx>
+#include <resourcemodel/LoggedResources.hxx>
+#include <boost/shared_ptr.hpp>
+#include <com/sun/star/beans/PropertyValue.hpp>
+#include <DomainMapper_Impl.hxx>
+
+namespace writerfilter {
+namespace dmapper
+{
+/** Handler for sprms that contain 'track changes' attributes
+ - Author
+ - Date
+ - ID
+ (This class is based on work done in 'MeasureHandler')
+ */
+class TrackChangesHandler : public LoggedProperties
+{
+ RedlineParamsPtr m_pRedlineParams;
+
+ // Properties
+ virtual void lcl_attribute(Id Name, Value & val);
+ virtual void lcl_sprm(Sprm & sprm);
+
+public:
+ TrackChangesHandler( sal_Int32 nToken );
+ virtual ~TrackChangesHandler();
+
+ // Compute the UNO properties for the track changes object based on the received tokens.
+ com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> getRedlineProperties() const;
+};
+typedef boost::shared_ptr
+ < TrackChangesHandler > TrackChangesHandlerPtr;
+}}
+
+#endif //
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */