Typos

Change-Id: I7c3f115520d8c6a1fba997aeedddf96c01780e7e
salplug:literaltoboolconversion

Change-Id: I94b3bea97b6b4710bd4bf4c0fe88a1518a151de5
loplugin:stringconcat

Change-Id: Ibf410eb1b8be81505b8e778aadf916a26ba39468
Clean up surrogates.hxx

Change-Id: I0eae089be1bde9db822a77bea482c10650c8a137
avmedia: sal_Bool -> bool

Change-Id: Ief9b2cc517e9c0666e656737cee9a953c676a1d9
mysqlc: sal_Bool -> bool

Change-Id: Ie479e1671b03fbb958886d4c01ecff41b2ad1d23
Revert "fdo#66145: do not check IsFirstShared() in SwPageDesc::GetLeftFmt()"

This reverts commit 4df438c9a9d5e698c47c1e85903eb81880a5e6fa.

Change-Id: I8f8d32c07f8706fad6c62fba2a9a373feed6cbed
Merge SwDoc::Paste into SwDoc::CreateCopy

Change-Id: I95686eb116e17b4da6662b4fbadcf08a0b92a6f4
Replace the whole content for copied documents

If the document is initialized in CreateCopy, it already contains
the initial empty paragraph. So we have to delete the content from
initial document, as we're going to replace the whole content with
the pasted document.

Change-Id: I33faed4de77919fb926d408e19af9c1ec3b0f7d3
Optionally paste the full document

In the mail merge case we want to paste the full document including
the SwTxtNode containing the SwFmtPageDesc node, which is always
the first node of a document.

For normal paste we want to merge the first paragraph into the
paragraph at the cursor position. This currently loses all Flys
anchored at the first paragraph.

Change-Id: I2b1ce279743f559e700b47276012ad56d74a059c
MM: fix workaround for single paragraph docs

There is already a workaround for pasting a document with a single
paragraph by appending a dummy empty paragraph to the working copy.

This patch removes the dummy paragraph from the target document.

Change-Id: I288d35264bf6f1a5f92c50d6a309e3bdd4ab5836
MM: fix lost or broken paragraph anchored objects

With the extended SwFEShell::Paste version, we can finally paste
full documents without losing the paragraph anchored Flys of the
first paragraph.

Actually one should be able to drop the InsertPageBreak and the
single paragraph delete, but my attempt resulted in problems with
page anchored Flys and somehow reintroduced the problem seen in
fdo#80395 with draw objects.

Change-Id: I370fa89f432ba4dd95c1f02605f33f04dfbaad85
Some minor MM code cleanups

Just makes the code in SwFEShell::Paste and
SwDBManager::MergeDocuments more readable.

Change-Id: Ifd78d6a44fa78eaf1f4fca63f4bbd3ee43ca129d
MM: always copy the internal document

There is really no need to create the first document via UNO
createClone(), which is also slower then the internal copy.

Actually createClone also calls createCopy, but without
initializing the document.

Change-Id: I23437b0f3ad663942a02be575b39883f9a3b8587
MM: introduce SwDoc::Append helper function

This drops all the specialized, workaround code from MM, introduced
to use the SwFEShell::Paste function.

There is still a little common codepath, therefore this adds
comments to always update both functions.

Change-Id: I704b3ef3257dd977dac95e16e25049ff8ade97ed
Append fixup

Change-Id: I84ee5290ded20803d1496daa52325c3651a9bc97
Refactor NumRule handling in CopyImpl

The bug fix for i#86492 added a lot of duplicated code. This moves
the code into their own functions and uses macros to make the
resulting code even more readable.

Change-Id: Ifa0ece26f3152f1f8d8c65173b459e8c14c5b43a
Add debug messages for sw.{createcopy,docappend}

This adds a lot of SAL_INFO messages to SwDoc::CreateCopy and
SwDoc::Append.

Change-Id: Ie924e20698bec84482fcc5496175a9e29245729e
Add debug documents to SwDBManager::MergeMailFiles

Just like the debug documents in SwDBManager::MergeDocuments.

Change-Id: I275575853c80d4e19d6df5ba9d8dc689353d7c85
MM: Use SwDoc::Append for SwFeShell::Paste

Same as the SwDBManager::MergeDocuments change.

Change-Id: I44684bce187bb949dafc35a49b0aea9b46465cda