mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:49:56 +00:00
36 lines
981 B
C++
36 lines
981 B
C++
#ifndef MWGUI_JOURNALBOOKS_HPP
|
|
#define MWGUI_JOURNALBOOKS_HPP
|
|
|
|
#include "bookpage.hpp"
|
|
#include "journalviewmodel.hpp"
|
|
|
|
#include <components/to_utf8/to_utf8.hpp>
|
|
|
|
namespace MWGui
|
|
{
|
|
MWGui::BookTypesetter::Utf8Span to_utf8_span (char const * text);
|
|
|
|
struct JournalBooks
|
|
{
|
|
typedef TypesetBook::Ptr Book;
|
|
JournalViewModel::Ptr mModel;
|
|
|
|
JournalBooks (JournalViewModel::Ptr model, ToUTF8::FromType encoding);
|
|
|
|
Book createEmptyJournalBook ();
|
|
Book createJournalBook ();
|
|
Book createTopicBook (uintptr_t topicId);
|
|
Book createTopicBook (const std::string& topicId);
|
|
Book createQuestBook (const std::string& questName);
|
|
Book createTopicIndexBook ();
|
|
|
|
ToUTF8::FromType mEncoding;
|
|
|
|
private:
|
|
BookTypesetter::Ptr createTypesetter ();
|
|
BookTypesetter::Ptr createLatinJournalIndex ();
|
|
BookTypesetter::Ptr createCyrillicJournalIndex ();
|
|
};
|
|
}
|
|
|
|
#endif // MWGUI_JOURNALBOOKS_HPP
|