- /// With lyx3 we won't overload these 3 methods
- void Write(ostream &) const;
- ///
- void Read(LyXLex &);
- ///
- int Latex(ostream &, signed char fragile, bool free_spc) const;
-#ifndef USE_OSTREAM_ONLY
- ///
- int Latex(string & file, signed char fragile, bool free_spc) const;
-#endif
- ///
- void Validate(LaTeXFeatures &) const;
-
- /// Input inserts anything inside a paragraph, Display can give some visual feedback
- bool display() const { return !(isInput()); }
- ///
- string getScreenLabel() const;
- ///
- void setContents(string const & c) {
- InsetCommand::setContents(c);
- filename = MakeAbsPath(contents,
- OnlyPath(getMasterFilename()));
- }
- ///
- void setFilename(string const & n) { setContents(n); }
- ///
- string getMasterFilename() const { return master->fileName(); }
- ///
- string getFileName() const {
- return filename;
- }
- /// In "input" mode uses \input instead of \include.
- bool isInput() const { return flag == InsetInclude::INPUT; }
- /// If this is true, the child file shouldn't be loaded by lyx
- bool isNoLoad() const { return 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 flag == InsetInclude::VERBAST;}
- ///
- bool isInclude() const { return 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
- };
-