⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtfexporter.h

📁 非常好用的可移植的多平台C/C++源代码编辑器
💻 H
字号:
#ifndef RTFEXPORTER_INCLUDED
#define RTFEXPORTER_INCLUDED

#include "BaseExporter.h"
#include <vector>
#include <string>

using std::string;
using std::vector;

class RTFExporter : public BaseExporter
{
  public:
    struct Style
    {
      int value;
      int backIdx;
      int foreIdx;
      bool bold;
      bool italics;
      bool underlined;

      bool operator == (int aValue);
    };

  public:
    void Export(const wxString &filename, const wxString &title, const wxMemoryBuffer &styled_text, const EditorColorSet *color_set);

  private:
    vector<Style> m_styles;
    int defStyleIdx;

    static string RTFFontTable(int &pt);
    string RTFColorTable(const EditorColorSet *c_color_set, HighlightLanguage lang);
    static const char *RTFInfo;
    static const char *RTFTitle;
    string RTFBody(const wxMemoryBuffer &styled_text, int pt);
    static const char *RTFEnd;
};

#endif // RTFEXPORTER_INCLUDED

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -