1 /* 2 For general Scribus (>=1.3.2) copyright and licensing information please refer 3 to the COPYING file provided with the program. Following this notice may exist 4 a copyright and/or license notice that predates the release of Scribus 1.3.2 5 for which a new license (GPL+exception) is in place. 6 */ 7 #ifndef FONTEMBEDDINGCOMBO_H 8 #define FONTEMBEDDINGCOMBO_H 9 10 #include <QComboBox> 11 12 #include "scribusapi.h" 13 #include "pdfoptions.h" 14 15 class FontEmbeddingModel; 16 17 /*! 18 \class FontEmbeddingCombo fontembeddingcombo.h 19 \brief The FontEmbeddingCombo widget is a combo box for displaying font embedding modes. 20 */ 21 class SCRIBUS_API FontEmbeddingCombo : public QComboBox 22 { 23 Q_OBJECT 24 25 public: 26 FontEmbeddingCombo(QWidget* parent=nullptr); 27 ~FontEmbeddingCombo(); 28 29 PDFOptions::PDFFontEmbedding embeddingMode() const; 30 31 void setEmbeddingMode(PDFOptions::PDFFontEmbedding mode); 32 void setNoEmbeddingEnabled(bool enabled); 33 34 private: 35 bool m_allowNoFontEmbedding; 36 FontEmbeddingModel* m_fontEmbeddingModel; 37 }; 38 39 #endif 40