Commit Graph

30 Commits

Author SHA1 Message Date
Caolán McNamara
d74f5f8633 coverity#1270937 Unchecked dynamic_cast
Change-Id: Ibc6e54bf7f907ae1c500be5c67995419c91aa089
2015-02-19 15:55:20 +00:00
Michael Stahl
5a1fe97d70 sw: test case for search-and-replace bug fixed by commit ...
... b60ce8465c

Change-Id: Iba1a059b3aeb5b2266398d80e6995f98fd580f14
2015-02-16 22:32:26 +01:00
Stephan Bergmann
93488dd984 loplugin:unreffun
Change-Id: Id56bc94e95e59f9bfe1dca02ff1f5e16844de45a
2015-02-13 15:50:22 +01:00
David Tardon
9d9e4b9f7d disable control shape grouping test for now
Change-Id: I29ca828a2049a72e2238986892c172e7c135b44b
2015-02-13 12:22:42 +01:00
Lionel Elie Mamane
7474a3e4f0 correct assertion message
Change-Id: I934ef3cbe67bba7d7439e464f71b9fd4a1da4e50
2015-02-13 01:44:29 +01:00
Lionel Elie Mamane
3c93b74425 add unittest for grouped control shapes
they should keep their control models

Change-Id: Iaa27cd8a9bc3a1165db665e0ad172da622e00c6b
2015-02-13 01:44:28 +01:00
Michael Stahl
370febbf19 tdf#75996: sw: correct bookmark positions when deleting text
The problem is that SwUndoDelete will move the fully selected nodes to
the UndoNodes but it leaves bookmarks with their SwIndex pointing to the
deleted nodes.  The SwNodeIndex are corrected by SwNodes::_MoveNodes()
so they point to a different node than the SwIndex.

This only happens if only one position of the bookmark is inside the
deletion range; if both are, the bookmark will be deleted by
SwUndoSaveCntnt::DelCntntIndex().

Also joining the 2 start/end nodes of the selection will accidentally
correct the bookmarks but only if it happens to delete the end node.
(and apparently there is also a DeleteRange method that doesn't join)

Change-Id: I91ec362bb833328f8d681fd9458cb915c4efb267
2015-01-29 21:48:15 +01:00
Valentin Kettner
5494954b26 Refactored IDocumentLayoutAccess out of SwDoc.
Into the new class DocumentLayoutManager.

Change-Id: I02d0cfcc63633d0bdab380508b2ef563187fd269
2014-08-12 23:26:38 +02:00
Stephan Bergmann
887b3a3562 loplugin:staticcall
Change-Id: I26e1e0f66dad5ed4e8351fc7509449b312559166
2014-06-13 17:54:35 +02:00
Tor Lillqvist
73f65ac3ef WaE: unused variable 'aFileNameBase'
Change-Id: I26cf27c7edc51d0a28e228c56465c3ec2ad7d35e
2014-05-22 16:12:09 +03:00
Michael Stahl
b01b171fbf sw: why the heck is that #ifdef'd out?
Change-Id: I213ad0f0ab853aec5cb523474218dfad2c44d11b
2014-05-22 14:21:29 +02:00
Michael Stahl
5246fa2624 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 af34774d26 )

Change-Id: I4701401f35171139fc2fe8d225d13d4e533091a0
2014-05-22 13:12:55 +02:00
Stephan Bergmann
1f742c520d Properly #ifdef some per-platform test code
Change-Id: I286fb35e223f205ecc649aa388471ef1b0823d86
2014-04-15 23:29:14 +02:00
Stephan Bergmann
0cc8a2bb7e Remove dead code
Change-Id: I6034174b2273def43d176c3f463c1161757c8f70
2014-04-15 16:10:54 +02:00
Stephan Bergmann
8f6c55a839 Replace SV_DECL/IMPL_REF macros with SvRef template
Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
2014-04-07 12:38:27 +02:00
Stephan Bergmann
567ef6d578 Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
Noel Grandin
2ac31b06ae Unnecessary use of OUString constructor inside OUStringBuffer constructor
Convert code like:
    OUStringBuffer sVal(OUString("0x"));
to:
    OUStringBuffer sVal("0x");

Change-Id: Idc5a3f6a8bf1dc33f93c2b488f866c8ea58d582a
2013-12-17 11:49:05 +02:00
Noel Grandin
d08ef4d265 random OUString to String conversions
Change-Id: I9cfb8e7183b9cce7c690f3a43a64b61a2aa8c754
2013-10-18 09:59:31 +02:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Chr. Rossmanith
098877d6f9 Remove RTL_CONSTASCII_(U)STRINGPARAM in sw
Change-Id: I704628eabdddb70530b6a8a1160c20724332c7e5
2013-03-19 08:36:25 +01:00
Kohei Yoshida
7d3ddc2c6c Pass DocumentService to the loader during macro tests.
And disable user interaction during type detection, since that would
cause the test to fail.

With this change, 'make check' works once again.

Change-Id: I2f45a2e962e45ee64f7984e794cff814fbfe6dab
2013-02-05 14:40:58 -05:00
Noel Grandin
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
Michael Stahl
01cd24df1e fdo#55289: fix crash in SwXShape::setPropertyValue:
In the libreoffice-3-6 branch the docx import crashes here when setting
the anchor position of a shape, because the previous setting of the
AnchorType was not done properly: the position of the anchor in the
SwFmt did not match the actual position of the text attribute, so we get
these assertions: "Missing FlyInCnt-Hint." and crash.

This cannot be reproduced with the docx import on master, because on
master a different intermediate AnchorType is set, and transitioning
from that happens not to cause the crash.  But it can be reproduced with
a unit test.

The regression was introduced in libreoffice-3-6 with
backport commit bbbb10a0774b9da546557632cd09c4f6958f8939.

Change-Id: I394643e11862543177ba57958a26cd8ce06dc09c
2012-12-07 12:40:14 +01:00
Caolán McNamara
c17f51c74c The additional methods of SO2_*_REF over SV_*_REF are now unused
so they can now be replaced by SV_*_REF now

Change-Id: I2207d6582cab5f41851064f3d0c773e9421c0078
2012-11-14 10:11:32 +00:00
Szabolcs Dezsi
e4fb171d3a Replaced a few equal calls with == 2012-04-08 19:24:00 +02:00
Caolán McNamara
7c5a11df60 normalize Red Hat, Inc. 2011-12-06 21:40:20 +00:00
Markus Mohrhard
5881881e59 make sw's macros_test use the new base class 2011-11-29 10:44:45 +01:00
Markus Mohrhard
fe8c3c69fd we don't need to inherit from FiltersTest here 2011-11-15 03:35:08 +01:00
Markus Mohrhard
cb7c50c1a0 move macros_test to sw
the macros_test does not execute a useful macro at the moment
2011-11-14 23:50:56 +01:00