X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdf339c9def7d24cb50385f93476aab4e485e32f..0f66923e84282a652b61cf33eefd910159bb62f2:/docs/latex/wx/mimetype.tex diff --git a/docs/latex/wx/mimetype.tex b/docs/latex/wx/mimetype.tex index cf0b0c9ea5..08278a980c 100644 --- a/docs/latex/wx/mimetype.tex +++ b/docs/latex/wx/mimetype.tex @@ -25,6 +25,18 @@ gathers MIME information from respective files (e.g. .kdelnk files under KDE). NB: Currently, wxMimeTypesManager is limited to reading MIME type information but it will support modifying it as well in the future versions. +\wxheading{Global objects} + +Global instance of wxMimeTypesManager is always available. It is defined +as follows: + +\begin{verbatim} +wxMimeTypesManager *wxTheMimeTypesManager; +\end{verbatim} + +It is recommended to use this instance instead of creating your own because +gathering MIME information may take quite a long on Unix systems. + \wxheading{Derived from} No base class. @@ -101,7 +113,7 @@ Destructor is not virtual, so this class should not be derived from. \func{void}{AddFallbacks}{\param{const wxFileTypeInfo *}{fallbacks}} -This function may be used to provdie hard-wired fallbacks for the MIME types +This function may be used to provide hard-wired fallbacks for the MIME types and extensions that might not be present in the system MIME database. % TODO @@ -133,7 +145,7 @@ same as {\it wildcard} or if it has the same category and the subtype of {\it wildcard} is '*'. Note that the '*' wildcard is not allowed in {\it mimeType} itself. -The comparaison don by this function is case insensitive so it is not +The comparison don by this function is case insensitive so it is not necessary to convert the strings to the same case before calling it. \membersection{wxMimeTypesManager::ReadMailcap}\label{wxmimetypesmanagerreadmailcap}