Commit Graph

344887 Commits

Author SHA1 Message Date
Nikhil Walvekar
07911ac9fd fdo#73596 Added support to import and export Index from docx.
This currently supports basic import of indexes. Other flags are
still pending. Currently flags are not preserved completely, just
index and xe fields are preserved.

Reviewed on:
	https://gerrit.libreoffice.org/7627

Change-Id: I56058df19aa8332fbcccde77fb1f29347264bbc6
2014-02-13 11:14:19 +01:00
Pallavi Jadhav
e5a891793b Fix for: DOCX-Preservation of Line style Dash type of "Shape with text inside"
Issue :
        File containing Shape with text inside it having Line style as
        Dash type is not getting preserved after RT in MS office 2007.

    Implementation :
        1] Added XML element <v:stroke> with attribute  dashstyle="dash".
        2] Written Export Unit test case.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7611

Change-Id: Id01c5975c2c1cf176a7459f65973f4c9c3c9b9d8
2014-02-13 11:00:08 +01:00
Stephan Bergmann
2d3030b1fa Revert "sal: fix some clang warning about implicit bool conversion"
This reverts commit 56ff07a795, the correct fix is
d19598b56c "Adapt ImplicitBoolConversion to 32-bit
builds (where sal_Int32 is long)."
2014-02-13 10:51:49 +01:00
sushil_shinde
18044a6095 fdo#69646 Export of table with auto-width, at least one column with auto-width
- In case of auto width to table it should export as auto.
 - Added Unit Test to check it is properly exporting table.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7594

Change-Id: Id448111b81110bbc6c109f3da9195075b9b8a9fc
2014-02-13 10:49:56 +01:00
Stephan Bergmann
d19598b56c Adapt ImplicitBoolConversion to 32-bit builds (where sal_Int32 is long)
Change-Id: I64480e6026e7e39fe89f90c7d269f6bb1d02968d
2014-02-13 10:49:13 +01:00
Miklos Vajna
08ab574732 CppunitTest_sw_ooxmlimport: make this actually test something again
Change-Id: I05d8b0dafcdea68d57137873ea52d4ab28a9b12b
2014-02-13 10:25:17 +01:00
sushil_shinde
4d34d43b29 fdo#69656 table with auto-width and at least one column with auto-width.
- In case of auto width of table and atleast one cell of table
    is auto width It was setting table width to 100% relative width.
  - hence it was causing rederening problem, table width was wrong
    while rendering.
  - Changed 100% hardcoded value, now setting total width of table
    as per grid values.
  - modified one UT since we no longer setting width of table to
    100% default in case of 'auto' width.
  - Added one UT to check proper table width while importing.

Conflicts:
	sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7593

Change-Id: Iae396c632eb1ef0c06efaa8c1965e4a68f12c6b1
2014-02-13 10:25:16 +01:00
umeshkadam
9d5005a70c FDO#74430: File Corruption due to repetition of docPr Id
Issue :
 - If there is a scenario where a chart is followed by a shape
   (may it be in the footer or on a different page )
   which is being exported as an alternate content then, the
   docPr Id is being repeated, ECMA 20.4.2.5 says that the
   docPr Id should be unique.
 - Two different variables were been used as counters for the
   docPr Id, hence there were repitions in the docPr Id.

Implementation :
 - ensured that a single counter is used to track the docPr Id.

Conflicts:
	chart2/qa/extras/chart2export.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7916

Change-Id: I1c105be184d045ef058423f03259eb8c634fcbbe
2014-02-13 09:55:36 +01:00
Muthu Subramanian
8f8bc0dcf3 Move string hash function into String class.
hashCode() seems to do sampling while creating the hash.
hashCode64() will not.

Change-Id: Id30f5a2a774cf5244dbc00da9649e95a532484be
2014-02-13 13:13:53 +05:30
Norbert Thiebaud
67b1dad881 coverity#1130358 Deference after null check
Change-Id: I3ce41c86f57ed65fd87d403e50df47e3343a5a41
2014-02-12 21:58:15 -06:00
Takeshi Abe
6364a3ec6f Drop unnecessary #include
Change-Id: I9bc9c21811100d6cc1ee7e381a3735567e3bda34
2014-02-13 10:42:33 +09:00
Michael Stahl
45c7b349d7 oox: warning C4101: 'rEx' : unreferenced local variable
Change-Id: I79722b33a0c193a8bb0c0dd357787ee213909051
2014-02-12 23:26:20 +01:00
Michael Stahl
500568a8f3 oox: fix GetTextVerticalAdjust visibility
Change-Id: Iaab33ab752a67e2acd374e0c08045c3e9da22ce7
2014-02-12 23:26:19 +01:00
Michael Stahl
7a403215ec vcl: convert some WNT only SvStream::operator>>
Change-Id: I1752bbc6f079feb6dc3ac3b94d2e434a4201824e
2014-02-12 23:26:19 +01:00
Miklos Vajna
f01c1c91a9 writerfilter: sprm:PDxaWidth/WHeightAbs -> ooxml:CT_FramePr_w/h
Change-Id: I4ae8e58c6187563e5846d58a3c83ef74f1cacb5c
2014-02-12 22:11:31 +01:00
Julien Nabet
e4a448a9c7 Related: fdo#74875 Filter of "nowiki" to be improved - Export to MediaWiki
<nowiki> mustn't be called almost everytime. Now this part still need some work (rework?)

Change-Id: I9a01c1e2fb51a51e0737296117db892e3b3b9ce6
2014-02-12 22:10:46 +01:00
Michael Stahl
016de6fa56 sw: replace #ifdef'd operator<<
Change-Id: I63c24f453f843a363fc056879d652f28d7052f1e
2014-02-12 21:24:47 +01:00
Noel Grandin
0c7f352775 remove SvStream::operator>> methods
in favour of ReadXXX methods.

Change-Id: Ic2c0a7b6b92ff4c236ae99b39d77f3d935b301e3
Reviewed-on: https://gerrit.libreoffice.org/7915
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 19:45:10 +00:00
Kohei Yoshida
da2efb3e14 Perhaps it's better to use nMaxLegalStr here than using hardcoded 32.
Change-Id: Idee4667f5ef9aa71af05139b6fc7ee8a5166b398
2014-02-12 14:46:47 -05:00
Michael Stahl
5499d4c352 Revert "cid#707663 uninitialized pointer field"
This reverts commit 571d116d28.
2014-02-12 20:26:41 +01:00
Michael Stahl
169bc8f790 Revert "cid#707662 uninitialized pointer field"
This reverts commit 5523275482.

Makes every JunitTest crash and burn; clearly pReserved is sometimes
initialized and then overwritten with 0.

Change-Id: I0e9958149de14a23826feef0b1a32c9d374e4d13
2014-02-12 20:26:41 +01:00
Michael Stahl
c3891d88fc Revert "cid#707661 uninitialized pointer field"
This reverts commit e453ba963e.

Makes every JunitTest crash and burn; clearly pReserved is sometimes
initialized and then overwritten with 0.

Change-Id: I4d280770cecf131d1bbcfb9e2550c89b74150c1d
2014-02-12 20:26:41 +01:00
Michael Stahl
6fa0b37047 remove "n" that i somehow managed to add (no doubt in state of delirium)
Change-Id: I71e23c43f14feae0c3b3e0f10a74ee22ccaab7f2
2014-02-12 20:26:40 +01:00
Michael Stahl
56ff07a795 sal: fix some clang warning about implicit bool conversion
Change-Id: I5ecaf73922c6a30add6e270b8abdfdb5c28fe4a5
2014-02-12 20:26:40 +01:00
Julien Nabet
55d3127f6c Typo: "omited"/"ommitted"/"ommited" -> "omitted"
Change-Id: Icc690b0ae1fc8f7165082774720d265798815faa
2014-02-12 20:08:03 +01:00
Julien Nabet
03dcbdc4e1 Typo: ommitted -> omitted
Change-Id: I02268b42f43192d693cc689a6a845f6cefb6dfab
2014-02-12 20:05:05 +01:00
Stephan Bergmann
24b2c5e448 Don't include filename extension in e-mail subject
...as suggested to me by a user.

Change-Id: Iaad83e761884b7b43cf92ebb10cf553df1b97cd0
2014-02-12 16:37:57 +01:00
Noel Grandin
b2878af322 more SvStream:operator>> conversion
Convert the template based read_lenPrefixed methods to regular
methods.

Change-Id: Ifd0e93aca055e55a0575e4377ec2b8e266dfb019
Reviewed-on: https://gerrit.libreoffice.org/7895
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 15:32:11 +00:00
Noel Grandin
15535e32dd convert SvStream::operator>> methods to ReadXXX methods
First, I updated the clang rewriter to do the conversion.
Then I lightly hand-tweaked the output for the few places where
the rewriter messed up, mostly when dealing with calls on "this".

Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9
Reviewed-on: https://gerrit.libreoffice.org/7879
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 15:31:40 +00:00
Zolnai Tamás
7accbd8c0d drawingML import: wrong namespace for 'pic'
Change-Id: I97311b737c7cb706ddff95d1b1b8fe61241f055d
2014-02-12 16:20:21 +01:00
Miklos Vajna
02a17688f3 DOCX drawingML import: fix relative size of group shapes
Change-Id: I5a126bd9eaacaee2e080837a34d8ac41cbb9ea10
2014-02-12 16:12:01 +01:00
Kohei Yoshida
07e2c31831 fdo#74824: Update mdds to 0.10.2 which fixes one crasher bug.
Change-Id: If05c7573530c892dc063dfb7accec1c24a322ddd
2014-02-12 09:58:53 -05:00
Caolán McNamara
9cbc25dd6e Revert "coverity#736486 try and make coverity see through this better"
This reverts commit a0bae848d4.
2014-02-12 14:26:47 +00:00
Caolán McNamara
27fae00bf2 coverity#441136 Dereference after null check
Change-Id: I81a1a70094ae6b4ed685ae3fe88c645b160955bf
2014-02-12 14:26:47 +00:00
Caolán McNamara
2842e32490 coverity#441125 Dereference after null check
Change-Id: Ia8046dc20ff46612ad3ffeba098bee079858e8da
2014-02-12 14:26:47 +00:00
Winfried Donkers
6744d1d8f9 make Calc function PERCENTRANK comply with ODF1.2
http://docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part2.html#PERCENTRANK
defines an optional 3rd argument. This hss now been added to the function.

Change-Id: Iaa0d990261be195ad0a4b6f6be7f76b9c084da40
Reviewed-on: https://gerrit.libreoffice.org/7747
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2014-02-12 14:19:14 +00:00
Andrzej Hunt
de7b3820d3 loplugin:implicitboolconversion
Presumably we need to specifically check whether Element is a
PPT pic token here too?

Change-Id: Id5c90099c8762042f9a2a886631faa72737704fb
2014-02-12 14:15:54 +00:00
Miklos Vajna
b12d37d701 SwAnchoredObject::dumpAsXml: show bound rect
Change-Id: I1754850d7674efb53c95886c3c3cdcde8ca6ee4d
2014-02-12 15:05:55 +01:00
Noel Grandin
025a77f794 cid#705996 unintended sign extension
Change-Id: I07f357b069bd8ae31049f049163c0e20e7361f79
2014-02-12 15:10:48 +02:00
Noel Grandin
639f35e22f cid#707705 uninitialized pointer field
Change-Id: I80679a2cb99cdc912ed021cf993adeb3478355c4
2014-02-12 15:10:48 +02:00
Noel Grandin
326f1ccb17 cid#707669 uninitialized pointer field
Change-Id: I11cc753d83d97a5e1d9373cc5a1fe504b5abe0dd
2014-02-12 15:10:48 +02:00
Noel Grandin
a1b1625cfd cid#707669 uninitialized pointer value
Change-Id: I252f88ba76d9b927d472655d2bee71cc85b22452
2014-02-12 15:10:48 +02:00
Noel Grandin
571d116d28 cid#707663 uninitialized pointer field
Change-Id: I4864042da995e70fd050584341960e58c4cddec2
2014-02-12 15:10:47 +02:00
Noel Grandin
5523275482 cid#707662 uninitialized pointer field
Change-Id: I031497ef2f789a87724357b28e5fed70afa46dcc
2014-02-12 15:10:47 +02:00
Noel Grandin
e453ba963e cid#707661 uninitialized pointer field
Change-Id: I6fee8665ce1875ffa8e01bd395bb91a3d2bb40c8
2014-02-12 15:10:47 +02:00
Noel Grandin
de476d0146 cid#1103689 missing break in switch
Change-Id: I28338145fdd71ec25b9c6d291e445d35636e43a9
2014-02-12 15:10:47 +02:00
Adam Mróz
cc24e7ebd9 Fixes for kdevelop IDE integration
Script bin/gbuild-to-ide is parsing messages basing on regular
expressions.

First problem appears when used language is not English - that's why
setting LC_MESSAGES variable in Makefile.

Second problem appears with quote symbol. For me (Archlinux) script was
not working. After some investigation I found out that reason was that
my output from make included ' symbol when regular expression assumed
that it should be `. That's why using [\'`].

Example:

recipe to execute (from '/home/sadam/libreoffice/core/idlc/Executable_idlc.mk', line 28):

Conflicts:
	bin/gbuild-to-ide

Change-Id: I0083c69820bd58ce2ac296f21985408c69840639
Reviewed-on: https://gerrit.libreoffice.org/7979
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12 13:08:09 +00:00
Caolán McNamara
e79c381f4d coverity#441010 Dereference after null check
Change-Id: I3f35f2ed2154f75303d561efecd1638b73872b61
2014-02-12 13:03:59 +00:00
Caolán McNamara
cc7b1ee2f3 coverity#440982 Dereference after null check
Change-Id: I5e19801311c2cb038b6e1c5e7e52a6022f62ea86
2014-02-12 13:03:58 +00:00
Caolán McNamara
7141cfa6a3 coverity#440973 Dereference after null check
Change-Id: I24caa53a66da4d724e4f8e5d4b06c7d3e9633f5e
2014-02-12 13:03:58 +00:00