mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
add some assertions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15330 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8623a61193
commit
3cb466603c
@ -160,30 +160,35 @@ void dispatch(FuncRequest const & action)
|
|||||||
|
|
||||||
LyXFunc & theLyXFunc()
|
LyXFunc & theLyXFunc()
|
||||||
{
|
{
|
||||||
|
BOOST_ASSERT(theApp);
|
||||||
return theApp->lyxFunc();
|
return theApp->lyxFunc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
lyx::frontend::FontLoader & theFontLoader()
|
lyx::frontend::FontLoader & theFontLoader()
|
||||||
{
|
{
|
||||||
|
BOOST_ASSERT(theApp);
|
||||||
return theApp->fontLoader();
|
return theApp->fontLoader();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
lyx::frontend::FontMetrics const & theFontMetrics(LyXFont const & f)
|
lyx::frontend::FontMetrics const & theFontMetrics(LyXFont const & f)
|
||||||
{
|
{
|
||||||
|
BOOST_ASSERT(theApp);
|
||||||
return theApp->fontLoader().metrics(f);
|
return theApp->fontLoader().metrics(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
lyx::frontend::Clipboard & theClipboard()
|
lyx::frontend::Clipboard & theClipboard()
|
||||||
{
|
{
|
||||||
|
BOOST_ASSERT(theApp);
|
||||||
return theApp->clipboard();
|
return theApp->clipboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
lyx::frontend::Selection & theSelection()
|
lyx::frontend::Selection & theSelection()
|
||||||
{
|
{
|
||||||
|
BOOST_ASSERT(theApp);
|
||||||
return theApp->selection();
|
return theApp->selection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user