git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23169
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
};
#define WX_DEFINE_FLAGS( flags ) \
};
#define WX_DEFINE_FLAGS( flags ) \
+ struct WXDLLEXPORT flags \
{\
flags(long data=0) :m_data(data) {} \
long m_data ;\
{\
flags(long data=0) :m_data(data) {} \
long m_data ;\
wxArrayString array ;
wxSetStringToArray( s , array ) ;
wxString flag;
wxArrayString array ;
wxSetStringToArray( s , array ) ;
wxString flag;
- for ( int i = 0 ; i < array.Count() ; ++i )
+ for ( size_t i = 0 ; i < array.Count() ; ++i )
{
flag = array[i] ;
int ivalue ;
{
flag = array[i] ;
int ivalue ;
{ \
public: \
wxSetter##property() : wxSetter( #setterMethod ) {} \
{ \
public: \
wxSetter##property() : wxSetter( #setterMethod ) {} \
void Set( wxObject *object, const wxxVariant &variantValue ) const \
{ \
Klass *obj = dynamic_cast<Klass*>(object) ; \
void Set( wxObject *object, const wxxVariant &variantValue ) const \
{ \
Klass *obj = dynamic_cast<Klass*>(object) ; \
{ \
public : \
wxGetter##property() : wxGetter( #gettermethod ) {} \
{ \
public : \
wxGetter##property() : wxGetter( #gettermethod ) {} \
void Get( const wxObject *object , wxxVariant &result) const \
{ \
const Klass *obj = dynamic_cast<const Klass*>(object) ; \
void Get( const wxObject *object , wxxVariant &result) const \
{ \
const Klass *obj = dynamic_cast<const Klass*>(object) ; \
{ \
public: \
wxAdder##property() : wxAdder( #addermethod ) {} \
{ \
public: \
wxAdder##property() : wxAdder( #addermethod ) {} \
void Add( wxObject *object, const wxxVariant &variantValue ) const \
{ \
Klass *obj = dynamic_cast<Klass*>(object) ; \
void Add( wxObject *object, const wxxVariant &variantValue ) const \
{ \
Klass *obj = dynamic_cast<Klass*>(object) ; \
{ \
public : \
wxCollectionGetter##property() : wxCollectionGetter( #gettermethod ) {} \
{ \
public : \
wxCollectionGetter##property() : wxCollectionGetter( #gettermethod ) {} \
+ ~wxCollectionGetter() {} \
void Get( const wxObject *object , wxxVariantArray &result) const \
{ \
const Klass *obj = dynamic_cast<const Klass*>(object) ; \
void Get( const wxObject *object , wxxVariantArray &result) const \
{ \
const Klass *obj = dynamic_cast<const Klass*>(object) ; \
// return the class this property is declared in
const wxClassInfo* GetDeclaringClass() const { return m_itsClass ; }
// return the class this property is declared in
const wxClassInfo* GetDeclaringClass() const { return m_itsClass ; }
// return the name of this handler
const wxString& GetName() const { return m_name ; }
// return the name of this handler
const wxString& GetName() const { return m_name ; }
class WXDLLIMPEXP_BASE wxClassInfo
{
class WXDLLIMPEXP_BASE wxClassInfo
{
+ friend class WXDLLEXPORT wxPropertyInfo ;
+ friend class WXDLLEXPORT wxHandlerInfo ;
public:
wxClassInfo(const wxClassInfo **_Parents,
const wxChar *_UnitName,
public:
wxClassInfo(const wxClassInfo **_Parents,
const wxChar *_UnitName,
// or modify the value before it is streamed-out.
// ----------------------------------------------------------------------------
// or modify the value before it is streamed-out.
// ----------------------------------------------------------------------------
-class wxWriter ;
-class wxReader ;
+class WXDLLIMPEXP_BASE wxWriter ;
+class WXDLLIMPEXP_BASE wxReader ;
+class WXDLLIMPEXP_BASE wxPersister
{
public :
// will be called before an object is written, may veto by returning false
{
public :
// will be called before an object is written, may veto by returning false
const wxObject *&WXUNUSED(eventSink) , const wxHandlerInfo* &WXUNUSED(handlerInfo) ) { }
} ;
const wxObject *&WXUNUSED(eventSink) , const wxHandlerInfo* &WXUNUSED(handlerInfo) ) { }
} ;
-class wxWriter : public wxObject
+class WXDLLIMPEXP_BASE wxWriter : public wxObject
Streaming callbacks for depersisting XML to code, or running objects
*/
Streaming callbacks for depersisting XML to code, or running objects
*/
+class WXDLLIMPEXP_BASE wxDepersister ;
/*
wxReader handles streaming in a class from a arbitrary format. While walking through
it issues calls out to interfaces to depersist the guts from the underlying storage format.
*/
/*
wxReader handles streaming in a class from a arbitrary format. While walking through
it issues calls out to interfaces to depersist the guts from the underlying storage format.
*/
-class wxReader : public wxObject
+class WXDLLIMPEXP_BASE wxReader : public wxObject
// When generating code, these will just create statements of C++
// code to create the objects.
// When generating code, these will just create statements of C++
// code to create the objects.
+class WXDLLIMPEXP_BASE wxDepersister
{
public :
// allocate the new object on the heap, that object will have the passed in ID
{
public :
// allocate the new object on the heap, that object will have the passed in ID
an object into a running memory image, as opposed to writing
C++ initialization code to bring the object to life.
*/
an object into a running memory image, as opposed to writing
C++ initialization code to bring the object to life.
*/
-class wxRuntimeDepersister : public wxDepersister
+
+class WXDLLIMPEXP_BASE wxRuntimeDepersister : public wxDepersister
{
struct wxRuntimeDepersisterInternal ;
wxRuntimeDepersisterInternal * m_data ;
{
struct wxRuntimeDepersisterInternal ;
wxRuntimeDepersisterInternal * m_data ;
/*
wxDepersisterCode implements the callbacks that will depersist
/*
wxDepersisterCode implements the callbacks that will depersist
-an object into a C++ initialization function.
+an object into a C++ initialization function. this will move to
+a utility lib soon
-class wxTextOutputStream ;
+class WXDLLIMPEXP_BASE wxTextOutputStream ;
-class wxCodeDepersister : public wxDepersister
+class WXDLLIMPEXP_BASE wxCodeDepersister : public wxDepersister
{
private :
struct wxCodeDepersisterInternal ;
{
private :
struct wxCodeDepersisterInternal ;
+class WXDLLIMPEXP_XML wxXmlNode ;
-class wxXmlWriter : public wxWriter
+class WXDLLIMPEXP_XML wxXmlWriter : public wxWriter
wxXmlReader handles streaming in a class from XML
*/
wxXmlReader handles streaming in a class from XML
*/
-class wxXmlReader : public wxReader
+class WXDLLIMPEXP_XML wxXmlReader : public wxReader
{
public:
wxXmlReader(wxXmlNode *parent) { m_parent = parent ; }
{
public:
wxXmlReader(wxXmlNode *parent) { m_parent = parent ; }