item_text_options.h 739 B

123456789101112131415161718192021222324252627
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "ui/text/text_options.h"
  9. class History;
  10. class PeerData;
  11. class HistoryItem;
  12. namespace Ui {
  13. const TextParseOptions &ItemTextOptions(
  14. not_null<History*> history,
  15. not_null<PeerData*> author);
  16. const TextParseOptions &ItemTextNoMonoOptions(
  17. not_null<History*> history,
  18. not_null<PeerData*> author);
  19. const TextParseOptions &ItemTextOptions(not_null<const HistoryItem*> item);
  20. const TextParseOptions &ItemTextNoMonoOptions(not_null<const HistoryItem*> item);
  21. } // namespace Ui