344974 Commits

Author SHA1 Message Date
Zolnai Tamás
f16368777b drawingML export: hatching of shapes
Change-Id: I7111d4064d033e27659c7b45650d596df22c593f
2014-02-13 15:25:58 +01:00
Zolnai Tamás
4a25c65fcd Update a hatching import test according to the new values
Change-Id: I2f3504e12be63a326da189e7f69ce87ad2bdb674
2014-02-13 15:25:58 +01:00
Zolnai Tamás
31b186239c drawingML import: improve mapping of some filling pattern to hatching
For a better visual match.

Change-Id: I6f8a2f4b500c4ea04ef92572984a2bac597d85be
2014-02-13 15:25:58 +01:00
Jan Holesovsky
c05140897e Update documentation of createSystemChild().
Change-Id: I96e9b5c65dd9c3506dd804773652023e2cd995ab
2014-02-13 15:24:58 +01:00
Pallavi Jadhav
78c5cbc720 fdo#74153 : Preservation of Column Break with column_count = 0
Issue :
	1] DOCX containing column break with column_count = 0
	   was not getting preserved after RT.
	2] LO was writing column break only when column_count > 1

	Implementation :
	1] Removed check column_count > 1. So that if LO
	   encounters a column break with column_count >=0,
	   it should preserve it.
	2] Added export Unit Test case.

	Behavior after Fix :
	LO is able to preserve Column Break with
	column_count = 0.

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

Change-Id: I29c77f27184ec5afed354be01fc68e0d3471bfee
2014-02-13 15:18:43 +01:00
David Tardon
1b2da3df54 enable spin-size for NumericField too
Change-Id: I77660572947f7a863982be7742cbcb1c784379ed
2014-02-13 14:19:47 +01:00
David Tardon
78ff9d90f2 fdo#74468 fix timing of slide transitions
Regression since commit 16428c9600964a4945cf6fd0d938dea047d1248b.

Change-Id: Id274c21e08d10d2e727f3b5a3fd852cd297e4637
2014-02-13 14:19:46 +01:00
umeshkadam
515b5c7688 fdo#74110 : Issue with <a:prstGeom prst="rect"> tag in document.xml
Issue:
 - While exporting the system used to write adjustment values for preset shape type "rect" in document.xml
   with the shape guide name(adjustment name) being empty.
 - This is not accepted by MS Office. Hence the file was resulting as corrupt.

Implementation:
 - The preset shapes are being picked up from GetOOXMLPresetGeometry(), which refers pCustomShapeTypeTranslationTable[] array
   for the mapping.
 - Most of the shape types have been commented in the pCustomShapeTypeTranslationTable[] array therefore the GetOOXMLPresetGeometry()
   defaults the shapetype as rect, whereas the adjustment values are being picked up for the actual shape type(s).
 - Uncommenting the commented shape type translations( for instance textInflateTop) in pCustomShapeTypeTranslationTable will
   eventually write prst="textInflateTop" under the tag prstGeom which is invalid.
 - It should probably go under prstTxWrap.
 - In order to avoid the corruption, thought of adding a check before writing the adjustment values. If the shape type is "rect"( which is defaulted
   and does not have adjustment values defined in presetShapeDefinitions.xml) then avoid writing the adjustment values under this tag.

Conflicts:
	oox/source/export/drawingml.cxx
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7765

Change-Id: I6511e9a3ee0c01962d6e82997705a484161086ef
2014-02-13 14:19:08 +01:00
Stephan Bergmann
f87e78a777 Simplification
Change-Id: I949bf3cb9c3b26a8c2de6bde20cef63d7630fc54
2014-02-13 14:18:12 +01:00
Jan Holesovsky
8558559574 Fix build - sorry!
Change-Id: Ib1664485b5eeed894b4722a097865ab072d0a36c
2014-02-13 13:19:19 +01:00
Michael Stahl
5852b137e0 gbuild: AutoInstall: RepositoryExternal.mk may contain these too
Change-Id: Ieb76643e2f53d19b1796f118bae2a7e954e6f015
2014-02-13 12:57:48 +01:00
Michael Stahl
c489fe73ac gbuild: improve error messages about missing registrations
Change-Id: Ib3c5d8f3921801f143447d8e01463905d80ac319
2014-02-13 12:57:48 +01:00
Jan Holesovsky
f48d1df73b writerfilter: Get rid of a whole load of static OUStrings.
Change-Id: Ic5b254d1e6579baf2c9acdd24ddbaa95d554cf68
2014-02-13 12:58:53 +01:00
Jan Holesovsky
08aa1c83c7 writerfilter: No need to namespace these constants, they have prefix already.
Change-Id: I5590adbf0f60b10d309ddf2a6b9e50231245a659
2014-02-13 12:58:53 +01:00
Ravindra Vidhate
cc1c838942 fdo#74215:Fix for empty imagedata in Number Pic bullet
1. While exporting through LO, it writes numPicBullet with imagedata of size 0,0.
2. Because of this image file of 0KB is added in media folder
3. While opening the document in MS-Office, it shows the image missing at the top
which is of 0 KB size.

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

Change-Id: I5f8f187fc4fe678dceb3f2b594de74a6b52cbe74
2014-02-13 12:55:03 +01:00
Michael Stahl
3fc36ba147 gbuild: add some error checking for gb_Helper_*_for_install
Change-Id: Idb82c3d1d723f9214ca1424299cb1c93597fca40
2014-02-13 12:49:26 +01:00
Stephan Bergmann
e40f9e6f08 -Werror,-Wdeprecated-declarations
Change-Id: I6b10ab0b3f11559f515084b45dc3771627223418
2014-02-13 12:45:51 +01:00
Stephan Bergmann
b093ccd772 -Werror,-Wunused-private-field
Change-Id: Ie5e4742f0d71c240e0f82046682957537cac1b60
2014-02-13 12:39:17 +01:00
Stephan Bergmann
a19172cb0f -Werror,-Wunused-variable
Change-Id: I91ab5f87f859b855c858a41afd218f57b03ad3a2
2014-02-13 12:17:12 +01:00
Rohit Deshmukh
1f34909fd7 fdo#74106: Fix for Hebrew Text-Bulleted List converted to Numbered List
Problem:
   Hebrew Text-Bulleted List converted to Numbered List in round trip file

Implementaion:
   - Added Hebrew support for import and export for list.
   - Added Unit test case.

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

Change-Id: I739f4b74fb0451f6da80be06114c48074d1e4cdf
2014-02-13 12:14:04 +01:00
Stephan Bergmann
ee585cc86d cid#983607 unexpected std::exception
Change-Id: I0de931d79548505ca7d26ffdfb560cfd5c6105a9
2014-02-13 12:10:33 +01:00
Caolán McNamara
cc6725773b Various adjustments of the pivot table
especially relative positions were relative
to the dialog which was assumed to be then
a direct parent of the widgets so that
a simple calculation could make the positions
relative to the widgets

also now the pivot table fits into a 768 pixel high
screen

Change-Id: I86a4155439872e8273943b90f15320e560e237a4
2014-02-13 11:04:31 +00:00
Caolán McNamara
02ef234b77 fix homogeneous grid spanning row/col handling
Change-Id: I26ca29f2b02a1587cfe94d5342809f51a207a194
2014-02-13 11:04:31 +00:00
Katarina Behrens
cfa4f622ca Converted pivot table layout dlg to .ui
pimped up dialog a bit, added mnemonics

Change-Id: I4585d9a3a1c96b45c7eedea8a5be41ec717139dd
2014-02-13 11:04:31 +00:00
Caolán McNamara
89cc3438ed Updated core
Project: help  d5e02baa76eadb781a08d4cc9108288a055829d6
2014-02-13 05:04:02 -06:00
Stephan Bergmann
afb9d333eb cid#706247 wrong exception type
Change-Id: Idc83f827b90eedcc4345345a77efbda35e08bff0
2014-02-13 11:58:31 +01:00
Vinaya Mandke
8c6ee9360b fdo#73541 "Page Margins : Mirrored" was not preserved on export to DOCX
Mapped Property at import, so Page margins mirrored are imported correctly.
Also exported the mirrorMargins in settings.xml
Added export UT for the same.

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

Change-Id: I2d90643f55e1dc1d96c809e28ce37dee4653bf57
2014-02-13 11:51:50 +01:00
Muthu Subramanian
a4cd841541 n#757432: Styles (rename &) copy to different decks.
While copying slides to different slide decks,
styles were not being copied if there is already one
with the same name. This patch renames and copies those
to keep the formatting intact.

Change-Id: I66f71493f1fd658eed43e39aa7ae7ee7b5463b34
2014-02-13 16:13:01 +05:30
Matúš Kukan
c388071c4d remove now empty fwk_component_getFactory
Change-Id: I5f2f5fc9ccc75b145572aa0bb88b00b0d7a5872d
2014-02-13 11:27:21 +01:00
Matúš Kukan
2d46ef6da5 fwk: Constructor feature for single-instance framework::Desktop.
Change-Id: Id582e672c0b41a35d25361f7dfe970a767880b2a
2014-02-13 11:27:15 +01:00
Matúš Kukan
ce02519c5c Introduce com.sun.star.frame.theDesktop singleton.
Change-Id: I3d269609119149e289652f6bc106e6bd9061672d
2014-02-13 11:26:33 +01:00
Matúš Kukan
924a415e68 cosmetics
Change-Id: Ice4f20db3a590568a7ae4ae59fa0c4ff13e59051
2014-02-13 11:26:31 +01:00
Matúš Kukan
eb1799714c cleaning the code a bit
Change-Id: I4cc9c16fb79f669ae70d10a50ace3943075edd46
2014-02-13 11:26:29 +01:00
Matúš Kukan
5691ef0b4f Move this Singleton class to anonymous namespace.
If you add more Singleton classes into framework namespace,
it builds without any warning but I was not able to see menu text
labels.
Luckily UICommandDescription is involved in this and the problem was not
hidden somewhere else.

Change-Id: Iba0c06c2e31ae509579f31308d9f45f0cb9f654f
2014-02-13 11:26:27 +01:00
Matúš Kukan
9a4056c18f Do not use pattern::configuration::ConfigurationHelper.
Change-Id: I9cf913f085a2c6862e44803485ab63e2b4572eab
2014-02-13 11:26:26 +01:00
Matúš Kukan
dae2b047f9 Remove unused ContainerQuery constants.
Change-Id: Ib9f96f79d805c91e80fa5366c71e3e975ebabe90
2014-02-13 11:26:24 +01:00
Matúš Kukan
d8db7f0f44 ModuleManager should be static; and simplify.
This saves some cycles used to open configuration many times.

Change-Id: I12cc7ac87df897a518368094b12d8dcb5be4e3b5
2014-02-13 11:26:22 +01:00
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 56ff07a795aca516106bfde80cb32860065690a6, the correct fix is
d19598b56c8bec688d1944cd167f32a369344100 "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