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 #ifndef INCLUDED_VCL_INC_PDF_RESOURCEDICT_HXX
12 #define INCLUDED_VCL_INC_PDF_RESOURCEDICT_HXX
13 
14 #include <vcl/dllapi.h>
15 #include <rtl/strbuf.hxx>
16 #include <map>
17 
18 namespace vcl::pdf
19 {
20 enum class ResourceKind
21 {
22  XObject,
23  ExtGState,
24  Shading,
25  Pattern
26 };
27 
29 {
30  // note: handle fonts globally for performance
31  std::map<OString, sal_Int32> m_aXObjects;
32  std::map<OString, sal_Int32> m_aExtGStates;
33  std::map<OString, sal_Int32> m_aShadings;
34  std::map<OString, sal_Int32> m_aPatterns;
35 
36  void append(OStringBuffer& rBuffer, sal_Int32 nFontDictObject);
37 };
38 }
39 
40 #endif
41 
42 /* 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