331588 Commits

Author SHA1 Message Date
Miklos Vajna
aa6959ba2c fdo#53556 testcase
Change-Id: If58376aec31ab00cab19221beed73e8275a834d2
2013-08-09 16:12:18 +02:00
Miklos Vajna
9f1f719973 fdo#53556 RTF import: fix handling of default shapeType
It was a customshape, but Word seems to handle the shape as a rectangle
when shapeType is missing. This makes the text in the textboxes of the
bugdoc wrap properly.

Change-Id: I56e044f42ead348bbb79addc36fa13c82a7ffc29
2013-08-09 16:12:18 +02:00
Miklos Vajna
03f0cbd354 fdo#53556 RTF import of fFilled shape property for drwainglayer shapes
The real change is in RTFSdrImport::applyProperty(), the rest is just
refactoring to be able to read the "is textframe" property from that
method.

With this, the transparent big rectangle in the bugdoc no longer hides
the text on the first page.

Change-Id: I04cca3ade93a63edf608df047bef3bdccf8d3605
2013-08-09 16:12:18 +02:00
Stephan Bergmann
b3d898c201 -Werror=maybe-uninitialized
Change-Id: Ie6814e8ebb3fa17d545a86d18f5c9a895ab5a0ca
2013-08-09 15:10:21 +02:00
Prashant Pandey
3e7879998b Show hidden toolbar items when window size is decreased
When the Window size is reduced, the '>>' symbol thus appearing
must also show the items, that are provided by the toolbar but
are not shown because they are unchecked in Tools->Customize.

Change-Id: I062bee4447126bff4ae7ad6650be3b847acc0794
Reviewed-on: https://gerrit.libreoffice.org/5296
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-09 12:52:43 +00:00
Caolán McNamara
a783c7ce72 Resolves: fdo#67947 charsets not sorted in csv dialog
regression since 538ba011d7b598737c898cfcce1e0d7b00b40c84

Change-Id: I260819681dfd47435d8edf5fd97c873238c5d808
2013-08-09 12:24:53 +01:00
Caolán McNamara
d2c3297eed Resolves: fdo#67743 user autocorr file not written
regression since c9c2fbe485de2bb831bd2e58faef87a19ceff622

revert the logic change and keep the OUString conversion

Change-Id: Ia4f8c3be2b6e325122ae7b21c431c301b8afecad
2013-08-09 11:41:36 +01:00
Caolán McNamara
0136b4e524 XubString->OUString
Change-Id: I888537cbaec11ef52b1e89b61f7351c6b7769819
2013-08-09 11:41:36 +01:00
David Tardon
5621aa6b5c fdo#50436 fail if unpacking of tarball failed
Change-Id: Iacad0141a72a12e67e5cc33b2e2196b74a240e81
2013-08-09 11:57:15 +02:00
Stephan Bergmann
bcbdf67639 Revert "fdo#37341 dix unending loop in calc with Goal Seek"
This reverts commit 07112a712245bdcca40bb87e2bd118eec9635848, which breaks
JunitTest_sc_unoapi:

> checking: [sc.ScModelObj::com::sun::sheet::XGoalSeek] is iface: [com.sun.star.sheet.XGoalSeek] testcode: [ifc.sheet._XGoalSeek]
> LOG> Execute: seekGoal()
> LOG> Goal Result: 16.0   Divergence: 0.0
> LOG> Goal Result: 9.0   Divergence: 1.7976931348623157E308
> LOG> Goal Result: 0.8   Divergence: 1.7976931348623157E308
> Method seekGoal() finished with state FAILED
> LOG> seekGoal(): PASSED.FAILED
2013-08-09 10:53:54 +02:00
Lionel Elie Mamane
689e4849b7 Fix timezone && fractional second handling of GetDateTimeFromW3CDTF
1) The timezone correction was inverted.

   Imagine we are parsing "2004-03-02T14:18:20+02".

   Before correction, aOslDTime contains "2004-03-02 14:18:20".
   According to the comment, we want to convert that to UTC
   time, so we have to *subtract* 2 hours, not *add* two hours.

   From http://www.w3.org/TR/NOTE-datetime:

   A time zone offset of "+hh:mm" indicates (...) a local time zone
   which is "hh" hours and "mm" minutes *ahead* of UTC.

   So if it is 14:18:20 in the timezone two hours ahead of UTC,
   it is two hours *earlier* in UTC, namely 12:18:20,
   and we need to *subtract* two hours, not *add* two hours.

2) Handling of fractions of a second was buggy:

   It reads only one digit after the dot. This could be a valid
   implementation decision to handle only deciseconds. However:

   1) It then multiplies that by 10^9 (10e8 == 10*10^8, not 10^8!),
      and sticks that in the NanoSeconds field... That is 10 times too big:
      0.3s == 3*10^8 ns

   2) If there were additional digits, it then looks for the timezone
      offset specificator (beginning with '+' or '-') at these additional
      digits; it does not skip them: nOptTime is set to 0+3+2, i.e. to 5.

Change-Id: I4738dc069e37f29c8bbd9e689689a933027af840
Reviewed-on: https://gerrit.libreoffice.org/4743
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-09 08:47:42 +00:00
Lionel Elie Mamane
91ec774c9f $CC --version is too unstructured
Give up and revert to "$CC -dumpversion".
Since by now no test now refers to patchlevel, make it unavailable in GCCVER so that nobody tries to use it.

Change-Id: Ife0bb0a94a73555d1f19f5a3c5853148042c7bba
2013-08-09 10:29:08 +02:00
Jesús Corrius
f7feb4227d Call AddDocumentToPickList in SFX_EVENT_OPENDOC
Not only simplifies the code but makes the application more
coherent with other Windows and Linux applications as the
recent documents lists is populated when you open the file.
Also, for Windows 7 and higher, it makes a call to
Application::AddToRecentDocumentList. Tested on Windows
and Linux.

Change-Id: I360acc9723260d5827eb83e3c240ab0673352af6
Reviewed-on: https://gerrit.libreoffice.org/5266
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-09 08:26:59 +00:00
Caolán McNamara
17664f377b convert wrap dialog to .ui
Change-Id: I453c7d50dad00f510770c425629594f1c197fdef
2013-08-09 09:24:26 +01:00
Lionel Elie Mamane
24de9f9a55 $CC --version for CLang
Has only two components, e.g. 4.1

Change-Id: I255a5a3e240f41d39ee88c4be0c714e29db75a6a
2013-08-09 10:21:10 +02:00
Lionel Elie Mamane
b2206a1fc2 more extreme gcc --version parsing
Change-Id: I5bb195e54274d9210ae8d4c2d31690ce8e79a425
2013-08-09 10:04:56 +02:00
Isamu Mogi
70b3cae54b Support to compile firebird on cygwin-64
C Compiler (cl.exe, gcc-wrapper.exe) for firebird generates 32bit
object file but windres on cygwin-64 generates 64bit one. It causes
link error. This patch unifies these objects in 32bit.

Change-Id: Ie631bdcc22eedd694c880f55101db77b9ac5f669
Reviewed-on: https://gerrit.libreoffice.org/5273
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-09 07:54:48 +00:00
Stephan Bergmann
4f19b6f512 "gcc --version" output is rather unreliable
...so extend 409e6a2e0b89eab82e79b0cd122062f47c6c7afb "gcc -dumpversion has only
MAJOR.MINOR, not MAJOR.MINOR.PATCHLEVEL" to also cope with e.g. Fedora 18 gcc's
"gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)" output line.

Change-Id: Ieb5e032685da49cd7e6f0a49a0fdc137fc24fbbd
2013-08-09 09:49:05 +02:00
Stephan Bergmann
c42ac01b22 -Werror=sign-compare
Change-Id: Ibcf2ef9e81befbed56e174c9e33ad27e71c97cb1
2013-08-09 09:29:28 +02:00
Lionel Elie Mamane
409e6a2e0b gcc -dumpversion has only MAJOR.MINOR, not MAJOR.MINOR.PATCHLEVEL
At least, for gcc 4.7 on Debian. OTOH, gcc --version outputs
(on its first line)
gcc-4.7.real (Debian 4.7.2-5) 4.7.2

so use that. Hopefully will work across systems & distros.

(gcc-4.7.real is probably just argv[0],
 because diversion from hardening-wrapper)

Change-Id: I94ea73628d8aac107e3ada1dc5a63e51e79ccdb2
2013-08-09 09:19:14 +02:00
David Tardon
8716aa29fe fix windows build (hopefully)
Change-Id: Ia3e20248b1d60d6815fae1328c94b7c54910b7c6
2013-08-09 07:24:40 +02:00
Michael Meeks
2c9182e25a odk doc cleanup.
Change-Id: Ibc5998e665b0f81cdf805e128065e253c46594ab
2013-08-09 05:07:45 +01:00
Takeshi Abe
f30cde45db Mark as const/static
Change-Id: I5d51d7e01913ac9917578f8c9789312af9be3638
2013-08-09 09:22:49 +09:00
Takeshi Abe
06e6123012 Bin unused #include
This came with f982b722fb71032cca2b6cd9cdc46cdace2fbf15, and
should go with c6b30952edc6cf64f657f1d27225844b6b13aa30

Change-Id: I0727a534f6ba8c6599275a96efa0ebcbd6e65733
2013-08-09 09:22:48 +09:00
Michael Stahl
5cb4ac4530 boost::ptr_vector<OUString> considered silly
Change-Id: I85c3d8a0e6b64c7a8dcf66a3dfde25151718c4d9
2013-08-08 23:25:29 +02:00
Michael Stahl
f12ce0ae0f sw: convert rest of SwStyleNameMapper to OUString
Change-Id: I54d1a31b86e60ceb9070f502df305d75bcfa23d9
2013-08-08 23:25:28 +02:00
Michael Stahl
8d4aafa7ce sw: turns out that SwComboBoxStyle stuff was not actually used
Change-Id: I4e0e3832268e11a445391a99d52d099917bc8aec
2013-08-08 23:25:28 +02:00
Michael Stahl
03eb15938e vcl, sw: fix the inheritance of SwComboBox from ComboBox a bit
Remove the silly overloading, and introduce virtual methods.

Change-Id: If54a6a3fb7464283f80d3387ae23db234690f8a3
2013-08-08 23:25:28 +02:00
Michael Stahl
af2d474ff9 sw: convert SwCaptionOptPage to OUString
Change-Id: Ibd54c1472a3f86a0799386e4cf5e929d73ac104d
2013-08-08 23:25:28 +02:00
Michael Stahl
40b4567be2 sw: convert SwCondCollItem to OUString
Change-Id: Id3efca3f1cb555ec995973b8a5bdd2a78318e18f
2013-08-08 23:25:27 +02:00
Michael Stahl
df7ffcdb02 sw: convert some SwStyleNameMapper methods to OUString
Change-Id: I151678b2bf155a7561b4c4e4b2d9fd1f05930477
2013-08-08 23:25:27 +02:00
Michael Stahl
642926b4b5 sw: convert more SwTxtNode stuff to OUString
Change-Id: Ic853af7f66d970d7acfcb7d39effc738cbb7f68d
2013-08-08 23:25:27 +02:00
Michael Stahl
4cf82f05b2 sw: convert Replace0xFF to OUStringBuffer
Change-Id: I510021cff6aee73e04473700cc23eb90fc6d4fe7
2013-08-08 23:25:27 +02:00
Michael Stahl
28f38798fc SvxFont: remove duplicate LanguageType member
... that already exists in Font baseclass.

Change-Id: Ia87e8b791e153bdd4ddc6c84eba6b4f37d127dca
2013-08-08 23:25:26 +02:00
Michael Stahl
4c0d933278 convert more SwTxtNode methods to OUString
Change-Id: If7cc107e521e1a70ba00b0f24057039fcdd2c576
2013-08-08 23:25:26 +02:00
Michael Stahl
8aab4901d2 make SwTxtNode::Replace0xFF static function
Change-Id: I4da73eab3e767c2ed7699808e00c40d440a40dbe
2013-08-08 23:25:26 +02:00
Michael Stahl
c66a0e9c86 remove obsolete SjJSbxObject cruft
Change-Id: Ieb10d3bd8fc23650156906292bf3d0757565e2af
2013-08-08 23:25:26 +02:00
Michael Stahl
92a2862e5c convert some SwTxtNode methods to OUString
Change-Id: Id60ffcc392d0ee71d3ddcb8de21bdaca4d0b54cd
2013-08-08 23:25:25 +02:00
Michael Stahl
91f3d77b98 tweak comment translations
ede5f05c fb3a1bb9 5e04331f fd6089b9 66a1d406

Change-Id: I5077ce5f6182f9193cebaaf63190450d375679dd
2013-08-08 23:25:25 +02:00
Tomaž Vajngerl
0c6b4f5c7f Make selection corner marks slightly transparent.
Change-Id: Ibf363d741ca346adefd30f5b68d9a47db73db8df
2013-08-08 23:03:38 +02:00
Tomaž Vajngerl
5f3b4c0eb6 fdo#67592 Resize selection box from all 4 corners
Change-Id: I40c857eb1ed5c784a3911667f685c6450bf7a7c4
2013-08-08 23:03:37 +02:00
Tor Lillqvist
dfc4ace427 fdo#62442: Move the InfoPlist.strings files into the app from langpacks
The digital signature of an app bundle includes an integrity check for
the Resources subtree. This is the normal place for Mac apps to have
their read-only non-code "resources". In LibreOffice it is currently
not much used, though.

The signature thus breaks when a lang pack installer is run and plops
its InfoPlist.strings file into the "Resources" subtree. This file
contains translations of strings in the app's Info.plist file. For
LibreOffice, it contains translations only for some of the file type
names in Info.plist. (Why only some, I don't know.)

Files installed by a lang pack insaller into other locations in the
app bundle don't harm the signature.

Making the InfoPlist.strings files be distributed as part of the main
app bundle instead of in langpacks should keep the signature valid
even if a lang pack is installed. The InfoPlist.strings files are
small so the size of the main app should not grow significantly.

This required introduction of a new functionality in scp2: The
possibility to generate a list of several complete File or Directory
stanzas, one for each language for which translations are being
built.

(This is different from the existing functionality, used for files
that go into lang packs, where a stanza contains several Name or
HostName attributes (or whatever the term is) where the attribute
names are qualified with the language code in parens.)

Change-Id: I3afd9b08944fe1bccb5f0c881d740d260f589e39
2013-08-08 23:36:30 +03:00
Tor Lillqvist
1b5ed901af Simplify check for verbosity
Just check for $(VERBOSE) or $(verbose) being non-empty instead of
checking for $(VERBOSE) equalling "TRUE". Isn't our normal way to do a
verbose make to pass verbose=t?

Change-Id: Ic4ddc1fe025fed55ca56fd21b615640c389c0454
2013-08-08 23:36:29 +03:00
Julien Nabet
5fbc94bc00 Fix some memory leaks
Change-Id: If8c1b341b8493b8902f060d8d13bbb7d08991cd9
Reviewed-on: https://gerrit.libreoffice.org/5309
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-08 20:05:59 +00:00
Jesús Corrius
5f23dac65b Add AppUserModelID for all supported formats
Now only the ODF formats have AppUserModelID, but we
need AppUserModelID for all supported formats so the
Windows 7 recent documents works as expected.

This patch only adds a few registry keys during the
installation process on Windows.

Change-Id: I2d7460c1ed8b4ba77da8bb1c5b0c696c521353c5
Reviewed-on: https://gerrit.libreoffice.org/5274
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-08-08 19:49:26 +00:00
Mark Wielaard
3cf0b5cdb0 Add SDT probes for interning rtl_uStrings.
This adds RTL_LOG_STRING_INTERN_NEW and RTL_LOG_STRING_INTERN_DELETE
which are connected to SDT probes if available. It introduces two new
SDT probes. new_string_intern_16 and delete_string_intern_16
(there is currently no interning for 8-bit rtl_Strings).
For consistency both have the same 4 arguments as new_string_(8|16)
and delete_string_(8|16). new_string_intern_16 has as 5th argument
the address of the original rtl_uString being interned (which may
or may not be the same as $arg1).

Change-Id: Ib117bba932c1908abc70a7fdd4140c0af76d54cb
Reviewed-on: https://gerrit.libreoffice.org/5308
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-08-08 19:13:41 +00:00
Krisztian Pinter
9cf4be5ce8 startcenter: Add RecentDocsView for displaying thumbnails for recent docs
Change-Id: I6d9bb87a6ee28d62ee012e6807d1c5a4f3219e27
2013-07-20 08:12:16 +02:00
Laurent Godard
f807403faa import performance : do not use EditEngine anymore
Change-Id: I5849add3444cff15a201a276c8917fabc4b33262
Reviewed-on: https://gerrit.libreoffice.org/5317
Reviewed-by: Kohei Yoshida <kohei.yoshida@suse.de>
Tested-by: Kohei Yoshida <kohei.yoshida@suse.de>
2013-08-08 17:35:36 +00:00
Lionel Elie Mamane
af53d7a181 fdo#63539 make SvTreeListBox::Select virtual
SvLBox was merged with SvTreeListBox;
SvLBox had a virtual Select() and some derived classes override it.
E.g. dbaui::DbaIndexList.

Change-Id: I82b3718e72db5d320704e1e2871de86abc686441
2013-08-08 19:13:12 +02:00
Krisztian Pinter
c958a35bef Move startcenter.ui from framework to sfx2
In a previos move BackingWindow was moved, but startcenter.ui was left
behind by accident.

Change-Id: I7d9669df9b2b65311e119640ba2a7a331b6336e9
Reviewed-on: https://gerrit.libreoffice.org/5316
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
2013-08-08 16:23:17 +00:00