if (label.empty())
label = frontStrip(strip(askForText(_("Enter new label to insert:"))));
if (!label.empty()) {
- InsetLabel *new_inset = new InsetLabel;
+ InsetLabel * new_inset = new InsetLabel;
new_inset->setContents(label);
current_view->buffer()->insertInset(new_inset);
}
#endif
BufferParams::PAPER_SIZE ps = static_cast<BufferParams::PAPER_SIZE>(current_view->buffer()->params.papersize);
switch (ps) {
- case BufferParams::PAPER_A4PAPER: add_flags = "-p a4"; break;
- case BufferParams::PAPER_USLETTER: add_flags = "-p letter"; break;
+ case BufferParams::PAPER_A4PAPER:
+ add_flags = "-p a4";
+ break;
+ case BufferParams::PAPER_USLETTER:
+ add_flags = "-p letter";
+ break;
default: /* nothing to be done yet ;-) */ break;
}
}
void NoteCB()
{
- InsetInfo *new_inset = new InsetInfo();
+ InsetInfo * new_inset = new InsetInfo();
current_view->buffer()->insertInset(new_inset);
new_inset->Edit(0, 0);
- //current_view->buffer()->update(-1);
}
if (current_view->available()) {
current_view->getScreen()->HideCursor();
current_view->buffer()->update(-2);
- InsetSpecialChar *new_inset =
+ InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::HYPHENATION);
current_view->buffer()->insertInset(new_inset);
- //current_view->buffer()->update(-1);
}
}
if (current_view->available()) {
current_view->getScreen()->HideCursor();
current_view->buffer()->update(-2);
- InsetSpecialChar *new_inset =
+ InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::LDOTS);
current_view->buffer()->insertInset(new_inset);
}
if (current_view->available()) {
current_view->getScreen()->HideCursor();
current_view->buffer()->update(-2);
- InsetSpecialChar *new_inset =
+ InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::END_OF_SENTENCE);
current_view->buffer()->insertInset(new_inset);
}
if (current_view->available()) {
current_view->getScreen()->HideCursor();
current_view->buffer()->update(-2);
- InsetSpecialChar *new_inset =
+ InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::MENU_SEPARATOR);
current_view->buffer()->insertInset(new_inset);
- //current_view->buffer()->update(-1);
}
}
void InsertCorrectQuote()
{
- Buffer *cbuffer = current_view->buffer();
+ Buffer * cbuffer = current_view->buffer();
char c;
if (cbuffer->text->cursor.pos )
buffer->update(-1);
- Inset *new_inset = 0;
-
- new_inset = new InsetFig(100, 100, buffer);
+ Inset * new_inset = new InsetFig(100, 100, buffer);
buffer->insertInset(new_inset);
new_inset->Edit(0, 0);
buffer->update(0);
else
t += "{" + s + "}";
- Inset *new_inset =
+ Inset * new_inset =
new InsetRef(t, current_view->buffer());
current_view->buffer()->insertInset(new_inset);
}
}
-int UnlockInset(UpdatableInset* inset)
+int UnlockInset(UpdatableInset * inset)
{
if (inset &&
current_view->buffer()->the_locking_inset == inset){
}
-void PutInsetIntoInsetUpdateList(Inset* inset)
+void PutInsetIntoInsetUpdateList(Inset * inset)
{
if (inset) {
- InsetUpdateStruct* tmp = new InsetUpdateStruct();
+ InsetUpdateStruct * tmp = new InsetUpdateStruct();
tmp->inset = inset;
tmp->next = InsetUpdateList;
InsetUpdateList = tmp;
void UpdateInsetUpdateList()
{
- InsetUpdateStruct *tmp = InsetUpdateList;
+ InsetUpdateStruct * tmp = InsetUpdateList;
while (tmp) {
UpdateInset(tmp->inset, false); // "false" because no document change
tmp = tmp->next;