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

📄 exporter.h

📁 非常好用的可移植的多平台C/C++源代码编辑器
💻 H
字号:
/***************************************************************
 * Name:      exporter.h
 * Purpose:   Code::Blocks plugin
 * Author:    Ceniza<ceniza@gda.utp.edu.co>
 * Copyright: (c) Ceniza
 * License:   GPL
 **************************************************************/

#ifndef EXPORTER_H
#define EXPORTER_H

#if defined(__GNUG__) && !defined(__APPLE__)
	#pragma interface "exporter.h"
#endif
// For compilers that support precompilation, includes <wx/wx.h>
#include <wx/wxprec.h>

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#endif

#include <cbplugin.h> // the base class we 're inheriting
#include <settings.h> // needed to use the Code::Blocks SDK

#include "BaseExporter.h"

class Exporter : public cbPlugin
{
	public:
		Exporter();
		~Exporter();
    void BuildMenu(wxMenuBar *menuBar);
    void RemoveMenu(wxMenuBar *menuBar);
		int Configure() { return 0; }
		void OnAttach(); // fires when the plugin is attached to the application
		void OnRelease(bool appShutDown); // fires when the plugin is released from the application
    void OnExportHTML(wxCommandEvent &event);
    void OnExportRTF(wxCommandEvent &event);
    void OnExportODT(wxCommandEvent &event);
    void ExportFile(BaseExporter *exp, const wxString &default_extension, const wxString &wildcard);
    void OnUpdateUI(wxUpdateUIEvent &event);
  private:
    void BuildModuleMenu(const ModuleType type, wxMenu *menu, const wxString &arg) {}
    bool BuildToolBar(wxToolBar *toolBar) { return false; }
    void RemoveToolBar(wxToolBar *toolBar) {}

    DECLARE_EVENT_TABLE();
};

// Declare the plugin's hooks
CB_DECLARE_PLUGIN();

#endif // EXPORTER_H

⌨️ 快捷键说明

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