/** 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() {
void redraw() {
users->redraw();
users->fitCursor();
- users->updateScrollbar();
+ //users->updateScrollbar();
}
///
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();
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;
/** 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;
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?