]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommandparams.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetcommandparams.h
index 3b26fbce7c962b1ba822343c61b51dc041166129..0584020c5e6e750e63aa6ed0e3cdd24d196b6f09 100644 (file)
@@ -19,8 +19,9 @@
 #include <vector>
 
 
-class LyXLex;
+namespace lyx {
 
+class LyXLex;
 
 class InsetCommandParams {
 public:
@@ -34,29 +35,33 @@ public:
        ///
        void write(std::ostream &) const;
        /// Build the complete LaTeX command
-       lyx::docstring const getCommand() const;
+       docstring const getCommand() const;
        /// Return the command name
        std::string const & getCmdName() const { return name_; }
+private:
        /// FIXME remove
        std::string const getOptions() const;
        /// FIXME remove
        std::string const getSecOptions() const;
+public:
        /// FIXME remove
        std::string const getContents() const;
        /// Set the name to \p n. This must be a known name. All parameters
        /// are cleared except those that exist also in the new command.
        /// What matters here is the parameter name, not position.
        void setCmdName(std::string const & n);
+private:
        /// FIXME remove
        void setOptions(std::string const &);
        /// FIXME remove
        void setSecOptions(std::string const &);
+public:
        /// FIXME remove
        void setContents(std::string const &);
        /// get parameter \p name
-       lyx::docstring const & operator[](std::string const & name) const;
+       docstring const & operator[](std::string const & name) const;
        /// set parameter \p name
-       lyx::docstring & operator[](std::string const & name);
+       docstring & operator[](std::string const & name);
        ///
        bool preview() const { return preview_; }
        ///
@@ -82,7 +87,7 @@ private:
        /// The name of this command as it appears in .lyx and .tex files
        std::string name_;
        ///
-       typedef std::vector<lyx::docstring> ParamVector;
+       typedef std::vector<docstring> ParamVector;
        /// The parameters (both optional and required ones). The order is
        /// the same that is required for LaTeX output. The size of params_
        /// is always info_->n.
@@ -101,4 +106,7 @@ bool operator==(InsetCommandParams const &, InsetCommandParams const &);
 ///
 bool operator!=(InsetCommandParams const &, InsetCommandParams const &);
 
+
+} // namespace lyx
+
 #endif