*
* LyX, The Document Processor
*
- * Copyright (C) 1997 LyX Team (this file was created this year)
+ * Copyright 1997-2000 The LyX Team.
*
* ====================================================== */
/** The url inset
*/
-class InsetUrl: public InsetCommand {
+class InsetUrl : public InsetCommand {
public:
///
enum Url_Flags {
};
///
- InsetUrl(): InsetCommand("url"), fd_form_url(0) {
+ InsetUrl() : InsetCommand("url"), fd_form_url(0) {
flag = InsetUrl::URL;
}
///
+ explicit
InsetUrl(string const &);
///
+ explicit
InsetUrl(InsetCommand const &);
///
InsetUrl(string const &, string const &, string const &);
///
~InsetUrl();
///
- Inset * Clone() { return new InsetUrl(getCommand()); }
+ Inset * Clone() const { return new InsetUrl(getCommand()); }
///
Inset::Code LyxCode() const { return Inset::URL_CODE; }
///
void Validate(LaTeXFeatures &) const;
///
- void Edit(int, int);
+ void Edit(BufferView *, int, int, unsigned int);
///
- unsigned char Editable() const {
- return 1;
+ EDITABLE Editable() const {
+ return IS_EDITABLE;
}
///
- char const * EditMessage() {return "Opened Url";}
+ char const * EditMessage() const;
///
- bool Display() const { return false; }
+ bool display() const { return false; }
///
string getScreenLabel() const;
///
///
void gotoLabel();
///
- int Latex(FILE * file, signed char fragile);
+ int Latex(Buffer const *, std::ostream &,
+ bool fragile, bool free_spc) const;
///
- int Latex(string & file, signed char fragile);
+ int Ascii(Buffer const *, std::ostream &) const;
///
- int Linuxdoc(string & file);
+ int Linuxdoc(Buffer const *, std::ostream &) const;
///
- int DocBook(string & file);
+ int DocBook(Buffer const *, std::ostream &) const;
///
static void CloseUrlCB(FL_OBJECT *, long data);
private:
+ ///
+ struct Holder {
+ InsetUrl * inset;
+ BufferView * view;
+ };
+ ///
+ Holder holder;
+
///
Url_Flags flag;
///