mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22:28:36 +00:00
![Mark Jansen](/assets/img/avatar_default.png)
Create Fonts\desktop.ini when registering the shell ext Also list the shell extension as needing to be registered at install CORE-14690
49 lines
856 B
C++
49 lines
856 B
C++
/*
|
|
* PROJECT: ReactOS Font Shell Extension
|
|
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
|
* PURPOSE: font list cache handling
|
|
* COPYRIGHT: Copyright 2019 Mark Jansen (mark.jansen@reactos.org)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
class CFontInfo
|
|
{
|
|
private:
|
|
CStringW m_Name;
|
|
CStringW m_File;
|
|
bool m_FileRead;
|
|
public:
|
|
CFontInfo(LPCWSTR name = L"");
|
|
|
|
const CStringW& Name() const;
|
|
const CStringW& File();
|
|
const bool Valid() const;
|
|
};
|
|
|
|
|
|
class CFontCache
|
|
{
|
|
private:
|
|
CAtlArray<CFontInfo> m_Fonts;
|
|
|
|
protected:
|
|
CFontCache();
|
|
|
|
void Insert(CAtlList<CFontInfo>& fonts, const CStringW& KeyName);
|
|
void Read();
|
|
|
|
public:
|
|
size_t Size();
|
|
CStringW Name(size_t Index);
|
|
CStringW Filename(const FontPidlEntry* fontEntry);
|
|
|
|
friend class CFontExtModule;
|
|
};
|
|
|
|
|
|
extern CFontCache* g_FontCache;
|
|
|
|
|