namespace lyx {
namespace frontend {
-CheckedWidget::~CheckedWidget()
-{}
-
-
BCView::BCView(ButtonController const & p)
: parent(p)
{}
class CheckedWidget {
public:
///
- virtual ~CheckedWidget();
+ virtual ~CheckedWidget() {}
/** Returns true if the widget is in a valid state.
* Might also change the visual appearance of the widget,
public:
///
GuiBC(ButtonController const & parent,
- lyx::docstring const & cancel, lyx::docstring const & close);
+ docstring const & cancel, docstring const & close);
//@{
/** Store pointers to these widgets. The pointers are _not_
/// Enable/Disable a button
virtual void setButtonEnabled(Button * obj, bool enable) const = 0;
/// Set the Label on the button
- virtual void setButtonLabel(Button * obj, lyx::docstring const & label) const = 0;
+ virtual void setButtonLabel(Button * obj, docstring const & label) const = 0;
- lyx::docstring const cancel_label_;
- lyx::docstring const close_label_;
+ docstring const cancel_label_;
+ docstring const close_label_;
Button * okay_;
Button * apply_;
void next();
/// return date of change
- lyx::docstring const getChangeDate();
+ docstring const getChangeDate();
/// return author of change
- lyx::docstring const getChangeAuthor();
+ docstring const getChangeAuthor();
/// accept the current change
void accept();
std::string const
getTemplateFilters(std::string const & template_name) const;
///
- lyx::docstring const browse(lyx::docstring const & input_file,
- lyx::docstring const & template_name) const;
+ docstring const browse(docstring const & input_file,
+ docstring const & template_name) const;
/// Read the Bounding Box from a eps or ps-file
std::string const readBB(std::string const & file);
virtual bool isBufferDependent() const { return true; }
/// The title displayed by the dialog reflects the \c LOGTYPE
- lyx::docstring const title() const;
+ docstring const title() const;
/// put the log file into the ostream
void getContents(std::ostream & ss) const;
Movers const & movers() const { return movers_; }
/// various file pickers
- lyx::docstring const browsebind(lyx::docstring const & file) const;
- lyx::docstring const browseUI(lyx::docstring const & file) const;
- lyx::docstring const browsekbmap(lyx::docstring const & file) const;
- lyx::docstring const browsedict(lyx::docstring const & file) const;
+ docstring const browsebind(docstring const & file) const;
+ docstring const browseUI(docstring const & file) const;
+ docstring const browsekbmap(docstring const & file) const;
+ docstring const browsedict(docstring const & file) const;
/// general browse
- lyx::docstring const browse(lyx::docstring const & file,
- lyx::docstring const & title) const;
+ docstring const browse(docstring const & file,
+ docstring const & title) const;
/// browse directory
- lyx::docstring const browsedir(lyx::docstring const & path,
- lyx::docstring const & title) const;
+ docstring const browsedir(docstring const & path,
+ docstring const & title) const;
/// set a color
void setColor(LColor_color col, std::string const & hex);
virtual kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
/// Browse for a file
- lyx::docstring const browse(lyx::docstring const &) const;
+ docstring const browse(docstring const &) const;
///
PrinterParams & params() const;
private:
///
ControlRef(Dialog &);
///
- std::vector<lyx::docstring> const getLabelList(std::string const &) const;
+ std::vector<docstring> const getLabelList(std::string const &) const;
///
void gotoRef(std::string const &);
///
virtual bool isBufferDependent() const { return true; }
/// The title displayed by the dialog reflects source type.
- lyx::docstring const title() const;
+ docstring const title() const;
/** get the source code of selected paragraphs, or the whole document
\param fullSource get full source code
*/
- lyx::docstring const updateContent(bool fullSource);
+ docstring const updateContent(bool fullSource);
};
} // namespace frontend
#include "FuncStatus.h"
#include "lyxfunc.h"
-using lyx::docstring;
using std::string;
{}
-Dialog::~Dialog()
-{}
-
-
void Dialog::ApplyButton()
{
apply();
bool Dialog::Controller::canApply() const
{
FuncRequest const fr(getLfun(), dialog().name());
- FuncStatus const fs(lyx::getStatus(fr));
+ FuncStatus const fs(getStatus(fr));
return fs.enabled();
}
/// \param name is the identifier given to the dialog by its parent
/// container.
Dialog(LyXView & lv, std::string const & name);
- ~Dialog();
/** The Dialog's name is the means by which a dialog identifies
* itself to the kernel.
/** \param parent Dialog owning this Controller.
* \param title is the dialog title displayed by the WM.
*/
- View(Dialog & parent, lyx::docstring title);
+ View(Dialog & parent, docstring title);
virtual ~View() {}
/** \name Generic View
virtual void partialUpdate(int id);
/// sets the title of the dialog (window caption)
- void setTitle(lyx::docstring const &);
+ void setTitle(docstring const &);
/// gets the title of the dialog (window caption)
- lyx::docstring const & getTitle() const;
+ docstring const & getTitle() const;
/** \name View Access
* Enable the derived classes to access the other parts of the whole.
private:
Dialog & p_;
- lyx::docstring title_;
+ docstring title_;
};
} // namespace frontend