// this can't be done before because it needs the Languages object
//initEncodings();
- int view_id = gui().newView(width, height);
+ int view_id = gui().newView();
LyXView & view = gui().view(view_id);
pimpl_->lyxfunc_.reset(new LyXFunc(&view));
virtual ~Gui() {}
///
- virtual int newView(unsigned int width, unsigned int height) = 0;
+ virtual int newView() = 0;
///
virtual LyXView & view(int id) = 0;
///
namespace lyx {
namespace frontend {
-int GuiImplementation::newView(unsigned int /*w*/, unsigned int /*h*/)
+int GuiImplementation::newView()
{
view_.reset(new GView);
return 0;
{
}
- int newView(unsigned int w, unsigned int h);
+ int newView();
LyXView & view(int /*id*/)
{
{
}
- int newView(unsigned int /*w*/, unsigned int /*h*/)
+ int newView()
{
view_.reset(new FView);
return 0;
}
-int GuiImplementation::newView(unsigned int /*w*/, unsigned int /*h*/)
+int GuiImplementation::newView()
{
size_t const id = max_view_id_;
++max_view_id_;
GuiImplementation();
virtual ~GuiImplementation() {}
- int newView(unsigned int width, unsigned int height);
+ int newView();
LyXView& view(int id);
void destroyView(int id);
int newWorkArea(unsigned int width, unsigned int height, int view_id);
- int newWorkArea(int w, int h);
WorkArea& workArea(int id);
void destroyWorkArea(int id);