]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetexternal.h
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insetexternal.h
index 278ad8a8275df008016364bc5d2573439034c01e..599619bde148171e4d9905aa321fec9c4153bcf7 100644 (file)
 #include "LString.h"
 #include <sigc++/signal_system.h>
 
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
 ///
 class InsetExternal : public InsetButton {
 public:
        /// hold parameters settable from the GUI
-       struct InsetExternalParams {
-               InsetExternalParams(string const & f = string(), 
+       struct Params {
+               Params(string const & f = string(), 
                                        string const & p = string(), 
                                        ExternalTemplate const & t = ExternalTemplate())
                        : filename(f), parameters(p), templ(t) {}
@@ -86,7 +82,7 @@ public:
        // The following public members are used from the frontends code
 
        /// set the parameters from a Params structure
-       virtual void setFromParams(InsetExternalParams const &);
+       virtual void setFromParams(Params const &);
 
        /// update the file represented by the template
        void updateExternal() const;
@@ -98,10 +94,10 @@ public:
        void viewExternal() const;
 
        /// return a copy of our current params
-       InsetExternalParams params() const;
+       Params params() const;
 
        /// hide connection
-       Signal0<void> hideDialog;
+       SigC::Signal0<void> hideDialog;
 
 private:
        /// Write the output for a specific file format
@@ -115,13 +111,18 @@ private:
        string const doSubstitution(Buffer const *, string const & s) const;
 
        /// our owning view
-       BufferView * view;
+       BufferView * view_;
 
        /// the current params
-       InsetExternalParams params_;
+       Params params_;
 
        /// A temp filename
-       string tempname;
+       string tempname_;
 };
 
+///
+bool operator==(InsetExternal::Params const &, InsetExternal::Params const &);
+///
+bool operator!=(InsetExternal::Params const &, InsetExternal::Params const &);
+
 #endif