355108 Commits

Author SHA1 Message Date
Vinaya Mandke
e49d2b31fb fdo#78939 [DOCX] Hang while opening due to incorrect modification of Style
http://opengrok.libreoffice.org/xref/core/sw/source/core/unocore/unosett.cxx#1884
Modifies the refernced style of the numbering rule to use the current numbering rule.
Actually the refernced style is not supposed to be modified.
As the numbering level formatonly uses that properties particular style,
which may or may not be a numbering style

For this Particular document the numbering format refers the "Default Style" (Normal).
Almost all of the styles in style.xml are based on it. Normal was modified,
and as a result the whole document was bulletized; Which caused the hang while opening

Removed the addition of style as a PARA_STYLE, as the properties of the
refernced style are already added in ListLevel::AddParaProperties

Conflicts:
	sw/qa/extras/ooxmlimport/ooxmlimport.cxx

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

Change-Id: I8cc143805a38613908d2e2cb4827882d4cf40a78
2014-06-10 09:57:45 +02:00
Miklos Vajna
f3160a7eff writerfilter: convert fasttokens to Python
It's shorter and f9bf15e19ec823a58ee32bf94da81f3bb1a147bc (writerfilter:
initial strict DOCX support, 2014-03-07) shows it's a pain to do anything
non-trivial with XSLT 1.0 -- in that case black magic was needed to do a simple
unique sort.

Change-Id: Icf4e7b580ce1db6826989500dbf4a012d79acdb9
2014-06-10 09:15:42 +02:00
Markus Mohrhard
32ac015be4 fix invalid memory access related to temporary object
e.g. export of ooo116460-2.xlsx

Change-Id: Id1ca2249e7b1f197a2df0d122c57dd97c4c4d785
2014-06-10 06:41:18 +02:00
Markus Mohrhard
009c6835ac avoid access to ChartView after having been deleted
e.g. 49225-3.xlsx

Change-Id: I62f2c39a928619ccfa66f128577de2c71f243a1c
2014-06-10 06:41:18 +02:00
Markus Mohrhard
de95cdd576 don't use temporary object
This avoids invalid memory access with fdo45268-1.xlsx

Change-Id: If141df14d7d747023c944c83c2d8957abe8b95ad
2014-06-10 06:41:17 +02:00
Katarina Behrens
3466cbc01c fdo#77987, part 3: use signed ints consistently
everywhere where snap line coords are manipulated

Change-Id: I8de1662680bd6e5dc9d42d633fa591dacc260a9b
2014-06-10 00:23:46 +02:00
Katarina Behrens
25678ae57d fdo#77987, part 2: snap line coordinates can be negative
thus, use signed integers here

Change-Id: I8de1662680bd6e5dc9d42d633fa591dacc260a9b
2014-06-10 00:05:18 +02:00
Katarina Behrens
64992cc56e fdo#77987, part 1: set min&max values of spinboxes
by attaching adjustments to them. This restores pre-ui behaviour,
as without proper initial minimum value, one can't enter values < 0
into the dialog

I just copied the numbers as they were in .src file, but they were
prolly completely made up (and they're adjusted later anyway
according to size/position of workspace)

Change-Id: Ic09fdd9e947f04d6f2151e9d7a8714f4f1d29552
2014-06-10 00:04:59 +02:00
Michael Stahl
fed6ed72db SwAddressControl_Impl: add SAL_OVERRIDE
Change-Id: I4d77e7aee8370c0e67c80f7fbac0f1e38a4399ca
2014-06-09 20:55:54 +02:00
Kohei Yoshida
1f0804bc00 No need to check for NULL before delete.
Change-Id: I8618fe6d3b27eb561137dc1e327e50a41f946494
2014-06-09 13:01:26 -04:00
Kohei Yoshida
acf56987b0 Tuck this typedef inside struct scope where it's used.
Change-Id: I2e225fb7afc58f1763e2fc4b9155aafc0e487f34
2014-06-09 12:51:48 -04:00
Kohei Yoshida
019617d590 Use for_each with boost::checked_deletor for this.
Change-Id: Iea8ef5138bc98e50a196cb38051a199b326c1405
2014-06-09 12:51:43 -04:00
Caolán McNamara
efd6106f09 de-virtualize these stringify methods, nothing overrides them
Change-Id: Id523ae3f50147fd778a1576c2851d01e1ea8c3ae
2014-06-09 16:24:40 +01:00
Michael Stahl
0584e7233e gbuild: UnpackedTarball: use Win32 paths for make targets
Change-Id: I78f56bb28d4b9b6c0696f83f3e06d836fd3427cd
2014-06-09 17:05:55 +02:00
Michael Stahl
ba1a503fee postprocess: command line limit work around for Win32 make
Use var2file to write registry input files.

Change-Id: I0edfd94440a47a0c4b21bf2b354d6467016f5f68
2014-06-09 17:05:55 +02:00
Michael Stahl
9a8c82c66e gbuild, gengal: Win32 make command line limit strikes again ...
... so add a response file parameter --filename.

Change-Id: Idc71de7508b571b0e0608a65b92cd45e6800f7c3
2014-06-09 17:05:54 +02:00
Michael Stahl
f517362fb6 gbuild: Rdb: another workaround for Win32 make command line limit
This breaks in postprocess (services.rdb).

Change-Id: I573279e510b5f3dedd7e32059688d21c4c844c47
2014-06-09 17:05:54 +02:00
Michael Stahl
e85ddc1769 gbuild: UIConfig: response file to work around Win32 command line limit
Change-Id: I74d7ed5dd35e51168cc788a8336cf932b92102ca
2014-06-09 17:05:54 +02:00
Michael Stahl
59801c706d gbuild: AutoInstall: work around command line limit with Win32 make
Change-Id: Ice87781147d62d2ba5f7fe3e7cede89a0404c186
2014-06-09 17:05:53 +02:00
Michael Stahl
50b10febf3 gbuild: tweak var2file so it handles some shell metacharacters
Always quote the passed string; this cannot handle arbitrary strings
like $(file) can, but everything that is needed currently.

Also, try to ensure that output does not start with a space.

Note: there needs to be a newline at the end, otherwise helpex
ignores the last item on the line.

Change-Id: I51a4058591cc4f12dd878c2d113bd5cfc8c22d61
2014-06-09 17:05:53 +02:00
Michael Stahl
0d2542d67a gbuild, cli_ure: Win32 make issues with back and forward slashes
It looks like what works is to give the source file names with
backslashes but everything else with forward slashes?

Change-Id: Iaf910ab5fc41984d1315a30b164a334d28344c16
2014-06-09 17:05:53 +02:00
Michael Stahl
fbbce4cb2b nss: build fails with Win32 make due to backslashes
Change-Id: I9621b3ae12072634a707123ea375f6eb546d9cf9
2014-06-09 17:05:53 +02:00
Michael Stahl
c55af68ac2 extensions: tweak quoting for Win32 make
Change-Id: I6e3524ab98ec6ffdea24be808a718b2798e44f95
2014-06-09 17:05:52 +02:00
Michael Stahl
0a41a59a98 odk: run javadoc in shell
Change-Id: Ifb4a21f6145b303f5c636a61a0fd35b9ccaa9800
2014-06-09 17:05:52 +02:00
Michael Stahl
1cf83a52e9 odk: use single quotes for Win32 make
Change-Id: Ie6f3404ef034bae2550ca451909fcf120a70a78b
2014-06-09 17:05:52 +02:00
Michael Stahl
637b0ef1b5 cli_ure: Win32 make quoting problem, use sed to work around
Change-Id: Ide8a3c574a1904e08921684453256d1d3c98fd78
2014-06-09 17:05:52 +02:00
Michael Stahl
f5111df1f4 libabw,libfreehand,libvisio: avoid some quoting issues
With Win32 make there are problems with the sed expression.

Change-Id: I6d7fe52a233ef88a43ee1b6e3378fcb7b0792d07
2014-06-09 17:05:51 +02:00
Michael Stahl
548da05c53 curl: work around mysterious xcopy failure
When building with Win32 make, the xcopy at the end of the build fails
with "Invalid arguments" error, which is clearly wrong, since the
arguments are exactly the same as before, and furthermore curl is not
built with GNU make at all, but with nmake!  W-T-F?

Change-Id: Idc0b362202e1d14722573662bebeda0bc7070660
2014-06-09 17:05:51 +02:00
Michael Stahl
0a9f1cf88a openssl: stop (ab)using fix_end_of_line to break symlinks
Win32 make has problems because the command line gets too long.

Change-Id: I157b7b2b61353b158b1a3f412331e54aafec206c
2014-06-09 17:05:51 +02:00
Michael Stahl
1817366cb5 gbuild: remove config_libraries.h and gb_Helper_generate_config_libraries
This much ugly complexity, generating a header on every gbuild startup
etc. is really not warranted for 6 callers of the generated macros.
Also, the Win32 make has problems with the quoting.

Change-Id: If945e09c1730e52174a6084677842dc611d66b2f
2014-06-09 17:05:50 +02:00
Michael Stahl
2aab2f4b7b gbuild: partial_build.mk: avoid a problem with Win32 make
Somehow 2 successive / in a path result in $(wildcard) returning
nothing.

Change-Id: Ie8b84543d36fe50fa706b9ccabcd280a7e3913ab
2014-06-09 17:05:50 +02:00
Michael Stahl
fe8c5f632c Makefile: prevent Win32 make from doing CreateProcess(autogen.sh)
Change-Id: I2ed9c346a8e9cfa26aa2b04f554c56f02c400829
2014-06-09 17:05:49 +02:00
Michael Stahl
aa617a3a59 concat-deps: Win32 make $(file) will end lines with CRLF
Change-Id: I3677de94e064c2f737cc7882b3cc4f42a6bf626a
2014-06-09 17:05:49 +02:00
Michael Stahl
ed4a51b84b svx: Pakage_gengal is not needed on WNT
Change-Id: Ia012b38485f002748133c4a5f0d32d5d87168549
2014-06-09 17:05:49 +02:00
Michael Stahl
dbe2f8900f python3: stop symlinking directories on WNT
Change-Id: I281d3dd66a8db8da44cce60bade4a0ee7d1df763
2014-06-09 17:05:48 +02:00
Caolán McNamara
bcca34ed26 fallback to DefaultEncoding when eCurrentEncoding is unknown
as seen when saving abi10092-1 to rtf

sal/rtl/string.cxx:186: OSL_ASSERT: pTarget != NULL && (pSource != NULL ||
nLength == 0) && nLength >= 0 && (nLength == 0 || rtl_isOctetTextEncoding(nEncoding))

Change-Id: I638b94041899145f42ecd80982d8e7c0330b35c0
2014-06-09 14:10:33 +01:00
Caolán McNamara
c7d70ec415 fix build error
Change-Id: I9db006805bfd457663762e2fd2863d096b2547b4
2014-06-09 14:10:33 +01:00
Caolán McNamara
39b09b6701 use ok, cancel, help like everywhere else
Change-Id: Ibc4a5ee29fd9a6e734bef7ab9ce404aa8beaaaac
2014-06-09 14:10:32 +01:00
Caolán McNamara
ed53e00d0e drop unused helpid
Change-Id: Iaaa129d1baaab485e9700776182cd8d28b134b88
2014-06-09 14:10:32 +01:00
Caolán McNamara
8b208731bc valgrind: conditional jump depends on uninitialized data
load abi10122-1.doc and save as rtf

==8717== Conditional jump or move depends on uninitialised value(s)
==8717==    at 0x4E741D5: rtl_str_valueOfInt32 (strtmpl.cxx:682)
==8717==    by 0x2C3B4C6D: rtl::OStringBuffer::append(int, short) (strbuf.hxx:594)
==8717==    by 0x2C3AF36A: RtfAttributeOutput::FormatSurround(SwFmtSurround const&) (rtfattributeoutput.cxx:2840)
==8717==    by 0x2C4EA31B: AttributeOutputBase::OutputItem(SfxPoolItem const&) (ww8atr.cxx:5426)
==8717==    by 0x2C4D6EF8: MSWordExportBase::OutputItemSet(SfxItemSet const&, bool, bool, unsigned short, bool) (ww8atr.cxx:303)
==8717==    by 0x2C4D8D0B: MSWordExportBase::OutputFormat(SwFmt const&, bool, bool, bool) (ww8atr.cxx:872)
==8717==    by 0x2C3A9636: RtfAttributeOutput::OutputFlyFrame_Impl(sw::Frame const&, Point const&) (rtfattributeoutput.cxx:1702)
==8717==    by 0x2C450C95: AttributeOutputBase::OutputFlyFrame(sw::Frame const&) (wrtw8nds.cxx:2970)

Change-Id: I357e77f7a163fd9bb463d1a39f47381c23aa9eef
2014-06-09 13:46:11 +01:00
David Tardon
be4b837ed2 move UOF and Office 2003 filters to xsltfilter module
Change-Id: I6e5ac310567bb7bd12fbba444e4e1deb9fea30d5
2014-06-09 14:07:44 +02:00
Tor Lillqvist
c506639c93 A few improvements to macosx-codesign-app-bundle
Try harder to handle app bundles with space in name. (Not sure if this
version yet does that 100%.)

Include the directory names in the "ids" to make them unique. There
are lots of files with the same name (in different directories, of
course), especially in an app bundle that includes help in multiple
languages.

Change-Id: I424c539f6389ac6f7c9cef96aeb873ddac459f78
2014-06-09 14:58:02 +03:00
Tor Lillqvist
9835fa87ac Use essentially the same OS X code signing script as in libreoffice-4-2
Change-Id: Ica7dcc823cc7027a00b15d2dcf5b73b0ef322189
2014-06-09 14:57:55 +03:00
Caolán McNamara
ee710b09f8 this widget should be hidden until expanded
Change-Id: I1a6612428e3d9b98073983002db79b6f997d3968
2014-06-09 12:27:56 +01:00
Caolán McNamara
eb4cd7e74d some remaining sal_uInt16 to sal_Int32 editeng ESelection bounds
Change-Id: Ib47dea5c2d965cf613c465e624a1bdd81becb1c2
2014-06-09 12:27:56 +01:00
Caolán McNamara
f1f7f3f1d8 Updated core
Project: help  2a3ca8223d8669fe1f00445af80d7b84bfd73b00
2014-06-09 11:27:36 +00:00
Michael Stahl
bb9f5c9a51 scp2: kde module wants to install executables now
Change-Id: I573a48a96061e0d8b30c8e15fb9235df68c4f4e5
2014-06-09 12:41:53 +02:00
Michael Stahl
7ea6e5412d gbuild: avoid leaving invalid .d files behind if build interrupted
The LinkTarget command builds the LinkTarget's dep-file as well as an
optimization so the next make does not restart; in this case the
dep-file is not the target so it will not be deleted by make in case the
build is interrupted, and the next make can choke on the partially
written .d file.

Change-Id: I13b1884f1a974b7ce10b00e1df1d0f30222f4790
2014-06-09 12:34:31 +02:00
David Tardon
9266664937 rebuild filter config. after makefile change
Change-Id: Ibc788e248ea0c63e05c55d78ec059c48cff5dd72
2014-06-09 12:08:09 +02:00
David Tardon
6e299a555d rhbz#1105376 move FlatODF filter config to right place
This has been broken since 3.3(!), when the old XSLT based import/export
was replaced by a library.

Change-Id: Id335f296c5a0e2c15d1748f8a14ac8d4001e1d15
2014-06-09 12:08:09 +02:00