Avoid potential negative array index access to cached text.
[LibreOffice.git] / writerfilter / source / dmapper / LatentStyleHandler.hxx
blob52a4d9e7c3188a2fb2638d044dea228588a682e7
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 <vector>
13 #include <com/sun/star/beans/PropertyValue.hpp>
15 namespace writerfilter::dmapper
17 /// Handler for a latent style (w:lsdException element)
18 class LatentStyleHandler : public LoggedProperties
20 std::vector<css::beans::PropertyValue> m_aAttributes;
22 // Properties
23 void lcl_attribute(Id nId, Value& rVal) override;
24 void lcl_sprm(Sprm& sprm) override;
26 public:
27 LatentStyleHandler();
28 ~LatentStyleHandler() override;
30 const std::vector<css::beans::PropertyValue>& getAttributes() const;
33 } // namespace writerfilter::dmapper
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */