2002-08-15 17:48:53 +00:00
|
|
|
/**
|
2002-09-26 08:57:43 +00:00
|
|
|
* \file xforms/Dialogs2.C
|
2002-08-15 17:48:53 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-08-15 17:48:53 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Allan Rae
|
2002-12-01 22:59:25 +00:00
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-08-15 17:48:53 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
void Dialogs::showMergeChanges()
|
|
|
|
{
|
|
|
|
pimpl_->changes.controller().show();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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-11-22 10:47:56 +00:00
|
|
|
pimpl_->document.controller().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()
|
|
|
|
{
|
2003-01-31 13:50:21 +00:00
|
|
|
pimpl_->index.controller().createInset("index");
|
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()
|
|
|
|
{
|
2002-11-25 18:58:15 +00:00
|
|
|
pimpl_->mathpanel.controller().show();
|
2002-08-16 20:07:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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()
|
|
|
|
{
|
2002-11-15 02:44:20 +00:00
|
|
|
pimpl_->preferences.controller().show();
|
2002-08-16 20:07:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
2002-11-15 02:44:20 +00:00
|
|
|
pimpl_->tabular.controller().showInset(it);
|
2002-08-16 20:07:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::updateTabular(InsetTabular * it)
|
|
|
|
{
|
2002-11-15 02:44:20 +00:00
|
|
|
pimpl_->tabular.controller().updateInset(it);
|
2002-08-16 20:07:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|
2002-09-10 10:18:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
void Dialogs::showWrap(InsetWrap * iw)
|
|
|
|
{
|
|
|
|
pimpl_->wrap.controller().showInset(iw);
|
|
|
|
}
|