#include "Buffer.h"
#include "buffer_funcs.h"
#include "BufferParams.h"
-#include "OutputParams.h"
#include "Counters.h"
#include "debug.h"
+#include "Layout.h"
+#include "OutputParams.h"
#include "Paragraph.h"
#include "paragraph_funcs.h"
#include "ParagraphList.h"
#include "ParagraphParameters.h"
#include "sgml.h"
-#include "insets/InsetCommand.h"
-
#include "support/lstrings.h"
#include "support/lyxlib.h"
#include "support/convert.h"
ParagraphList::const_iterator const & par,
ParagraphList::const_iterator const & pend)
{
- LyXLayout_ptr const & bstyle = par->layout();
+ LayoutPtr const & bstyle = par->layout();
ParagraphList::const_iterator p = boost::next(par);
for ( ; p != pend; ++p) {
- LyXLayout_ptr const & style = p->layout();
+ LayoutPtr const & style = p->layout();
if (style->latextype == LATEX_COMMAND
&& style->commanddepth <= bstyle->commanddepth)
return p;
ParagraphList::const_iterator const & par,
ParagraphList::const_iterator const & pend)
{
- LyXLayout_ptr const & bstyle = par->layout();
+ LayoutPtr const & bstyle = par->layout();
ParagraphList::const_iterator p = boost::next(par);
for (; p != pend; ++p) {
- LyXLayout_ptr const & style = p->layout();
+ LayoutPtr const & style = p->layout();
if (style->latextype == LATEX_COMMAND)
return p;
ParagraphList::const_iterator const & pbegin,
ParagraphList::const_iterator const & pend)
{
- LyXLayout_ptr const & defaultstyle =
- buf.params().getLyXTextClass().defaultLayout();
+ LayoutPtr const & defaultstyle =
+ buf.params().getTextClass().defaultLayout();
for (ParagraphList::const_iterator par = pbegin; par != pend; ++par) {
if (par != pbegin)
os << '\n';
ParagraphList::const_iterator const & pend) {
ParagraphList::const_iterator par = pbegin;
- LyXLayout_ptr const & defaultstyle = buf.params().getLyXTextClass().defaultLayout();
- LyXLayout_ptr const & bstyle = par->layout();
+ LayoutPtr const & defaultstyle = buf.params().getTextClass().defaultLayout();
+ LayoutPtr const & bstyle = par->layout();
string item_tag;
// Opening outter tag
os << "<![CDATA[";
while (par != pend) {
- LyXLayout_ptr const & style = par->layout();
+ LayoutPtr const & style = par->layout();
ParagraphList::const_iterator send;
string id = par->getID(buf, runparams);
string wrapper = "";
ParagraphList::const_iterator const & pend)
{
ParagraphList::const_iterator par = pbegin;
- LyXLayout_ptr const & bstyle = par->layout();
+ LayoutPtr const & bstyle = par->layout();
//Open outter tag
sgml::openTag(buf, os, runparams, *pbegin);
++par;
while (par != pend) {
- LyXLayout_ptr const & style = par->layout();
+ LayoutPtr const & style = par->layout();
ParagraphList::const_iterator send;
switch (style->latextype) {
const_cast<OutputParams&>(runparams).par_begin = 0;
const_cast<OutputParams&>(runparams).par_end = 0;
}
-
+
while (par != pend) {
- LyXLayout_ptr const & style = par->layout();
+ LayoutPtr const & style = par->layout();
ParagraphList::const_iterator lastpar = par;
ParagraphList::const_iterator send;