]> git.lyx.org Git - features.git/blobdiff - src/buffer.h
clear()->erase() ; lots of using directives for cxx
[features.git] / src / buffer.h
index 3d0d8a2c3ec67903964c6f9e27562e9a011e4921..8cfa12ad98bd6ea0e8aac9130bdc82653a93fc26 100644 (file)
@@ -80,10 +80,10 @@ public:
        /** high-level interface to buffer functionality
            This function parses a command string and executes it
        */
-       void Dispatch(string const & command);
+       bool Dispatch(string const & command);
 
        /// Maybe we know the function already by number...
-       void Dispatch(int ac, string const & argument);
+       bool Dispatch(int ac, string const & argument);
 
        /// should be changed to work for a list.
        void resize() {
@@ -113,7 +113,7 @@ public:
        void redraw() {
                users->redraw(); 
                users->fitCursor(); 
-               users->updateScrollbar();
+               //users->updateScrollbar();
        }
 
        ///
@@ -153,6 +153,12 @@ public:
        void makeLaTeXFile(string const & filename,
                           string const & original_path,
                           bool nice, bool only_body = false);
+       //
+       // LaTeX all paragraphs from par to endpar,
+       // if endpar == 0 then to the end
+       //
+       void latexParagraphs(std::ostream & os, LyXParagraph *par,
+                            LyXParagraph *endpar, TexRow & texrow);
 
        ///
        int runLaTeX();
@@ -262,7 +268,8 @@ public:
        bool isLinuxDoc() const;
        /// returns true if the buffer contains a DocBook document
        bool isDocBook() const;
-       /// returns true if the buffer contains either a LinuxDoc or DocBook document
+       /** returns true if the buffer contains either a LinuxDoc
+           or DocBook document */
        bool isSGML() const;
         /// returns true if the buffer contains a Wed document
         bool isLiterate() const;
@@ -272,11 +279,12 @@ public:
 
        /** Validate a buffer for LaTeX.
            This validates the buffer, and returns a struct for use by
-           makeLaTeX and others. Its main use is to figure out what commands
-           and packages need to be included in the LaTeX file. It (should)
-           also check that the needed constructs are there (i.e. that the \refs
-           points to coresponding \labels). It should perhaps inset "error"
-           insets to help the user correct obvious mistakes.
+           makeLaTeX and others. Its main use is to figure out what
+           commands and packages need to be included in the LaTeX file.
+           It (should) also check that the needed constructs are there
+           (i.e. that the \refs points to coresponding \labels). It
+           should perhaps inset "error" insets to help the user correct
+           obvious mistakes.
        */
        void validate(LaTeXFeatures &) const;
 
@@ -291,6 +299,11 @@ public:
            than one user per buffer. */
        BufferView * getUser() const { return users; }
 
+       ///
+       void ChangeLanguage(Language const * from, Language const * to);
+       ///
+       bool isMultiLingual();
+
         //@}
 
        /// Does this mean that this is buffer local?