LeechCraft Monocle  0.6.70-16373-g319c272718
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 
15 class QObject;
16 
17 namespace LC
18 {
19 namespace Monocle
20 {
23  struct FontInfo
24  {
30  QString FontName_;
31 
36  QString LocalPath_;
37 
41  };
42 
45  typedef QList<FontInfo> FontInfos_t;
46 
65  {
66  public:
68 
73  virtual QObject* GetQObject () = 0;
74 
85  virtual QList<FontInfo> GetFontInfos () const = 0;
86  protected:
100  virtual void ready () = 0;
101  };
102 
109  {
110  public:
111  virtual ~IHaveFontInfo () {}
112 
125  virtual IPendingFontInfoRequest* RequestFontInfos () const = 0;
126  };
127 }
128 }
129 
130 Q_DECLARE_INTERFACE (LC::Monocle::IPendingFontInfoRequest,
131  "org.LeechCraft.Monocle.IPendingFontInfoRequest/1.0")
132 Q_DECLARE_INTERFACE (LC::Monocle::IHaveFontInfo,
133  "org.LeechCraft.Monocle.IHaveFontInfo/1.0")
bool IsEmbedded_
Whether the font is embedded into the document.
Definition: ihavefontinfo.h:40
A proxy object for a pending font info request.
Definition: ihavefontinfo.h:64
QString LocalPath_
The path to the local font file used.
Definition: ihavefontinfo.h:36
Describes a single font.
Definition: ihavefontinfo.h:23
virtual QObject * GetQObject()=0
Returns this object as a QObject.
virtual QList< FontInfo > GetFontInfos() const =0
Returns the font information list for the document.
Interface for querying font information in a document.
virtual void ready()=0
Notifies that the request is completed.
QList< FontInfo > FontInfos_t
A list of FontInfo structures.
Definition: ihavefontinfo.h:45
QString FontName_
The name of the font as it appears in the document.
Definition: ihavefontinfo.h:30
Definition: iannotation.h:20
virtual IPendingFontInfoRequest * RequestFontInfos() const =0
Requests the font information for the document.