LeechCraft Monocle  0.6.70-18450-gabe19ee3b0
Modular document viewer for LeechCraft
ihavefontinfo.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #pragma once
10 
11 #include <QString>
12 #include <QList>
13 #include <QtPlugin>
14 #include <util/threads/coro/taskfwd.h>
15 
16 namespace LC::Monocle
17 {
20  struct FontInfo
21  {
27  QString FontName_;
28 
33  QString LocalPath_;
34 
38  };
39 
46  {
47  public:
48  virtual ~IHaveFontInfo () {}
49 
54  virtual Util::Task<QList<FontInfo>> RequestFontInfos () const = 0;
55  };
56 }
57 
58 
59 Q_DECLARE_INTERFACE (LC::Monocle::IHaveFontInfo,
60  "org.LeechCraft.Monocle.IHaveFontInfo/1.0")
bool IsEmbedded_
Whether the font is embedded into the document.
Definition: ihavefontinfo.h:37
QString LocalPath_
The path to the local font file used.
Definition: ihavefontinfo.h:33
virtual Util::Task< QList< FontInfo > > RequestFontInfos() const =0
Requests the font information for the document.
Describes a single font.
Definition: ihavefontinfo.h:20
Interface for querying font information in a document.
Definition: ihavefontinfo.h:45
QString FontName_
The name of the font as it appears in the document.
Definition: ihavefontinfo.h:27