File indexing completed on 2024-05-12 04:33:57
0001 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*- 0002 // fontEncodingPool.h 0003 // 0004 // Part of KDVI - A DVI previewer for the KDE desktop environment 0005 // 0006 // SPDX-FileCopyrightText: 2003 Stefan Kebekus 0007 // SPDX-License-Identifier: GPL-2.0-or-later 0008 0009 #ifndef _FONTENCODINGPOOL_H 0010 #define _FONTENCODINGPOOL_H 0011 0012 #include "fontEncoding.h" 0013 0014 #include <QHash> 0015 0016 class QString; 0017 0018 class fontEncodingPool 0019 { 0020 public: 0021 fontEncodingPool(); 0022 ~fontEncodingPool(); 0023 0024 fontEncodingPool(const fontEncodingPool &) = delete; 0025 fontEncodingPool &operator=(const fontEncodingPool &) = delete; 0026 0027 fontEncoding *findByName(const QString &name); 0028 0029 private: 0030 QHash<QString, fontEncoding *> dictionary; 0031 }; 0032 0033 #endif