okular/generators/dvi/fontEncodingPool.h
Albert Astals Cid 47d7d04b5e delete copy constructor and assignment operator of some internal classes
they are unused(except the PageViewItem one), but if anyone would use
them things would go wrong, so protect us from it

Actually fixes a bug in PageView::slotFitWindowToPage in which we were
copying constructing PageViewItem and that's bad
2019-01-10 00:28:49 +01:00

33 lines
669 B
C++

// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
// fontEncodingPool.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environment
//
// (C) 2003 Stefan Kebekus
// Distributed under the GPL
#ifndef _FONTENCODINGPOOL_H
#define _FONTENCODINGPOOL_H
#include "fontEncoding.h"
#include <QHash>
class QString;
class fontEncodingPool {
public:
fontEncodingPool();
~fontEncodingPool();
fontEncodingPool(const fontEncodingPool &) = delete;
fontEncodingPool &operator=(const fontEncodingPool &) = delete;
fontEncoding *findByName(const QString &name);
private:
QHash<QString,fontEncoding*> dictionary;
};
#endif