Commit Graph

667 Commits

Author SHA1 Message Date
dc7498e4f0 don't show section/table nodes as plain start nodes in debug dump
Change-Id: I8b4901d98c210f5a3228981a2b180f2fcc06c768
2013-07-01 12:27:52 +02:00
c74a6e6bce mingw64: use the right format for writing out pointer-sized integers
Change-Id: I7961ffd978cb02c62be176a0afe931959b7d8f1f
2013-06-10 14:03:36 +02:00
43941d9a53 sal_Bool to bool and some cleanup
Change-Id: I4b20be1a3558e6b48a224e37e7f50944bb6bd237
2013-06-08 21:59:18 +02:00
76fbba8259 sw: convert some usage of Point::X/Y to Point::set/getX/Y, take two
69c52bc5b7973a2e414209470f5bf9b66dcc4f30 had some typos, and got
reverted in 78123a504b5215d061935d7b2771ba51e68cae0e, this does the
same, except those typos corrected, so vertical layout is still OK.

Change-Id: I79fe610e4cc8bbbddbd8415198d6309a93f4ba18
Reviewed-on: https://gerrit.libreoffice.org/3929
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-20 18:59:38 +00:00
c7b883498c SwDoc::CopyImpl: avoid ~SwIndexReg assertions:
These happen when enabling change tracking, deleting a full paragraph
(incl. paragraph break) and then copying the deleted paragraph to the
clipboard; the "rPos" and "aCpyPam" SwPositions are registered at a node
that is deleted by lcl_DeleteRedlines.

Change-Id: I3e9e29548d23377807c26fdd401b3c9637fddf25
2013-05-16 12:38:31 +02:00
78123a504b Resolves: fdo#64584 revert convert Point::X/Y to Point::set/getX/Y
This reverts commit 69c52bc5b7973a2e414209470f5bf9b66dcc4f30

I found one place where Y should have been X, but didn't clear
the problem, so threw my hat at it and reverted the lot, its
cosmetic anyway so no functionality lost be reverting.
2013-05-15 20:37:13 +01:00
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
69c52bc5b7 sw: convert some usage of Point::X/Y to Point::set/getX/Y
As I understand it, Point::X/Y() basically provide direct access to the
position, so they come without the usual benefits of getter/setter
methods.

Change-Id: I6d5bfd4f20ab8c7377419dcf5aac2c4ea0e9db05
2013-05-08 14:32:11 +02:00
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
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
0fdd758051 sw: missing prefix for global pBreakIt
Change-Id: I7fa8e697537ce8eb915da00920bf6882603b115a
2013-04-19 10:38:24 +02:00
327adac441 more fix to fdo#62470
fix some problem appear when delete the right border.

Change-Id: I2bd1d69142bb0a920bdb58c833f8cbbb461a8350
Reviewed-on: https://gerrit.libreoffice.org/3305
Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
2013-04-14 06:55:26 +00:00
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
4c16e415d9 sal_Bool -> bool.
Change-Id: Ie23ba9e2635d2dee8ad311df956b30e62e76935e
2013-04-03 15:50:23 +02:00
f8be3d0257 fdo#32082: Do not reset number format in table cells on edit.
When we changed the default to _not_ to recognize the number formats in table
cells (commit 334c34e4ec803c65e43abf20edbc6faf7fa95e76), it caused that any
edit of a number formatted cell had reset it to text on edit.

This was quite unexpected, because when eg. there was a number that contributed
to a sum, and it changed to text, the sum changed as if there was a '0' there.

To solve this, try hard to retain the number format regardless of the
'Recognize Number Formats' setting when there was a number formatting assigned
to the cell.

Change-Id: Ib43e0877420d90cdac7a0357d1ef3a549c866fb7
2013-04-03 15:23:58 +02:00
c44a06a122 Keep semantics, but improve readibility.
Change-Id: I32c18cb7b080f4847118a2d7e8d77dcd2bbce308
2013-04-03 15:23:58 +02:00
bb681a1cbb fdo#62470 fix the table format dialog reading
this will fix the wrong reading in table format borders
dialog.

Change-Id: Ie8061ec4073fe9fd779a739ed717348d37319fe4
Change-Id: I624cf7c162d3983fe4625e8e2e6fef4fc556eed0
Reviewed-on: https://gerrit.libreoffice.org/3134
Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
2013-04-01 07:43:26 +00:00
5709e4134a fdo#62470 fix the input change when the table RTL
this fix the wrong borders changes when the table RTL.

Change-Id: I6e963c1bb71c63bffe8c8f95c091a5692c21cd31
Reviewed-on: https://gerrit.libreoffice.org/3133
Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
2013-04-01 07:17:38 +00:00
646daee253 kill some unused inlines
Change-Id: I17160b264b547067c694dd268eb0d3bd1086565d
2013-03-27 03:14:45 +01:00
b4b0b40007 fdo#46808, cleanup some usage of getProcessServiceFactory()
Change-Id: I2ab4c7c0a19bd436c84e62bfc6aeda1fea079a44
2013-03-20 07:32:52 +02:00
506e1efab3 trailing whitespaces
Change-Id: I3d0e2015e4c9f0ea6118fd92892022607fe4bde6
2013-03-19 01:30:44 +01:00
7472081c19 Translate German comments, fix some whitespace
Change-Id: Icceb0221dc8fd5e211a75d4fc25e6a3e871461b8
Reviewed-on: https://gerrit.libreoffice.org/2796
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-03-18 08:30:31 +00:00
bd55f05b33 Resolves: #i118780# Moved ObjectInfoPrimitive2D extractor to drawinglayer...
changed name to be the filename only, added code to SW to set Title and Desc

Conflicts:
	drawinglayer/Library_drawinglayer.mk
	drawinglayer/Package_inc.mk
	svx/source/svdraw/svdograf.cxx
	sw/inc/ndgrf.hxx
	sw/source/core/doc/doc.cxx
	sw/source/core/doc/notxtfrm.cxx
	sw/source/core/docnode/swbaslnk.cxx
	sw/source/core/graphic/ndgrf.cxx
	sw/source/filter/rtf/rtffly.cxx

Change-Id: Id433031958529498441574dafe2fbd5261371efc
2013-03-16 10:18:02 +00:00
65610d54b4 remove trailing whitespaces
Change-Id: Ib6684fe00e063e150af30477fd704d9b3f029282
2013-03-04 22:22:04 +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
ddf1b13a52 sal_Bool to bool
Change-Id: I4040baa1a0202426df80a0ea94abde55e2b6ca65
2013-03-03 10:31:48 +09:00
6f6443f2cb RTL_CONSTASCII_USTRINGPARAM and ::rtl:: removals
Change-Id: I3ef372b07f2bacc2b9bbbb034e3d61b9cc8a3677
Reviewed-on: https://gerrit.libreoffice.org/2486
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-03-01 15:15:17 +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
753628eec2 fix sw build
Change-Id: I2d42420307f359b30cce5422629689bdc964ebd9
2013-02-22 11:57:04 +00:00
616c6924f1 s/the the/the/
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-22 09:58:19 +02:00
0295c8a34e sw: let SwTxtNode::GetTxt() return OUString
Change-Id: I36e777b2f623429773277e092284f7d2ba61e6ef
2013-02-18 20:16:07 +01:00
2c9f9832fc SwDoc: rename member variables missing their prefix
Change-Id: Id4683649aa9115f9075717768aa6cef4110c2ad2
2013-02-18 07:59:13 +01:00
015739132e sw: include SwFldTypes in doc model dump
Change-Id: I62a86c1615ccddb23e658e01423dce8634156ffe
2013-02-16 12:35:20 +01:00
4879665751 MarkManager::dumpAsXml: dump fieldmark names as well
Change-Id: I28683f11380a04051926e6c048686bde6fefdc61
2013-02-16 12:35:19 +01:00
549c0f785d fdo#60732: SwTxtNode: limit to less than STRING_LEN chars
It's not a good idea to have STRING_LEN characters in a SwTxtNode
because then there is no valid SwPosition at the end of the paragraph.
Also it turns out that LO 3.6 and 4.0 do rather stupid things with a
full SwTxtNode.  So enforce a limit, at first in the usual places that
are used during file import, SwTxtNode::InsertText() and
SwCntntNode::CanJoinPrev()/CanJoinNext().

Change-Id: Icb0f44acd20aa81635d42b84d4ae0f9b693a661c
2013-02-15 22:43:11 +01:00
ba30ed10c4 sw: include fieldmarks in document model dump
Change-Id: I5924ae824f87f796c808d56bf13d3dfd143a8e0a
2013-02-15 16:08:49 +01:00
ba18e945fa Comment translation - german-english - 3 files
I'm struggeling over line 407 in sw/source/core/edit/acorrect.cxx, is this the right translation.
Is this a question or is it a description what happens in the moment???

Change-Id: Ie665a8dffc41ee057c0277788282eea96cbbe6a3
Reviewed-on: https://gerrit.libreoffice.org/2157
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-02-15 13:00:30 +00:00
2230dd01ff Comment translation german - english - redo of 5 files
I have send it  again and abandon the old changes. Hope this is correct?
:-D

Change-Id: Ib7668f30d4c813ce656e9d8d5fcc0060d1a6aff5
Reviewed-on: https://gerrit.libreoffice.org/2143
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-02-15 02:45:15 +00:00
1aaf9a9b36 Renamed hard-to-remember 8-char headers in editeng.
Change-Id: If255802082890e1b1b4c5197a791fa79a011773e
2013-02-12 15:15:06 -05:00
76a70fe843 fix build
Change-Id: I410479392141d10688edf16115309ccc4c1edad1
2013-02-09 13:35:03 +00:00
13003431bf SwFrm: rename member variables missing their prefix
Change-Id: I88e7abb29e18859ae4fdce5a613e6d233f9d27a1
2013-02-09 12:07:15 +01:00
a4c7ded1fd Cleanup: #include <tools/gen.hxx>
Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530
Reviewed-on: https://gerrit.libreoffice.org/1484
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-01-07 13:14:57 +00:00
05cc878bb4 Some cppcheck cleaning in sw
Change-Id: I3dd51a8ddd0c01c453331934869413d5999a826f
2012-12-28 22:06:35 +01:00
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
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
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01: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
05af023b6a Revert "i#116420, fdo#33477: Implemented VertOrient on Writer table cell..."
This reverts commit 2d96b310b4894dd06eb541474a5dc05346a28efd.

Conflicts:
	sw/source/core/docnode/ndtbl1.cxx
2012-11-30 10:10:36 +00:00
47002916ba sal_Bool to bool
Change-Id: Ib7d74ba8fe3cfc6cf9695d13a1537dacdceca627
2012-11-22 09:47:52 +09:00
1aad15bf39 sal_Bool to bool
Change-Id: I0845702a9d0d590b0410df8bdcc3a12661f87714
2012-11-21 07:38:58 +09:00