2002-08-15 17:48:53 +00:00
|
|
|
/**
|
|
|
|
* \file xforms/Dialogs.C
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Allan Rae, rae@lyx.org
|
|
|
|
* \author Angus Leeming <leeming@lyx.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "Dialogs_impl.h"
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showAboutlyx()
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->aboutlyx.controller().show();
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showBibitem(InsetCommand * ic)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->bibitem.controller().showInset(ic);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showBibtex(InsetCommand * ic)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->bibtex.controller().showInset(ic);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showCharacter()
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->character.controller().show();
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::setUserFreeFont()
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->character.controller().apply();
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showCitation(InsetCommand * ic)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->citation.controller().showInset(ic);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::createCitation(string const & s)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->citation.controller().createInset(s);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showDocument()
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->document.show();
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showError(InsetError * ie)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->error.controller().showInset(ie);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showERT(InsetERT * ie)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->ert.controller().showInset(ie);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::updateERT(InsetERT * ie)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->ert.controller().showInset(ie);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showExternal(InsetExternal * ie)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->external.controller().showInset(ie);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showFile(string const & f)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->file.controller().showFile(f);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showFloat(InsetFloat * ifl)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->floats.controller().showInset(ifl);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showForks()
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->forks.controller().show();
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showGraphics(InsetGraphics * ig)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->graphics.controller().showInset(ig);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showInclude(InsetInclude * ii)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->include.controller().showInset(ii);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showIndex(InsetCommand * ic)
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->index.controller().showInset(ic);
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::createIndex()
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->index.controller().createInset(string());
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showLogFile()
|
|
|
|
{
|
2002-08-16 20:07:39 +00:00
|
|
|
pimpl_->logfile.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showMathPanel()
|
|
|
|
{
|
|
|
|
pimpl_->mathpanel.show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showMinipage(InsetMinipage * im)
|
|
|
|
{
|
|
|
|
pimpl_->minipage.controller().showInset(im);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::updateMinipage(InsetMinipage * im)
|
|
|
|
{
|
|
|
|
pimpl_->minipage.controller().showInset(im);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showParagraph()
|
|
|
|
{
|
|
|
|
pimpl_->paragraph.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::updateParagraph()
|
|
|
|
{
|
|
|
|
pimpl_->paragraph.controller().changedParagraph();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showPreamble()
|
|
|
|
{
|
|
|
|
pimpl_->preamble.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showPreferences()
|
|
|
|
{
|
|
|
|
pimpl_->preferences.show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showPrint()
|
|
|
|
{
|
|
|
|
pimpl_->print.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showRef(InsetCommand * ic)
|
|
|
|
{
|
|
|
|
pimpl_->ref.controller().showInset(ic);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::createRef(string const & s)
|
|
|
|
{
|
|
|
|
pimpl_->ref.controller().createInset(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showSearch()
|
|
|
|
{
|
|
|
|
pimpl_->search.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showSendto()
|
|
|
|
{
|
|
|
|
pimpl_->sendto.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showSpellchecker()
|
|
|
|
{
|
|
|
|
pimpl_->spellchecker.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showTabular(InsetTabular * it)
|
|
|
|
{
|
|
|
|
pimpl_->tabular.showInset(it);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::updateTabular(InsetTabular * it)
|
|
|
|
{
|
|
|
|
pimpl_->tabular.updateInset(it);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showTabularCreate()
|
|
|
|
{
|
|
|
|
pimpl_->tabularcreate.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showTexinfo()
|
|
|
|
{
|
|
|
|
pimpl_->texinfo.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBAIKSAURUS
|
|
|
|
|
|
|
|
void Dialogs::showThesaurus(string const & s)
|
|
|
|
{
|
|
|
|
pimpl_->thesaurus.controller().showEntry(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
void Dialogs::showThesaurus(string const &)
|
|
|
|
{}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showTOC(InsetCommand * ic)
|
|
|
|
{
|
|
|
|
pimpl_->toc.controller().showInset(ic);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::createTOC(string const & s)
|
|
|
|
{
|
|
|
|
pimpl_->toc.controller().createInset(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showUrl(InsetCommand * ic)
|
|
|
|
{
|
|
|
|
pimpl_->url.controller().showInset(ic);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::createUrl(string const & s)
|
|
|
|
{
|
|
|
|
pimpl_->url.controller().createInset(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showVCLogFile()
|
|
|
|
{
|
|
|
|
pimpl_->vclogfile.controller().show();
|
2002-08-15 17:48:53 +00:00
|
|
|
}
|