PasteReturnValue
pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
- DocumentClassConstPtr oldDocClass, cap::BranchAction branchAction,
+ DocumentClassConstPtr const & oldDocClass, cap::BranchAction branchAction,
ErrorList & errorlist)
{
Buffer const & buffer = *cur.buffer();
}
// set the paragraphs to plain layout if necessary
- DocumentClassConstPtr newDocClass = buffer.params().documentClassPtr();
+ DocumentClassConstPtr const & newDocClass = buffer.params().documentClassPtr();
Layout const & plainLayout = newDocClass->plainLayout();
Layout const & defaultLayout = newDocClass->defaultLayout();
if (cur.inset().usePlainLayout()) {
void copySelectionHelper(Buffer const & buf, Text const & text,
pit_type startpit, pit_type endpit,
- int start, int end, DocumentClassConstPtr dc, CutStack & cutstack)
+ int start, int end, DocumentClassConstPtr const & dc, CutStack & cutstack)
{
ParagraphList const & pars = text.paragraphs();
void pasteParagraphList(Cursor & cur, ParagraphList const & parlist,
- DocumentClassConstPtr docclass, AuthorList const & authors,
+ DocumentClassConstPtr const & docclass, AuthorList const & authors,
ErrorList & errorList,
cap::BranchAction branchAction)
{
// Copy authors to the params. We need those pointers.
for (Author const & a : authors)
cur.buffer()->params().authors().record(a);
-
+
if (cur.inTexted()) {
Text * text = cur.text();
LBUFERR(text);
/// Paste the paragraph list \p parlist at the position given by \p cur.
/// Does not handle undo. Does only work in text, not mathed.
void pasteParagraphList(Cursor & cur, ParagraphList const & parlist,
- DocumentClassConstPtr textclass, AuthorList const & authors,
+ DocumentClassConstPtr const & textclass, AuthorList const & authors,
ErrorList & errorList,
BranchAction branchAction = BRANCH_ASK);