LeechCraft Monocle
0.6.70-18450-gabe19ee3b0
Modular document viewer for LeechCraft
Toggle main menu visibility
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
#include <util/threads/coro/taskfwd.h>
15
16
namespace
LC::Monocle
17
{
20
struct
FontInfo
21
{
27
QString
FontName_
;
28
33
QString
LocalPath_
;
34
37
bool
IsEmbedded_
;
38
};
39
45
class
IHaveFontInfo
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"
)
LC::Monocle::IHaveFontInfo
Interface for querying font information in a document.
Definition
ihavefontinfo.h:46
LC::Monocle::IHaveFontInfo::RequestFontInfos
virtual Util::Task< QList< FontInfo > > RequestFontInfos() const =0
Requests the font information for the document.
LC::Monocle::IHaveFontInfo::~IHaveFontInfo
virtual ~IHaveFontInfo()
Definition
ihavefontinfo.h:48
LC::Monocle
Definition
coordsbase.h:15
LC::Monocle::FontInfo
Describes a single font.
Definition
ihavefontinfo.h:21
LC::Monocle::FontInfo::LocalPath_
QString LocalPath_
The path to the local font file used.
Definition
ihavefontinfo.h:33
LC::Monocle::FontInfo::FontName_
QString FontName_
The name of the font as it appears in the document.
Definition
ihavefontinfo.h:27
LC::Monocle::FontInfo::IsEmbedded_
bool IsEmbedded_
Whether the font is embedded into the document.
Definition
ihavefontinfo.h:37
src
plugins
monocle
interfaces
monocle
ihavefontinfo.h
Generated by
1.17.0