Matteo Casalin
2dda972cb9
xub_StrLen to sal_Int32
...
Change-Id: I8ad8cade0b2cbc29a934a983c72d25f7f00af6bc
2013-11-24 14:46:57 +01:00
Matteo Casalin
188886a3dc
Avoid temporary, just return the result
...
Change-Id: I644abe042175168dab489476a41254fba6883982
2013-11-24 14:46:57 +01:00
Stephan Bergmann
1a13c2793d
-Werror,-Wunused-member-function
...
Change-Id: I67ed29e0669ab189f158aca4c6f0dd95fac3ea1a
2013-11-14 10:15:11 +01:00
Matteo Casalin
ebeff3f074
xub_StrLen to sal_Int32 in SwIndex and some related
...
Change-Id: I66735635a88844c30a7fa1c886d2c1df34008f4f
2013-11-14 09:23:19 +01:00
Noel Grandin
fa109ceba9
convert xub_StrLen to sal_Int32
...
convert various module-local functions
Change-Id: I89f3eb40b107e2617958e474ffe86bd73e01cf33
2013-11-06 08:51:23 +02:00
Miklos Vajna
ee3189489c
sw: ViewShell -> SwViewShell rename
...
It's a public class, so it should have the 'Sw' prefix.
Change-Id: I0040c1cc37ffcba7fc5f58b71c86f4a7cb0bfce4
2013-10-26 20:03:50 +02:00
Stephan Bergmann
d78b26eb9e
-Werror,-Wunused-const-variable
...
Change-Id: I32b9d2398d2d734a0d96c937b2238d8ff9a74ef7
2013-10-24 13:43:57 +02:00
Oliver-Rainer Wittmann
679faffc68
Resolves: #i120879# import "Microsoft Word TOC bookmarks" as...
...
cross reference bookmarks and suppress the import of unreferenced ones.
Review by: zhengfan
(cherry picked from commit e3a34e95823105fda68fd29a4ded22a9d52523fb)
Conflicts:
sw/source/core/crsr/crossrefbookmark.cxx
sw/source/core/inc/crossrefbookmark.hxx
sw/source/filter/inc/fltshell.hxx
sw/source/filter/ww1/fltshell.cxx
sw/source/filter/ww8/ww8par.cxx
sw/source/filter/ww8/ww8par.hxx
sw/source/filter/ww8/ww8par5.cxx
Change-Id: I5898cbd33c9a17b9517040e19ca8eda4355a1eac
also remove symbol-visibility problems in IDocumentMarkAccess.hxx
(cherry picked from commit de9ea83df087ba3f8e614a69e8b18403d54b9589)
Conflicts:
sw/inc/IDocumentMarkAccess.hxx
Change-Id: I2f51cc4412525c6e62d120df5c7fe1c223e35972
2013-10-24 09:18:32 +01:00
Philipp Riemer
a323a7df85
whitespace work in sw/source/core/doc/
...
Change-Id: I79561a63db523b8da8de72a1096e908d184a8a0b
Reviewed-on: https://gerrit.libreoffice.org/6076
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk >
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk >
2013-10-02 08:17:35 +00:00
Miklos Vajna
815c675872
sw: unify PCURCRSR / FOREACHPAM_START / FOREACHPAM_END macros
...
Change-Id: I10ab2d0ba10178ba2d37db2632349215341612f4
2013-09-21 14:26:55 +02:00
Philipp Riemer
cbcec9930c
cleanup blank lines in sw/source/core/doc
...
Change-Id: Idd4704f3056663f56fab6e56112e5c9eff55aef7
2013-08-09 22:53:07 +02:00
Philipp Riemer
c99476fcfc
deleted needless blank lines in sw/source/core/doc/
...
Change-Id: I5349ab03f7d2a4e66bf8ac5ef67382f47eb5b5d5
2013-08-09 22:44:41 +02:00
Matteo Casalin
43941d9a53
sal_Bool to bool and some cleanup
...
Change-Id: I4b20be1a3558e6b48a224e37e7f50944bb6bd237
2013-06-08 21:59:18 +02:00
Marcos Paulo de Souza
0f200cc30e
fdo#63154: Change Min/Max/Abs for std::min/max/abs
...
Now all these usages were removed from LO.
Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6
Reviewed-on: https://gerrit.libreoffice.org/3326
Reviewed-by: David Tardon <dtardon@redhat.com >
Tested-by: David Tardon <dtardon@redhat.com >
2013-04-20 11:09:54 +00:00
Michael Stahl
e348c88d3d
sw: remove usage of boost::bind for IMarks
...
Apple llvm-g++ 4.2.1 with _GLIBCXX_DEBUG won't eat boost::bind with
IMark::StartsAfter, and MSVC 2008 with _DEBUG even doesn't like
IMark::StartsBefore.
They evidently try to call the comparison operator with arguments in the
wrong order.
Change-Id: Ib11a79a459e84ac9d7046824678ad4ccdacc67d0
2013-04-12 19:12:31 +02:00
Philipp Riemer
af5526cf86
more work on comments in sw/source/core/doc
...
Change-Id: I4fbf683da081ad04dfd1b9ea830aa94c38f33d43
Signed-off-by: Miklos Vajna <vmiklos@suse.cz >
2013-04-08 10:42:33 +02: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
Michael Stahl
75b2f6b241
sw: remove CH_TXT_ATR_FORMELEMENT when CheckboxFieldmark is deleted
...
Change-Id: I5f58b558b15f7d11b75554195e10a258d027bcfc
2013-02-28 14:02:42 +01:00
Michael Stahl
5bf6797e81
fdo#61016: sw::marks::MarkManager: delay deletion of text fieldmarks
...
There is a STL assertion in deleteMarks because the ReleaseDoc call will
recursively call into deleteMark again and delete marks that are in the
vector vMarksToDelete up the stack.
Change-Id: I9139b174f8a518a551a3ca8520396202c306abcf
2013-02-28 14:02:41 +01:00
Miklos Vajna
2c9f9832fc
SwDoc: rename member variables missing their prefix
...
Change-Id: Id4683649aa9115f9075717768aa6cef4110c2ad2
2013-02-18 07:59:13 +01:00
Luboš Luňák
5f75082ef1
incorrect if/for body alignment
...
I checked history of all the questionable ones, and the itrform2.cxx
one was a genuine error.
Change-Id: Ibfcd8732ba4a66a8c038940ae10f8b27fee466c9
2012-12-20 14:09:49 +01:00
Michael Meeks
caaeb0a046
re-base on ALv2 code. Includes:
...
Patches contributed by Oliver-Rainer Wittmann
sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
apply print settings to new printing routines
http://svn.apache.org/viewvc?view=revision&revision=1172115
sw34bf06: #o12311627# use <rtl_random> methods to
create unique ids for list styles and list ids
http://svn.apache.org/viewvc?view=revision&revision=1172112
sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> -
clear list structures completely
http://svn.apache.org/viewvc?view=revision&revision=1172122
i#118572 - remove ui string and help content regarding usage of
Java Mail in Writer's Mail Merge as Java Mail is not used.
http://svn.apache.org/viewvc?view=revision&revision=1197035
Patches contributed by Mathias Bauer
cws mba34issues01: #i117718#: provide filter name in
case storage of medium does not allow to detect one
http://svn.apache.org/viewvc?view=revision&revision=1172350
cws mba34issues01: #i117721#: directly provide
parameters retrieved from SfxMedium
http://svn.apache.org/viewvc?view=revision&revision=1172353
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394707
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1396797
http://svn.apache.org/viewvc?view=revision&revision=1397315
cws mba34issues01: #i117723#: convert assertion into trace
http://svn.apache.org/viewvc?view=revision&revision=1172355
cws mba34issues01: #i117699#: keep layout alive until swdoc dies
http://svn.apache.org/viewvc?view=revision&revision=1172362
cws mba34issues01: #i117943#: missing color attributes in RTF clipboard
http://svn.apache.org/viewvc?view=revision&revision=1172363
Patch contributed by Henning Brinkmann
imported patch i#103878
http://svn.apache.org/viewvc?view=revision&revision=1172109
Patches contributed by Michael Stahl
sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes
http://svn.apache.org/viewvc?view=revision&revision=1172119
Patch contributed by imacat
Fixed the Asian language work count.
http://svn.apache.org/viewvc?view=revision&revision=1241345
Patch contributed by Pedro Giffuni
i#20878 - Add comment with BZ issue for reference.
http://svn.apache.org/viewvc?view=revision&revision=1244517
Patch contributed by Andre Fischer
Do not add targets for junit tests when junit is disabled.
http://svn.apache.org/viewvc?view=revision&revision=1241508
add writerperfect dependency.
2012-11-30 10:10:38 +00:00
Takeshi Abe
329d328727
sal_Bool to bool
...
Change-Id: Id3be1fbf289f04e175bb2fdd71754cad0c9672ce
2012-10-19 04:15:34 +09:00
Luboš Luňák
f2655f92c1
postfix operator++ -> prefix operator++
...
Change-Id: I51506a83009db838d8e12d5559c46b404e59f9b5
2012-10-15 23:33:09 +02:00
Peter Foley
f8e5a25f88
fix sw build with VC2012
...
Change-Id: I1ba38baa26de2082a21d681efff2f5881092fad7
2012-10-07 10:42:12 +02:00
Noel Grandin
ddd84d08c9
Convert SV_DECL_PTRARR_SORT_DEL(_SwRedlineTbl) to o3tl::sorted_vector
...
Change-Id: Ie7edc6b32b373619d4c0ac154da93650743049cf
2012-07-26 23:35:27 +02:00
Miklos Vajna
9c497e9ed1
SwDoc::DeleteRangeImplImpl: avoid crash on undoing comment range insert
...
Change-Id: I1e085448fb8fb1227794a5196e954d97af770218
2012-07-20 17:25:15 +02:00
Miklos Vajna
8d9991c97a
TextFieldmark::ReleaseDoc: properly remove text fieldmarks from SwDoc
...
Change-Id: I7b11cf78f106807561be77c51641796319aaf636
2012-07-20 15:20:51 +02:00
Michael Stahl
bcd8f0ce8c
docbm.cxx: MSVC wants const_iterators and complains with error C2440
...
Change-Id: I9dfc01a3405f685437a562e8330b5821864de0da
2012-07-17 17:51:26 +02:00
Noel Grandin
5a4796f78f
Convert SV_DECL_PTRARR_DEL(SwUnoCrsrTbl) to std::set
...
Change-Id: I0d79505e2d97b1f8608e6d6e72b317bfaa344b1d
2012-07-17 15:33:39 +02:00
Noel Grandin
1015cd4ff7
Convert SV_DECL_PTRARR_DEL of Sw*Fmts to std::vector
...
- I had to convert SwFrmFmts, SwSpzFrmFmts, SwCharFmts, SwSectionsFmts,
SwTextFormatColl, SwGrfFmtColl all together because of the code that wants
to work with any of them.
- Introduce a pure virtual base class SwFmtsBase, since there are a handful
of methods that want to work with any of the std::vector<Sw*Fmt> types.
- the class SwSpzFrmFmts was dropped, and the code changed to use SwFrmFmts
instead, since the 2 types are identical.
Change-Id: I8c4056b5aedd574a33666e2d649a8b849958441c
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch >
2012-06-20 16:48:03 +02:00
Thomas Arnhold
3770bbbdba
Remove superfluous empty lines on top
...
More than two lines are removed for readability.
Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-09 04:57:58 +02:00
Julien Nabet
1ea28ebcf0
Dump MarkManager::dumpFieldmarks + extractIntFromAny from vbahelper
2012-04-08 13:13:31 +02:00
Olivier Hallot
9646171562
Fix for fdo43460 Part XL getLength() to isEmpty()
...
Part XL
Modules
sw
2012-01-17 19:07:47 -02:00
Michael Stahl
c549ae0b57
sw: tweak translations
...
cb8b7a86
and 869a0f36
2011-12-09 15:18:01 +01:00
Norbert Thiebaud
dff7e08711
remove include of pch header from sw
2011-11-27 13:25:10 -06:00
Michael Stahl
9ace8bebd8
sw: enable more debug code:
...
Whole bunch of code is #if OSL_DEBUG_LEVEL > 1, reduce that to > 0 so more
assertions are active when building --enable-debug or --enable-dbgutil.
2011-11-24 00:52:07 +01:00
Michael Stahl
279a176397
sw: replace abuses of OSL_DEBUG_LEVEL with DBG_UTIL
...
OSL_DEBUG_LEVEL is set by make debug=t, which should never result in ABI
incompatible objects.
2011-11-24 00:52:00 +01:00
Philipp Weissenbacher
869a0f367c
Translate German comments
2011-11-04 09:11:19 -05:00
Takeshi Abe
a80533c4a7
fix typo in message
2011-09-28 13:46:50 +09:00
Caolán McNamara
871426533f
just silence the auto_ptr deprecations in isolation
2011-09-22 15:01:05 +01:00
Tor Lillqvist
6b457882d0
We can't #define _HAS_ITERATOR_DEBUGGING 0 in just some of the source files
...
It seems that _HAS_ITERATOR_DEBUGGING affects the layout of some
classes, which of course means horrible breakage if some of the source
files are compiled with it, the rest not.
http://msdn.microsoft.com/en-us/library/aa985939%28v=vs.80%29.aspx
http://connect.microsoft.com/VisualStudio/feedback/details/334315/has-iterator-debugging-0-causes-crash
I will just have to fix the code in this handful of source files so
that it compiles with _DEBUG defined. If I can be bothered.
2011-09-15 12:02:59 +03:00
Bjoern Michaelsen
dd482fde49
do not try to read from an iterator which we just deleted from the container
2011-09-14 18:14:46 +02:00
Bjoern Michaelsen
e26ea36825
Revert "Revert "i#118224: kill O(n^2) complexity of unique bookmark name creation""
...
This reverts commit 05a66052ae
.
2011-09-14 18:14:46 +02:00
Fridrich Štrba
05a66052ae
Revert "i#118224: kill O(n^2) complexity of unique bookmark name creation"
...
This creates multiple crashes on windows when trying to load writer document
or to save it
This reverts commit e024f61693
.
2011-09-14 16:06:46 +02:00
Christoph Lutz
e024f61693
i#118224: kill O(n^2) complexity of unique bookmark name creation
2011-09-06 19:04:00 +02:00
Tor Lillqvist
68795fe0dc
#define _HAS_ITERATOR_DEBUGGING 0 to fix --enable-dbgutil MSVC compilation
2011-09-05 08:15:56 +03:00
Nigel Hawkins
84d23d37ac
Replace SvULongs with std::vector in mvsave.hxx
...
Also cascaded changes due to this. LGPLv3+/MPL
2011-06-15 13:38:45 +01:00
Caolán McNamara
cf9c0947f5
fdo#37974 make recursive call of MarkManager::deleteMark do the right thing
2011-06-09 15:25:49 +01:00
Caolán McNamara
090129a08f
Effective STL Item 27
2011-06-08 10:26:52 +01:00