1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 03:32:36 +00:00
OpenMW/apps/openmw/mwgui/journalbooks.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
944 B
C++
Raw Normal View History

#ifndef MWGUI_JOURNALBOOKS_HPP
#define MWGUI_JOURNALBOOKS_HPP
#include "bookpage.hpp"
#include "journalviewmodel.hpp"
#include <components/to_utf8/to_utf8.hpp>
namespace MWGui
{
2023-01-29 21:31:21 +01:00
MWGui::BookTypesetter::Utf8Span to_utf8_span(std::string_view 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);
2023-01-29 21:31:21 +01:00
Book createQuestBook(std::string_view questName);
Book createTopicIndexBook();
ToUTF8::FromType mEncoding;
int mIndexPagesCount;
private:
BookTypesetter::Ptr createTypesetter();
BookTypesetter::Ptr createLatinJournalIndex();
BookTypesetter::Ptr createCyrillicJournalIndex();
};
}
#endif // MWGUI_JOURNALBOOKS_HPP