2017-12-28 13:06:06 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-12-28 13:06:06 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-12-28 13:06:06 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2019-09-13 06:06:02 +00:00
|
|
|
class History;
|
|
|
|
class PeerData;
|
|
|
|
|
2017-12-28 13:06:06 +00:00
|
|
|
namespace Ui {
|
|
|
|
|
|
|
|
void InitTextOptions();
|
|
|
|
|
|
|
|
const TextParseOptions &ItemTextDefaultOptions();
|
|
|
|
const TextParseOptions &ItemTextBotDefaultOptions();
|
|
|
|
const TextParseOptions &ItemTextNoMonoOptions();
|
|
|
|
const TextParseOptions &ItemTextBotNoMonoOptions();
|
|
|
|
const TextParseOptions &ItemTextServiceOptions();
|
|
|
|
|
|
|
|
const TextParseOptions &WebpageTextTitleOptions();
|
|
|
|
const TextParseOptions &WebpageTextDescriptionOptions(
|
|
|
|
const QString &siteName = QString());
|
|
|
|
|
|
|
|
const TextParseOptions &NameTextOptions();
|
|
|
|
const TextParseOptions &DialogTextOptions();
|
|
|
|
|
|
|
|
const TextParseOptions &ItemTextOptions(
|
|
|
|
not_null<History*> history,
|
|
|
|
not_null<PeerData*> author);
|
|
|
|
const TextParseOptions &ItemTextNoMonoOptions(
|
|
|
|
not_null<History*> history,
|
|
|
|
not_null<PeerData*> author);
|
|
|
|
const TextParseOptions &ItemTextOptions(not_null<const HistoryItem*> item);
|
|
|
|
const TextParseOptions &ItemTextNoMonoOptions(not_null<const HistoryItem*> item);
|
|
|
|
|
|
|
|
} // namespace Ui
|