Commit Graph

141 Commits

Author SHA1 Message Date
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
332fa1344a SwTableBox::IsValidNumTxtNd: Allow trivial formatting
Not allowing flys or footnotes during string -> number conversion is
fine, but I don't see what's the reason for rejecting simple formatting
(like bold) completely.

Change-Id: I8f54aebeb6ea35d099a88570d3f7d365c7325dc0
2013-03-08 19:05:52 +01:00
f5ca04caca Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml

Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
db7a441342 Typo fix: informations -> information and a few other adjacent typos.
FDO:60724

Change-Id: I73ad9f1c37cbbcf28d996ed73c75cf09553e499b
Reviewed-on: https://gerrit.libreoffice.org/2479
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-02 02:45:55 +00:00
08603e66f9 fdo#38838 search replace for String::CreateFromInt32().
I ran the following code replace:
    s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/

Change-Id: Ic500593e3a0b593522c9469b18da0145285007da
Reviewed-on: https://gerrit.libreoffice.org/2280
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-22 17:32:12 +00:00
0295c8a34e sw: let SwTxtNode::GetTxt() return OUString
Change-Id: I36e777b2f623429773277e092284f7d2ba61e6ef
2013-02-18 20:16:07 +01:00
1aaf9a9b36 Renamed hard-to-remember 8-char headers in editeng.
Change-Id: If255802082890e1b1b4c5197a791fa79a011773e
2013-02-12 15:15:06 -05:00
d0b590fe19 callcatcher: remove unused rtf filter and associated methods
update and remove newly unused code, mostly original rtf filter

Change-Id: I2dd302851ee6fad62d79fbc81cb8a61a861396db
2012-12-10 09:28:16 +00:00
dc2de899bf Make it local
Change-Id: I69e343a7cf64ce888fc508a27ca316a9c85093b4
2012-12-03 19:30:17 +09:00
0ea431f0de sal_Bool to bool
Change-Id: Ife2f52b70bd40a8f5c7582b9bdb7b19dd8c354af
2012-12-03 19:30:17 +09:00
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
1aad15bf39 sal_Bool to bool
Change-Id: I0845702a9d0d590b0410df8bdcc3a12661f87714
2012-11-21 07:38:58 +09:00
677a3f75e7 sal_Bool to bool
Change-Id: Icc13eb7a8c6720ac53163e3ee7842a22c2862ab3
2012-11-20 10:06:46 +09:00
271b11a3d5 migrate one GetOutputString variatn to OUString
that create some clutter on some of the caller, this will
be resolved as things progress to ward OUString only
This is done that way to be incremental and avoid creating too big patches

Change-Id: I4a881d85cc2ee1eb53bc0c0d0902838b1d3720a2
2012-11-18 19:57:23 -06:00
eb020150e1 sal_Bool to bool
Change-Id: Ia1001ff0f4778bdf5e22bf2800f533dfba80c048
2012-11-07 10:57:55 +09:00
a94b902736 sal_Bool to bool
Change-Id: Ia71a4dc13e09a5fc42c282efc2b0d46b2ff007ab
2012-10-28 23:47:55 +09:00
329d328727 sal_Bool to bool
Change-Id: Id3be1fbf289f04e175bb2fdd71754cad0c9672ce
2012-10-19 04:15:34 +09:00
21d10c6f32 mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I21e12d6a4dfb9697d2346a4e564e96af0ad03f96
2012-10-12 16:56:54 +02:00
53c91152ea tweak assertions in SwTable::CheckConsistency()
Change-Id: Ib06543b7e59694f240b2b5fadcd6b464ce9e5792
2012-09-24 13:50:11 +02:00
8e72fd8866 use scoped_array in lcl_UnMerge
Change-Id: I00c899612d499273725ff8071aff1c93c7d17327
2012-09-21 18:05:03 +02:00
b844f06b36 fdo#48692: fix problems with large number of table cells:
SwSelBoxes containers are filled from SwTableSortBoxes in various
places, so adapt that to use size_t integers as well.

Change-Id: Ia55f020bb9ada94bb22802d9adabb055a22edd2f
2012-09-21 18:05:02 +02:00
5f91f8a368 fdo#48692: fix problems with large number of table cells:
The SwTableSortBoxes is now a STL container which can have more than
2^16 elements but unfortunately there are a lot of 16 bit integers used
to index it all over the place, causing infinite loops and possibly
worse problems; fix that to use size_t.

Change-Id: I868ec9dd0629be4fbe4d6b8f294fb765e3d662ec
2012-09-21 18:05:02 +02:00
cf842d7c7f rhbz#852128: sw: avoid table undo crash:
SwUndoTblNdsChg::UndoImpl: to prevent access of deleted table box start
node, disconnect the SwTableBox from the start node before removing the
table box nodes.
This problem was probably introduced with CWS swnewtable
db4de0817df6906db2743239d45f9f0834ab1e91, which changed the order of the
removal operations for unknown reasons.

Change-Id: Ic59823a84082cc6ff453b2b512cbb8253886ecf3
2012-09-18 14:48:02 +02:00
f2f3703740 Translate German comments in Writer.
Change-Id: Ia8179d4333434324dd4b5239691402d0e48da5a1
2012-08-10 15:43:49 +02:00
2b049bb03a C40_GETPOS is unnecessary now
Change-Id: Ida64fbeba996c8e3deb7591be825b61d17044d9c
2012-07-30 12:47:50 +01:00
ddd84d08c9 Convert SV_DECL_PTRARR_SORT_DEL(_SwRedlineTbl) to o3tl::sorted_vector
Change-Id: Ie7edc6b32b373619d4c0ac154da93650743049cf
2012-07-26 23:35:27 +02:00
deaa69b155 Convert SV_DECL_PTRARR_SORT(SwSelBoxes) to o3tl::sorted_vector
Change-Id: I4af9e86257a9e40b91351fd34ac70fe053d02367
2012-07-26 14:30:09 +02:00
b09b1ed264 Convert SV_DECL_PTRARR_SORT(SwTableSortBoxes) to o3tl::sorted_vector
Change-Id: Id5ff378b25619a9bf126824b4abadd19615b7a31
2012-07-25 14:13:45 +02:00
5af5fe4d39 Translate german sentences
Change-Id: I69cf20351bce9d3164b852b3dcaa58950f555a1f
2012-07-18 23:30:54 +02:00
64fff61725 Convert some local methods from Svptrarr to std::vector<SwFmt*>
Change-Id: I071199c477bd27ac30c71f65c1b8938525ce2a58
2012-06-25 20:13:16 +02:00
875ee66f24 fix previous commit:
do not call std::vector::vector(size_t).

Change-Id: I634de4cebe49ffe2df8def15a7be99dcb2601d24
2012-06-25 20:13:16 +02:00
81321de64f Convert SvPtrarr aBoxArr to std::deque<SwTableBox*>
Change-Id: I97634289e94f34e18d00d88d81d99dae1e593ec1
2012-06-25 20:13:16 +02:00
7092fc0300 adapt DBG_UTIL code to previous commit
Change-Id: I021b4d70a02de7a66e0af82a859ae89e1a7d1231
2012-06-20 19:46:40 +02:00
d69fdd1ed6 Convert SV_DECL_PTRARR_DEL(SwTableLines) to std::vector
Along the way, simplify a lot of the ForEach callback methods.

Change-Id: I54bc87c1060f1d73470ca8b7fd645ffa23059606
2012-06-20 19:46:40 +02:00
7d69ffe8c9 Convert SV_DECL_PTRARR(SwMovedBoxes) to std::vector
Change-Id: I6df8a2929569ec0a2ee670002833b6a142d42318
2012-05-25 00:17:07 +02:00
68b9fc0627 Fix memory leak from using std::vector for SwTableBoxes
Also adapt dbgutil code for previous commit
2012-05-14 21:12:17 +02:00
b8ace0f986 Convert SV_DECL_PTRARR_DEL(SwTableBoxes) to std::vector
I added a GetPos() method because quite a lot of code used that
method and the existing code is quite tied to the precise
return values of that method.

Change-Id: I9af6b923d978abe758b63d835f228495c020455a
2012-05-14 19:49:15 +02:00
ffc53f8650 Translate two German comments in swtable.cxx
Change-Id: I968fb58b6ceb406a62a2b403c270aef2281945c3
2012-05-07 10:18:11 +02:00
567c1db25b Resolves: fdo#49342 crash merging cells, revert conversion to std::map
3af0c948254751eade9bff772b849720747c5494
868bd3b778b6c7b970c67d1dacc469967f69e551
b2e84f9a40fda7821d4e658f9102bcbc783a1ba3
7264d2767095150944ff1e6999c71be1dbdc6f83
858b5b4f36a357fe7192e7c2ed9cc3cdfc81fd8f

The problem is that a paragraph gets added to the document after the TableBox
selection is created, which changes the node ids of the following paragraphs in
the TableBox but the map has used cached SttNd value as its key, so it can't
recognize nodes using the new index.

This worked in the old implementation because that was effectively a
sorted-vector, so probably the best conversion to stl is a sorted vector

Change-Id: I1143d843b872eee15b016f82b68ecc020969f1b5
2012-05-05 10:27:47 +01:00
a7c7942fd1 DBG_UTIL vs OSL_DEBUG_LEVEL confusion 2012-04-24 11:06:14 +02:00
5c3dd5af41 fdo#45522: WW8TableInfo::processSwTable: check that table has layout 2012-03-21 17:16:44 +01:00
d30b4e9fb6 Get rid of size() == 0 2012-02-19 17:07:46 +04:00
806bec7107 Fix typos in comments 2012-02-13 15:27:24 +00:00
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
30ec94d8d4 WaE and build fixes for OSL_DEBUG_LEVEL == 2 2012-01-05 09:18:14 +00:00
dff7e08711 remove include of pch header from sw 2011-11-27 13:25:10 -06:00
0c52001b58 Fix non-DBG_UTIL build. 2011-11-24 11:22:42 +01:00
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
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
858b5b4f36 SwSelBoxes: svarray -> std::map 2011-11-23 13:56:37 +00:00