Allow setting LCID used by wxAutomationObject.

Default user-locale-dependent LCID may be inappropriate for some situations,
notably Microsoft Excel uses localized formula names for non-English LCIDs.
So add a way to change the LCID to use at wxAutomationObject level while
preserving the old behaviour by default.

Closes #14540.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-07-31 10:31:55 +00:00
parent 3d2846fc06
commit f239af65af
4 changed files with 54 additions and 3 deletions

View File

@@ -429,5 +429,30 @@ public:
You may need to cast from IDispatch* to WXIDISPATCH* when calling this function.
*/
void SetDispatchPtr(WXIDISPATCH* dispatchPtr);
/**
Returns the locale identifier used in automation calls.
The default is LOCALE_SYSTEM_DEFAULT but the objects obtained by
GetObject() inherit the locale identifier from the one that created
them.
@since 2.9.5
*/
LCID GetLCID() const;
/**
Sets the locale identifier to be used in automation calls performed by
this object.
The default value is LOCALE_SYSTEM_DEFAULT.
Notice that any automation objects created by this one inherit the same
LCID.
@since 2.9.5
*/
void SetLCID(LCID lcid);
};