1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TRACKCHANGESHANDLER_HXX
10 #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_TRACKCHANGESHANDLER_HXX
12 #include <resourcemodel/LoggedResources.hxx>
13 #include <boost/shared_ptr.hpp>
14 #include <com/sun/star/beans/PropertyValue.hpp>
15 #include <DomainMapper_Impl.hxx>
17 namespace writerfilter
{
20 /** Handler for sprms that contain 'track changes' attributes
24 (This class is based on work done in 'MeasureHandler')
26 class TrackChangesHandler
: public LoggedProperties
28 RedlineParamsPtr m_pRedlineParams
;
31 virtual void lcl_attribute(Id Name
, Value
& val
) SAL_OVERRIDE
;
32 virtual void lcl_sprm(Sprm
& sprm
) SAL_OVERRIDE
;
35 TrackChangesHandler( sal_Int32 nToken
);
36 virtual ~TrackChangesHandler();
38 // Compute the UNO properties for the track changes object based on the received tokens.
39 com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
> getRedlineProperties() const;
41 typedef boost::shared_ptr
42 < TrackChangesHandler
> TrackChangesHandlerPtr
;
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */