3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
84 lines
2.6 KiB
C++
84 lines
2.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/html/m_templ.h
|
|
// Purpose: Modules template file
|
|
// Author: Vaclav Slavik
|
|
// Copyright: (c) Vaclav Slavik
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/*
|
|
|
|
DESCRIPTION:
|
|
This is set of macros for easier writing of tag handlers. How to use it?
|
|
See mod_fonts.cpp for example...
|
|
|
|
Attention! This is quite strange C++ bastard. Before using it,
|
|
I STRONGLY recommend reading and understanding these macros!!
|
|
|
|
*/
|
|
|
|
|
|
#ifndef _WX_M_TEMPL_H_
|
|
#define _WX_M_TEMPL_H_
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#if wxUSE_HTML
|
|
|
|
#include "wx/html/winpars.h"
|
|
|
|
#define TAG_HANDLER_BEGIN(name,tags) \
|
|
class wxHTML_Handler_##name : public wxHtmlWinTagHandler \
|
|
{ \
|
|
public: \
|
|
wxString GetSupportedTags() {return wxT(tags);}
|
|
|
|
|
|
|
|
#define TAG_HANDLER_VARS \
|
|
private:
|
|
|
|
#define TAG_HANDLER_CONSTR(name) \
|
|
public: \
|
|
wxHTML_Handler_##name () : wxHtmlWinTagHandler()
|
|
|
|
|
|
#define TAG_HANDLER_PROC(varib) \
|
|
public: \
|
|
bool HandleTag(const wxHtmlTag& varib)
|
|
|
|
|
|
|
|
#define TAG_HANDLER_END(name) \
|
|
};
|
|
|
|
|
|
|
|
|
|
#define TAGS_MODULE_BEGIN(name) \
|
|
class wxHTML_Module##name : public wxHtmlTagsModule \
|
|
{ \
|
|
DECLARE_DYNAMIC_CLASS(wxHTML_Module##name ) \
|
|
public: \
|
|
void FillHandlersTable(wxHtmlWinParser *parser) \
|
|
{
|
|
|
|
|
|
|
|
|
|
#define TAGS_MODULE_ADD(handler) \
|
|
parser->AddTagHandler(new wxHTML_Handler_##handler);
|
|
|
|
|
|
|
|
|
|
#define TAGS_MODULE_END(name) \
|
|
} \
|
|
}; \
|
|
IMPLEMENT_DYNAMIC_CLASS(wxHTML_Module##name , wxHtmlTagsModule)
|
|
|
|
|
|
|
|
#endif
|
|
#endif
|