From b5a4a47df5ad0d52cac80946bdd0685d34749fc4 Mon Sep 17 00:00:00 2001
From: Sylvain Bougnoux <bougnoux@imra-europe.com>
Date: Mon, 20 Sep 1999 19:05:49 +0000
Subject: [PATCH] change wxImage::InitAllHandlers to wxInitAllImageHandlers and
 put it in a separate file

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/function.tex | 11 +++++++++++
 docs/latex/wx/image.tex    | 17 +++--------------
 include/wx/image.h         |  5 +++--
 src/common/image.cpp       | 19 -------------------
 4 files changed, 17 insertions(+), 35 deletions(-)

diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex
index 2c9f8258ef..0aca78aa50 100644
--- a/docs/latex/wx/function.tex
+++ b/docs/latex/wx/function.tex
@@ -80,6 +80,17 @@ See \helpref{wxFindFirstFile}{wxfindfirstfile} for an example.
 
 Returns the Windows directory under Windows; on other platforms returns the empty string.
 
+\membersection{::wxInitAllImageHandlers}\label{wxinitallimagehandlers}
+
+\func{void}{wxInitAllImageHandlers}{\void}
+
+Adds some common image format handlers, which, depending on wxWindows
+configuration, can be handlers for BMP (loading) (always installed), GIF
+(loading and saving), PCX (loading and saving), PNM (loading and saving as raw
+rgb), PNG (loading and saving), JPEG (loading and saving), file formats.
+
+See also: \helpref{wxImage}{wximage} \helpref{wxImageHandler}{wximagehandler}
+
 \membersection{::wxIsAbsolutePath}
 
 \func{bool}{wxIsAbsolutePath}{\param{const wxString\& }{filename}}
diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex
index 3184dd7479..07e43de3ce 100644
--- a/docs/latex/wx/image.tex
+++ b/docs/latex/wx/image.tex
@@ -21,6 +21,7 @@ wxDC::DrawBitmap.
 \wxheading{See also}
 
 \helpref{wxBitmap}{wxbitmap}
+\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
@@ -274,19 +275,6 @@ Gets the width of the image in pixels.
 
 Returns TRUE if there is a mask active, FALSE otherwise.
 
-\membersection{wxImage::InitAllHandlers}\label{wximageinitallhandlers}
-
-\func{static void}{InitAllHandlers}{\void}
-
-Adds some common image format handlers, which, depending on wxWindows
-configuration, can be handlers for BMP (loading) (always installed), GIF
-(loading and saving), PCX (loading and saving), PNM (loading and saving as raw
-rgb), PNG (loading and saving), JPEG (loading and saving), file formats.
-
-\wxheading{See also}
-
-\helpref{wxImageHandler}{wximagehandler}
-
 \membersection{wxImage::InitStandardHandlers}
 
 \func{static void}{InitStandardHandlers}{\void}
@@ -300,7 +288,7 @@ the user.
 \wxheading{See also}
 
 \helpref{wxImageHandler}{wximagehandler}
-\helpref{wxImage::InitAllHandlers}{wximageinitallhandlers}
+\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}
 
 \membersection{wxImage::InsertHandler}
 
@@ -606,6 +594,7 @@ created by IJG.)
 \wxheading{See also}
 
 \helpref{wxImage}{wximage}
+\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
diff --git a/include/wx/image.h b/include/wx/image.h
index cb20ca4bc2..e4d78863ab 100644
--- a/include/wx/image.h
+++ b/include/wx/image.h
@@ -356,14 +356,15 @@ public:
 
   static void CleanUpHandlers();
   static void InitStandardHandlers();
-  static void InitAllHandlers();
-
+ 
 protected:
 
   static wxList sm_handlers;
 
 };
 
+extern void wxInitAllImageHandlers();
+
 #endif
   // _WX_IMAGE_H_
 
diff --git a/src/common/image.cpp b/src/common/image.cpp
index b0b91397f9..ab36e52be6 100644
--- a/src/common/image.cpp
+++ b/src/common/image.cpp
@@ -610,25 +610,6 @@ void wxImage::InitStandardHandlers()
   AddHandler( new wxBMPHandler );
 }
 
-void wxImage::InitAllHandlers()
-{
-#if wxUSE_LIBPNG
-  AddHandler( new wxPNGHandler );
-#endif
-#if wxUSE_LIBJPEG
-  AddHandler( new wxJPEGHandler );
-#endif
-#if wxUSE_GIF
-  AddHandler( new wxGIFHandler );
-#endif
-#if wxUSE_PNM
-  AddHandler( new wxPNMHandler );
-#endif
-#if wxUSE_PCX
-  AddHandler( new wxPCXHandler );
-#endif
-}
-
 void wxImage::CleanUpHandlers()
 {
     wxNode *node = sm_handlers.First();
-- 
2.50.0

