LeechCraft Monocle 0.6.70-16373-g319c272718
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
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
15class QObject;
16
17namespace LC
18{
19namespace 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
126 };
127}
128}
129
130Q_DECLARE_INTERFACE (LC::Monocle::IPendingFontInfoRequest,
131 "org.LeechCraft.Monocle.IPendingFontInfoRequest/1.0")
132Q_DECLARE_INTERFACE (LC::Monocle::IHaveFontInfo,
133 "org.LeechCraft.Monocle.IHaveFontInfo/1.0")
Interface for querying font information in a document.
virtual IPendingFontInfoRequest * RequestFontInfos() const =0
Requests the font information for the document.
A proxy object for a pending font info request.
virtual QObject * GetQObject()=0
Returns this object as a QObject.
virtual void ready()=0
Notifies that the request is completed.
virtual QList< FontInfo > GetFontInfos() const =0
Returns the font information list for the document.
QList< FontInfo > FontInfos_t
A list of FontInfo structures.
Describes a single font.
QString LocalPath_
The path to the local font file used.
QString FontName_
The name of the font as it appears in the document.
bool IsEmbedded_
Whether the font is embedded into the document.