LibreOffice Module vcl (master)  1
ResourceDict.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
10 
11 #pragma once
12 
13 #include <vcl/dllapi.h>
14 #include <rtl/strbuf.hxx>
15 #include <map>
16 
17 namespace vcl::pdf
18 {
19 enum class ResourceKind
20 {
21  XObject,
22  ExtGState,
23  Shading,
24  Pattern
25 };
26 
28 {
29  // note: handle fonts globally for performance
30  std::map<OString, sal_Int32> m_aXObjects;
31  std::map<OString, sal_Int32> m_aExtGStates;
32  std::map<OString, sal_Int32> m_aShadings;
33  std::map<OString, sal_Int32> m_aPatterns;
34 
35  void append(OStringBuffer& rBuffer, sal_Int32 nFontDictObject);
36 };
37 }
38 
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void append(OStringBuffer &rBuffer, sal_Int32 nFontDictObject)
std::map< OString, sal_Int32 > m_aXObjects
std::map< OString, sal_Int32 > m_aPatterns
std::map< OString, sal_Int32 > m_aExtGStates
std::map< OString, sal_Int32 > m_aShadings