]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
Minor code shuffle.
[lyx.git] / src / buffer.h
index ddc23bea7a3e0f07b9d8a28bd7297faf8c276b2f..dedb17f273e22aae87cb9c14ff921af56a322edf 100644 (file)
@@ -75,10 +75,10 @@ public:
        /** High-level interface to buffer functionality.
            This function parses a command string and executes it
        */
-       bool Dispatch(string const & command);
+       bool dispatch(string const & command);
 
        /// Maybe we know the function already by number...
-       bool Dispatch(int ac, string const & argument);
+       bool dispatch(int ac, string const & argument);
 
        /// 
        void resizeInsets(BufferView *);
@@ -124,6 +124,12 @@ public:
                                        string const & token, int & pos,
                                        Paragraph::depth_type & depth, 
                                        LyXFont &);
+       ///
+       void insertErtContents(Paragraph * par, int & pos,
+                              LyXFont const & font,
+                              bool set_inactive = true);
+       ///
+       Paragraph * getParFromID(int id) const;
 private:
        /// Parse a single inset.
        void readInset(LyXLex &, Paragraph *& par, int & pos, LyXFont &);
@@ -155,7 +161,7 @@ public:
                             Paragraph * endpar, TexRow & texrow) const;
 
         ///
-       void SimpleDocBookOnePar(std::ostream &, string & extra,
+       void simpleDocBookOnePar(std::ostream &, string & extra,
                                 Paragraph * par, int & desc_on,
                                 Paragraph::depth_type depth) const ;
 
@@ -170,7 +176,7 @@ public:
                             bool nice, bool only_body = false);
 
        /// returns the main language for the buffer (document)
-       Language const * GetLanguage() const;
+       Language const * getLanguage() const;
        ///
        bool isLyxClean() const;
        ///
@@ -274,7 +280,7 @@ public:
        BufferView * getUser() const;
 
        ///
-       void ChangeLanguage(Language const * from, Language const * to);
+       void changeLanguage(Language const * from, Language const * to);
        ///
        bool isMultiLingual();
 
@@ -311,7 +317,7 @@ public:
        TexRow texrow;
 private:
         ///
-       void DocBookHandleCaption(std::ostream & os, string & inner_tag,
+       void docBookHandleCaption(std::ostream & os, string & inner_tag,
                                  Paragraph::depth_type depth, int desc_on,
                                  Paragraph * & par);
        /// Open SGML/XML tag.
@@ -321,10 +327,10 @@ private:
         void sgmlCloseTag(std::ostream & os, Paragraph::depth_type depth,
                          string const & latexname) const;
        ///
-       void LinuxDocError(Paragraph * par, int pos,
+       void linuxDocError(Paragraph * par, int pos,
                           string const & message);
         ///
-       void SimpleLinuxDocOnePar(std::ostream & os, Paragraph * par, 
+       void simpleLinuxDocOnePar(std::ostream & os, Paragraph * par, 
                                  Paragraph::depth_type depth);
 
        /// is save needed
@@ -371,7 +377,7 @@ public:
                inset_iterator() : par(0) /*, it(0)*/ {}
                //
                inset_iterator(Paragraph * paragraph) : par(paragraph) {
-                       SetParagraph();
+                       setParagraph();
                }
                ///
                inset_iterator(Paragraph * paragraph,
@@ -382,7 +388,7 @@ public:
                                ++it;
                                if (it == par->inset_iterator_end()) {
                                        par = par->next();
-                                       SetParagraph();
+                                       setParagraph();
                                }
                        }
                        return *this;
@@ -394,7 +400,7 @@ public:
                                ++it;
                                if (it == par->inset_iterator_end()) {
                                        par = par->next();
-                                       SetParagraph();
+                                       setParagraph();
                                }
                        }
                        return tmp;
@@ -412,7 +418,7 @@ public:
                                inset_iterator const & iter2);
        private:
                ///
-               void SetParagraph();
+               void setParagraph();
                ///
                Paragraph * par;
                ///
@@ -427,6 +433,16 @@ public:
        inset_iterator inset_iterator_end() {
                return inset_iterator();
        }
+       ///
+       inset_iterator inset_const_iterator_begin() const {
+               return inset_iterator(paragraph);
+       }
+       ///
+       inset_iterator inset_const_iterator_end() const {
+               return inset_iterator();
+       }
+       ///
+       Inset * getInsetFromID(int id_arg) const;
 };
 
 
@@ -445,7 +461,7 @@ void Buffer::delUser(BufferView *)
        
 
 inline
-Language const * Buffer::GetLanguage() const
+Language const * Buffer::getLanguage() const
 {
        return params.language;
 }