fdo#68983: Revert "remove #if 0 block (from ...

... af34774d260a68fc02cd78ba90dd8d4afaf1a2a4)"

This reverts commit cbd1a89676f39135ed2e9c47d20475b2053289b9.

Conflicts:
	basic/source/uno/namecont.cxx

Change-Id: I665f2e875c6b339ad718ca53fd0e54328efaeaff
(cherry picked from commit 0e21019e0d61911b4c0ddef07691e9f9f6384cba)
Revert "fdo#67685 open xSourceLibrariesStor only when needed"

This reverts commit fc9080a0c60f263d00eb71111fcda72b3c0a2ebb.

This bug was apparently introduced by
af34774d260a68fc02cd78ba90dd8d4afaf1a2a4, which will be reverted
in the next commit.

Change-Id: I81ccb5bf9cc7e29fbf1e66d02f38268ee1fd1d0c
(cherry picked from commit 5ca4b9d51046b9b6a36b91c9abd0cc1e7c04b480)
fdo#68983: basic: if the library is not loaded fully, copy source storage

Also fixes fdo#42899 and fdo#67685 in a different way; the previous fix
for fdo#42899 caused the problem with password-protected libraries for
which the password is not known: only the binary representation of the
BAISC module was stored, not the source code; by simply copying from the
source storage the problem can be avoided.

It would be possible to ask for the password when storing, but that
would not work when non-interactive (called via API).

An alternative fix would be to pass in the
SfxObjectShell::IsSetModifyEnabled() flag and actually reset the BASIC
library's modify flag correctly, but that requires adding a
parameter to XStorageBasedLibraryContainer::storeLibrariesToStorage().

(regression from af34774d260a68fc02cd78ba90dd8d4afaf1a2a4 )

Change-Id: I4701401f35171139fc2fe8d225d13d4e533091a0
(cherry picked from commit 5246fa262450f686674850c53df666422f441c86)
sw: use xsec_xmlsec.windows on WNT

Change-Id: I9cb9bce9d30230d48daf2f1deccaf52014b79296
(cherry picked from commit 3e69b7bcd3e4a9cb1a29360c905e7fba96365999)
sw: why the heck is that #ifdef'd out?

Change-Id: I213ad0f0ab853aec5cb523474218dfad2c44d11b
(cherry picked from commit b01b171fbfdda4e40ef1fec696589f8981518b93)
fdo#79008 Crash: File getting crash while saving in LO

File is getting crashed while saving in LO, as it tries
to access the value of vector after erasing that value.
Code changed to access the vector value first and
then erase that value from vector.

Change-Id: I29369b7582fdbd7363d0e6fdae091a30c79a747d
Reviewed-on: https://gerrit.libreoffice.org/9433
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit ed3fd76b65b2a281effea55b8a55101a8b740aec)
jvmfwk: generalize (and fix) the do_msvcr71_magic to Oracle JRE 7

With just the Oracle JRE installed, it is not possible to load the
"jvm.dll" directly, because the required MSVC runtime DLL is not
found (unless some other software happens to install it system-wide),
as described in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7184978

There was a hack "do_msvcr71_magic" to manually load the runtime that
is bundled with Oracle JRE 6 and this generalizes that to work with the
MSVCR100.DLL that is bundled with Oracle JRE 7 as well.

An additional adaption of the virtual addresses in the file is done,
and it's a mystery whether it even worked before without that.

This issue was not user-visible before because LO releases 3.5 - 4.2
bundle the MSVCR100.DLL themselves.

Change-Id: If61565df80ff8a68472a76000ab5b10d6c78e11c
(cherry picked from commit 831c8e02ca4640ddc7fb4966c0026f99b6e6296a)
fdo#77454: fix WW8 import/export of negative image crop

The negative crop values were imported as large positive values, which
caused the image to be rendered with 1 pixel width after commit
2e5167528f7566dd9b000e50fc1610b7bf99132a.

Change-Id: I0e01b9d9a05d90e868699832085a06ba5aab7e54
(cherry picked from commit 6d431ffb682d0e64b75b6267f369822ff0b0617e)
Adapt CppUnit to our CPPUNIT_PLUGIN_EXPORT

...which mentions extern "C", so CppUnit's TestPlugInSignature must reflect
that.  It is a bit odd how CPPUNIT_PLUGIN_EXPORT needs to be passed into
CppUnit, so probably best to keep this as a local patch for now.  (Clang's
-fsanitize=undefined complained about the mismatch.)

Change-Id: Ied179a1afe82ceb04de4739c14cf8fadff31b80f
(cherry picked from commit 77ad60af119ab23a0bfadb3e5a0c4433fe97835b)
cppunit: always compile with debugging symbols on windows.

Also cleanup some makefile pieces and give better error warnings.

Change-Id: I9f20d60f26d5828f60664941946c266c7d166f32
(cherry picked from commit 02638a0865271959e7a424622088eb502721e24c)
externals: do not use "v110_xp" when building with MSVC 2012 and SDK 8.0

Change-Id: I40bc9e4c31e270f29cc145b5d2f3544cad586bf7
(cherry picked from commit 09c0a96eb3ea8d48e99ed50ae7d13d23f70a0c6c)