#include "BufferParams.h"
#include "debug.h"
-#include "LyXText.h"
+#include "Text.h"
#include "Paragraph.h"
#include "ParagraphParameters.h"
// Therefore, it should only be used for breaking and merging paragraphs
Paragraph::value_type const tmpChar = fromPar.getChar(fromPos);
- LyXFont const tmpFont = fromPar.getFontSettings(params, fromPos);
+ Font const tmpFont = fromPar.getFontSettings(params, fromPos);
Change const tmpChange = fromPar.lookupChange(fromPos);
if (tmpChar == Paragraph::META_INSET) {
- InsetBase * tmpInset = 0;
+ Inset * tmpInset = 0;
if (fromPar.getInset(fromPos)) {
// the inset is not in the paragraph any more
tmpInset = fromPar.insetlist.release(fromPos);
// without doing that we get a crash when typing <Return> at the
// end of a paragraph
- tmp->layout(bparams.getLyXTextClass().defaultLayout());
+ tmp->layout(bparams.getTextClass().defaultLayout());
// remember to set the inset_owner
tmp->setInsetOwner(par.inInset());
// Make sure that we keep the language when
// breaking paragraph.
if (tmp->empty()) {
- LyXFont changed = tmp->getFirstFontSettings(bparams);
- LyXFont old = par.getFontSettings(bparams, par.size());
+ Font changed = tmp->getFirstFontSettings(bparams);
+ Font old = par.getFontSettings(bparams, par.size());
changed.setLanguage(old.language());
tmp->setFont(0, changed);
}
if (!isempty) {
par.params().clear();
- par.layout(bparams.getLyXTextClass().defaultLayout());
+ par.layout(bparams.getTextClass().defaultLayout());
}
// layout stays the same with latex-environments
pit_type pit = p;
depth_type par_depth = pars[p].getDepth();
while (pit != pit_type(pars.size())) {
- LyXLayout_ptr const & layout = pars[pit].layout();
+ Layout_ptr const & layout = pars[pit].layout();
int const endlabeltype = layout->endlabeltype;
if (endlabeltype != END_LABEL_NO_LABEL) {
}
-LyXFont const outerFont(pit_type par_offset, ParagraphList const & pars)
+Font const outerFont(pit_type par_offset, ParagraphList const & pars)
{
depth_type par_depth = pars[par_offset].getDepth();
- LyXFont tmpfont(LyXFont::ALL_INHERIT);
+ Font tmpfont(Font::ALL_INHERIT);
// Resolve against environment font information
while (par_offset != pit_type(pars.size())
InsetList::const_iterator it = par.insetlist.begin();
InsetList::const_iterator end = par.insetlist.end();
for (; it != end ; ++it) {
- if (it->inset->lyxCode() == InsetBase::OPTARG_CODE)
+ if (it->inset->lyxCode() == Inset::OPTARG_CODE)
++num;
}
return num;