]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xformsImage.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / xformsImage.h
index cc7e640c2bb0a2c5953c6ec945e4126e46c9ce6e..6d4d3ccce1505d523ecd7f2b6ddea24b63944cb3 100644 (file)
@@ -1,10 +1,12 @@
 // -*- C++ -*-
 /**
- *  \file xformsImage.h
- *  Copyright 2002 the LyX Team
- *  Read the file COPYING
+ * \file xformsImage.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *  \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 /* An instantiation of Image that makes use of the xforms lirary routines
@@ -14,9 +16,6 @@
 #ifndef XFORMSIMAGE_H
 #define XFORMSIMAGE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "graphics/GraphicsImage.h"
 
@@ -24,8 +23,9 @@
 
 struct flimage_;
 typedef flimage_ FL_IMAGE;
-namespace grfx {
+
+namespace lyx {
+namespace graphics {
 
 class xformsImage : public Image
 {
@@ -38,49 +38,42 @@ public:
 
        ///
        ~xformsImage();
-
-       /// Create a copy
-       Image * clone() const;
-
        ///
        Pixmap getPixmap() const;
 
-       /// Get the image width
-       unsigned int getWidth() const;
+       /// Internal callbacks.
+       void statusCB(std::string const &);
+       void errorCB(std::string const &);
 
+private:
+       /// Create a copy
+       virtual Image * clone_impl() const;
+       /// Get the image width
+       virtual unsigned int getWidth_impl() const;
        /// Get the image height
-       unsigned int getHeight() const;
-
-       virtual bool isDrawable() const;
+       virtual unsigned int getHeight_impl() const;
+       /// Is the image drawable ?
+       virtual bool isDrawable_impl() const;
        /** Load the image file into memory.
         *  The process is asynchronous, so this method starts the loading.
         *  When finished, the Image::finishedLoading signal is emitted.
         */
-       void load(string const & filename);
-
+       virtual void load_impl(std::string const & filename);
        /** Generate the pixmap, based on the current state of
         *  image_ (clipped, rotated, scaled etc).
         *  Uses the params to decide on color, grayscale etc.
         *  Returns true if the pixmap is created.
         */
-       bool setPixmap(Params const & params);
-
+       bool setPixmap_impl(Params const & params);
        /// Clip the image using params.
-       void clip(Params const & params);
+       virtual void clip_impl(Params const & params);
 
        /// Rotate the image using params.
-       void rotate(Params const & params);
+       virtual void rotate_impl(Params const & params);
 
        /// Scale the image using params.
-       void scale(Params const & params);
+       virtual void scale_impl(Params const & params);
 
-       /// Internal callbacks.
-       void statusCB(string const &);
-       ///
-       void errorCB(string const &);
-
-private:
        /// Access to the class is through newImage() and clone.
        xformsImage();
        ///
@@ -105,6 +98,7 @@ private:
        PixmapStatus pixmap_status_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // XFORMSIMAGE_H