Avoid potential negative array index access to cached text.
[LibreOffice.git] / writerfilter / source / rtftok / rtfreferenceproperties.hxx
blob6a5e5618ba30ae03f774a71afbd9e05db8aee19b
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 */
10 #pragma once
12 #include "rtfsprm.hxx"
14 namespace writerfilter::rtftok
16 /// Sends RTFSprm instances to DomainMapper.
17 class RTFReferenceProperties : public writerfilter::Reference<Properties>
19 public:
20 RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms);
21 explicit RTFReferenceProperties(RTFSprms aAttributes);
22 ~RTFReferenceProperties() override;
23 void resolve(Properties& rHandler) override;
24 RTFSprms& getAttributes() { return m_aAttributes; }
25 RTFSprms& getSprms() { return m_aSprms; }
27 private:
28 RTFSprms m_aAttributes;
29 RTFSprms m_aSprms;
31 } // namespace writerfilter::rtftok
33 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */