~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to docs/html/wx/wx_wxmimetypesmanager.html

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<head><link rel=stylesheet type="text/css" href="wx.css"><title>wxMimeTypesManager</title></head>
3
3
 
4
4
<BODY BGCOLOR=#FFFFFF>
5
 
<FONT FACE="Arial, Lucida, Helvetica">
6
5
<A NAME="wxmimetypesmanager"></A><CENTER>
7
6
<A HREF="wx_contents.html"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx_classref.html#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx_wxmetafiledc.html#wxmetafiledc"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx_wxminiframe.html#wxminiframe"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
8
7
 
43
42
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
44
43
<A HREF="wx_wxfiletype.html#wxfiletype">wxFileType</A><P>
45
44
<B><FONT COLOR="#FF0000">Function groups</FONT></B><P>
 
45
 
46
46
<A HREF="#mimehelperfunctions">Helper functions</A><BR>
47
47
<A HREF="#mimeconstructordestructor">Constructor and destructor</A><BR>
48
48
<A HREF="#mimequerydatabase">Query database</A><BR>
67
67
types using wxString functions.<P>
68
68
<A HREF="wx_wxmimetypesmanager.html#wxmimetypesmanagerisoftype">IsOfType</A><P>
69
69
 
 
70
 
70
71
<HR>
71
72
<A NAME="mimeconstructordestructor"></A>
72
73
<H3>Constructor and destructor</H3>
77
78
 
78
79
<A HREF="wx_wxmimetypesmanager.html#wxmimetypesmanagerdtor">~wxMimeTypesManager</A><P>
79
80
 
 
81
 
80
82
<HR>
81
83
<A NAME="mimequerydatabase"></A>
82
84
<H3>Query database</H3>
84
86
These functions are the heart of this class: they allow to find a <A HREF="wx_wxfiletype.html#wxfiletype">file type</A> object
85
87
from either file extension or MIME type.
86
88
If the function is successful, it returns a pointer to the wxFileType object
87
 
which <B>must</B> be deleted by the caller, otherwise NULL will be returned.<P>
 
89
which <B>must</B> be deleted by the caller, otherwise <TT>NULL</TT> will be returned.<P>
88
90
<A HREF="wx_wxmimetypesmanager.html#wxmimetypesmanagergetfiletypefrommimetype">GetFileTypeFromMimeType</A><BR>
89
91
 
90
92
<A HREF="wx_wxmimetypesmanager.html#wxmimetypesmanagergetfiletypefromextension">GetFileTypeFromExtension</A><P>
91
93
 
 
94
 
92
95
<HR>
93
96
<A NAME="wxmimetypesmanagerinit"></A>
94
97
<H3>Initialization functions</H3>
103
106
<A HREF="wx_wxmimetypesmanager.html#wxmimetypesmanageraddfallbacks">AddFallbacks</A><P>
104
107
<P>
105
108
 
 
109
 
106
110
<HR>
107
111
<A NAME="wxmimetypesmanagerctor"></A>
108
112
<H3>wxMimeTypesManager::wxMimeTypesManager</H3>
112
116
are needed - but <A HREF="wx_wxmimetypesmanager.html#wxmimetypesmanagerinit">ReadXXX</A> may be used to load
113
117
additional mailcap/mime.types files.<P>
114
118
 
 
119
 
115
120
<HR>
116
121
<A NAME="wxmimetypesmanagerdtor"></A>
117
122
<H3>wxMimeTypesManager::~wxMimeTypesManager</H3>
119
124
<B></B> <B>~wxMimeTypesManager</B>()<P>
120
125
Destructor is not virtual, so this class should not be derived from.<P>
121
126
 
 
127
 
122
128
<HR>
123
129
<A NAME="wxmimetypesmanageraddfallbacks"></A>
124
130
<H3>wxMimeTypesManager::AddFallbacks</H3>
128
134
and extensions that might not be present in the system MIME database.<P>
129
135
Please see the typetest sample for an example of using it.<P>
130
136
 
 
137
 
131
138
<HR>
132
139
<A NAME="wxmimetypesmanagergetfiletypefromextension"></A>
133
140
<H3>wxMimeTypesManager::GetFileTypeFromExtension</H3>
134
141
<P>
135
142
<B><A HREF="wx_wxfiletype.html#wxfiletype">wxFileType</A>*</B> </B> <B>GetFileTypeFromExtension</B>(<B>const <A HREF="wx_wxstring.html#wxstring">wxString</A>&</B></B><I> extension</I>)<P>
136
143
Gather information about the files with given extension and return the
137
 
corresponding <A HREF="wx_wxfiletype.html#wxfiletype">wxFileType</A> object or NULL if the extension
 
144
corresponding <A HREF="wx_wxfiletype.html#wxfiletype">wxFileType</A> object or <TT>NULL</TT> if the extension
138
145
is unknown.<P>
 
146
The <I>extension</I> parameter may have, or not, the leading dot, if it has it,
 
147
it is stripped automatically. It must not however be empty.<P>
 
148
 
139
149
 
140
150
<HR>
141
151
<A NAME="wxmimetypesmanagergetfiletypefrommimetype"></A>
143
153
<P>
144
154
<B><A HREF="wx_wxfiletype.html#wxfiletype">wxFileType</A>*</B> </B> <B>GetFileTypeFromMimeType</B>(<B>const <A HREF="wx_wxstring.html#wxstring">wxString</A>&</B></B><I> mimeType</I>)<P>
145
155
Gather information about the files with given MIME type and return the
146
 
corresponding <A HREF="wx_wxfiletype.html#wxfiletype">wxFileType</A> object or NULL if the MIME type
 
156
corresponding <A HREF="wx_wxfiletype.html#wxfiletype">wxFileType</A> object or <TT>NULL</TT> if the MIME type
147
157
is unknown.<P>
148
158
 
 
159
 
149
160
<HR>
150
161
<A NAME="wxmimetypesmanagerisoftype"></A>
151
162
<H3>wxMimeTypesManager::IsOfType</H3>
158
169
The comparison don by this function is case insensitive so it is not
159
170
necessary to convert the strings to the same case before calling it.<P>
160
171
 
 
172
 
161
173
<HR>
162
174
<A NAME="wxmimetypesmanagerreadmailcap"></A>
163
175
<H3>wxMimeTypesManager::ReadMailcap</H3>
174
186
The return value is true if there were no errors in the file or false
175
187
otherwise.<P>
176
188
 
 
189
 
177
190
<HR>
178
191
<A NAME="wxmimetypesmanagerreadmimetypes"></A>
179
192
<H3>wxMimeTypesManager::ReadMimeTypes</H3>