]> git.lyx.org Git - features.git/commitdiff
namespace grfx -> lyx::graphics
authorLars Gullik Bjønnes <larsbj@gullik.org>
Fri, 4 Jul 2003 08:23:23 +0000 (08:23 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Fri, 4 Jul 2003 08:23:23 +0000 (08:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7239 a592a061-630c-0410-9148-cb99ea01b6c8

67 files changed:
src/ChangeLog
src/buffer.C
src/frontends/ChangeLog
src/frontends/Painter.h
src/frontends/qt2/ChangeLog
src/frontends/qt2/QExternal.C
src/frontends/qt2/QLImage.C
src/frontends/qt2/QLImage.h
src/frontends/qt2/QLPainter.C
src/frontends/qt2/QLPainter.h
src/frontends/qt2/QPrefs.C
src/frontends/qt2/lyx_gui.C
src/frontends/screen.C
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormExternal.C
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/XPainter.C
src/frontends/xforms/XPainter.h
src/frontends/xforms/lyx_gui.C
src/frontends/xforms/xformsImage.C
src/frontends/xforms/xformsImage.h
src/graphics/ChangeLog
src/graphics/GraphicsCache.C
src/graphics/GraphicsCache.h
src/graphics/GraphicsCacheItem.C
src/graphics/GraphicsCacheItem.h
src/graphics/GraphicsConverter.C
src/graphics/GraphicsConverter.h
src/graphics/GraphicsImage.C
src/graphics/GraphicsImage.h
src/graphics/GraphicsLoader.C
src/graphics/GraphicsLoader.h
src/graphics/GraphicsParams.C
src/graphics/GraphicsParams.h
src/graphics/GraphicsTypes.C
src/graphics/GraphicsTypes.h
src/graphics/LoaderQueue.C
src/graphics/LoaderQueue.h
src/graphics/PreviewImage.C
src/graphics/PreviewImage.h
src/graphics/PreviewLoader.C
src/graphics/PreviewLoader.h
src/graphics/PreviewedInset.C
src/graphics/PreviewedInset.h
src/graphics/Previews.C
src/graphics/Previews.h
src/insets/ChangeLog
src/insets/inset.h
src/insets/insetcollapsable.C
src/insets/insetcollapsable.h
src/insets/insetexternal.C
src/insets/insetexternal.h
src/insets/insetgraphicsParams.h
src/insets/insetinclude.C
src/insets/insetinclude.h
src/insets/insettabular.C
src/insets/insettabular.h
src/insets/insettext.C
src/insets/insettext.h
src/insets/renderers.C
src/insets/renderers.h
src/lyx_main.C
src/lyxrc.C
src/lyxrc.h
src/mathed/ChangeLog
src/mathed/formula.C
src/mathed/formula.h

index 9d8815c296cc27a443188d88df97f2372863b2a0..bf64fb30684c6447734b73f94d1dec61df1affcf 100644 (file)
@@ -1,3 +1,6 @@
+2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * introduce namespace lyx::graphics
 
 2003-07-02  André Pönitz  <poenitz@gmx.net>
 
index b51a4762d4dca385f285934cf225c262d53a1818..ba6af0ac000aa9b03b9098364d9319d1791b0ea1 100644 (file)
@@ -110,6 +110,8 @@ using std::for_each;
 using lyx::pos_type;
 using lyx::textclass_type;
 
+namespace grfx = lyx::graphics;
+
 // all these externs should eventually be removed.
 extern BufferList bufferlist;
 
index 9d37cd80922eb8cb022e1e2b65bdcb8c87a0baf6..91800c17dcee5b13d78822f7d054980bb426409d 100644 (file)
@@ -1,3 +1,6 @@
+2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * introduce namespace lyx::graphics
 
 2003-06-27  André Pönitz  <poenitz@gmx.net>
 
@@ -16,7 +19,7 @@
 2003-06-06  Alfredo Braunstein  <abraunst@libero.it>
 
        * Dialogs.[Ch] (visible): added.
-       
+
 2003-06-03  John Levon  <levon@movementarian.org>
 
        * lyx_gui.h: add sync_events()
index f2b4f1cdd8cef30b4c4edae6d9c64bbb611e9498..9a143aa104fe2192371d839fa119c39eb74b65d7 100644 (file)
 
 class LyXFont;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
        class Image;
 }
+}
+
 
 /**
  * Painter - A painter class to encapsulate all graphics parameters and operations
@@ -132,7 +135,7 @@ public:
        /// draw an image from the image cache
        virtual Painter & image(int x, int y,
                int w, int h,
-               grfx::Image const & image) = 0;
+               lyx::graphics::Image const & image) = 0;
 
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
index 25ea9246d06addfcfda591e7563a8ce4d5c371ad..49a2aa048a62c83c7be5f54baf81b5047e7ec761 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * introduce namespace lyx::graphics
+
 2003-07-03  John Levon  <levon@movementarian.org>
 
        * ui/QTexinfoDialog.ui: enable View properly
index 399a9c7bcec78e5863a56dfecafef74164c2dc49..4ede9586a6d31801cb4632a315e50ad390431e55 100644 (file)
@@ -33,6 +33,8 @@
 
 using namespace lyx::support;
 
+namespace grfx = lyx::graphics;
+
 typedef QController<ControlExternal, QView<QExternalDialog> > base_class;
 
 
index 72dca212ba78537d266fe61d8d8912e730674391..d504cc6a5cec6db8396379c7950d53437b5fb32f 100644 (file)
@@ -32,7 +32,8 @@ using namespace lyx::support;
 using std::find_if;
 using std::endl;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 /// Access to this class is through this static method.
 Image::ImagePtr QLImage::newImage()
@@ -253,4 +254,5 @@ void QLImage::scale(Params const & params)
        xformed_pixmap_ = xformed_pixmap_.xForm(m);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // lyx
index 6e5f1e6cf30e7de10654b2ab4587493e8e9aa9d9..e4b38678ccb51b06e2d7780fdbee2de9deba2506 100644 (file)
@@ -18,7 +18,8 @@
 
 #include <qpixmap.h>
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class QLImage : public Image {
 public:
@@ -80,6 +81,7 @@ private:
        QPixmap xformed_pixmap_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // QLIMAGE_H
index 54fa7fb6bc645abc472d2b0f99e280a26597d0ae..026eb66e1286b8aa298255b2cd935a068f415840 100644 (file)
@@ -36,6 +36,7 @@
 
 using std::endl;
 
+namespace grfx = lyx::graphics;
 
 QLPainter::QLPainter(QWorkArea & qwa)
        : Painter(), owner_(qwa), paint_check_(0)
index 6005f9a166d7b50fdfa753a535658600b958157d..d7159dc9f1687cb77fb23cc333bff3ae5da9961b 100644 (file)
@@ -100,7 +100,7 @@ public:
        /// draw an image from the image cache
        virtual Painter & image(int x, int y,
                int w, int h,
-               grfx::Image const & image);
+               lyx::graphics::Image const & image);
 
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
index 77ce4bc0a26e978e6542c0f7dd429e01b5e6f420..aa4ffbf072dcc41796689f41b05f325dc328de8e 100644 (file)
@@ -63,6 +63,8 @@ using std::setfill;
 using std::setw;
 using std::endl;
 
+namespace grfx = lyx::graphics;
+
 typedef Qt2CB<ControlPrefs, Qt2DB<QPrefsDialog> > base_class;
 
 
index 6b8038ad83cc248236fb60d018301f87563ad1e6..2b4acb64e345784d4d45421b9aa2a636dc601073 100644 (file)
@@ -119,7 +119,7 @@ void parse_init(int & argc, char * argv[])
 {
        static LQApplication a(argc, argv);
 
-       using namespace grfx;
+       using namespace lyx::graphics;
 
        Image::newImage = boost::bind(&QLImage::newImage);
        Image::loadableFormats = boost::bind(&QLImage::loadableFormats);
index 7bdee9bc086320f1281beff451ef40f455a26b80..e902141367a6a4e15baef8d9840cabbd9eded099 100644 (file)
@@ -48,6 +48,8 @@ using std::min;
 using std::max;
 using std::endl;
 
+namespace grfx = lyx::graphics;
+
 namespace {
 
 class SplashScreen : boost::noncopyable, boost::signals::trackable {
index 879ba05c76cd51592d5dc306e54c7317f8295290..224d299b109167ea21e3cef45710e283f9924f87 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * introduce namespace lyx::graphics
+
 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * introcude namespace lyx::support
index e48fba8b4c9cc2ccb0d1df85ddfd72f19c54a5a1..a7419906a36fa02cee09eae11a6b4732c7bc0623 100644 (file)
@@ -32,6 +32,8 @@
 
 using namespace lyx::support;
 
+namespace grfx = lyx::graphics;
+
 typedef FormController<ControlExternal, FormView<FD_external> > base_class;
 
 FormExternal::FormExternal(Dialog & parent)
index b6e87f7df468df5498e7cfc62a0d292748173350..059ca6781c5f203174b1a6dd4b96264dfcb09d6c 100644 (file)
@@ -68,6 +68,8 @@ extern string user_lyxdir;
 
 using namespace lyx::support;
 
+namespace grfx = lyx::graphics;
+
 namespace {
 
 // These should probably go inside the class definition...
index a40e3342f3b20be0d55143644b67c6eeae0cbe48..05fd6cc31c29a0a7580a57bf59fd4a873f4458e4 100644 (file)
@@ -35,6 +35,7 @@ using namespace lyx::support;
 using std::endl;
 using std::max;
 
+namespace grfx = lyx::graphics;
 
 XPainter::XPainter(XWorkArea & xwa)
        : Painter(), owner_(xwa)
index 5197c24bfae38620cd5d1acdcc9ec26afe077461..43c0c1d89bbd6b2218b825258df7136ff7c0cdba 100644 (file)
@@ -95,7 +95,7 @@ public:
        /// draw an image from the image cache
        virtual Painter & image(int x, int y,
                int w, int h,
-               grfx::Image const & image);
+               lyx::graphics::Image const & image);
 
        /// draw a string at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
index e39db69e87821158c19b27c49bc1e276fe85a163..74733e0f60e6109b166031f602d3cd332d991fa2 100644 (file)
@@ -172,7 +172,7 @@ void parse_init(int & argc, char * argv[])
 
        lyxColorHandler.reset(new LyXColorHandler());
 
-       using namespace grfx;
+       using namespace lyx::graphics;
 
        // connect the image loader based on the xforms library
        Image::newImage = boost::bind(&xformsImage::newImage);
index 52abc998b8c6624938eedfdbff2024ac3252dd47..70014911314802f77ea3405255eee524b71d1000 100644 (file)
@@ -45,7 +45,8 @@ unsigned int packedcolor(LColor::color c);
 } // namespace anon
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 /// Access to this class is through this static method.
 Image::ImagePtr xformsImage::newImage()
@@ -364,11 +365,14 @@ void xformsImage::errorCB(string const & error_message)
        finishedLoading(false);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 
 namespace {
 
+namespace grfx = lyx::graphics;
+
 extern "C" {
 
 int status_report(FL_IMAGE * ob, const char *s)
index 29a9dae3d8ee17b22cbc836e3df3bd44384171e0..d35e1e42f8452a6a59e9178cf1c0f5e57ea59f02 100644 (file)
@@ -24,7 +24,8 @@
 struct flimage_;
 typedef flimage_ FL_IMAGE;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class xformsImage : public Image
 {
@@ -104,6 +105,7 @@ private:
        PixmapStatus pixmap_status_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // XFORMSIMAGE_H
index fb31eccd443bd300f60abbed00ddfb63fd98d2ec..0f0ad5e5d5f56fa6fda99421b8fc2e732f9479ee 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * Change namespace grfx to lyx::graphics.
+
 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * introcude namespace lyx::support
index 107275cb62e2a0bc097fc9863cd27e031fc905d6..daeb6160e3368c841fa6ae30563151730a82b76e 100644 (file)
@@ -25,7 +25,8 @@
 
 using namespace lyx::support;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 /** The cache contains one item per file, so use a map to find the
  *  cache item quickly by filename.
@@ -113,4 +114,5 @@ Cache::ItemPtr const Cache::item(string const & file) const
        return it->second;
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index ca4d02977679a7a34b0656f2c516f7df13a71395..1e0f0eb09bbe1390c14007ef54a1b5b42cb3ffb4 100644 (file)
@@ -26,7 +26,8 @@
 #include <boost/shared_ptr.hpp>
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class CacheItem;
 
@@ -79,6 +80,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSCACHE_H
index 02c730d37af824a07c57ca159245336a98009590..798977f2b4722e3b794fba05899fbab000eb1568 100644 (file)
@@ -32,7 +32,8 @@ using namespace lyx::support;
 
 using std::endl;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 struct CacheItem::Impl : public boost::signals::trackable {
 
@@ -311,11 +312,14 @@ void CacheItem::Impl::imageLoaded(bool success)
 }
 
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 
 namespace {
 
+namespace grfx = lyx::graphics;
+
 string const findTargetFormat(string const & from)
 {
        typedef grfx::Image::FormatList FormatList;
@@ -351,7 +355,8 @@ string const findTargetFormat(string const & from)
 } // anon namespace
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 void CacheItem::Impl::convertToDisplayFormat()
 {
@@ -409,4 +414,5 @@ void CacheItem::Impl::convertToDisplayFormat()
        converter_->startConversion();
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index 3e8755fcaad7b6391d3eb21dfe373283a2dd04cb..bcf72f67aff284ac74a93292190372adb20f8d89 100644 (file)
@@ -37,7 +37,8 @@
 
 class InsetGraphics;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class Image;
 class Converter;
@@ -95,6 +96,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSCACHEITEM_H
index 2333dde4610afbd523870c8f8f0a8b97ab7ab304..a61777917aede6329618a37d3579d93eede02b57 100644 (file)
@@ -36,7 +36,8 @@ using namespace lyx::support;
 using std::endl;
 using std::ostream;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 struct Converter::Impl : public boost::signals::trackable {
        ///
@@ -108,7 +109,9 @@ string const & Converter::convertedFile() const
        return pimpl_->finished_ ? pimpl_->to_file_ : empty;
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
+
 
 //------------------------------
 // Implementation details follow
@@ -126,7 +129,8 @@ bool build_script(string const & from_file, string const & to_file_base,
 } // namespace anon
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 Converter::Impl::Impl(string const & from_file,   string const & to_file_base,
                      string const & from_format, string const & to_format)
@@ -223,7 +227,8 @@ void Converter::Impl::converted(pid_t /* pid */, int retval)
        }
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 namespace {
 
index dd221287a1fc173f763aecf8f758b35af8e6c358..ed13961a011d093a4166a4c186f93fde6802d2e4 100644 (file)
@@ -22,7 +22,8 @@
 #include <boost/scoped_ptr.hpp>
 #include <boost/utility.hpp>
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class Converter : boost::noncopyable {
 public:
@@ -65,6 +66,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSCONVERTER_H
index fd1ae1041ce2ee07c218257e6feccdb635f83469..531ad289121ac23252a8f1b7f160b64fb426b213 100644 (file)
@@ -19,7 +19,8 @@
 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.
@@ -53,4 +54,5 @@ Image::getScaledDimensions(Params const & params) const
        return std::make_pair(width, height);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index 2eff2c89b132408f68d829e99c5304ec39224300..366894c2779d044e9dfa4dbc4524ad413cfb0525 100644 (file)
@@ -33,7 +33,8 @@
 #include <vector>
 #include <utility>
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class Params;
 
@@ -107,6 +108,7 @@ protected:
        getScaledDimensions(Params const & params) const;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSIMAGE_H
index 391fac6ac5380b3207cb90ef2e7f362ed61ccd91..3d91ce13ab82e425e8077edd979e85da3fd1c68f 100644 (file)
@@ -25,7 +25,8 @@
 
 #include <list>
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 struct Loader::Impl : boost::signals::trackable {
        ///
@@ -296,4 +297,5 @@ void Loader::Impl::startLoading()
 }
 
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index c95a21430a6f08fa5a7ac710a6ed295ada08f58f..415dd3142163ff7360c331b8e7b1da9566a7556c 100644 (file)
@@ -32,7 +32,8 @@
 
 class Inset;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class Image;
 class Params;
@@ -106,6 +107,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSLOADER_H
index 0c7123ee818a0fd99ea520be6171ff9e799d0b28..cf2c72899b2aee08d070532951bbc4308f36ee04 100644 (file)
@@ -18,7 +18,8 @@
 
 using std::abs;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 Params::Params()
        : display(ColorDisplay),
@@ -95,4 +96,5 @@ bool operator!=(BoundingBox const & a, BoundingBox const & b)
        return !(a == b);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index b366f9a0c6f94e911ff7ac8a63dc7c4b3ccedbdc..5d1cb6aa7334bd0e48128844ee97e60b0a273305 100644 (file)
@@ -18,7 +18,8 @@
 #include "LString.h"
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 /** Parse a string of the form "200pt 500pt 300mm 5in" into a
  *  usable bounding box.
@@ -67,6 +68,7 @@ struct Params
 bool operator==(Params const &, Params const &);
 bool operator!=(Params const &, Params const &);
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSPARAMS_H
index 423e5da2fa2cdc9bb0be2fe0eca401af8ed6922c..bb79a8b3a3549138adcde7322074fe2627e826e9 100644 (file)
@@ -14,7 +14,8 @@
 #include "graphics/GraphicsTypes.h"
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 /// The translator between the Display enum and corresponding lyx string.
 Translator<DisplayType, string> displayTranslator(DefaultDisplay, "default");
@@ -41,4 +42,5 @@ void setDisplayTranslator()
        }
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index 7dc58035b416d5d1273b7f7be8c0f81e04d85e5a..5893c529e0a443b5841d3846e2f12fb65b0edfa3 100644 (file)
@@ -18,7 +18,8 @@
 #include "LString.h"
 #include "support/translator.h"
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 /// The status of the loading process
 enum ImageStatus {
@@ -68,6 +69,7 @@ extern Translator<DisplayType, string> displayTranslator;
 ///
 void setDisplayTranslator();
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSTYPES_H
index 1647e472c60ecdb75b5e9b61b1f83ea23b7ba7e2..f5647cc9b824e1d55615f1da511f54109ba1d724 100644 (file)
@@ -19,8 +19,8 @@
 using std::endl;
 using std::list;
 
-
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 int LoaderQueue::s_numimages_ = 5;
 int LoaderQueue::s_millisecs_ = 500;
@@ -113,4 +113,5 @@ void LoaderQueue::touch(Cache::ItemPtr const & item)
 }
 
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index 50183c12b936fe0c2ea418166d95c9c7fd235599..49e8dc8d571a84e8d97ce94f1ae95ced240d6024 100644 (file)
@@ -29,7 +29,8 @@
 #include <set>
 #include <queue>
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class LoaderQueue {
 public:
@@ -74,6 +75,7 @@ private:
        void stopLoader();
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // LOADERQUEUE_H
index 61e112836b07a572696e4dbcb441d8679c12174e..9593ec568bacf093a5fd75cc043ec5bee934ebb8 100644 (file)
@@ -22,7 +22,8 @@
 
 using namespace lyx::support;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 struct PreviewImage::Impl : public boost::signals::trackable {
        ///
@@ -152,4 +153,5 @@ void PreviewImage::Impl::statusChanged()
        }
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index cb1cb71b3d830d8eec6055988b7416dc0a5befe5..f76ff1f2461d01ccc0c22f73f182b3e66eb14d8e 100644 (file)
@@ -17,7 +17,8 @@
 
 class Inset;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class PreviewLoader;
 class Image;
@@ -55,6 +56,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // PREVIEWIMAGE_H
index 5e3ee3d09f3806744ea04bf99093cbc8c9c2a9fb..09ded34dddbac0df6bc7aa5fd6cc367115d803a3 100644 (file)
@@ -117,7 +117,8 @@ typedef InProgressProcesses::value_type InProgressProcess;
 } // namespace anon
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 struct PreviewLoader::Impl : public boost::signals::trackable {
        ///
@@ -241,7 +242,8 @@ Buffer const & PreviewLoader::buffer() const
        return pimpl_->buffer();
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 
 // The details of the Impl
@@ -306,7 +308,8 @@ void InProgress::stop() const
 } // namespace anon
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 PreviewLoader::Impl::Impl(PreviewLoader & p, Buffer const & b)
        : parent_(p), buffer_(b), font_scaling_factor_(0.0)
@@ -637,8 +640,8 @@ void PreviewLoader::Impl::dumpData(ostream & os,
        }
 }
 
-} // namespace grfx
-
+} // namespace graphics
+} // namespace lyx
 
 namespace {
 
index 93ea8da64b3e0b9ccd66b35aa6c362697c3cefb4..ba6613bedb2db51f2a2ec3d0a8f77415c6909d65 100644 (file)
@@ -25,7 +25,8 @@
 
 class Buffer;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class PreviewImage;
 
@@ -92,6 +93,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // PREVIEWLOADER_H
index 5a9450a2ed70e091827d7cb0e7b2d500ae26867c..7f080a8aeaba011efec634b2ba72624ce369c8c8 100644 (file)
@@ -30,7 +30,8 @@
 
 using namespace lyx::support;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 bool PreviewedInset::activated()
 {
@@ -50,15 +51,15 @@ void PreviewedInset::generatePreview()
            !view() || !view()->buffer())
                return;
 
-       grfx::Previews & previews = grfx::Previews::get();
-       grfx::PreviewLoader & loader = previews.loader(view()->buffer());
+       Previews & previews = Previews::get();
+       PreviewLoader & loader = previews.loader(view()->buffer());
        addPreview(loader);
        if (!snippet_.empty())
                loader.startLoading();
 }
 
 
-void PreviewedInset::addPreview(grfx::PreviewLoader & ploader)
+void PreviewedInset::addPreview(PreviewLoader & ploader)
 {
        if (!Previews::activated() || !previewWanted())
                return;
@@ -88,8 +89,8 @@ void PreviewedInset::removePreview()
        if (!view() || !view()->buffer() || snippet_.empty())
                return;
 
-       grfx::Previews & previews = grfx::Previews::get();
-       grfx::PreviewLoader & loader = previews.loader(view()->buffer());
+       Previews & previews = Previews::get();
+       PreviewLoader & loader = previews.loader(view()->buffer());
        loader.remove(snippet_);
        snippet_.erase();
        pimage_ = 0;
@@ -103,8 +104,8 @@ bool PreviewedInset::previewReady() const
                return false;
 
        if (!pimage_ || snippet_ != pimage_->snippet()) {
-               grfx::PreviewLoader & ploader =
-                       grfx::Previews::get().loader(view()->buffer());
+               PreviewLoader & ploader =
+                       Previews::get().loader(view()->buffer());
                pimage_ = ploader.preview(snippet_);
        }
 
@@ -115,7 +116,7 @@ bool PreviewedInset::previewReady() const
 }
 
 
-void PreviewedInset::imageReady(grfx::PreviewImage const & pimage) const
+void PreviewedInset::imageReady(PreviewImage const & pimage) const
 {
        // Check snippet against the Inset's current contents
        if (snippet_ != pimage.snippet())
@@ -127,4 +128,5 @@ void PreviewedInset::imageReady(grfx::PreviewImage const & pimage) const
                view()->updateInset(&inset_);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index 5e400908603bbf54b0d0daee8f643fe9ea1bdff5..85760603f93e846513873e73575321f8f24f95fe 100644 (file)
@@ -23,7 +23,8 @@
 class Inset;
 class BufferView;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class PreviewImage;
 class PreviewLoader;
@@ -87,7 +88,7 @@ private:
        boost::signals::connection connection_;
 };
 
-} // namespace grfx
-
+} // namespace graphics
+} // namespace lyx
 
 #endif // PREVIEWEDINSET_H
index ce07495a3cbad06d656d11da34b0fa3dbdb6bdd6..32a81527a8c9f275275fa3dd3aac2a45eb82dcd8 100644 (file)
 
 #include <map>
 
+namespace lyx {
+
 using namespace lyx::support;
 
-namespace grfx {
+namespace graphics {
 
 bool Previews::activated()
 {
@@ -99,4 +101,5 @@ void Previews::generateBufferPreviews(Buffer const & buffer) const
        ploader.startLoading();
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
index f088fd68de9ce8d609418659ed11c75254b82145..2bfa1cdf83bd3a2220784fe4f75ab09162831ae8 100644 (file)
@@ -21,7 +21,8 @@
 
 class Buffer;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class PreviewLoader;
 
@@ -66,6 +67,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // PREVIEWS_H
index d696383462ae10f054555b97be696d18dd3c51d7..bd932cb58ababfb33fa7083d7f5ef4796baf9e93 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * introduce namespace lyx::graphics
+
 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * introduce namespace lyx::support
index 2e4165860e35cb91de686a726c891fc23c75c83f..84aa5b4b9a59823407460a2c208af1e0d0eafefb 100644 (file)
@@ -34,9 +34,11 @@ class WordLangTuple;
 class ParagraphList;
 class UpdatableInset;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
        class PreviewLoader;
 }
+}
 
 /// Insets
 class Inset : public InsetBase {
@@ -311,7 +313,7 @@ public:
         *  Most insets have no interest in this capability, so the method
         *  defaults to empty.
         */
-       virtual void addPreview(grfx::PreviewLoader &) const {}
+       virtual void addPreview(lyx::graphics::PreviewLoader &) const {}
 
        /** Find the PreviewLoader, add a LaTeX snippet to it and
         *  start the loading process.
index 3377fe3236961a420f6a960e04aa4ee6fb791a9c..d57f809711e662466c9e8876bccced2470a3f6d2 100644 (file)
@@ -41,6 +41,7 @@ using std::ostream;
 using std::endl;
 using std::max;
 
+namespace grfx = lyx::graphics;
 
 InsetCollapsable::InsetCollapsable(BufferParams const & bp, bool collapsed)
        : UpdatableInset(), collapsed_(collapsed), inset(bp),
index 02c261e13a8dc968311d23924b69e6fc1e593744..3908081e6d69ad84a0c160e87e68f7bbbee50689 100644 (file)
@@ -167,7 +167,7 @@ public:
                            bool = true, bool = false);
 
        ///
-       void addPreview(grfx::PreviewLoader &) const;
+       void addPreview(lyx::graphics::PreviewLoader &) const;
 
 protected:
        ///
index c6f7552cbd791e0d9df4a25e4eed5a31fca10c2b..bd0c1177ecdac57b6a5ee357c12736c508d313d0 100644 (file)
@@ -49,6 +49,7 @@ using namespace lyx::support;
 using std::ostream;
 using std::endl;
 
+namespace grfx = lyx::graphics;
 
 namespace {
 
index c23267fa589f3d17b159bf2193ef87d87acc9f44..919a9ab4be3a23d5e890e08bf34793b4139d58cf 100644 (file)
@@ -36,7 +36,7 @@ public:
                /// The name of the tempfile used for manipulations.
                string tempname;
                /// how the inset is displayed by LyX
-               grfx::DisplayType display;
+               lyx::graphics::DisplayType display;
                /// The scale of the displayed graphic (If shown).
                unsigned int lyxscale;
        };
index 93fde9aa4539d5f7aebea91156cea7c6a831d21b..b33629b328ea2d1d5a7d7b673a76e48f99b33b90 100644 (file)
 #include "LString.h"
 #include "lyxlength.h"
 
+namespace grfx = lyx::graphics;
+
 class LyXLex;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
        class Params;
 }
+}
+
 
 /// This struct holds all the parameters needed by insetGraphics.
 struct InsetGraphicsParams
index ecc71f332c879956bfc98687618ad79e76278528..fd6fa9faeb5cc4d3888bd4e415647fed59b83eb9 100644 (file)
@@ -50,6 +50,8 @@ using std::endl;
 using std::vector;
 using std::pair;
 
+namespace grfx = lyx::graphics;
+
 extern BufferList bufferlist;
 
 
index a4b4c83e8911cd2aa1d3bc91ea02996790100241..160c2a89311e451248ad7dce5901d008d897531d 100644 (file)
@@ -109,7 +109,7 @@ public:
        bool loadIfNeeded() const;
 
        ///
-       void addPreview(grfx::PreviewLoader &) const;
+       void addPreview(lyx::graphics::PreviewLoader &) const;
 
 private:
        /// get the text displayed on the button
index 5515a813311afc665a49fc57702ca2871d19a8df..4d07fb85c8549846669b2cfbe2575889ebd371d1 100644 (file)
@@ -59,6 +59,8 @@ using std::endl;
 using std::swap;
 using std::max;
 
+namespace grfx = lyx::graphics;
+
 namespace {
 
 int const ADD_TO_HEIGHT = 2;
index 2ab5d2eb9ce57f193acd739f2e04683624808949..cda768070f2798721582bd9288b6b41feed804d4 100644 (file)
@@ -211,7 +211,7 @@ public:
        bool forceDefaultParagraphs(Inset const * in) const;
 
        ///
-       void addPreview(grfx::PreviewLoader &) const;
+       void addPreview(lyx::graphics::PreviewLoader &) const;
 
        //
        // Public structures and variables
index 6d67050e07ff347e9d626aa0f67267af2e75c47c..bf1c39ff799f4f5c52acd0bff2827807ba4dfbc1 100644 (file)
@@ -76,6 +76,7 @@ using namespace lyx::support;
 using lyx::pos_type;
 using lyx::textclass_type;
 
+namespace grfx = lyx::graphics;
 
 // These functions should probably go into bufferview_funcs somehow (Jug)
 
index e3d85331c5a1e3b9d5b70553e2f3bd64ef028e29..290d949592458071e9096ce8b340839dce0e0acf 100644 (file)
@@ -230,7 +230,7 @@ public:
        void appendParagraphs(Buffer * bp, ParagraphList &);
 
        ///
-       void addPreview(grfx::PreviewLoader &) const;
+       void addPreview(lyx::graphics::PreviewLoader &) const;
 
        //
        // Public structures and variables
index 3325cabe4ca7573788e9f85dfb8fbc13d90bbd28..3839e167bb685ab7e3e3fee4ce7d2f4831407709 100644 (file)
@@ -28,6 +28,8 @@
 
 using namespace lyx::support;
 
+namespace grfx = lyx::graphics;
+
 RenderInset::RenderInset()
 {}
 
index 5604bce779b556e9082deea268fbeab0d8a3b3d4..19d10459bca2e666a5c754f8ed81bcbc464dc7c4 100644 (file)
@@ -27,7 +27,7 @@ class MetricsInfo;
 class PainterInfo;
 
 
-class RenderInset 
+class RenderInset
 {
 public:
        virtual ~RenderInset();
@@ -62,7 +62,7 @@ public:
 
        /// This should provide the text for the button
        void update(string const &, bool editable);
-       
+
        /// compute the size of the object returned in dim
        virtual void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// draw inset and update (xo, yo)-cache
@@ -84,7 +84,7 @@ public:
        virtual RenderInset * clone() const;
 
        /// Refresh the info about which file to display and how to display it.
-       void update(grfx::Params const & params);
+       void update(lyx::graphics::Params const & params);
 
        /// compute the size of the object returned in dim
        virtual void metrics(MetricsInfo & mi, Dimension & dim) const;
@@ -109,10 +109,10 @@ private:
 
        /// Is the image ready to draw, or should we display a message instead?
        bool readyToDisplay() const;
-       
+
        /// The stored data.
-       grfx::Loader loader_;
-       grfx::Params params_;
+       lyx::graphics::Loader loader_;
+       lyx::graphics::Params params_;
 
        /// Cached variable (not copied).
        mutable unsigned long checksum_;
index 436ec5d8087cc51ff47df46513aae1ee7e6ccace..0c0a651de2f7dead8865a2ee215167ec490cc9dd 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 1995-2002 the LyX Team
  * Read the file COPYING
  *
- * \author unknown
+ * \author Lars Gullik Bjønnes
  */
 
 #include <config.h>
@@ -59,6 +59,8 @@ using std::signal;
 using std::system;
 #endif
 
+namespace grfx = lyx::graphics;
+
 extern void LoadLyXFile(string const &);
 extern void QuitLyX();
 
index edea4b9dda5e2e924b1581f1ef59a33be80db743..1357d3d447277d331bd02459cb632e8d7a3a37e3 100644 (file)
@@ -40,6 +40,8 @@ using std::ios;
 using std::endl;
 using std::vector;
 
+namespace grfx = lyx::graphics;
+
 class kb_keymap;
 
 extern boost::scoped_ptr<kb_keymap> toplevel_keymap;
index 0de60914ab58cf9a868e0f1cd028fe6151b567fa..9d70eacee8e6bb2d9cb2836e93a0da6ca0f9fa9e 100644 (file)
@@ -337,7 +337,7 @@ enum LyXRCTags {
        ///
        int label_init_length;
        ///
-       grfx::DisplayType display_graphics;
+       lyx::graphics::DisplayType display_graphics;
        ///
        bool show_banner;
        ///
index 19b01aea3576ac15ada1ef3406e5a932999d1f93..5bf22e757a3d37a77ff3e94517f4ee806abd97ae 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * introduce namespace lyx::graphics
+
 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * introduce namespace lyx::support
index c4c2f0959be30aa4c662013ac610a01a9ca0bb65..7bc66335fcd941f192b4c94fd3e45a904935aa63 100644 (file)
@@ -52,6 +52,7 @@
 using std::ostream;
 using std::vector;
 
+namespace grfx = lyx::graphics;
 
 class InsetFormula::PreviewImpl : public grfx::PreviewedInset {
 public:
index c63abd8e5ac3b5123fbd9f1f1f8b070a25b82ed1..820672412f10164dbe3e5468faa8decc3d53cf5d 100644 (file)
@@ -70,7 +70,7 @@ public:
        ///
        void generatePreview() const;
        ///
-       void addPreview(grfx::PreviewLoader &) const;
+       void addPreview(lyx::graphics::PreviewLoader &) const;
        ///
        void mutate(string const & type);