wxPrintPaperType::GetName now uses wxGetTranslation to obtain correct paper name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
#include "wx/event.h"
|
#include "wx/event.h"
|
||||||
#include "wx/cmndata.h"
|
#include "wx/cmndata.h"
|
||||||
|
#include "wx/intl.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Paper type: see defs.h for wxPaperSize enum.
|
* Paper type: see defs.h for wxPaperSize enum.
|
||||||
@@ -40,7 +41,7 @@ public:
|
|||||||
// platformId is a platform-specific id, such as in Windows, DMPAPER_...
|
// platformId is a platform-specific id, such as in Windows, DMPAPER_...
|
||||||
wxPrintPaperType(wxPaperSize paperId, int platformId, const wxString& name, int w, int h);
|
wxPrintPaperType(wxPaperSize paperId, int platformId, const wxString& name, int w, int h);
|
||||||
|
|
||||||
inline const wxString& GetName() const { return m_paperName; }
|
inline wxString GetName() const { return wxGetTranslation(m_paperName); }
|
||||||
inline wxPaperSize GetId() const { return m_paperId; }
|
inline wxPaperSize GetId() const { return m_paperId; }
|
||||||
inline int GetPlatformId() const { return m_platformId; }
|
inline int GetPlatformId() const { return m_platformId; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user