]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/convertrc/rc2xml.h
fix for assertion failure
[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
2193517f 13class rc2xml : public wxObject
88d42654
VS
14{
15public:
2193517f
VS
16 void WriteIcon(wxString iconname);
17 void ParseNormalMSControl();
18 bool Convert(wxString rcfile, wxString xmlfile);
19 rc2xml();
20 ~rc2xml();
88d42654
VS
21
22protected:
2193517f
VS
23 wxString LookUpId(wxString id);
24
25 void ParseResourceHeader();
26 void WriteBitmap(wxString bitmapname);
27 void ParseListCtrl(wxString label,wxString varname);
28 void ParseCalendar(wxString label,wxString varname);
29 void ParseTreeCtrl(wxString label,wxString varname);
30 void ParseScrollBar();
31 void ParseWeirdMSControl();
32 void ParseStaticBitmap(wxString label,wxString varname);
33 wxString CleanName(wxString name);
34 void ParseIcon(wxString varname);
35 wxList * m_iconlist;
36 void ParseIconStatic();
37 void ParseMenuItem();
88d42654
VS
38
39//Functions
2193517f
VS
40 bool SplitHelp(wxString msg, wxString &shorthelp, wxString &longhelp);
41 bool LookUpString(wxString strid,wxString & st);
42 void ParseStringTable(wxString varname);
43 void WriteToolButton(wxString name,int index,int width,int height,wxBitmap bitmap);
44 wxString LookupString(wxString varname,wxStringList id,wxStringList msg);
45 void ParseToolBar(wxString varname);
46 void SecondPass();
47 void FirstPass();
48 void ParseBitmap(wxString varname);
49 void ParseSpinCtrl(wxString label,wxString varname);
50 void ParseRichEdit(wxString label, wxString varname);
51 void ParseDialog(wxString dlgname);
52 void ParseControls();
53 void ParseListBox();
54 void ParseStaticText();
55 void ParseTextCtrl();
56 void ParsePushButton();
57 bool Seperator(int ch);
58 void ParseGroupBox();
59 void ReadRect(int & x, int & y, int & width, int & height);
60 wxString GetToken();
61 wxString GetQuoteField();
62 void ReadChar(int &ch);
63 void ParseComboBox();
64 void ParseMenu(wxString varname);
65 void ParsePopupMenu();
66 wxString PeekToken();
67 void ParseControlMS();
68 void ParseSlider(wxString label, wxString varname);
69 void ParseProgressBar(wxString label, wxString varname);
70 bool ReadOrs(wxString & w);
71 void ParseCtrlButton(wxString label, wxString varname);
72 void WriteStyle(wxString style);
73 void WriteBasicInfo(int x,int y,int width,int height,wxString name);
74 void WriteName(wxString name);
75 void WriteTitle(wxString title);
76 void WritePosition(int x,int y);
77 void WriteSize(int width,int height);
78 void WriteLabel(wxString label);
88d42654 79//variables
2193517f
VS
80 wxList * m_stringtable;
81 wxList *m_bitmaplist;
82 wxList * m_resourcelist;
83 wxFile m_rc;
84 wxFFile m_xmlfile;
85 int m_filesize;
86 bool m_done;
88d42654
VS
87
88};
89
90
91#endif