- /// With lyx3 we won't overload these 3 methods
- void Write(FILE *);
- ///
- void Read(LyXLex &);
- ///
- int Latex(FILE *file, signed char fragile);
- ///
- int Latex(LString &file, signed char fragile);
-
- ///
- void Validate(LaTeXFeatures &) const;
-
- /// Input inserts anything inside a paragraph, Display can give some visual feedback
- bool Display() const { return !(isInput()); }
- ///
- LString getScreenLabel() const;
- ///
- void setContents(LString const & c) {
- InsetCommand::setContents(c);
- filename = MakeAbsPath(contents,
- OnlyPath(getMasterFilename()));
- }
- ///
- void setFilename(LString const & n) { setContents(n); }
- ///
- LString getMasterFilename() const { return master->getFileName(); }
- ///
- LString getFileName() const {
- return filename;
- }
- /// In "input" mode uses \input instead of \include.
- bool isInput() const { return (bool)(flag == InsetInclude::INPUT); }
- /// If this is true, the child file shouldn't be loaded by lyx
- bool isNoLoad() const { return (bool)(noload); }
-
- /** A verbatim file shouldn't be loaded by LyX
- * No need to generate LaTeX code of a verbatim file
- */
- bool isVerb() const;
- ///
- bool isVerbVisibleSpace() const { return (bool)(flag==InsetInclude::VERBAST);}
- ///
- bool isInclude() const { return (bool)(flag == InsetInclude::INCLUDE);}
- ///
- void setInput();
- ///
- void setNoLoad(bool);
- ///
- void setInclude();
- ///
- void setVerb();
- ///
- void setVisibleSpace(bool b);
- /// return true if the file is or got loaded.
- bool loadIfNeeded() const;
-private:
- ///
- enum Include_Flags {
- ///
- INCLUDE=0,
- ///
- VERB = 1,
- ///
- INPUT = 2,
- ///
- VERBAST = 3
- };
-