Commit graph

362852 commits

Author SHA1 Message Date
Kohei Yoshida
e5084fbf72 Be sure to copy the cell text attributes values to and from clip.
Otherwise we'd have to unnecessarily re-calculate the script types again
which is not cheap...

Change-Id: Ie589fb4a7e5ec9b5ef646dabea4e6bd0c0aca560
2014-10-22 18:07:27 -04:00
Kohei Yoshida
5156c5937b Set script type to latin for formula cells with numeric results.
But only when the column contains only standard number format types.

Change-Id: I83982d2e87f9776cf03754beaf183e35675be992
2014-10-22 18:07:27 -04:00
Kohei Yoshida
90f2f34267 Exit early in case the column has no cell notes to copy to destination.
Change-Id: Ifca77ccda7b2065b00ee29f29f377da599929843
2014-10-22 18:07:27 -04:00
Kohei Yoshida
beb2d06e2e Set latin script to numeric blocks of applicable columns.
Change-Id: Ib81ef144f168fed38100127bd63f43ea5a835a13
2014-10-22 18:07:27 -04:00
Kohei Yoshida
a4b7d8a401 Check for standard number format rather than just for 'General'.
That's what the ods import filter does.

Change-Id: Ibcd9a80a51785a448594d29a02283cca0ec53e95
2014-10-22 18:07:27 -04:00
Kohei Yoshida
bc1dd8feb8 Move this useful function to sc::NumFmtUtil.
Change-Id: I7b42a4418408ee2c988c32e7f1adeee3dfe269c8
2014-10-22 18:07:26 -04:00
Kohei Yoshida
f1fcac4bc9 Try to determine whether or not a column has all 'General' number format
during import.  We'll then use this information to set script type to latin
for all numeric cells in those columns rather than leaving the script type
'unknown'.

Change-Id: I69eae1effc32c57290b0265bc6c87e58f51944b1
2014-10-22 18:07:26 -04:00
Kohei Yoshida
e0d62d8ef7 Move SetAttrEntries from ScDocument to ScDocumentImport.
Since that method was really an optimization for xls(x) import code.

Change-Id: Ie2530f5dc27411bd45d72440681689c6c7a8b10a
2014-10-22 18:07:26 -04:00
Kohei Yoshida
ab4606f9e7 Update all script types in the marked ranges up-front.
This is slightly faster than doing it on a as-needed basis.

Change-Id: I7618f003f3c98ee894c3f1cf597681e4281cc6ab
2014-10-22 18:07:26 -04:00
Kohei Yoshida
8922f72d1e Annotate FindEditCellsHandler.
Change-Id: Ib49a7a3eccee62e5496f7f19824631866e072b6a
2014-10-22 18:07:25 -04:00
Kohei Yoshida
04ee80c1a6 Store height array to RowHeightContext and reduce function arg counts.
Change-Id: I09b79bc76ffc55e25c24bbfa8f000f4a46df0a1c
2014-10-22 18:07:25 -04:00
Kohei Yoshida
48f2cc5a2e Set rotation reference directly via internal API.
Note that the original code would first set the rotation reference value
stored in the Xf, then later unconditionally overwrite it according to
the border setting.  The new code only ports the second part.  Perhaps
there was a bug in the original code....

Change-Id: I15b6839e9a58e8070a43db70e1a88b42ed99f2d8
2014-10-22 18:07:25 -04:00
Kohei Yoshida
cfcfd1a868 Set cell style name to the document directly, bypassing the UNO API.
Change-Id: I28decfdfd8248fb9b95416b9b269a4ffabcc6370
2014-10-22 18:07:25 -04:00
Miklos Vajna
013ec10d4e i#84172 RTF import: handle nested groups inside redlines
The problem was that in case we had {\revised foo {bar}}, then we only
started a redline before "foo", but we ended it twice: during handling
of both "}". Make sure that the end of the redline is only handled by
the second one.

Change-Id: I41ab8b486e8615d3479fa0fadd6016476859b4b2
2014-10-22 22:45:15 +02:00
Maxim Monastirsky
9f06a0988d fdo#84844 Sidebar: Use SvxColorToolBoxControl for paragraph color
Change-Id: I0231a52288ca9a8a2a5e5cdb13fdff772b989640
2014-10-22 23:25:52 +03:00
Maxim Monastirsky
e2b84636b3 Related: fdo#84844 Support of Sidebar wide buttons in SvxColorToolBoxControl
The end goal is to convert the Sidebar to use
SvxColorToolBoxControl, and get rid of the Sidebar
specific color popup, so we don't need to maintain
two popups.

Change-Id: I42e5bcb611acae25f16dfe9623d19727fc39ea07
2014-10-22 23:25:52 +03:00
Andras Timar
af24b62737 scp2: fix language codes for sr-Latn and ca-valencia
Change-Id: I0fe5d3b305c5105e987fcae90f2733b373fecc73
2014-10-22 21:43:58 +02:00
Tor Lillqvist
2825fe0fef Bin unused version.map file
Change-Id: Ic0efcf61e43864d531721474540ec138033bffe6
2014-10-22 19:29:05 +03:00
Tor Lillqvist
a60ce288fa WaE: overriding virtual function declaration not marked 'override'
CppunitTest_configmgr_unit fails, though, so I did not uncomment it in
Module_configmgr.mk. Presumably one would need to look in the old
configmgr/qa/unit/makefile.mk to find out how to run it.

Change-Id: Id368fd94076f873bfdd34f1829d6a009daa7fa84
2014-10-22 19:28:04 +03:00
Tor Lillqvist
42a78549ce WaE: Unreferenced function definition
Change-Id: I3364da59679875c21691fa758578fd871e359956
2014-10-22 19:22:11 +03:00
Michael Stahl
6af967ae4c Revert "PythonTest_dbaccess_python: don't modify source document"
This reverts commit 29474c7a22.

Removing the lock file fails on Windows because it is opened; it ought
be possible to close the document instead to clean up the lock file?

Change-Id: I2c93fc893c62d6a267be9723761e5ed7577086a7
2014-10-22 16:50:46 +02:00
Matúš Kukan
87cb3a7c96 unusedcode: Remove Deflater::setLevel
Which makes bSetParams always false; remove that too, together with nLevel.

Change-Id: I94a4ec14b2b2c498d749ef72c1b6b118bba37076
2014-10-22 16:03:20 +02:00
Tor Lillqvist
8b292a29a4 Match also "debug" lines (for instance from SAL_DEBUG)
Change-Id: I2981a622205cca2dadfc6cb0007559b8270f3d5b
2014-10-22 16:52:35 +03:00
Maxim Monastirsky
ce59240410 fdo#85324 Prioritize writerglobal8_template detection
Change-Id: I0454b52dcfe1514f81ddfc97a4f9246d6d2571f7
2014-10-22 16:49:16 +03:00
Michael Stahl
816e5063b8 framework, unotest: do not override UserInstallation from environment
The PythonTest_dbaccess_python may fail in incremental builds because of
stale JVM path in workdir/unittest/user/config/javasettings_Linux_X86_64.xml
so it's better to use the fresh UserInstallation that is already passed
in from PythonTest.mk.  To make that work, tolerate non-existing path in
SubstitutePathVariables::SetPredefinedPathVariables() at least when
running in the build environment, which is probably better than
effectively running with "/" as UserInstallation anyway...

This partially reverts commit 6dbb6275eb.

Change-Id: I4d42d53c049056590662828360c4ce5a29af0f4b
2014-10-22 14:10:16 +02:00
Caolán McNamara
deb9dd0648 remove original and unused word for windows 1 filter
move fltshell.cxx into basflt and fire up the chainsaw for the rest

This filter has never, as far as I know, had a route to actually execute it
since day 0 of OpenOffice.org.

Change-Id: I35a92e2dee60bdc5d2d4e7181074bc4a3635b54c
2014-10-22 13:11:35 +01:00
Caolán McNamara
e8204fe4cb Resolves: ooo#40683 support word for windows 1
via the standard .doc binary filter

Change-Id: I0284fa815e6874d7d59ad1ad8ede4482d2e266a4
2014-10-22 13:11:34 +01:00
Caolán McNamara
1a2c28cf0d callcatcher: update unused code
Change-Id: I96b4d44e44389245f3ccc4a08198676461c6a38b
2014-10-22 13:11:34 +01:00
Stephan Bergmann
f5fc81616c Avoid unnecessary #include
Change-Id: I6ec5de40ce2f4cbcce751dcae16dae60abbc1a37
2014-10-22 13:14:43 +02:00
Takeshi Abe
294c80f1cd fdo#75757: remove inheritance to std::vector
from SwOLENodes, by typedef'ing it instead.

Change-Id: Idafdc69a4cf7629c8c82fab5f3472be3049dfeab
Reviewed-on: https://gerrit.libreoffice.org/12019
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2014-10-22 11:02:55 +00:00
Vinicius Vendramini
f73112e229 fdo#83991 - remove redundant function folding comments.
Change-Id: I630aeedc31099e11d4bd0e91a05943e926efd61e
2014-10-22 12:03:35 +01:00
Takeshi Abe
d19f950dc4 fdo#84168 change writerperfect filters to use a new base class template
in writerperfect/source/writer.

Change-Id: I8840f13b44aa1060dab9383583bdb1db4db70aaa
Reviewed-on: https://gerrit.libreoffice.org/12038
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2014-10-22 11:01:05 +00:00
Stephan Bergmann
4b89bd55b0 Speed up xmlreader::Span::equals
Change-Id: Id1613a100e96667717cc32f44f84c0916055ea01
2014-10-22 11:46:23 +02:00
Stephan Bergmann
d9f303a030 Remove unused FormulaToken::Is3DRef
Change-Id: Ib720bc4b3bfff8e428d14d65ff73144db82c60e0
2014-10-22 10:58:21 +02:00
David Tardon
e3ac30fe62 fix oox build on big endian
Change-Id: I580266d908e30ef076de0517f41a600f4c9372c1
2014-10-22 09:55:23 +02:00
Adolfo Jayme Barrientos
2a858a4443 Save precious vertical space by removing some redundant heading labels
Change-Id: I6aaa7602f57f6cb2d0f9bc3ee897a9c3576d47d3
Reviewed-on: https://gerrit.libreoffice.org/12012
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-10-22 07:51:33 +00:00
Miklos Vajna
9212cd18b9 sw: port two switchHeaderFooter() calls to DocxTableExportContext
These two APIs do the same, except that the previous doesn't handle
nested calls, while the later does, as it stores its state on the stack.

The idea is that once all calls to the previous are eliminated, we can
get rid of it, reducing code duplication.

Change-Id: I0162f3ab475e306734412b39d7166c4f0bc6cd7f
2014-10-22 08:52:22 +02:00
Tor Lillqvist
9ecac3874d Replace DISABLE_SCRIPTING with HAVE_FEATURE_SCRIPTING
Feature test macros that govern conditional compilation should be
defined in config_*.h include files, not on the compilation command
line.

Change-Id: I40575a4762fd2564f10927b6f38a112dd9f9a3d7
2014-10-22 09:30:23 +03:00
Caolán McNamara
d0be09322d coverity#1242908 Untrusted value as argument
Change-Id: If9dd92c361d406c435329d29870dc8bb07a8ba7b
2014-10-21 17:23:17 +01:00
Miklos Vajna
29474c7a22 PythonTest_dbaccess_python: don't modify source document
Change-Id: I4e8f94554141e41863c474c5f99be4b1974f3dd7
2014-10-21 18:06:22 +02:00
Philipp Weissenbacher
c58c28d19b fdo#39468 Translate German comments - sw/source/core/{unocore|text}
Change-Id: Ib68eb94b296b002a8cd4e73dd6fd72a4f9d2f7d3
Reviewed-on: https://gerrit.libreoffice.org/12058
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-21 15:42:03 +00:00
Caolán McNamara
6cc11e591f true on success, false on failure
Change-Id: Iaba5f2634e985cf41d52bedcbf7ac1c060d02c1d
2014-10-21 16:30:07 +01:00
Stephan Bergmann
4492b1cf0c Remove dead CustomerNumber functionality
Change-Id: I221d3b9f0bf0f90a117fcf0caead52f2c31f7926
2014-10-21 17:22:55 +02:00
Stephan Bergmann
c35fec830a The only SID supported by PropExec/State_Impl is SID_ATTR_UNDO_COUNT
...apparently, given that the SID_ATTR_UNDO_COUNT entry in sfx2/sdi/appslots.sdi
is the only place that mentions those functions.  That reveals that all the
other SIDs mentioned there are completely unused.  (Also, there seems to be no
need to wrap the remaining PropExec/State_Impl functionality in #ifndef
DISABLE_SCRIPTING.)

Change-Id: Iea7a41aa323b7876d316794cebe962e6e086236d
2014-10-21 17:22:55 +02:00
Stephan Bergmann
16591b8ef7 SAL_WARN about unsupported dispatch requests
Change-Id: I3ee646258ed1419245a0766c79214102b08bbca1
2014-10-21 17:22:55 +02:00
Caolán McNamara
d1e9aa23a7 Resolves: fdo#83588 Revert "center slide after changing zoom"
This reverts commit b179235f70.
2014-10-21 16:18:45 +01:00
Yousuf Philips
7d9f02ccdb SIFR: add insert hyperlink icons from hyperlinkdialog icons
Change-Id: Idc02ca8c9faa8dfc05329bc1ef2807873590aabe
Reviewed-on: https://gerrit.libreoffice.org/12063
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-10-21 15:08:11 +00:00
Tor Lillqvist
2a6be90210 Flush output after each line
Change-Id: Id96ab8d9938725d780c475f2f892660f04448df1
2014-10-21 17:42:40 +03:00
Tor Lillqvist
fe2711dc10 WaE: unused parameters
Change-Id: I080677b1add4f82315ed063af2478c9e41d267ac
2014-10-21 17:42:39 +03:00
Stephan Bergmann
429af15f99 -Werror,-Wunneeded-internal-declaration
Change-Id: Id3c70202bd028bf7400419fcba5ba4217954acd5
2014-10-21 16:39:28 +02:00