]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/convertrc/rc2xml.h
added rc2xml and wxr2xml convertor (no makefiles yet)
[wxWidgets.git] / contrib / utils / convertrc / rc2xml.h
CommitLineData
88d42654
VS
1// rc2xml.h
2//
3//////////////////////////////////////////////////////////////////////
4
5#if !defined(RC2XML_H)
6#define RC2XML_H
7
8#include "wx/file.h"
9#include <wx/ffile.h>
10#include <wx/list.h>
11
12
13class wxRC2XML : public wxObject
14{
15public:
16 void ParseNormalMSControl();
17bool Convert(wxString rcfile, wxString xmlfile);
18wxRC2XML();
19~wxRC2XML();
20
21protected:
22 void ParseListCtrl(wxString label,wxString varname);
23 void ParseCalendar(wxString label,wxString varname);
24 void ParseTreeCtrl(wxString label,wxString varname);
25 void ParseScrollBar();
26 void ParseWeirdMSControl();
27 void ParseStaticBitmap(wxString label,wxString varname);
28 wxString CleanName(wxString name);
29 void ParseIcon(wxString varname);
30 wxList * m_iconlist;
31 void ParseIconStatic();
32 void ParseMenuItem();
33
34//Functions
35bool SplitHelp(wxString msg, wxString &shorthelp, wxString &longhelp);
36bool LookUpString(wxString strid,wxString & st);
37void ParseStringTable(wxString varname);
38void WriteToolButton(wxString name,int index,int width,int height,wxBitmap bitmap);
39wxString LookupString(wxString varname,wxStringList id,wxStringList msg);
40void ParseToolBar(wxString varname);
41void SecondPass();
42void FirstPass();
43void ParseBitmap(wxString varname);
44void ParseSpinCtrl(wxString label,wxString varname);
45void ParseRichEdit(wxString label, wxString varname);
46void ParseDialog(wxString dlgname);
47void ParseControls();
48void ParseListBox();
49void ParseStaticText();
50void ParseTextCtrl();
51void ParsePushButton();
52bool Seperator(int ch);
53void ParseGroupBox();
54void ReadRect(int & x, int & y, int & width, int & height);
55wxString GetToken();
56wxString GetQuoteField();
57void ReadChar(int &ch);
58void ParseComboBox();
59void ParseMenu(wxString varname);
60void ParsePopupMenu();
61wxString PeekToken();
62void ParseControlMS();
63void ParseSlider(wxString label, wxString varname);
64void ParseProgressBar(wxString label, wxString varname);
65bool ReadOrs(wxString & w);
66void ParseCtrlButton(wxString label, wxString varname);
67void WriteStyle(wxString style);
68void WriteBasicInfo(int x,int y,int width,int height,wxString name);
69void WriteName(wxString name);
70void WriteTitle(wxString title);
71void WritePosition(int x,int y);
72void WriteSize(int width,int height);
73void WriteLabel(wxString label);
74//variables
75wxList * m_stringtable;
76wxList *m_bitmaplist;
77wxFile m_rc;
78wxFFile m_xmlfile;
79int m_filesize;
80bool m_done;
81
82};
83
84
85#endif