Commit Graph

33232 Commits

Author SHA1 Message Date
55c832d86e fdo#77600 RTF export: always close URL's before the end of run
In case the URL text has multiple portions, then MSWordExportBase
generates multiple URL's anyway, and this helps to avoid loosing some
direct formatting of the remaining portions of the paragraph.

Change-Id: Ifd72741de610ce69b9ae0978aa8f9a532a3aeed2
2014-04-22 15:08:48 +02:00
5c6b74f244 Keep MSVC happy
Change-Id: I29f17634de46febbd50331af20a726b394c0087d
2014-04-22 14:58:31 +02:00
a2ec06ab9a loplugin:saloverride
Change-Id: I638c6afdfbc4af7d2431e4b6c6a9324094b7a0d3
2014-04-22 14:44:13 +02:00
185c270e66 Split out the IDocumentDeviceAccess interface of SwDoc.
The interface implementation is now in the class DocumentDeviceManager and
SwDoc has a member variable of that class to which the Interface's
method calls get forwarded.
The following methods were also moved because they are only used by this
interface:
CreateVirtualDevice_, CreatePrinter_ and PrtDataChanged.

Change-Id: I0b0de6540f0c8635ce560381fb924a3d9cd50c0e
2014-04-22 14:36:25 +02:00
e2a349c19d Refactor IDocumentSettingAccess Interface of SwDoc
Change-Id: I4a7ec73d3bdf9888e50d071b593798b74780b80c
2014-04-22 14:36:25 +02:00
a30fc66dd2 remove unused hrc files
Change-Id: I7ce04c206250db40076bed699bee892bdfbf19b6
2014-04-22 13:03:19 +02:00
40064f479b clean up hrc files
and remove some unused stuff

Change-Id: Iea6177c3d2f9d0668187e66155b62688ae2ecb04
2014-04-22 13:03:17 +02:00
d286ffc3ad fix the getProperty case more thoroughly (related: fdo#77340)
Change-Id: I0cb042474c58b38a3e9a9073a262041b0ef185c7
2014-04-22 12:40:29 +02:00
255194801e fod#77122 DOCX filter: link between textboxes is not being preserved
Added support for linked textboxes for docx interoperability.

Reviewed on:
	https://gerrit.libreoffice.org/9092

Change-Id: I7db4f5a1783afff53c64908d182788b262f5e863
2014-04-22 12:09:40 +02:00
f12237c4c6 More hacking on --disable-database-connectivity
Change-Id: Iefa6b104c60464e5a0d793bd676d8ea7ff2727c1
2014-04-22 13:04:19 +03:00
7ce02fbe19 coverity#1202759 Unchecked return value
Change-Id: I5042340f7b320f5a07e9cad4a5cc8aa90646d688
2014-04-22 08:43:47 +01:00
043bbbf198 There is nothing "new" with SwNewDBMgr any more
Change-Id: Icbf3d5663a358bf31b58ab8086ffe9160c26bf8f
2014-04-22 10:06:41 +03:00
e152235827 More hacking on --disable-database-connectivity
Work in progress, still lots of undefineds when attempting to link
TiledLibreOffice.

Change-Id: I80fa330768d9f9fa9ef65e3693f1d777c0713210
2014-04-22 09:43:44 +03:00
cf8946d102 cppcheck: Iterator it used after element has been erased
Change-Id: Id0a0b026cd25f210df4bd821c2ca28edf3dee693
Reviewed-on: https://gerrit.libreoffice.org/9110
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
2014-04-22 06:42:28 +00:00
e64adf61eb I see no reason why <stdlib.h> would be needed on OS X
Change-Id: I5a4f53874db43917c7522d03f0607078194c02a1
2014-04-22 08:59:26 +03:00
b166e7af2b There is nothing "new" with SwNewDBMgr any more
Change-Id: I28c48be099ba680a5d6ea91981a1e1bfadff3f84
2014-04-22 08:07:17 +03:00
97a5ba4a71 remove comments why a file gets included
also remove some commented out code

Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-21 18:08:28 +02:00
8847724ca9 remove old comment
Change-Id: Ibf4fad9879c90a62f258c7bce13ba1ba671d13e9
2014-04-21 18:08:26 +02:00
80915b8f21 cppcheck: Prefer prefix ++/-- operators for non-primitive types
Change-Id: Ic24715d86b3f822babd236ac73c041f3a5c1d92b
2014-04-20 22:54:56 +02:00
49b981c6b2 coverity#705541 Unintentional integer overflow
Change-Id: I6fbafabe98de3b168a8f79c4c2fde4a4537f6eb1
2014-04-20 20:40:18 +01:00
b1c167b4f5 coverity#1078601 Unchecked dynamic_cast
Change-Id: If8e69fa6ec433be7bc8c8f67a6de55537f7201bf
2014-04-20 20:40:18 +01:00
45a11701ff make sure nEnd is after nBegin
Change-Id: Ic3cf41b21755c5f1e795ed3acb97ff83512b7613
2014-04-19 22:30:19 +02:00
7ea7ae1699 coverity#1202818 improper use of negative value
Change-Id: I2b5fed2f9f9d6a4aa6a8087843fa1805c2d1ffe4
2014-04-19 22:30:18 +02:00
e9f918cefc fixincludeguards.sh: sw
Change-Id: I2b0625453ddc1c4cc2fa1626efff07beda17caf6
2014-04-19 11:10:12 +02:00
4afb2a6a95 Finish removing ASCII art from sw/source/core/text
Change-Id: If845234120236f35edb57c767b5debc046e85864
Reviewed-on: https://gerrit.libreoffice.org/9101
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-19 03:00:22 +00:00
d70a358db3 cpplint: [build/include] "svx/svdoashp.hxx" already included
Change-Id: I28b1dac22a3cc4ea7b087aeed98c81ed48240c3c
2014-04-19 01:47:22 +02:00
29d5ce2d88 sfx2: Move InitInterface_Impl() out of SFX_DECL_INTERFACE too.
Change-Id: Ib737e0d1b5888986b308aa60d4140f65e4e90243
2014-04-18 22:51:06 +02:00
b731d71c67 sfx2: Move InitInterface_Impl() method out of SFX_IMPL_INTERFACE.
SFX_IMPL_INTERFACE previously looked like a function; where in fact it is
several methods defined at once, and only the last one has a body.

This is extremely confusing and hard to read; let's kill that nonsense.

Change-Id: Ia4ae22eb58b1260c9c827c894f5345693bad49e7
2014-04-18 22:51:06 +02:00
8c3ab6093a sfx2: Kill SFX_STATUSBAR_REGISTRATION macro.
Change-Id: Iff0ffdb955892117a767e1f31c1f854a93feb560
2014-04-18 22:51:06 +02:00
2df21aa91b sfx2: Kill SFX_CHILDWINDOW_CONTEXT_REGISTRATION macro.
Change-Id: Ib94cc5bc33152e53910a50cce878fb69312d0c30
2014-04-18 22:51:05 +02:00
72d8c94dfa sfx2: Kill SFX_FEATURED_CHILDWINDOW_REGISTRATION macro.
Change-Id: I9bf1c2404eeb6c59525061157e91b8777f2da540
2014-04-18 22:51:05 +02:00
f4d61eca61 sfx2: Kill SFX_CHILDWINDOW_REGISTRATION macro.
Change-Id: Icd56e0cee1ce0283e8a1cbaafc81ecca25469185
2014-04-18 22:51:04 +02:00
9f83ea4bc6 sfx2: Kill SFX_POPUPMENU_REGISTRATION macro.
Change-Id: Ie68ccbe5874ec7c7e1bb73cb2937e06bb4910cd0
2014-04-18 22:49:27 +02:00
7acb27081c sfx2: Kill SFX_OBJECTBAR_REGISTRATION macro.
Change-Id: Ic80e9bebba8c7e76a0400769a2f9d75301227194
2014-04-18 22:49:27 +02:00
4d3455e06e non-desktop: Avoid instantiation of huge amount of 'shells'.
Change-Id: Ic179924f437dd9197a0839f23ee4ba39a8a62f34
2014-04-18 14:22:54 +02:00
d7aef2407a Add silly workaround for weird Clang (Xcode 5.1.1) problem with -Oz
Change-Id: I4fc5997504d3fb847518317abd5bf80fda4467d5
2014-04-18 15:08:28 +03:00
71e71d4b5a coverity#1202830 Out-of-bounds access
Change-Id: I25edea176b69c1c1f87bdbff790a39298a813660
2014-04-18 12:21:43 +01:00
b061dbd76b coverity#704523 Division or modulo by zero
and coverity#704522

Change-Id: Ieccd4c4e16a14ea68f8b4879232924a1d05e29ea
2014-04-18 12:21:43 +01:00
a74f0cd6a7 Simplify the AttributeOutputBase::OutputFlyFrame method.
Change-Id: Iac3b1b627728d5268ce7633904af9113e3127be2
Reviewed-on: https://gerrit.libreoffice.org/9006
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-18 10:01:50 +00:00
bfefe114e1 Rewrite getHash to reduce code duplication & improve maintainability.
Instead of each case block repeating the same operations, we build
an intermediate vector of entries to process.

Change-Id: Id111d7938a7802f6f016c2a0d1be0cb062a32110
Reviewed-on: https://gerrit.libreoffice.org/8912
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-18 09:48:36 +00:00
d1b2a6f637 Thanks Badaa and Jiayanmin but we don't use in-line commit comments
Change-Id: Iff5f70602e8451ea2b8432a58804bb38156d6b46
2014-04-18 12:25:48 +03:00
23f15c5d48 Don't inherit from std::vector
Change-Id: I9a37097d2d1e6d0728e2d465d0aa9355583dbdda
2014-04-18 12:25:48 +03:00
d8f8c8aa45 Begin removing ASCII art and useless comments from sw
Change-Id: Ic367b2ebca1a766c830ccd44a84274d86be4f080
Reviewed-on: https://gerrit.libreoffice.org/9090
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-18 09:22:37 +00:00
a7f68538f5 fdo#74150:Numbered list getting display after RT -table-within-table-1.docx
Description:
For pStyle = 'NumberedList1', iLvl and numId was not preserved.
These tags needs to be preserved under numPr in document.xml
These tags are preserved  now.

Conflicts:

	sw/qa/extras/ooxmlexport/ooxmlexport.cxx

Change-Id: Ib6734c9ae55bd72d4fbc0f6d6cae85764ac1a244
Reviewed-on: https://gerrit.libreoffice.org/7767
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-04-18 09:15:11 +00:00
1de199cdcb fix higher debug level build
Change-Id: I3b5ba865f43a93b3a293c1dbe3a50e6fbd36adea
2014-04-18 09:47:56 +01:00
17196e613b OUString: constify and remove a temporary
Change-Id: Iac24bd0de87dd97e752760ee54f40433bda1db41
2014-04-18 07:36:53 +02:00
eb011eea8b Use SAL_N_ELEMENTS() for array size
Change-Id: Ifcdeb47b5481ca6c16cd5eb6eb35858e7b2261c5
2014-04-18 07:36:52 +02:00
6618a52c1b Use more proper integer types and constify
Change-Id: Ia1da4606c9c159741d5bb5f0e85750737ad7486d
2014-04-18 07:36:51 +02:00
1decd1ef25 OUString: constify, remove temporaries and concatenated appends
Change-Id: I7333d32a437a75a3fe9728591217258a2fa6c5e3
2014-04-18 07:36:51 +02:00
a6f8de662e sal_uInt16 to int
Change-Id: I8a27d7fc2cbdb3093e7955b80642675dc9b8ab55
2014-04-18 07:36:51 +02:00