#include "support/LOstream.h"
+
using std::ostream;
+using std::min;
+using std::endl;
+
using lyx::pos_type;
token_found = true;
} else {
lyxerr << "InsetERT::Read: Missing 'status'-tag!"
- << std::endl;
+ << endl;
// take countermeasures
lex.pushToken(token);
}
{
string st;
- switch(status_) {
+ switch (status_) {
case Open:
st = "Open";
break;
case Paragraph::META_INSET:
case Paragraph::META_HFILL:
lyxerr << "Element is not allowed in insertERT"
- << std::endl;
+ << endl;
case Paragraph::META_NEWLINE:
os << "\n\\newline \n";
break;
}
-int InsetERT::latex(Buffer const *, std::ostream & os, bool /*fragile*/,
+int InsetERT::latex(Buffer const *, ostream & os, bool /*fragile*/,
bool /*free_spc*/) const
{
Paragraph * par = inset.paragraph();
int InsetERT::ascii(Buffer const *,
- std::ostream &, int /*linelen*/) const
+ ostream &, int /*linelen*/) const
{
return 0;
}
-int InsetERT::linuxdoc(Buffer const *, std::ostream & os) const
+int InsetERT::linuxdoc(Buffer const *, ostream & os) const
{
Paragraph * par = inset.paragraph();
int lines = 0;
}
-int InsetERT::docbook(Buffer const *, std::ostream & os) const
+int InsetERT::docbook(Buffer const *, ostream & os) const
{
Paragraph * par = inset.paragraph();
int lines = 0;
set_latex_font(bv);
}
- switch(action) {
+ switch (action) {
case LFUN_LAYOUT:
bv->owner()->setLayout(inset.paragraph()->getLayout());
break;
default:
result = InsetCollapsable::localDispatch(bv, action, arg);
}
- switch(action) {
+ switch (action) {
case LFUN_BREAKPARAGRAPH:
case LFUN_BREAKPARAGRAPHKEEPLAYOUT:
case LFUN_BACKSPACE:
string la;
pos_type const max_length = 15;
pos_type const p_siz = inset.paragraph()->size();
- pos_type const n = std::min(max_length, p_siz);
+ pos_type const n = min(max_length, p_siz);
int i = 0;
int j = 0;
for(; i < n && j < p_siz; ++j) {
{
if (st != status_) {
status_ = st;
- switch(st) {
+ switch (st) {
case Inlined:
inset.setAutoBreakRows(false);
break;