]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.h
Fix creationCode() of GuiPrintNomencl
[lyx.git] / src / TextClass.h
index 9fc8b19b42f1f411a1110c969a1e1d5b2a511a25..570e67f8d4e3edaef3717ae7d0aa98cc2ff0fea0 100644 (file)
@@ -207,6 +207,8 @@ public:
        OutputType outputType() const { return outputType_; }
        /// Can be latex, docbook ... (the name of a format)
        std::string outputFormat() const { return outputFormat_; }
+       /// Does this class redefine the output format?
+       bool hasOutputFormat() const { return has_output_format_; }
        /// Return the non-localised names for the toc types.
        std::map<std::string, docstring> const &
        outlinerNames() const { return outliner_names_; }
@@ -313,6 +315,8 @@ protected:
        OutputType outputType_;
        /// Can be latex, docbook ... (the name of a format)
        std::string outputFormat_;
+       /// Does this class redefine the output format?
+       bool has_output_format_;
        /** Base font. The paragraph and layout fonts are resolved against
            this font. This has to be fully instantiated. Attributes
            FONT_INHERIT, FONT_IGNORE, and FONT_TOGGLE are