Avoid potential negative array index access to cached text.
[LibreOffice.git] / writerfilter / source / dmapper / TrackChangesHandler.hxx
blobb3417ccced1f04300bcd6b6418a7fa45cb535812
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
9 #pragma once
11 #include "LoggedResources.hxx"
12 #include <com/sun/star/beans/PropertyValue.hpp>
13 #include <dmapper/PropertyMap.hxx>
15 namespace writerfilter::dmapper
17 /** Handler for sprms that contain 'track changes' attributes
18 - Author
19 - Date
20 - ID
21 (This class is based on work done in 'MeasureHandler')
23 class TrackChangesHandler : public LoggedProperties
25 RedlineParamsPtr m_pRedlineParams;
27 // Properties
28 virtual void lcl_attribute(Id Name, Value& val) override;
29 virtual void lcl_sprm(Sprm& sprm) override;
31 public:
32 explicit TrackChangesHandler(sal_Int32 nToken);
33 virtual ~TrackChangesHandler() override;
35 /// Compute the UNO properties for the track changes object based on the received tokens.
36 css::uno::Sequence<css::beans::PropertyValue> getRedlineProperties() const;
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */