]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlErrorList.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlErrorList.h
index 8c194a1093450464ba01a0419c9592f55b917a71..07b30cbf31a7c2cd2bc35a7e17a8959923d062a9 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef CONTROLERRORLIST_H
 #define CONTROLERRORLIST_H
 
-
+#include "errorlist.h"
 #include "Dialog.h"
 #include <vector>
 
 
 class ControlErrorList : public Dialog::Controller {
 public:
-       /// A class to hold an error item
-       struct ErrorItem {
-               std::string error;
-               std::string description;
-               int par_id;
-               int pos_start;
-               int pos_end;
-               ErrorItem(string const &, string const &, int, int, int);
-       };
        ///
        ControlErrorList(Dialog & parent);
        ///
        virtual bool isBufferDependent() const { return true; }
        ///
-       virtual bool initialiseParams(const string & params);
+       virtual bool initialiseParams(string const & data);
        ///
-       virtual void ControlErrorList::clearParams();
+       virtual void clearParams();
        ///
-       virtual void ControlErrorList::dispatchParams() {}
+       virtual void dispatchParams() {}
 
-       /// get the current item
-       int currentItem() const;
        /// goto this error in the parent bv
        void goTo(int item);
        /// return the parent document name
-       string const & docName();
-       /// rescan the log file and rebuild the error list
-       void fillErrors();
-       /// clear everything
-       void clearErrors();
+       string const & name();
        ///
-       std::vector<ErrorItem> const & ErrorList() const;
+       ErrorList const & errorList() const;
 private:
        ///
-       std::vector<ErrorItem> ErrorList_;
-       ///
-       string logfilename_;
+       ErrorList errorlist_;
        ///
-       int current_;
+       string name_;
 };
 
 #endif // CONTROLERRORLIST_H