#include <boost/scoped_ptr.hpp>
#include <boost/signals/trackable.hpp>
+#include "mailinset.h"
+
/** No two InsetExternalParams variables can have the same temporary file.
* This class has copy-semantics but the copy constructor
* InsetExternalParams class.
*/
namespace lyx {
+
namespace external {
class TempName {
Translator<DisplayType, std::string> const & displayTranslator();
} // namespace external
-} // namespace lyx
/// hold parameters settable from the GUI
std::string const & templatename() const { return templatename_; }
/// The external file.
- lyx::support::FileName filename;
+ support::DocFileName filename;
/// How the inset is to be displayed by LyX.
- lyx::external::DisplayType display;
+ external::DisplayType display;
/// The scale of the displayed graphic (if shown).
unsigned int lyxscale;
- lyx::external::ClipData clipdata;
- lyx::external::ExtraData extradata;
- lyx::external::ResizeData resizedata;
- lyx::external::RotationData rotationdata;
+ external::ClipData clipdata;
+ external::ExtraData extradata;
+ external::ResizeData resizedata;
+ external::RotationData rotationdata;
/** if \c true, simply output the filename, maybe wrapped in a
* box, rather than generate and display the image etc.
bool draft;
private:
- lyx::external::TempName tempname_;
+ external::TempName tempname_;
std::string templatename_;
};
virtual void read(Buffer const &, LyXLex & lex);
/// \returns the number of rows (\n's) of generated code.
- virtual int latex(Buffer const &, std::ostream &,
+ virtual int latex(Buffer const &, odocstream &,
OutputParams const &) const;
///
- virtual int plaintext(Buffer const &, std::ostream &,
+ virtual int plaintext(Buffer const &, odocstream &,
OutputParams const &) const;
///
- virtual int linuxdoc(Buffer const &, std::ostream &,
- OutputParams const &) const;
- ///
- virtual int docbook(Buffer const &, std::ostream &,
+ virtual int docbook(Buffer const &, odocstream &,
OutputParams const &) const;
/// Update needed features for this inset.
///
void setParams(InsetExternalParams const &, Buffer const &);
///
- void addPreview(lyx::graphics::PreviewLoader &) const;
+ void addPreview(graphics::PreviewLoader &) const;
///
void edit(LCursor & cur, bool left);
+ ///
+ bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
protected:
InsetExternal(InsetExternal const &);
};
-#include "mailinset.h"
-
class InsetExternalMailer : public MailInset {
public:
///
InsetExternal & inset_;
};
+} // namespace lyx
+
#endif