// -*- C++ -*- /* This file is part of *====================================================== * *LyX,TheDocumentProcessor *Copyright(C)1995MatthiasEttrich * *ThisfileisCopyleft(C)1996 *LarsGullikBjønnes *
*======================================================*/
/** save the buffer's parameters as user default Thisfunctionsavesafileuser_lyxdir/templates/defaults.lyx whichparametersarethoseofthecurrentbuffer.Thisfile isusedasadefaulttemplatewhencreatinganew file.Returnstrueonsuccess.
*/ bool saveParamsAsDefaults();
/// should be changed to work for a list. void resize()
{ if (users) {
users->resize();
} elseif (text) { delete text;
text = 0;
}
}
/// Update window titles of all users void updateTitles();
/// Reset autosave timers for all users void resetAutosaveTimers();
/** Adds the BufferView to the users list. LaterthisfuncwillinserttheBufferViewintoareallist, notjustsettingapointer.
*/ void addUser(BufferView *u) { users = u; }
/** Removes the BufferView from the users list. Sinceweonlycanhaveoneatthemoment,wejustresetit.
*/ void delUser(BufferView *){ users = 0; }
/// Open and lock an updatable inset void open_new_inset(UpdatableInset*);
/// void loadAutoSaveFile();
/** Reads a file. Returnsfalseifitfails.
If par is given, the file is inserted. */ bool readFile(LyXLex &, LyXParagraph *par = 0);
/** Reads a file without header. Returnsfalse,iffileisnotcompletelyread.
If par is given, the file is inserted. */ bool readLyXformat2(LyXLex &,LyXParagraph *par = 0);
/// Inserts a lyx file at cursor position. Returns false if it fails. bool insertLyXFile(LString const & filename);
/// void makeLinuxDocFile(LString const & filename, int column);
/// returns the main language for the buffer (document)
LString GetLanguage() const { return params.language;
}
/// bool isLyxClean() const { return lyx_clean; }
/// bool isDviClean() const { return dvi_clean; }
/// bool isBakClean() const { return bak_clean; }
/// bool isDepClean(LString const & name) const;
/// void markLyxClean() { if (!lyx_clean) {
lyx_clean = true;
updateTitles();
} // if the .lyx file has been saved, we don't need an // autosave
bak_clean = true;
}
/// Change name of buffer. Updates "read-only" flag. void setFileName(LString const & newfile);
/// Is buffer read-only? bool isReadonly() { return read_only; }
/// Set buffer read-only flag void setReadonly(bool flag = true)
{ if (read_only != flag) {
read_only = flag;
updateTitles();
updateAllVisibleBufferRelatedPopups();
} if (read_only) {
WarnReadonly();
}
}
/// returns true if the buffer contains a LaTeX document bool isLatex(); /// returns true if the buffer contains a LinuxDoc document bool isLinuxDoc();
/// void setPaperStuff();
/// void setOldPaperStuff();
/** Validate a buffer for LaTeX. Thisvalidatesthebuffer,andreturnsastructforuseby makeLaTeXandothers.Itsmainuseistofigureoutwhatcommands andpackagesneedtobeincludedintheLaTeXfile.It(should) alsocheckthattheneededconstructsarethere(i.e.thatthe\refs pointstocoresponding\labels).Itshouldperhapsinset"error" insetstohelptheusercorrectobviousmistakes.
*/ void validate(LaTeXFeatures&); //the correct parameters to be //included later
/** Insert an inset into the buffer Insertinsetintobuffer,placingitinalayoutoflout,
if no_table make sure that it doesn't end up in a table. */ void insertInset(Inset *, LString const &lout=LString(), bool no_table = false);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.