Added wxUSE_VARIANT and the related checks, also added wxUSE_OLE_AUTOMATION
to guard wxAutomationObject code which depends on wxVariant git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -324,6 +324,7 @@ public:
|
||||
virtual wxAccStatus GetFocus(int* WXUNUSED(childId), wxAccessible** WXUNUSED(child))
|
||||
{ return wxACC_NOT_IMPLEMENTED; }
|
||||
|
||||
#if wxUSE_VARIANT
|
||||
// Gets a variant representing the selected children
|
||||
// of this object.
|
||||
// Acceptable values:
|
||||
@@ -334,6 +335,7 @@ public:
|
||||
// - a "void*" pointer to a wxAccessible child object
|
||||
virtual wxAccStatus GetSelections(wxVariant* WXUNUSED(selections))
|
||||
{ return wxACC_NOT_IMPLEMENTED; }
|
||||
#endif // wxUSE_VARIANT
|
||||
|
||||
// Accessors
|
||||
|
||||
|
||||
@@ -288,6 +288,14 @@
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_URL) */
|
||||
|
||||
#ifndef wxUSE_VARIANT
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_VARIANT must be defined."
|
||||
# else
|
||||
# define wxUSE_VARIANT 0
|
||||
# endif
|
||||
#endif /* wxUSE_VARIANT */
|
||||
|
||||
/*
|
||||
all these tests are for GUI only
|
||||
|
||||
@@ -1727,4 +1735,24 @@
|
||||
# endif
|
||||
#endif /* wxUSE_SOCKETS */
|
||||
|
||||
#if !wxUSE_VARIANT
|
||||
# if wxUSE_DATAVIEWCTRL
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxDataViewCtrl requires wxVariant"
|
||||
# else
|
||||
# undef wxUSE_DATAVIEWCTRL
|
||||
# define wxUSE_DATAVIEWCTRL 0
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if wxUSE_ODBC
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_ODBC requires wxVariant"
|
||||
# else
|
||||
# undef wxUSE_ODBC
|
||||
# define wxUSE_ODBC 0
|
||||
# endif
|
||||
# endif
|
||||
#endif /* wxUSE_VARIANT */
|
||||
|
||||
#endif /* wxUSE_GUI */
|
||||
|
||||
@@ -484,6 +484,15 @@
|
||||
// This code is experimental and subject to change.
|
||||
#define wxUSE_URL_NATIVE 0
|
||||
|
||||
// Support for wxVariant class used in several places throughout the library,
|
||||
// notably in wxDataViewCtrl API.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 unless you want to reduce the library size as much as
|
||||
// possible in which case setting this to 0 can gain up to 100KB.
|
||||
#define wxUSE_VARIANT 1
|
||||
|
||||
// Support for regular expression matching via wxRegEx class: enable this to
|
||||
// use POSIX regular expressions in your code. You need to compile regex
|
||||
// library from src/regex to use it under Windows.
|
||||
|
||||
@@ -483,6 +483,15 @@
|
||||
// This code is experimental and subject to change.
|
||||
#define wxUSE_URL_NATIVE 0
|
||||
|
||||
// Support for wxVariant class used in several places throughout the library,
|
||||
// notably in wxDataViewCtrl API.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 unless you want to reduce the library size as much as
|
||||
// possible in which case setting this to 0 can gain up to 100KB.
|
||||
#define wxUSE_VARIANT 1
|
||||
|
||||
// Support for regular expression matching via wxRegEx class: enable this to
|
||||
// use POSIX regular expressions in your code. You need to compile regex
|
||||
// library from src/regex to use it under Windows.
|
||||
|
||||
@@ -219,6 +219,18 @@
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_DIALUP_MANAGER) */
|
||||
|
||||
/* check settings consistency for MSW-specific ones */
|
||||
#if !wxUSE_VARIANT
|
||||
# if wxUSE_OLE_AUTOMATION
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxAutomationObject requires wxVariant"
|
||||
# else
|
||||
# undef wxUSE_OLE_AUTOMATION
|
||||
# define wxUSE_OLE_AUTOMATION 0
|
||||
# endif
|
||||
# endif
|
||||
#endif /* wxUSE_VARIANT */
|
||||
|
||||
#if !wxUSE_DYNAMIC_LOADER
|
||||
# if wxUSE_MS_HTML_HELP
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
@@ -274,6 +286,15 @@
|
||||
# define wxUSE_DATAOBJ 0
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if wxUSE_OLE_AUTOMATION
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxAutomationObject requires wxUSE_OLE"
|
||||
# else
|
||||
# undef wxUSE_OLE_AUTOMATION
|
||||
# define wxUSE_OLE_AUTOMATION 0
|
||||
# endif
|
||||
# endif
|
||||
#endif /* wxUSE_OLE */
|
||||
|
||||
#endif /* _WX_MSW_CHKCONF_H_ */
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
#ifndef _WX_AUTOMTN_H_
|
||||
#define _WX_AUTOMTN_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if wxUSE_OLE_AUTOMATION
|
||||
|
||||
#include "wx/object.h"
|
||||
#include "wx/variant.h"
|
||||
|
||||
@@ -92,6 +96,6 @@ public:
|
||||
DECLARE_NO_COPY_CLASS(wxAutomationObject)
|
||||
};
|
||||
|
||||
#endif // wxUSE_OLE_AUTOMATION
|
||||
|
||||
#endif
|
||||
// _WX_AUTOMTN_H_
|
||||
#endif // _WX_AUTOMTN_H_
|
||||
|
||||
@@ -228,11 +228,13 @@ private:
|
||||
OLECHAR *m_wzBuf; // actual string
|
||||
};
|
||||
|
||||
#if wxUSE_VARIANT
|
||||
// Convert variants
|
||||
class WXDLLIMPEXP_BASE wxVariant;
|
||||
|
||||
WXDLLEXPORT bool wxConvertVariantToOle(const wxVariant& variant, VARIANTARG& oleVariant);
|
||||
WXDLLEXPORT bool wxConvertOleToVariant(const VARIANTARG& oleVariant, wxVariant& variant);
|
||||
#endif // wxUSE_VARIANT
|
||||
|
||||
// Convert string to Unicode
|
||||
WXDLLEXPORT BSTR wxConvertStringToOle(const wxString& str);
|
||||
|
||||
@@ -483,6 +483,15 @@
|
||||
// This code is experimental and subject to change.
|
||||
#define wxUSE_URL_NATIVE 0
|
||||
|
||||
// Support for wxVariant class used in several places throughout the library,
|
||||
// notably in wxDataViewCtrl API.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 unless you want to reduce the library size as much as
|
||||
// possible in which case setting this to 0 can gain up to 100KB.
|
||||
#define wxUSE_VARIANT 1
|
||||
|
||||
// Support for regular expression matching via wxRegEx class: enable this to
|
||||
// use POSIX regular expressions in your code. You need to compile regex
|
||||
// library from src/regex to use it under Windows.
|
||||
@@ -1170,6 +1179,14 @@
|
||||
// Recommended setting: 1
|
||||
#define wxUSE_OLE 1
|
||||
|
||||
// Set this to 1 to enable wxAutomationObject class.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need to control other applications via OLE
|
||||
// Automation, can be safely set to 0 otherwise
|
||||
#define wxUSE_OLE_AUTOMATION 1
|
||||
|
||||
// wxDC cacheing implementation
|
||||
#define wxUSE_DC_CACHEING 1
|
||||
|
||||
|
||||
@@ -483,6 +483,15 @@
|
||||
// This code is experimental and subject to change.
|
||||
#define wxUSE_URL_NATIVE 0
|
||||
|
||||
// Support for wxVariant class used in several places throughout the library,
|
||||
// notably in wxDataViewCtrl API.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 unless you want to reduce the library size as much as
|
||||
// possible in which case setting this to 0 can gain up to 100KB.
|
||||
#define wxUSE_VARIANT 1
|
||||
|
||||
// Support for regular expression matching via wxRegEx class: enable this to
|
||||
// use POSIX regular expressions in your code. You need to compile regex
|
||||
// library from src/regex to use it under Windows.
|
||||
@@ -714,9 +723,17 @@
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 but can be safely set to 0
|
||||
// Recommended setting: 1 but can be safely set to 0, except where it is
|
||||
// needed as a base class for generic wxBitmapComboBox.
|
||||
#define wxUSE_ODCOMBOBOX 1
|
||||
|
||||
// wxBitmapComboBox is a combobox that can have images in front of text items.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 but can be safely set to 0
|
||||
#define wxUSE_BITMAPCOMBOBOX 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Miscellaneous GUI stuff
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
@@ -483,6 +483,15 @@
|
||||
// This code is experimental and subject to change.
|
||||
#define wxUSE_URL_NATIVE 0
|
||||
|
||||
// Support for wxVariant class used in several places throughout the library,
|
||||
// notably in wxDataViewCtrl API.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 unless you want to reduce the library size as much as
|
||||
// possible in which case setting this to 0 can gain up to 100KB.
|
||||
#define wxUSE_VARIANT 1
|
||||
|
||||
// Support for regular expression matching via wxRegEx class: enable this to
|
||||
// use POSIX regular expressions in your code. You need to compile regex
|
||||
// library from src/regex to use it under Windows.
|
||||
|
||||
@@ -483,6 +483,15 @@
|
||||
// This code is experimental and subject to change.
|
||||
#define wxUSE_URL_NATIVE 0
|
||||
|
||||
// Support for wxVariant class used in several places throughout the library,
|
||||
// notably in wxDataViewCtrl API.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 unless you want to reduce the library size as much as
|
||||
// possible in which case setting this to 0 can gain up to 100KB.
|
||||
#define wxUSE_VARIANT 1
|
||||
|
||||
// Support for regular expression matching via wxRegEx class: enable this to
|
||||
// use POSIX regular expressions in your code. You need to compile regex
|
||||
// library from src/regex to use it under Windows.
|
||||
|
||||
@@ -479,6 +479,15 @@
|
||||
// This code is experimental and subject to change.
|
||||
#define wxUSE_URL_NATIVE 0
|
||||
|
||||
// Support for wxVariant class used in several places throughout the library,
|
||||
// notably in wxDataViewCtrl API.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 unless you want to reduce the library size as much as
|
||||
// possible in which case setting this to 0 can gain up to 100KB.
|
||||
#define wxUSE_VARIANT 1
|
||||
|
||||
// Support for regular expression matching via wxRegEx class: enable this to
|
||||
// use POSIX regular expressions in your code. You need to compile regex
|
||||
// library from src/regex to use it under Windows.
|
||||
|
||||
@@ -1586,6 +1586,7 @@ public:
|
||||
// If this object has the focus, child should be 'this'.
|
||||
virtual wxAccStatus GetFocus(int* childId, wxAccessible** child);
|
||||
|
||||
#if wxUSE_VARIANT
|
||||
// Gets a variant representing the selected children
|
||||
// of this object.
|
||||
// Acceptable values:
|
||||
@@ -1595,6 +1596,7 @@ public:
|
||||
// or 0 if this object is selected (GetType() == wxT("long")
|
||||
// - a "void*" pointer to a wxAccessible child object
|
||||
virtual wxAccStatus GetSelections(wxVariant* selections);
|
||||
#endif // wxUSE_VARIANT
|
||||
};
|
||||
|
||||
#endif // wxUSE_ACCESSIBILITY
|
||||
|
||||
Reference in New Issue
Block a user