add support for multiple extensions to wxImage handlers (closes #10570)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,10 +84,21 @@ public:
|
||||
virtual ~wxImageHandler();
|
||||
|
||||
/**
|
||||
Gets the file extension associated with this handler.
|
||||
Gets the preferred file extension associated with this handler.
|
||||
|
||||
@see GetAltExtensions()
|
||||
*/
|
||||
const wxString& GetExtension() const;
|
||||
|
||||
/**
|
||||
Returns the other file extensions associated with this handler.
|
||||
|
||||
The preferred extension for this handler is returned by GetExtension().
|
||||
|
||||
@since 2.9.0
|
||||
*/
|
||||
const wxArrayString& GetAltExtensions() const;
|
||||
|
||||
/**
|
||||
If the image file contains more than one image and the image handler is capable
|
||||
of retrieving these individually, this function will return the number of
|
||||
@@ -160,13 +171,27 @@ public:
|
||||
bool verbose = true);
|
||||
|
||||
/**
|
||||
Sets the handler extension.
|
||||
Sets the preferred file extension associated with this handler.
|
||||
|
||||
@param extension
|
||||
Handler extension.
|
||||
File extension without leading dot.
|
||||
|
||||
@see SetAltExtensions()
|
||||
*/
|
||||
void SetExtension(const wxString& extension);
|
||||
|
||||
/**
|
||||
Sets the alternative file extensions associated with this handler.
|
||||
|
||||
@param extensions
|
||||
Array of file extensions.
|
||||
|
||||
@see SetExtension()
|
||||
|
||||
@since 2.9.0
|
||||
*/
|
||||
void SetAltExtensions(const wxArrayString& extensions);
|
||||
|
||||
/**
|
||||
Sets the handler MIME type.
|
||||
|
||||
|
Reference in New Issue
Block a user