Files

38 lines
1.1 KiB
C++

#ifndef MWGUI_JOURNALBOOKS_HPP
#define MWGUI_JOURNALBOOKS_HPP
#include "bookpage.hpp"
#include "journalviewmodel.hpp"
#include <components/toutf8/toutf8.hpp>
namespace MWGui
{
int getCyrillicIndexPageCount();
const MyGUI::Colour journalHeaderColour = MyGUI::Colour(0.60f, 0.00f, 0.00f);
struct JournalBooks
{
std::shared_ptr<JournalViewModel> mModel;
JournalBooks(std::shared_ptr<JournalViewModel> model, ToUTF8::FromType encoding);
std::shared_ptr<TypesetBook> createEmptyJournalBook();
std::shared_ptr<TypesetBook> createJournalBook();
std::shared_ptr<TypesetBook> createTopicBook(const MWDialogue::Topic& topic);
std::shared_ptr<TypesetBook> createQuestBook(std::string_view questName);
std::shared_ptr<TypesetBook> createTopicIndexBook();
ToUTF8::FromType mEncoding;
int mIndexPagesCount;
private:
std::shared_ptr<BookTypesetter> createTypesetter();
std::shared_ptr<BookTypesetter> createLatinJournalIndex();
std::shared_ptr<BookTypesetter> createCyrillicJournalIndex();
};
}
#endif // MWGUI_JOURNALBOOKS_HPP