/** Version Control for LyX. This is the class giving the verison control featurestoLyX.Itis intendedtosupportdifferentkindsofversioncontrol,butatthispoint wewillonlysupportRCS.LaterCVSisalikelycandidateforsupport. ThesupportinLyXisbasedlooselyupontheversioncontrolinGNUEmacs, butisnotasextensiveasthatone.Seeexamples/VC.lyxforasimple tutorialandmanualfortheuseoftheversioncontrolsysteminLyX.
LyXVCusethisalgorithmwhenitsearchesforVCfiles: forRCSitsearchesfor<filename>,vandRCS/<filename>,vsimilar shouldbedoneforCVS.Bydoingthistheredoesn'tneedtobeany specialsupportforVCinthelyxformat,andthisisespeciallygood whenthelyxformatwillbeasubsetofLaTeX.
*/ class LyXVC { public: ///
LyXVC(); ///
~LyXVC(); /** Not a good name perhaps. This function should be called whenever LyXloadsafile.ThisfunctionthenchecksforamasterVCfile (forRCSthisis*,vorRCS/*,v)ifthisfileisfound,theloaded fileisassumedtobeundercontrollbyVC(onlyRCSsofar),and theappropiateactionsistaken.Returnstrueifthefileisunder controlbyaVCS.
*/ bool file_found_hook(LString const & fn);
/** This function should be run when a file is requested for loading, butitdoesnotexist.ThisfunctionwillthencheckforaVCmaster filewiththesamename(seeabovefunction).Ifthisexiststhe usershouldbeaskedifhe/herwantstocheckoutaversionfor viewing/editing.ReturnstrueifthefileisundercontrolbyaVCS andtheuserwantstoview/editit.
*/ staticbool file_not_found_hook(LString const & fn);
/// The VC backend used. (so far this can only be RCS)
Backend backend;
/// The buffer using this VC
Buffer *_owner;
///
FD_LaTeXLog *browser; // FD_LaTeXLog is just a browser with a // close button. Unfortunately we can not use the standard callbacks. /// staticvoid logClose(FL_OBJECT*, long); /// staticvoid logUpdate(FL_OBJECT*, long);
};
#endif
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-09-28)
¤
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.