Commit Graph

6442 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
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
7ce02fbe19 coverity#1202759 Unchecked return value
Change-Id: I5042340f7b320f5a07e9cad4a5cc8aa90646d688
2014-04-22 08:43:47 +01: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
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
49b981c6b2 coverity#705541 Unintentional integer overflow
Change-Id: I6fbafabe98de3b168a8f79c4c2fde4a4537f6eb1
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
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
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
a7a775da71 coverity#1202835 Resource leak
Change-Id: I2507c7741e803fcf3e4b81193dfafb144d50a0a8
2014-04-17 21:13:51 +01:00
4af664af70 this looks more like a "merge" than c34cc212
Change-Id: I36307a8b676327b050cb5b5073325131a62bbebd
2014-04-17 19:07:14 +02:00
c34cc21244 cppcheck: Fix redundant assignments in the sw module
Change-Id: I5f266ced31295b327cdd7075b2e9d66698a01ade
Reviewed-on: https://gerrit.libreoffice.org/8914
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-17 16:36:36 +00:00
dfd893ddd3 Get order of arguments right
Change-Id: Idf87fb375ed573588eff738ad01c69236adf945b
2014-04-17 17:28:01 +02:00
6269c009ea Fix pointer casting
Change-Id: I813168cbaa99d421886fc27be34efdfd7d97e0d4
2014-04-17 16:35:41 +02:00
9832e23703 fdo#57950 Replace chained append() with operator+
Replaced in the following files:
 sw/source/filter/html/htmldraw.cxx
                      /htmlfly.cxx
                      /htmlforw.cxx

Conflicts:
	sw/source/filter/html/htmldrawreader.cxx
	sw/source/filter/html/htmlfly.cxx

Change-Id: I3884313dd77220ba5d20e6573a6b5dd7a7c77bec
Reviewed-on: https://gerrit.libreoffice.org/8701
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-17 14:30:01 +00:00
fc7f66d00a Simplify wwSprmSearcher further
Change-Id: Ib2d1d7665e5293c126eef5bde6177a88ecd5ce96
2014-04-17 14:33:59 +02:00
3dd991224c Remove newly unused struct
Change-Id: I70523221fb8fad22ae5fc6738ed4f6e571561892
2014-04-17 14:25:33 +02:00
2b53138838 Enable letter-spacing for Firefox HTML export
Kerning (letter-spacing in CSS) was disabled for Firefox HTML
export mode. There is no need to do that since Firefox does
support this feature.

Change-Id: I237063d52f50d79517bf83d5d1904f2164095d31
Reviewed-on: https://gerrit.libreoffice.org/8947
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-17 12:09:29 +00:00
a0656ed338 Simplify wwSprmSearcher
Change-Id: I1642556f507af9db722dadda707ae11b4080fcf0
2014-04-17 13:59:51 +02:00
892ba2c5ba Remove unused typedef
Change-Id: I89c4a2a49af3e8af19e751a0f34bbaa8f4a3ee61
2014-04-17 13:59:51 +02:00
b56e32b3c7 coverity#735534 Logically dead code
Change-Id: If44c17bca47e461229823ad2b5d911df4b1e0319
2014-04-16 16:41:57 +01:00
4f3e5fdf35 coverity#1202916 Uninitialized scalar field
Change-Id: I15bcdffa92f866eac8c27324324ae0674bb24915
2014-04-16 11:23:12 +01:00
2df39f400d sw: clean up inter-module includes
Change-Id: I812842e76ae0b7bc252530d2b4aaa2b452c2babf
2014-04-15 21:22:04 +02:00
16691e09ee sw: -Werror=unused-but-set-variable
Change-Id: Id5bfbb2d55f8659aa3fab8a445d1f84dc4b8bb2b
2014-04-15 14:57:40 +02:00
2afe4c170d Clean up function declarations and some unused functions
Change-Id: I58c425ab9d2c01f8844226aff820dd56d88ec09c
2014-04-15 13:56:21 +02:00
b720ee5d9d The only instantiation of SwHTMLFormPendingStackData_Impl is long gone
...since ff09ed094d6b1d9b41f482a5b349c4fd9e80d857 "INTEGRATION: CWS
ab53: #i47763# synchronous html import," so lets hope that SetPendingControlSize
was indeed a leftover that would never have been called.

Change-Id: I63f91fbde4dd3162bacdb935e8b0f1e590f1d378
2014-04-15 12:35:54 +02:00
1393ba60b1 fdo#70838: fix rotation transformation in DML exporter
This patch fixes an error in commit
c6ff03f37a6898f50a5ca07152168fb4fe911e05.

And now that fdo#75722 is fixed, I completed the existing unit test
for this bug with absolute position checks.

Change-Id: I76b4fa046db9b946fd23194e91686ffa4fcb5362
2014-04-15 11:35:49 +02:00
893590f16e The entry points for these are hidden behind OSL_DEBUG_LEVEL > 1 too.
Change-Id: I728e808ac897aa1be184fb4a8bbbf781eb816cf0
2014-04-14 15:46:22 +02:00
5047891d04 typo: positon -> position 2014-04-14 12:33:12 +02:00
fa1f7d27c1 typo: attribut -> attribute 2014-04-14 12:32:59 +02:00
75f5d9d214 typo: postion -> position 2014-04-14 12:32:40 +02:00
aa0493be8c typo: puposes -> purposes 2014-04-14 12:32:29 +02:00
28c2c28941 typo: givin -> given 2014-04-14 12:32:15 +02:00
bb667fc1b9 typo: arround -> around 2014-04-14 12:32:10 +02:00
c8e94ffb8c translate some german 2014-04-14 12:31:57 +02:00
e5afa54064 typo: forground -> foreground 2014-04-14 12:31:56 +02:00
c1e563f6ef fdo#76741 [DOCX] Table Alignment and width type
There are two issue related to table in the saved(exported) file
     - the table alignment in saved file is "left" instead of "center"
     - the table width type in properties is "auto" instead of "dxa"

     In the issue file alignment was specified in w:tblpXSpec="center"
     and so were missed at import. Added support to fetch
     HORI_ORIENT from frame properties if its not set in Table Properties

     The ::GetTablePageSize returns 0 if the table width is FIXED.
     Modified it to return the tableWidth in such case.

Conflicts:
	writerfilter/source/dmapper/DomainMapperTableHandler.cxx
Reviewed on:
	https://gerrit.libreoffice.org/8846

Change-Id: I02a3af5e9d8ef3746c4d6bec0a07a24e01cc12a4
2014-04-14 08:49:58 +02:00
e98e738a82 replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-11 23:08:11 +02:00
84272d115d Introduce twip/mm100 conversion functions instead of duplicated macros
Change-Id: Ib689e35b417e0e9016cd6a239c986e0603a99d62
Reviewed-on: https://gerrit.libreoffice.org/8837
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-04-11 10:19:05 +00:00
05c5da4c37 fdo#76597: Fix preservation issue of Spacing between paragraph
Change-Id: I458bed111893a8d2fef79b11e28263a5bd2ed9cf
Reviewed-on: https://gerrit.libreoffice.org/8842
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-04-11 07:52:57 +00:00
93eb225988 coverity#735933 Explicit null dereferenced
Change-Id: If1b1d5a5b701fe8b1faba97d52ff3bcd0da91747
2014-04-10 21:07:56 +01:00
6835d9f307 It's "its", not "it's"
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-10 20:22:50 +03:00
a7bc9c1e49 fdo#77051: Preservation of Index field flag '\f'.
Problem Description:
- In LibreOffice, the index field flag '\f' was not
  getting preserved after roundtrip as there was no
  support for it.
- '\f' field flag is used for Specific Entry Type.
  ex. In our case it is "Syn"

Implementation:
- Provided import & export support for Index field flag '\f'
  and added UT for the same.

Change-Id: I97c2456dd73c8bdf89ab105f8cac71bf7e2ad164
Reviewed-on: https://gerrit.libreoffice.org/8839
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-04-10 08:15:54 +00:00
930f669be1 liblo: Return early everywhere where we potentially export images.
To avoid searching the node(s).

Change-Id: I1ddf962113ead192435c174ff3bf607596e4bfc3
2014-04-08 18:11:53 +02:00
2387805ffc html: rename IgnoreImages -> SkipImages, initialize to false
Change-Id: I663264adab001bd1916b13c0d7c75f8a693687d4
2014-04-08 13:15:56 +02:00
4aec6c9e3c html: "IgnoreImages" Option, which ignores images at export
Change-Id: I7ff6e83fabbc9f58e16b2617207a37e8dd0061d9
2014-04-08 13:15:55 +02:00
5f230bcea7 sw: SetupFilterOptions for any Writer derived filter (html, ascii)
Change-Id: I6f0147ea640a7ad767e2c0112b5e18dcb530fa7c
2014-04-08 13:15:54 +02:00
2790236338 coverity#736070 Missing break in switch
Change-Id: I924d1316483883f7d1ecb145eef38833d1dc70ce
2014-04-08 09:18:37 +01:00