Commit Graph

353771 Commits

Author SHA1 Message Date
Miklos Vajna
e6300f83d0 DOCX import: recurse into w:ins in groupshape text
Groupshape text is provided by editeng, redlining is available in Writer
text only. But still, instead of ignoring both deletions and insertions
in group shape text, we could at least show the latest version
correctly, i.e. ignore deletions but import insertions.

Change-Id: I12df2ca1a8d27f9496a8036e521f8820d7075053
2014-05-23 09:45:45 +02:00
Miklos Vajna
fa017a3e50 DOCX import: detect inline shape inside shape text
Change-Id: Ia1614759558e73686fce137eb52fb623eae4a4e5
2014-05-23 09:45:45 +02:00
Miklos Vajna
86283cd75e DOCX import: detect table in groupshape
Change-Id: Iba7bb88139a97e919739363cd85f3e822062b694
2014-05-23 09:45:44 +02:00
Stephan Bergmann
e21cb52427 external/hypen: Fix for pre-C99
Change-Id: Iff0692768cbcaa68f79404a9a933044fe8bb9096
2014-05-23 09:37:23 +02:00
Stephan Bergmann
a8df8e319f Remove dead code
Change-Id: I198fb0193fed891c4dd8a8a92c29e36f6c4d48b9
2014-05-23 09:23:43 +02:00
Pallavi Jadhav
70f49dc692 fdo#78882: DOCX: File gets corrupt after Roundtrip
Issue :
	- Document contains a Section break(Next Page) with a drawing.
	- Section break is manullay adjusted before the drawing.
	  Hence in original document.xml it wsectPr comes as
	  a part of w:pPr of paragraph.
	- But in RT in document.xml, section break is written
	  by adding a dummy paragraph.
	- This is because <w:drawing> also contains a paragraph
	  and hence when encounters section property LO creates
	  a dummy paragraph and writes it in between runs.
	- This was causing the corruption.

	Implementation :
	- Added a member varaible m_bDMLAndVMLDrawingOpen.
	- It is set to true when it writes drawing.
	- It's value is checked in DocxAttributeOutput::EndParagraph()
	  If m_bDMLAndVMLDrawingOpen is true Do Not make
	  m_bParagraphOpened to false, as one more paragraph is still
	  open.
	- This will postpone the writing od Section property and will
	  be written inside w:pPr and no dummy paragraph will get
	  created.
	- Added Export Unit test case.

Change-Id: Ifa26fcaf8f02e62d020339670c8ba58ba92d9f40
Reviewed-on: https://gerrit.libreoffice.org/9430
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-05-23 01:33:13 -05:00
Rene Engelhard
40facc4ea8 don't unconditionally require bsh.jar and js.jar in RepositoryExternal.mk
... as they can be disabled and thus are not there at install

Change-Id: I197b5053971d2721114b2ebc7b3c31db36c3f58e
2014-05-23 08:18:08 +02:00
Markus Mohrhard
c68c5e753d the variable is only available on linux 2014-05-23 03:02:32 +02:00
Kohei Yoshida
cb167ac784 fdo#78903: Don't broadcast prematurely during cell deletion.
We need to wait until all the affected cells get marked dirty at the
end of the deletion process.

Change-Id: I49618fcc386ec2209f5f0267d50257ecb8dd21d1
2014-05-22 20:59:11 -04:00
Kohei Yoshida
fa2751ea5c fdo#78903: Write test for this.
Change-Id: If8ed8b74b58efd948772376a14172b52ff588f82
2014-05-22 20:59:11 -04:00
Markus Mohrhard
e44e09c400 whitespace clean-up
Change-Id: I10bdfc3356bda66fefa59fa2c9f63f9231d8728e
2014-05-23 02:50:43 +02:00
Markus Mohrhard
e4ee3dd1dc we only support GLX 1.3+
Change-Id: I2447498cf92da91a7fb2d67ee041d603ae16fe25
2014-05-23 02:50:42 +02:00
Markus Mohrhard
cfaa96546a Lsan: fix memory leak
Change-Id: I82a517a267cceaac4dd1030d45c67fc070e22def
2014-05-23 02:50:42 +02:00
Markus Mohrhard
a1e7915bfe Lsan: fix memory leak
Change-Id: Id8adb7517960a33f9900cb773b62b84db71e795a
2014-05-23 02:50:42 +02:00
Markus Mohrhard
5b37884d57 Lsan: fix memory leaks
Change-Id: I010c7c194bf0680a499077b6b364498a09542764
2014-05-23 02:50:42 +02:00
Markus Mohrhard
68c1977ce0 remove unused variable
Change-Id: Ib79f0c525608d279eebe820bfc82e84dd3518c29
2014-05-23 02:50:41 +02:00
Markus Mohrhard
3bb9a29081 Lsan: fix memory leaks
Change-Id: I35adb022f12c6833f4f29b2e8dad44394a2c4be5
2014-05-23 02:50:41 +02:00
Markus Mohrhard
2b2fc70d26 Lsan: fix invalid memory access
The chart object can be destroyed after the context.

Change-Id: I5ae370638f296ea314ee11680e0a8d81a8fdbe69
2014-05-23 02:50:41 +02:00
László Németh
8778b5b37e fdo#79078 restore transparency in SVG export
Change-Id: I5bdf6c3b313a73126cb692e5101836f424a2fc08
2014-05-23 01:11:07 +02:00
László Németh
6d06aa8ba8 fdo#48017 WIN32 long path support in Hyphen and MyThes
Change-Id: Ifb068efb553ed24a7caf65dbab28726bdeced0e6
2014-05-23 01:06:50 +02:00
Chris Sherlock
7818974103 vcl: split window.cxx into event and settings functions
Change-Id: Ic038a1c95721d4e578face5deea0b8d8a4ab7304
2014-05-23 08:37:26 +10:00
Christian Lohmaier
f56101cb21 gb_AWK variable not available here...
Change-Id: Ib763efb268bc9165704185c2b588ed282121cfa0
2014-05-23 00:25:28 +02:00
Michael Stahl
831c8e02ca jvmfwk: generalize (and fix) the do_msvcr71_magic to Oracle JRE 7
With just the Oracle JRE installed, it is not possible to load the
"jvm.dll" directly, because the required MSVC runtime DLL is not
found (unless some other software happens to install it system-wide),
as described in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7184978

There was a hack "do_msvcr71_magic" to manually load the runtime that
is bundled with Oracle JRE 6 and this generalizes that to work with the
MSVCR100.DLL that is bundled with Oracle JRE 7 as well.

An additional adaption of the virtual addresses in the file is done,
and it's a mystery whether it even worked before without that.

This issue was not user-visible before because LO releases 3.5 - 4.2
bundle the MSVCR100.DLL themselves.

Change-Id: If61565df80ff8a68472a76000ab5b10d6c78e11c
2014-05-23 00:19:31 +02:00
Julien Nabet
6deec9c910 Fix
Change-Id: Ib4d7c2da71a6fa083fc1ed56f058c8dfbc6e58fb
2014-05-22 23:48:37 +02:00
Julien Nabet
e4ec60ac71 Fix previous commit
Change-Id: I629b5f6e57c5d8368bafc544c1c23785ee209a1e
2014-05-22 23:43:49 +02:00
Julien Nabet
b09b5f8f7c Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
2014-05-22 23:21:18 +02:00
Christian Lohmaier
87c1aa16a9 use $(gb_AWK) instead of awk
Change-Id: Ia00d7e52de5edfce09c3a0a8aa4390e3e1582a01
2014-05-22 22:49:02 +02:00
Douglas Mencken
4fbbfc2269 WoE: while (..) {} instead of while(..);
"warning: suggest a space before ';' or explicit braces around empty body"

Change-Id: I71a55cc888d3480217621491ecace7d0af3dca6e
Reviewed-on: https://gerrit.libreoffice.org/9441
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-05-22 15:10:57 -05:00
Miklos Vajna
c0765d1b5e coverity#735895 Unchecked dynamic_cast
Change-Id: I6c2cc90668a2158a0b5bf638ce520c8af7731f4e
2014-05-22 19:52:28 +02:00
Miklos Vajna
8e2b894c30 fdo#76101 move testcase to CppunitTest_sw_ooxmlsdrexport
The motivation is that this test takes time to execute (and we're
testing a limit here, so it's not easy to speed it up), though moving it
out of CppunitTest_sw_ooxmlexport is still possible (which is the
current critical path during a toplevel 'make').

Change-Id: Ibe6580f8aea1439f4feb281996f2f4bbd46ff4ce
2014-05-22 19:52:27 +02:00
Miklos Vajna
8acb6155c3 clean up RtfExport::WriteInfo()
The \vern output was never parsed, and Word uses the generator field, so
let us do the same. And with the standard generator string, if we ever
need to parse it, we already have a parser for it in the ODF filter.

Change-Id: I57f25a6414b2b753a23cf82b691e364d84e4bb44
2014-05-22 19:52:27 +02:00
Zolnai Tamás
b40ca0935d glTF: download *.dae and *.kmz files to the temp folder before conversion
Copy them to the same folder where the conversion output is written.

Change-Id: I38b93bf3fc427974cff7d6975151451a253b1cce
2014-05-22 19:41:01 +02:00
Eike Rathke
fe2b8ef18b advance start of edit selection on a matching entry
... to allow continuous typing.

Change-Id: I4717e72e422037a441e582004bc87689ea7bc455
2014-05-22 19:35:37 +02:00
Eike Rathke
dbe8b3b6d4 finally switch the Western language list box to SvxLanguageComboBox
Change-Id: Ibf0cb4c0fa951adcd0a7f185d7dd45b06913a40d
2014-05-22 19:35:36 +02:00
Eike Rathke
1aad7628dc handle SvxLanguageComboBox edit
Change-Id: Icc2a4829b8a859756ed194f35df214f8bb55c7ae
2014-05-22 19:35:36 +02:00
Eike Rathke
29c024afbe + SvxLanguageComboBox EditModifyHdl(), SaveEditedAsEntry()
Change-Id: I6acc7538fcbf8aa7a5e50ba72b27409252cffa15
2014-05-22 19:35:36 +02:00
Eike Rathke
2a8eff589a +bool SvtLanguageTable::HasLanguageType()
Change-Id: Id57eb51b69e50be78f85d19a7b3623c1acdf6509
2014-05-22 19:35:36 +02:00
Stephan Bergmann
407db84412 Fix memory leak in xrmex tool
Change-Id: I102566a95b5b34daf60730ffef290913caf28eb2
2014-05-22 18:51:57 +02:00
Stephan Bergmann
9adad0d1ea Avoid undef use of null ptr, use offsetof instead
Change-Id: I095f45b537690fe98bf385d99194db6319d7ac93
2014-05-22 18:36:31 +02:00
Stephan Bergmann
b5cb4935c2 Work around undef conversion of large double to float
...as flagged by -fsanitize=undefined.  But is it really undefined?
[conv.double] "If the source value is between two adjacent destination values,
the result of the conversion is an implementation-defined choice of either of
those values."  So if the double is between std::numeric_limits<float>::max()
and std::numeric_limits<float>::infinity()...

Change-Id: I6389c8ac4a922991e240638d231dd2a39e173882
2014-05-22 18:31:07 +02:00
Stephan Bergmann
4330085f14 Avoid undef conversion from log10(INF) = INF to sal_Int32
Change-Id: Iffe85763097829cb04b766314077b5f2a9b5b8d5
2014-05-22 18:29:35 +02:00
Stephan Bergmann
c8945b3fb8 Fix order of function pointers
Change-Id: Ic1bae7fcebfaf35b62aecd86ed8b3a70fae3e4d3
2014-05-22 17:57:34 +02:00
Jan Holesovsky
7aa79223d7 bnc#467278: Introduce a warning that changes to VBA macros cannot be saved.
As an InfoBar, so hopefully not annoying...

Change-Id: I5d4e79273edc03829fdab2d6d5a291576c954e4b
2014-05-22 17:31:27 +02:00
Stephan Bergmann
d967e03ace Fix memory leaks in test code
Change-Id: I0dbb2546f1e776ebf95b61c16ebedbce0ead4c7f
2014-05-22 17:15:56 +02:00
Matúš Kukan
278baa557d cp#1000078: Replace "\r\n" with "\n" when pasting from X11 clipboard.
E.g. when pasting from terminal you will get "\r\n".

Writer inserts '\r' character into the document as an
invisible character. If you save that to .odt and reload, you will
get ' ' instead. Or when saving to .doc and reload, you will get '\n'.

Change-Id: Id6780bf6d71a8f0a17c1e6ee7a7dcb4d297446dc
2014-05-22 16:31:33 +02:00
Zolnai Tamás
60ce9e98cb collada2gltf: move patches to an own folder
Change-Id: Ife28845af92883d8090bb80283c59a0a9a350b32
2014-05-22 16:15:42 +02:00
Zolnai Tamás
1dd84fc467 collada2gltf: fix URL problems
collada2gltf does not handle Windows pathes, the used COLLADABU::URI
class can't parse native Windows pathes so call COLLADA2GLTFWriter
with URL only.
Other problems:
collada2gltf uses the URL path for creating/opening files,
instead of native ones.
collada2gltf initializes _outputFilePath member in different way,
sometimes as an URL path, sometimes as a native one, but handle it
on the same way(as an URL).

Change-Id: I104182653c07e7dcf6fc5b6e32c7031d59246b84
2014-05-22 16:15:41 +02:00
Zolnai Tamás
d466f926f8 opencollada: move patches to an own folder
Change-Id: I0b60fa5b0af8224b4c517367130aa9738f071531
2014-05-22 16:15:34 +02:00
Zolnai Tamás
7cafb75533 opencollada: uninitialized bool variable broke the parsing
GeneratedSaxParser::Utils:toURI() method has a bool output
parameter called failed, which is assumed to be set inside
the method before return. At some place the caller code does
not initialize the bool variable passed to this failed parameter
and so when the caller checkes the returned value it is
undefined.
e.g. it can be false when the method called successfully so
the error handling throws away the returned URI.

Change-Id: I3f90fab657a86b42bba0f492518e36c343e69d21
2014-05-22 16:05:21 +02:00
Christian Lohmaier
faa9a681e7 using xargs for string manipulation is somewhat of an abuse
(and breaks the build on windows/cygwin for some reason, although
running the find/xargs command by itself works just fine)
So just use awk instead and have a nicer solution without breaking the
build

Change-Id: I24b9f52c0b84c2e8019f3f6719a307fe508fb755
2014-05-22 15:51:54 +02:00