1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xmlreshandler.cpp
3 // Purpose: XML resource handler
4 // Author: Steven Lamerton
7 // Copyright: (c) 2011 Steven Lamerton
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
19 #include "wx/xrc/xmlreshandler.h"
21 IMPLEMENT_ABSTRACT_CLASS(wxXmlResourceHandler
, wxObject
)
23 wxXmlResourceHandlerImplBase
* wxXmlResourceHandler::GetImpl() const
27 wxFAIL_MSG(wxT("SetImpl() must have been called!"));
33 void wxXmlResourceHandler::AddStyle(const wxString
& name
, int value
)
35 m_styleNames
.Add(name
);
36 m_styleValues
.Add(value
);
39 void wxXmlResourceHandler::AddWindowStyles()
41 XRC_ADD_STYLE(wxCLIP_CHILDREN
);
43 // the border styles all have the old and new names, recognize both for now
44 XRC_ADD_STYLE(wxSIMPLE_BORDER
); XRC_ADD_STYLE(wxBORDER_SIMPLE
);
45 XRC_ADD_STYLE(wxSUNKEN_BORDER
); XRC_ADD_STYLE(wxBORDER_SUNKEN
);
46 XRC_ADD_STYLE(wxDOUBLE_BORDER
); XRC_ADD_STYLE(wxBORDER_DOUBLE
); // deprecated
47 XRC_ADD_STYLE(wxBORDER_THEME
);
48 XRC_ADD_STYLE(wxRAISED_BORDER
); XRC_ADD_STYLE(wxBORDER_RAISED
);
49 XRC_ADD_STYLE(wxSTATIC_BORDER
); XRC_ADD_STYLE(wxBORDER_STATIC
);
50 XRC_ADD_STYLE(wxNO_BORDER
); XRC_ADD_STYLE(wxBORDER_NONE
);
51 XRC_ADD_STYLE(wxBORDER_DEFAULT
);
53 XRC_ADD_STYLE(wxTRANSPARENT_WINDOW
);
54 XRC_ADD_STYLE(wxWANTS_CHARS
);
55 XRC_ADD_STYLE(wxTAB_TRAVERSAL
);
56 XRC_ADD_STYLE(wxNO_FULL_REPAINT_ON_RESIZE
);
57 XRC_ADD_STYLE(wxFULL_REPAINT_ON_RESIZE
);
58 XRC_ADD_STYLE(wxVSCROLL
);
59 XRC_ADD_STYLE(wxHSCROLL
);
60 XRC_ADD_STYLE(wxALWAYS_SHOW_SB
);
61 XRC_ADD_STYLE(wxWS_EX_BLOCK_EVENTS
);
62 XRC_ADD_STYLE(wxWS_EX_VALIDATE_RECURSIVELY
);
63 XRC_ADD_STYLE(wxWS_EX_TRANSIENT
);
64 XRC_ADD_STYLE(wxWS_EX_CONTEXTHELP
);
65 XRC_ADD_STYLE(wxWS_EX_PROCESS_IDLE
);
66 XRC_ADD_STYLE(wxWS_EX_PROCESS_UI_UPDATES
);