]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsImage.C
* filetools.[Ch]: Make functions that start with a capital
[lyx.git] / src / graphics / GraphicsImage.C
index f799190c4f5a7f6fed1c32d32a829a334189bc6f..b1d7e60707e09c7e39ad530fa73640e149d05806 100644 (file)
@@ -5,32 +5,27 @@
  *
  * \author Baruch Even
  * \author Angus Leeming
- * \author Herbert Voss
+ * \author Herbert Voß
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "GraphicsImage.h"
 #include "GraphicsParams.h"
 #include "debug.h"
 
-using std::endl;
-using std::abs;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 // This is to be connected to a function that will return a new
 // instance of a viable derived class.
-boost::function0<Image::ImagePtr> Image::newImage;
+boost::function<Image::ImagePtr()> Image::newImage;
 
 /// Return the list of loadable formats.
-boost::function0<Image::FormatList> Image::loadableFormats;
+boost::function<Image::FormatList()> Image::loadableFormats;
 
 
 std::pair<unsigned int, unsigned int>
@@ -57,4 +52,5 @@ Image::getScaledDimensions(Params const & params) const
        return std::make_pair(width, height);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx