#include "output_xhtml.h"
#include "Text.h"
#include "TextClass.h"
+#include "TocBackend.h"
#include "frontends/Application.h"
#include "frontends/Painter.h"
<< " name: " << iname);
s << "LyX Code: " << lyxCode() << " name: " << from_ascii(iname);
LATTEST(false);
- throw ExceptionMessage(BufferException,
+ throw ExceptionMessage(BufferException,
from_ascii("Inset::buffer_ member not initialized!"), s.str());
}
return *buffer_;
bool Inset::isBufferValid() const
{
- return buffer_
+ return buffer_
&& (isBufferLoaded() || buffer_->isClone());
}
}
-bool Inset::isFreeSpacing() const
+bool Inset::isFreeSpacing() const
{
return getLayout().isFreeSpacing();
}
}
-string insetName(InsetCode c)
+string insetName(InsetCode c)
{
build_translator();
return insetnames[c].name;
}
-docstring insetDisplayName(InsetCode c)
+docstring insetDisplayName(InsetCode c)
{
build_translator();
return insetnames[c].display_name;
{
if (buffer_ == 0) {
lyxerr << "Unassigned buffer_ member in Inset::dispatch()" << std::endl;
- lyxerr << "LyX Code: " << lyxCode() << " name: "
+ lyxerr << "LyX Code: " << lyxCode() << " name: "
<< insetName(lyxCode()) << std::endl;
} else if (cur.buffer() != buffer_)
lyxerr << "cur.buffer() != buffer_ in Inset::dispatch()" << std::endl;
}
case LFUN_IN_MATHMACROTEMPLATE:
- // By default we're not in a MathMacroTemplate inset
+ // By default we're not in a InsetMathMacroTemplate inset
flag.setEnabled(false);
return true;
}
-void Inset::setDimCache(MetricsInfo const & mi, Dimension const & dim) const
-{
- mi.base.bv->coordCache().insets().add(this, dim);
-}
-
-
Buffer const * Inset::updateFrontend() const
{
//FIXME (Abdel 03/12/10): see bugs #6814 and #6949
}
-docstring Inset::completionPrefix(Cursor const &) const
+docstring Inset::completionPrefix(Cursor const &) const
{
return docstring();
}