Commit graph

14163 commits

Author SHA1 Message Date
Tor Lillqvist
beda8feece Move the SAL_INFO operator<< for ImplLayoutArgs to sallayout.hxx for re-use
Change-Id: I6497550e8f55f9ba08b0c4f20de0ea04be45d617
2013-04-06 13:15:38 +03:00
Eike Rathke
876c619b94 new module i18nlangtag
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.

This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.

Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
Caolán McNamara
dac06a943a Resolves: fdo#61940 unable to change shape fill colors
The tab area page has a magic bit which is set when the page is activated that
enables its properties to be applied on ok. If another page is activated that
also affects area fill using an alternative set of properties, then the bit is
unset.

For layout we have to activate all pages that don't exist yet to get their
optimal size. So we need to re-activate the original/current page after forcing
the other pages to exist in order to make this trickery work.

Change-Id: I90cac4624a12e6c29f6b226ce831f71c7cc49117
2013-04-05 13:30:19 +01:00
Tor Lillqvist
b7525f1f1d Drop jvmaccess and jvmfwk when no SOLAR_JAVA
Just sprinkle #ifdef SOLAR_JAVA into the code instead.

In the source for jvmaccess and jvmfwk such ifdefs can be removed as
it isn't compiled unless SOLAR_JAVA.

Change-Id: Ia8614f8bd6d833582d3b79b5fb75f9153fa79606
2013-04-05 00:18:50 +03:00
Caolán McNamara
e910123ece make border property of multiline edit optional
Change-Id: Ideeda46baf3d96dd52a77b5d225df3c00153183e
2013-04-04 20:59:45 +01:00
Caolán McNamara
a60233918c map justification property to alignment bits
Change-Id: I7d1494430cbc75cfb831dfe5500a0c3e6c9147fa
2013-04-04 20:59:44 +01:00
Caolán McNamara
1439c2fedd use existing hook for replacing %FOO variables
Change-Id: Ib10545d964e96ae6f92583bbad8479951385247c
2013-04-04 14:26:11 +01:00
Jan Holesovsky
d9e0c08b52 Reduce scope.
Change-Id: I32160cff67494cde2ad21cb6d6fe48091d600b8d
2013-04-04 13:28:25 +02:00
Cao Cuong Ngo
84e99bd79a fdo#60542 Persona setting: change color of the text menu.
Change-Id: I1d0ed94d41b3b8bcf0504e1528f4f505f817ad86
Reviewed-on: https://gerrit.libreoffice.org/3127
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
2013-04-04 11:25:54 +00:00
Michael Meeks
ae2c256e22 unwind tangled mess around spinner buttons
Restore removed spinner artwork, cleanup the code: hicontrast - is now
a function of icon theme, not a global boolean.
uwith thanks to Ariel Constenla-Haile)

Change-Id: I68d4c7293a6faa130274cf45f53509ce140fa8c0
2013-04-04 11:17:21 +01:00
Caolán McNamara
5a5777f0a7 need to replace %OOOVENDOR in .ui strings
Change-Id: If44cc1750b8555eab6e3dc2659e60a8fff10b24c
2013-04-04 10:29:37 +01:00
Caolán McNamara
8c4f20938b Related: fdo#61688 get strict ordering right
Change-Id: Ibb3e74e98762358614713688d64e50db21025f1d
2013-04-04 10:29:37 +01:00
Tor Lillqvist
5551702b8d WaE: variable is uninitialized when used within its own initialization
Presumably aStr is intended here, not aTmpStr itself.

Change-Id: I9a887c33f89d519c17ee0156ba9cea55b465fe97
2013-04-04 08:13:44 +03:00
Chr. Rossmanith
0e137027fc Use OUString in ImplGetEllipsisString()
Change-Id: I02ae342857d2944c3d1a20b8d24bd6fcf3ac1f4a
Reviewed-on: https://gerrit.libreoffice.org/3159
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-04-03 21:51:26 +00:00
Tor Lillqvist
de2ccd8e1a Bypass fields that are unused for iOS
Change-Id: I378228808ef8f974e574714f48a2faf23123714b
2013-04-03 23:38:15 +03:00
Tor Lillqvist
ce0c3c1eb1 Ensure we have a CGContext in a couple of more places
Change-Id: I1d0963f51472328a1a5b212ab277c6e72fafd7b9
2013-04-03 23:38:14 +03:00
Tor Lillqvist
0ea4a01240 It's the font *style* we are looking at here
So no point in checking font *family* names like "arial" or
"times". Actually, I doubt this whole block of heuristics is
necessary.

Change-Id: I6965c27a7c4bed53db0e7ddaa40b1d09ccc4ad43
2013-04-03 23:38:14 +03:00
Tor Lillqvist
e0d38b6656 Add missing break
Change-Id: I938b512dc3a32af9f2529a92ea3e4291abf64ad2
2013-04-03 23:38:14 +03:00
Tor Lillqvist
965f58fa51 Fix heap corruption
As its name says, CFDictionaryGetValue() follows "The Get Rule",
i.e. you don't have ownership of the object returned, so it shouldn't
be released.

Change-Id: Ie605ac21754ed479911d8f4ceb00744a6df600aa
2013-04-03 23:38:14 +03:00
Thomas Arnhold
47664d3f2e fdo#58807 bring Beep() for basic back
The functionality was removed by fdo#48549.

This partially reverts

0f6101cfef
0bdf6fc7c7
85cb908453

I changed the behavior to always beep, because only the basic macro
function is using Beep(). Looks like the Beep macro function didn't
even work correctly before the removal, because the default was to
not beep for most platforms. So I set the volume from disable (0)
to 50% for XBell().

Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a
Reviewed-on: https://gerrit.libreoffice.org/3124
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-04-03 10:24:40 +00:00
Terrence Enger
e0dd0e821b Resolves: fdo#61688 SIGABRT with debug build in sortIntoBestTabTraversalOrder
Change-Id: I28b125405eda3362d0c71a1e1052ef4d3afbcf34
2013-04-03 10:48:40 +01:00
Stephan Bergmann
8644d10098 Asserting rtl::O[U]StringBuffer::operator [] preconditions
...and fixing two call-sites.

Change-Id: I8ed8cb189bd5034130b49b2f57156568e6b24716
2013-04-03 11:27:05 +02:00
Christian M. Heller
4c5bada9d7 fdo#39468 Translate German in DBG_ASSERT and OSL_ENSURE in texteng.cxx
Change-Id: I9aac6a1f6e4a36fb95a518b752aef2066b45094c
Reviewed-on: https://gerrit.libreoffice.org/3163
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-03 07:59:40 +00:00
Julien Nabet
ef53a3a12e Some cppcheck cleaning
Change-Id: I993bd95b31f1090c747f01a899650e8873dcaada
2013-04-02 23:01:14 +02:00
Tomaž Vajngerl
a05ebaa139 Jpeg filter: destroy cinfo at setjmp + minor code clenups
Change-Id: Iceaaf6cf98a4c64a17e88e4d3191cd7649940e82
2013-04-02 20:52:47 +02:00
Chr. Rossmanith
96699848ec Use OUString and sal_Int32 in GetTextWidth() (2)
Change-Id: I85ea6cc60add141954c8b75f78a8024c872d7174
Reviewed-on: https://gerrit.libreoffice.org/3158
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-04-02 16:11:57 +00:00
Miklos Vajna
44019e1c9a vcl: don't try to dlopen kde plugins when kde support is disabled
Change-Id: I01e19a9c7345e4a3489377ccb38c0465f8c88292
2013-04-02 17:49:26 +02:00
Thomas Arnhold
60212d6107 vcl: convert some fprintf to SAL_INFO
Change-Id: I4b9a20e62e8e137a1bfaa1c654307f15c33e3d3c
Reviewed-on: https://gerrit.libreoffice.org/3143
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-02 15:14:54 +00:00
Golnaz Irannejad
4d858fff6b Fix typo: addtional => additional in the comment.
Change-Id: I7e9e71c721266a0cbc4412024ec49cb689672876
Reviewed-on: https://gerrit.libreoffice.org/3165
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-04-02 06:47:04 +00:00
Thomas Arnhold
07b0617a5a update pch files
Change-Id: Ic33dd20a469d1905d2bdaf1ce3633e6ac6db8a4c
2013-04-02 01:15:34 +02:00
Julien Nabet
25e5d697bc Prefer prefix ++/-- operators for non-primitive types
Change-Id: If5950affaff1537362b1e5c2e3791d04c5371306
2013-04-01 20:22:02 +02:00
Miklos Vajna
b5f296f818 vcl: unused includes
Change-Id: I43d83b916bf1741cea7c94a77dcc57b69544801c
2013-04-01 19:36:59 +02:00
Armin Le Grand
93ce5834a6 Resolves: #i117968# Made WMFReader thread safe
Used multithreaded when SdrGrafObj is on asynchronous loading. It was not safe
due to using VirtualDevices on occasions where needed (mostly Font stuff).

Extends fix of 6280a1e310 for fdo#36991

(cherry picked from commit a379ffae809a4b9f92fbde9b9699f5353f7b3472)

Conflicts:
	svtools/source/filter/wmf/winmtf.cxx
	svtools/source/filter/wmf/winmtf.hxx
	svtools/source/filter/wmf/winwmf.cxx

Change-Id: Ifd1d23217c0fbe22edbd1b1995286846e19030de
2013-04-01 15:29:18 +01:00
Tor Lillqvist
d054a817be Revert "Try redrawing in multiple phases to avoid blocking the UI thread too long"
This reverts commit 3aae02d02d418222b0b51748008ed5c9c1f1d3c2.
2013-03-31 21:56:40 +03:00
Tor Lillqvist
41a70cc2d3 Try redrawing in multiple phases to avoid blocking the UI thread too long
When initially calling lo_render_windows() from a redrawRect(), just
post the user event asking for a redraw of the (headless) windows, and
return without actually drawing anything to the context.

Then when the RenderWindows() callback for that user event eventually
gets called (which during startup and/or loading of a document might
be several seconds later, as there is lots of other activity going on
also as "user events"), ask the UI thread for a fresh redraw, and wait
for lo_render_windows() in that phase to signal the actual redraw of
the "headless" windows into the context.

Unfortunately this doesn't work well enough. It is not a good idea to
not draw anything in response to a drawRect() it seems. The affected
rectangle gets initialised to black. So there is now irritating
flashing. One sees an almost ready document (and the UI elements which
still are there), but then it goes away for some time before finally
re-appearding. Quite silly. So I will revert this, and I am committing
it just to keep the code for reference in git.

Change-Id: I9ee490345f093d80113c36f9e3268cab5a810dd0
2013-03-31 21:55:10 +03:00
Peter Foley
a2747d0721 fix vcl with Library_merged
Change-Id: Ie85ba53c59eda5586b70527a518e3f80223fc49e
2013-03-31 11:34:28 -04:00
Tomaž Vajngerl
2c04523b33 We are in 2013 - remove "goto" in jpeg filter.
Change-Id: I39cea3e90f0ac57168e1cd2d4a9af9199e1416fb
2013-03-31 13:53:02 +02:00
Tomaž Vajngerl
dc10b3d739 Add Chroma subsampling options to jpeg writer.
Change-Id: I247a261bb96b0c437a43922070777892cdcbc1f6
2013-03-31 13:53:01 +02:00
Chr. Rossmanith
a2f6402b1f Use OUString and sal_Int32 in GetTextBreak()
Change-Id: I66b85365d1c59f802253b8abdb1e04e25950a09b
Reviewed-on: https://gerrit.libreoffice.org/3098
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-30 21:36:47 +00:00
Eike Rathke
2cd4e55bb3 certainly this was not meant to be _PC_NAME_MAX
_PC_NAME_MAX is a symbolic constant meant to be used as a pathconf()
argument, not a buffer length.

This piece of code was even "honored" in
http://womble.decadent.org.uk/readdir_r-advisory.html
"The code that enumerates fonts and plugins in the appropriate
directories uses a stack buffer of type long[sizeof(struct dirent) +
_PC_NAME_MAX + 1]. I can only assume this is the result of a programmer
cutting his crack with aluminium filings."

Thanks to Heiner Rechtien for pointing this out.

Note: declaring the buffer of type long instead of char looks weird but
probably has the reason that it is casted to struct dirent* for the
readdir_r() call that might not work on architectures that forbid
arbitrary alignment on non-even boundaries.

Change-Id: Ie959b8905d1328c6fcaefbf6f6c915cc430e85b6
2013-03-30 19:39:29 +01:00
Julien Nabet
31fa063379 coverity#440801 Dereference after null check
Change-Id: I067d52236b189e09955d7aa3ce2fbd25b0d330bd
2013-03-30 19:34:29 +01:00
Peter Foley
4f811c0474 fix loplugin warnings
Change-Id: I17593ac6e495213a1ef99d4d5525a6e38aee0bc7
2013-03-30 13:01:09 -04:00
Julien Nabet
aea686264f Prefer prefix ++/-- operators for non-primitive types
Change-Id: I272c2efc21f78dbd35c6dff6143c4770aed4ec16
2013-03-30 17:48:10 +01:00
Peter Foley
ce9bf0f868 upgrade icu to 51.1
Change-Id: I1c0d5ca4b2f88ca48225fcdbeb978f27fa91f7a6
Reviewed-on: https://gerrit.libreoffice.org/2953
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Peter Foley <pefoley2@verizon.net>
2013-03-30 14:23:14 +00:00
Tor Lillqvist
428ae24e55 Unbreak use of pthread condition variables
I am not really satisfied yet with how the UI redrawing in the app now
works (during startup, which of course is more or less all the app
does so far).

It can take quite some time before a "link" (function to be called)
posted with PostUserEvent() gets run (if there are lots of
time-consuming other "user events" in the queue already, or
something?), and blocking the UI thread for that time is not
acceptable. Will have to come up with some more complicated solution.

Change-Id: Icab20183df3bc4980ae33f0502d10397802cc391
2013-03-30 14:32:10 +02:00
Tor Lillqvist
114b17fc23 Use more meaningful variable name
Change-Id: I663ab56faf8d13a3f0443706d9dc75bd5969aece
2013-03-30 08:46:23 +02:00
Tor Lillqvist
d08a58a684 Render the "headless" frames to the UI view in the LO thread
We used to render them in the app main (GUI) thread, which is
dangerous, accessing the headless frames in one thread while the LO
thread (where the "main" LibreOffice code is running) might be
updating and changing them.

This fixes some problems like that part of the document did not show
up. If I would test the app on a multi-core iPad, presumably I would
have seen even more problems.

But this also introduces new problems: Now the UI doesn't appear
incrementally (for instance, with an actually progressing progress bar
during the loading of the document) as it used to. Now it all appeads
all of a sudden, everything at once. Which would be fine if it
happened very quickly after starting the app, but it doesn't... on the
original iPad it takes half a minute.

Change-Id: I04068e0d884aa5cb86acefa76449aac4e081b193
2013-03-30 08:41:33 +02:00
Tor Lillqvist
62f6e67f6b IosSalInstance::BlitFrameToBuffer() and RedrawWindows() are unneeded now
Change-Id: I6873461aed7db7b7f06e45556eacb82bcf118aea
2013-03-30 07:53:41 +02:00
Tor Lillqvist
bb0b2744af Draw the frame virtual device bitmaps directly to the destination CGContext
Much faster. No need for the pixelBuffer inbetween.

Change-Id: I6493faca6da3a3e9a1285e00c887928b85dca56e
2013-03-30 07:53:40 +02:00
Tor Lillqvist
e36e86ee3c Refactor the iOS Viewer app and rename it to "LibreOffice"
No, it isn't any closer to being "ready" despite the name, but still,
using the current approach, it clearly isn't restricted to be just a
viewer.

Also drop the verbose LOViewer prefix from class and file names in it.

Change-Id: Ib4e8a31d6fa1b35169ee98cf2aa8f0f22957164c
2013-03-30 07:53:38 +02:00
Tor Lillqvist
bd9c914047 Bin redundant logging
Change-Id: If7245ceea45a517084fdb5df09818e4e6e8c8be5
2013-03-30 07:53:38 +02:00
Tor Lillqvist
d7b027bd10 Add lo_tap()
Change-Id: I635be54c27c93de0a11be7bdd01979b99dadda28
2013-03-30 07:53:37 +02:00
Eike Rathke
5be14df244 ResMgr with LanguageTag
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-29 14:09:01 +01:00
Julien Nabet
60f567e87f Fix wrong copy paste iterator (import instead of export)
Change-Id: I669c9bf6a121dbcbeb6a4d28cfc8e7295ace1593
2013-03-29 10:50:15 +01:00
Julien Nabet
8e89057051 Prefer prefix ++/-- operators for non-primitive types
+ add some const_iterator for end iterator

Change-Id: I1e01325e52b67f2f882ca1de33efa4935bbb4232
2013-03-29 06:38:53 +01:00
Julien Nabet
eed411835d Use const_iterator instead of iterator if possible
Change-Id: I16a4ad9393eb05af3cf493ae476eaa4a791a7925
2013-03-29 06:35:10 +01:00
Julien Nabet
9b689d6ee9 Prefer prefix ++/-- operators for non-primitive types
+convert while loops in for loops

Change-Id: Ia2d36a066b91184ab9fa4375a74ea71cc1d75131
2013-03-28 23:07:42 +01:00
Chr. Rossmanith
16b446937e Use OUString / sal_Int32 in vcl(outdev3.cxx,textlayout.cxx)
ImplGetTextLines(), GetCaretPositions(), ImplAddDevFontSubstitute(), AddFontSubstitute() ...

https://gerrit.libreoffice.org/3099
Signed-off-by: Luboš Luňák <l.lunak@suse.cz>

Change-Id: I781364da7a36afef65aac7a683c1b80fad61671e
2013-03-28 17:54:23 +01:00
Eike Rathke
0b0f22311b use LanguageTag::getGlibcLocaleString()
Change-Id: I86a5aad4c1a024861c82d44a3f67a2cbe00e7c2f
2013-03-28 14:59:45 +01:00
Chr. Rossmanith
91c1161dd9 Use OUString and sal_Int32 in GetTextWidth()
Change-Id: I0b3cdbe8576300d098027cc98d7dff841d148f18
Reviewed-on: https://gerrit.libreoffice.org/3097
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-03-28 13:48:02 +00:00
David Tardon
09505a2f05 add missing dep on sal/config.h
Change-Id: I2df7a90f09c9692c9cc28fe0f6e5f0a56673811e
2013-03-28 08:59:25 +01:00
Michael Meeks
d7ea9c2c72 remove redundant iterator increment - thanks Fridrich.
Change-Id: I345eb51cfb2ad3043ac1659bc971efeb7a5350a0
2013-03-27 19:47:17 +00:00
Michael Meeks
23c22d3da5 fdo#62094 - fix infinite loop in radio button group iteration.
Simplify the code too - we copy the vector anyway, so reversing it
should be cheap.

Change-Id: Ie655ba3044c7e0dd5a15b0e839a3712a32a1e298
2013-03-27 16:46:46 +00:00
Stephan Bergmann
2b86de6137 -Werror=unused-macros
Change-Id: Ifaf464b6a0ff7f365ddb2d123de9976fd90fdf21
2013-03-27 15:43:01 +01:00
Tor Lillqvist
79863bd454 WaE: macro is not used
Change-Id: I1a063d7ffa1ab051fe4c3d57f4c8c33d4cd3fe87
2013-03-27 11:58:22 +02:00
Tor Lillqvist
a8c3c673ea Use <config_features.h> instead of -DLIBO_FEATURE_*
Change-Id: Idc198beb6d759dbe3bad6ea58d896c1555b4cc0f
2013-03-27 11:36:03 +02:00
Stephan Bergmann
aa753f01ba -Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
Stephan Bergmann
52dc015ef6 Unused Region macro definitions
In other files in vcl/unx/kde4/, those defines are apparently needed to resolve
a clash between class Region from vcl/region.hxx and typedef Region from
/usr/include/QtGui/qwindowdefs.h.  But in these two files those two clashing
headers appear not to be included both, so the define would be flagged by
-Wunused-macros.

Change-Id: Ib5bb62867dd3b3ea4c0a9f4b461efcecd92bc4b7
2013-03-27 09:36:49 +01:00
Stephan Bergmann
d684a3cad9 _USE_MATH_DEFINES is already taken care of by sal/config.h
Change-Id: Ib0dab05534c34eb407f3acee3b4a3638a36bdddc
2013-03-27 09:36:49 +01:00
Tor Lillqvist
5da2b4b903 Need <vcl/syswin.hxx> for WINDOWSTATE_*
Change-Id: Ic4f729554d92652f38d783bb237448e8469e6faf
2013-03-27 08:38:34 +02:00
Thomas Arnhold
646daee253 kill some unused inlines
Change-Id: I17160b264b547067c694dd268eb0d3bd1086565d
2013-03-27 03:14:45 +01:00
Tor Lillqvist
2b520e7d8a Bypass X11-specific fields for Android
Change-Id: Ic8bfd4467b2fbcdcfa2caeb04d4ebe95f13863a2
2013-03-27 02:12:30 +02:00
Tor Lillqvist
839a61c48c Need <vcl/sysdata.hxx> here now
Change-Id: I8287f55e283676fb3dc83e7c1f4200e6a3c78f45
2013-03-27 02:12:30 +02:00
Tor Lillqvist
baeccb02da Bypass fields that are meaningless for iOS
Change-Id: I66acafc1f7302242a2a43271b909bba331062bce
2013-03-27 01:48:59 +02:00
Tor Lillqvist
5ea1466c4f Move two text-related functions to svptext.cxx
Change-Id: I6c45d44fd38d9fde8cad7f712973f11bde51675a
2013-03-27 01:48:59 +02:00
Tor Lillqvist
b54480ea78 No need for two sets of names for the same exttextinput flag bits
Change-Id: Ic5756d75bc86795a7add95694aef6fc9d1f6b9fa
2013-03-27 01:38:43 +02:00
Christian M. Heller
69a9cffb9e fdo#39468 Translate German comments - vcl/source/control/
FYI: there is some code duplication noticeable between slider and scrbar

Conflicts:
	vcl/source/control/longcurr.cxx
	vcl/source/control/lstbox.cxx
	vcl/source/control/menubtn.cxx
	vcl/source/control/morebtn.cxx
	vcl/source/control/prgsbar.cxx
	vcl/source/control/scrbar.cxx

Change-Id: I736cf155e252293ed571cd44a6a395b15c4bf576
Reviewed-on: https://gerrit.libreoffice.org/2966
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-26 23:36:57 +00:00
Tor Lillqvist
68fb052199 No need for two sets of names for the same frame/window state bits
Bin the SAL_FRAMESTATE_* defines which as the comment said had to be the same
as the WINDOWSTATE_*] in syswin.hxx.

Change-Id: I42fcd91db543821f007038e558872ba8f69e4a78
2013-03-27 01:22:58 +02:00
Tor Lillqvist
c8eafbb311 OPT_FILTERSECTION is unused
Change-Id: I251eeb98d880f04a5e4ef5829c01799b10db253b
2013-03-27 00:01:21 +02:00
Eike Rathke
b39975bc01 fixed out of bounds substring access
assuming is not good enough ...

Change-Id: Icd4f090fe94797ecf7e968855df3bb62609037c1
2013-03-26 21:23:49 +01:00
Philipp Weissenbacher
d83c63bea7 Translate German comments, fix some ws
Change-Id: Ic7cf80655e6520f09a0b63b7839e46ad50de8fb1
Reviewed-on: https://gerrit.libreoffice.org/3063
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-26 20:06:14 +00:00
Thomas Arnhold
488e6875e9 remove external include guards
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-25 19:58:16 +01:00
Eike Rathke
909de9de9f fixed some 7d1f4cdec3 brokenness
7d1f4cdec3 changed some String to OUString
and replaced Search...() with indexOf() but still compared the result
against STRING_NOTFOUND instead of the -1 required now.

Change-Id: I94ecdd1741554d8ac401f9cc2ffe8456e3184394
2013-03-26 21:02:55 +01:00
Tor Lillqvist
92b973fadc Use an 8bpp virtual device (instead of a 1bpp one) in sw and sc for iOS
The reason why a 1bpp virtual device is used in these two places in sc
and sw is unclear to me. It causes complications on iOS as such a
bitmap gets passed to CGBitmapContextCreate() which does not accept
1bpp bitmaps. But let's keep the 1bpp for other platforms.

Change-Id: Ia34927cf728d4be05a31e88b7da78200d0b799ba
2013-03-26 19:06:44 +02:00
Tor Lillqvist
99a6a8d1bd rCGContext is not used for iOS
Change-Id: If853edc8cd15bc61f0bc9d421799ad290a87d298
2013-03-26 19:06:37 +02:00
Tor Lillqvist
f238648cea Ifdef out methods for iOS that are actually in coretext/salgdi.cxx
A bit scary that the linker didn't notice the duplicate symbols, but
instead apparently just picked the first (or an arbitrary) one. Need
to look into that. Anyway, now when the correct SetTextColor is linked
in the coloured text in the demo document shows up in all its glory.

The code that is partially shared between the headless, OS X CoreText
and iOS backends should to be refactored a bit, I guess.

Change-Id: Id341298f72dc253380d9b2319032e0a9a8bdd0f6
2013-03-26 19:06:20 +02:00
Tor Lillqvist
91a3723922 Remove unnecessary code that was based on a wrong guess
Change-Id: Ia3e12d68c0eef56ba32b2c6062448874a52a8df3
2013-03-26 19:06:08 +02:00
Tor Lillqvist
708270b616 Improve the blitting, use memcpy for each row
Change-Id: Idfc5efe8b2326748670fec82a7780f81b243dbc8
2013-03-26 19:06:00 +02:00
Tor Lillqvist
40e67e2b5a Add a SAL_INFO()
Change-Id: Ieb3ff50a13172fa2c51173697b80ff5a71fbe244
2013-03-26 19:05:54 +02:00
Tor Lillqvist
e642b9d97d Release style and CGContext resources in dtor
Change-Id: I40fa43aaccda42e276f729cb7948101482c6ce5c
2013-03-26 19:05:44 +02:00
Tor Lillqvist
b2ad5380ad Handle different basebmp scanline formats and flip vertically when needed
Change-Id: Ic0fd7d60ddc66bcd5577988b3a4e5b2185d3ec1f
2013-03-26 19:05:34 +02:00
Tor Lillqvist
8818140775 Introduce temporary lo_set_view_size() hack like on Android and call it
Change-Id: I44df0946f59d1b9a2a6ea935b3c2ea3c96c1260d
2013-03-26 19:02:05 +02:00
Tor Lillqvist
59c83ffb05 Don't exit intentionally
Change-Id: I1d4c7dbc8ed9254e92d097454704c811ba1532f1
2013-03-26 19:00:17 +02:00
Tor Lillqvist
d6869762a9 Try kCGImageAlphaNoneSkipLast
Change-Id: I127f450ae7c52f25033a6dbc34029545ea5ed07b
2013-03-26 19:00:17 +02:00
Tor Lillqvist
9f1a3352b5 Improve debugging printout a bit
Change-Id: I1acc1b3f1e9d2cdcbba058b050f278e396f115c6
2013-03-26 19:00:16 +02:00
Tor Lillqvist
16498b264c Move SAL_WARN_IF
Change-Id: If543e44a1f4aa08a38bf273a3e50a7cd7d57e84d
2013-03-26 19:00:16 +02:00
Tor Lillqvist
5a5c8e253a Check feature test macros instead of ANDROID and/or IOS
Pass -DLIBO_FEATURE_FOO to compiler for some elements in BUILD_TYPE.
BUILD_TYPE has at least two kinds of elements: Those that indicate
building a bundled copy of some 3rd-party library, and those that
indicate some specific feature of the LibreOffice platform or
build-time configuration choice. This is for the latter kind.

Change many of the checks for Android and/or iOS in the source code to
check LIBO_FEATURE_DESKTOP, LIBO_FEATURE_HELP or DISABLE_EXTENSIONS
instead, in cases where that is what is meant, not Android or iOS
specifically.

Change-Id: I2cd3f3bb99e953c7754dcea76a426f8f9d61e4db
2013-03-26 18:45:04 +02:00
Tor Lillqvist
434ba73170 Initial hack attempt to get something rendered
Change-Id: I13a407331184f08fd39095b7486d0a370d91ed93
2013-03-26 18:44:20 +02:00
Philipp Weissenbacher
a5fef4aff5 Translate German comments, clean up some WS
Change-Id: I1a6a99bb8efe8c3d10973c255040fbbf0f76f27d
Reviewed-on: https://gerrit.libreoffice.org/3057
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-03-26 15:09:10 +00:00
Zolnai Tamás
84bac1799e Kill double conversion from NumericBox
Change-Id: Id1161c40725f75ea0d7ec3f15a19ca14defd0a75
Reviewed-on: https://gerrit.libreoffice.org/3035
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2013-03-26 13:36:29 +00:00
Herbert Dürr
9fccdcaf81 (author=pl) fix for transporting OOo types through OSX system clipboard
Change-Id: Idc00fbc8ac1adb04c76ecb4b641cfa055f5901b8
2013-03-26 14:52:09 +02:00
Chr. Rossmanith
ffb837eed2 Use OUString and sal_Int32 in GetTextArray() and ImplLayout()
Change-Id: I2c1e5b7d53c0d78f2ccf9ac317a7ff40298cd68d
Reviewed-on: https://gerrit.libreoffice.org/2967
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-26 12:45:36 +00:00
Chr. Rossmanith
a89fda4b7f Use OUString and sal_Int32 in ImplPrepareLayoutArgs() and GetTextIsRTL()
Change-Id: Ib1b659aa56a38efdfc2dddb5e362ac1eb54972f1
Reviewed-on: https://gerrit.libreoffice.org/2959
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-26 12:45:15 +00:00
Chr. Rossmanith
bc1af14a14 Use OUString and sal_Int32 in filterText()
Change-Id: I31437125b51b07be490de3d979e193fad9750f51
Reviewed-on: https://gerrit.libreoffice.org/2956
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-26 12:44:25 +00:00
Chr. Rossmanith
4e907bc366 Replace String with OUString in RecodeString
Change-Id: I987f738d1cd7d640a253f3cd31864290b6d763bf
Reviewed-on: https://gerrit.libreoffice.org/2919
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-26 12:43:22 +00:00
Michael Meeks
5f4eb1bdaa and remove the include again... 2013-03-25 22:00:05 +00:00
Michael Meeks
46e5cd0e34 remove an fprintf I left in in error. 2013-03-25 21:59:38 +00:00
Tor Lillqvist
8ffe4af627 Fix error: use of undeclared identifier 'stderr'
Change-Id: Ie21b40f79882bdcf93e67b83dd8e97e72b69ea00
2013-03-25 23:58:12 +02:00
Michael Stahl
3f13d234df vcl: fix typo
Change-Id: I606be5f7eea9290ac647b0369fcd3c279e9594d0
2013-03-25 22:54:29 +01:00
Michael Meeks
fd335d180b fdo#61789 - improve SvtGraphicStroke / metafile scaling 2013-03-25 21:36:12 +00:00
Tor Lillqvist
15dc2626fd Remove a FIXME comment
Change-Id: I13127dadcdfeff3d99df819393f6298ac0cb11bc
2013-03-25 21:49:48 +02:00
Philipp Weissenbacher
25810de17f Translate German comments, fix some whitespace
Change-Id: I44eba784d51522b67826051d20ba8939f195dccb
Reviewed-on: https://gerrit.libreoffice.org/2916
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-25 09:24:36 +00:00
Stephan Bergmann
fa545023ad Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}
...replacing hard-coded GCC version checks.  Those checks that guard

  #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"

appear relevant only for GCC itself, not Clang (which used to fail the old
guards because it typically announces itself with a rather low
__GNUC__/__GNUC_MINOR__ version), see 6e67c03dc0
"Enable -Wnon-virtual-dtor for GCC 4.6"

Change-Id: I6bfa4d5caa6192e7a203ce829682bf6bb8d61a1b
2013-03-25 08:52:54 +01:00
Takeshi Abe
c7af37db60 deleting NULL is safe
Change-Id: I3748d0034b2c8e9d9122ad2a9001763eb1265e1d
2013-03-25 10:54:05 +09:00
mhofmann
4d05ee2411 remove unused member maHelpFile and its getter/setter
Change-Id: I97b53be0a6110c6ca736de657cba48baa0445a12
Reviewed-on: https://gerrit.libreoffice.org/2965
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-25 00:09:06 +00:00
Christian M. Heller
620611fe91 fdo#39468 Translate German comments - vcl/win/source/gdi/
Change-Id: I273bab015f96128ab5128ade3b8e0c69b0ef730e
Reviewed-on: https://gerrit.libreoffice.org/2937
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-23 21:26:13 +00:00
Christian M. Heller
e0ce2898f1 fdo#39468 Translate German Comments - salframe.cxx
Change-Id: I0a5655ac1b1b4feca0b3a5ed3d4c37a63bce6c5a
Reviewed-on: https://gerrit.libreoffice.org/2931
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-23 21:21:08 +00:00
Thorsten Behrens
f4cde66581 Fix dbglevel=2 build
Change-Id: Ib3b7892225a9488c220133f05f127d746f7be461
2013-03-23 20:03:00 +01:00
Christian M. Heller
275dbf60e9 fdo#39468 Translate German comments - vcl/win/source/app
Change-Id: I5bd5851f763a392cad658d206d23ea055456fce2
Reviewed-on: https://gerrit.libreoffice.org/2938
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-23 17:12:00 +00:00
Julien Nabet
5d02714a9d Fix wrong copy paste, should be UNDERLINE_DASHDOT and not UNDERLINE_DOTTED
Change-Id: I807d88631cf35e51cd034a62eed1d4230c75d1be
2013-03-23 13:39:17 +01:00
Chris Sherlock
444afc0835 General comment cleanup for demo/test vcl apps
Remove unnecessary commented out code, remove comment "spacer" lines,
in general tidy up this code to make it easier to read.

Change-Id: I37a19177795aa93d63f736e1933924605fbf2146
Reviewed-on: https://gerrit.libreoffice.org/2921
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-03-23 09:11:56 +00:00
Chris
7ca43770bc Remove commented code in VCL demo app - should make the example clearer.
Change-Id: I2e56c580b30435731b3b8dc716abae19c8673acf
Reviewed-on: https://gerrit.libreoffice.org/2920
Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
2013-03-23 03:38:22 +00:00
Julien Nabet
97edb75d08 coverity#440825 Logically dead code
The other one was in fact 440826

Change-Id: I0163892e651a8080873985d2c58eea97d65ff678
2013-03-22 22:32:16 +01:00
Julien Nabet
d6a1071034 coverity#440825 Logically dead code
Change-Id: If16f1815d7ce7638d51d62243ccea787f1043efb
2013-03-22 22:25:06 +01:00
Julien Nabet
334d7e742c blind try to fix MacOs building
Change-Id: Ia6dac95a754c61a8f98120af1a703bd27d3be95c
2013-03-22 21:48:29 +01:00
Thomas Arnhold
5ea8a48a3b clean up DBG_ERRORn
Those were DBG_ERRORn before and were falsely changed to OSL_TRACE by me.

See:
1707a350af
533f89e493

Change-Id: I4f4188ba25b988128a539542f49797ea6985702e
Reviewed-on: https://gerrit.libreoffice.org/2900
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-22 17:25:40 +00:00
Christian Lohmaier
683142294f get rid of two-argument compareToAscii
As I don't see a point in comparing a mimetype with only a
substring, it probably could be a simple compareToAscii, but
play it save and use startsWith.

Change-Id: Ic33c8089283def615999ddf80cd12f6fe219ed17
Reviewed-on: https://gerrit.libreoffice.org/2907
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-22 17:11:29 +00:00
Tor Lillqvist
a4b4942ff6 Don't include Java-related headers when they aren't needed
Change-Id: Ia971f98c904b69ce126a03d4737833b8e9e57369
2013-03-22 17:53:34 +02:00
Michael Meeks
ad65fea9c2 fdo#61847 - add test file of png image with invalid final chunk length.
Change-Id: Ie031f3442abcce053ed5f0a5cf74993219485029
2013-03-22 11:39:31 +00:00
Tor Lillqvist
3159f9cd61 Avoid clash with the Win32 CreateBitmap()
On x64 Windows there is no name mangling for Win32 API calls, so a
plain extern "C" CreateBitmap() function clashes.

Change-Id: I39ca92c259f660f00952ec0a8065bae1e747cffb
2013-03-21 22:01:16 +02:00
Thomas Arnhold
51890613b7 vcl: use OSL_BIGENDIAN
Change-Id: Ifdf54d30cca94d0d65d78f94d5fac31edf8c6df2
2013-03-21 19:12:15 +01:00
Tor Lillqvist
63dcca42ce Re-work the vcl aspects of the iOS port
Don't try to use similar code as for OS X to manage windows, events
etc. I.e. don't use UIKit in vcl to do that. Instead, just do as in
the Android port, use the "headless" vcl backend. Do keep using
CoreText, though, not FreeType & fontconfig.

Start changing the iOS "Viewer" app to correspond to the Android
"desktop" app (so it should be renamed).

Work in progress since a long time, several crucial details still
missing, but committing for now.

Change-Id: Iac5fbf8def415e4d0d21e5200450a373420ad7ee
2013-03-21 13:28:32 +02:00
Luboš Luňák
1c3c38122a avoid Wundef / fix endian detection 2013-03-21 12:17:00 +01:00
Thorsten Behrens
bf5e1575e8 Fix force-choosing gtk3 backend.
Extra parameter got lost in refactoring, if we set envvar, we *do*
want to try that backend.

Change-Id: Ib530a3a6b3e6ee33aab729ce7cd1f93e209d4513
2013-03-21 11:29:28 +01:00
Thorsten Behrens
ff140bb6b8 Remove StringMirror UNO service.
This was a kludge from back in the day when pdfimport was an
extension and could not link against office libs.

While at it, fix mirror method to handle unicode surrogates
correctly.

Change-Id: I3582a7870efdfea50446d3604a185025b1d5a196
2013-03-21 00:54:16 +01:00
Stephan Bergmann
0b3c72fe89 Improve previous __BIG_ENDIAN__ fix
Change-Id: Ic7ca080e00d94f93306f65ba17ffc23dd4d746e7
2013-03-20 15:25:56 +01:00
Stephan Bergmann
3342125933 -Werror,-Wundef
Change-Id: I197fcafa3d39e5ec312d7e0c56b076a479391a73
2013-03-20 14:38:57 +01:00
Christian M. Heller
c86fa81bcd fdo#39468 German comments in vcl/unx/generic/...
Change-Id: I869f5ac346b378ee63832e01ce099f366b7c184f
Reviewed-on: https://gerrit.libreoffice.org/2865
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-20 11:52:01 +00:00
Luboš Luňák
52f8321c41 use #if instead of #ifdef for testing config_xxx.hxx macros
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html

Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-20 11:34:18 +01:00
Tor Lillqvist
63a66e5787 SetSalColor() and GetSalColor() are unused
Change-Id: I1d33abe2e2ccb6d62895da70da89fbbaa0c3b426
2013-03-19 19:14:18 +02:00
Stephan Bergmann
7b0d4848e6 Fix previous fix
Change-Id: Ia0739c4c45cb9f1d7474c08657a17b68ec5ef45a
2013-03-19 15:25:44 +01:00
Stephan Bergmann
7cd5393199 Fix broken automatic search/replace results
Change-Id: Ic6985d2cf9d884763aaffc17361243b99b23ba17
2013-03-19 14:59:35 +01:00
Gergő Mocsi
e8504d9737 handle the empty URL case in file picker
Some extensions in the wild, for example Impress Photo Album Creator,
manage to call the file picker dialog with an empty URL. The resulting
error message is not very helpful: "Operation not supported" dialog.
Therefore we assign a default URL when empty URL is passed.

Change-Id: Icf71142411a79e1fe2d1d5918d2a400b174acc00
Reviewed-on: https://gerrit.libreoffice.org/2390
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-03-19 13:30:55 +00:00
Thomas Arnhold
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +01:00
Thomas Arnhold
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms

Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 10:48:30 +00:00
Stephan Bergmann
4c0c23af21 Simplify equalsIgnoreAsciiCaseAscii[L] calls
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19 11:32:20 +01:00
Thomas Arnhold
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex:

s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms

Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 09:00:26 +00:00
Thomas Arnhold
506e1efab3 trailing whitespaces
Change-Id: I3d0e2015e4c9f0ea6118fd92892022607fe4bde6
2013-03-19 01:30:44 +01:00
Timothy Pearson
edd2531f5d Fix single core build when TDE integration is enabled
Change-Id: I15d537a8ea7d3a42c9a1924dd81e83ba9b4aa421
Reviewed-on: https://gerrit.libreoffice.org/2830
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-19 06:58:18 +00:00
Julien Nabet
91c8b357ee Cppcheck: Variables reassigned before the old one has been use
See http://nabble.documentfoundation.org/cppcheck-Variables-reassigned-before-the-old-one-has-been-used-vcl-kde4-part-td4044235.html

Change-Id: I9ce272c4116395a95a09e5633acfeaa5b1edbe12
2013-03-18 22:04:37 +01:00
Tor Lillqvist
1c0ea49edb IsPrinterGraphics() and IsVirDevGraphics() were unused.
Change-Id: If5d7bb5c777d3247e3e1a4d39ae1a8f8ba6f4cd8
2013-03-18 19:29:01 +02:00
Tor Lillqvist
ebc44be2bd Improve indentation and alignment consistency
SCNR.

Change-Id: I11bcd451eae74ec5eb20e4baa96d308f9eacf01c
2013-03-18 19:29:01 +02:00
Tor Lillqvist
56396bd6dc Bin pointless __cplusplus ifdefs
Change-Id: I82974eb68e6daf1c6781e2133fd22d7e4e62de82
2013-03-18 19:29:01 +02:00
Luboš Luňák
9be25f14bd avoid Wundef for various FIXME, FEATURE_NOT_DONE_YET and what not
Change-Id: I8e409ba63d32dca9a1c7f09d143165d1d702d642
2013-03-18 17:15:56 +01:00
Luboš Luňák
8c2711e771 change #ifdef -> #if for KDE4 feature macros
Change-Id: I289744eaa62ad819620f0b31a54efd5ebbdb9dc2
2013-03-18 17:15:55 +01:00
Julien Nabet
0f745a751b coverity#982272 Copy-paste error
Change-Id: Iac5de5ea434e843c4bbf27763f16751d75e798ec
Reviewed-on: https://gerrit.libreoffice.org/2806
Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be>
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
2013-03-18 14:17:00 +00:00
Chr. Rossmanith
38d0e65fa5 Reuse ImplPower10()
Change-Id: I0a86e43065689d2478ced4804ab083244d8d35f5
Reviewed-on: https://gerrit.libreoffice.org/2774
Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be>
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-18 10:46:23 +00:00
Tor Lillqvist
0cd6947e1e Improve indentation consistency
Change-Id: I27a692be8d1c3aa10bdf46883fd502491aff4674
2013-03-18 12:27:22 +02:00
Tor Lillqvist
6dfe7e7903 Don't do any own auto-cleanup of aurorelease pools on iOS when a thread ends
According to documentation, the system does it automatically. Testing
seemed to confirm that, with the code still in I got mysterious
crashes.

Not sure if the corresponding code is unnecessary or wrong on OS X,
too.

Change-Id: I14e9f5bcc0376e9235f8d36b484b38c1e44932c4
2013-03-18 07:41:33 +02:00
Tor Lillqvist
dc234a1da0 Factor out the CoreText source files
Change-Id: I5c91058af2f6da287bff050a358f446b653c800a
2013-03-18 07:41:32 +02:00
Tor Lillqvist
2a4af0e257 Bypass X11-specific code if not on X11
Change-Id: I6452191b11b197b0f90ae6638019d3bc6db67ad7
2013-03-18 07:41:32 +02:00
Tor Lillqvist
e0c2dd693c SalData::drainThreadAutoreleasePool() is unused
Change-Id: Idbb98b32ffc5970e236c9d319e0e8791b855e283
2013-03-18 07:41:31 +02:00
Tor Lillqvist
a7b932ddfe AndroidSalInstance::RedrawWindows() is called from only one place
No need to take a parameter for which NULL is always passed, and related
simplifications.

Change-Id: I89bab2904fdae3520987d0f67e55b2649bf225d3
2013-03-17 17:34:15 +02:00
Tor Lillqvist
4994ccd7d4 onAppCmd() and onInputEvent() don't exist any more
They were used in the NativeActivity-based coding.

Change-Id: Id393026783c989f05d90ad79cc4e8f5e8cd0174e
2013-03-17 17:18:30 +02:00
Tor Lillqvist
2976b53ff8 Bin more pointless comments and ASCII graphics
Suggested Easy Hack: Replace all instances of // -------- comments
including surrounding newlines with a single newline.

Another Easy Hack, slightly harder to automate: Remove all the
pointless comments that just tell the class name right before the
declaration of that class.

Change-Id: Ia890ed613b53c5d719988697e20a983d62334123
2013-03-16 22:40:42 +02:00
Tor Lillqvist
861fc6ce60 Bin some pointless comments and ASCII graphics
Change-Id: Ib7b176eb1889ebd94d4b628899011de9ebbb3dbd
2013-03-16 21:32:10 +02:00
Tor Lillqvist
ec4977278b Get rid of a few pointless comments
No need to refer to some source files in a few random places in
headers, using ancient UPPER-CASE file names even.

Change-Id: Ia0827be34046f25fd769466c41dab017b4935a37
2013-03-16 20:45:51 +02:00
Tor Lillqvist
b0bc47d628 mnSystemVersion not used
Change-Id: Ief800f1228bca327fd8d77a78fa332639f5d5f69
2013-03-16 20:27:55 +02:00
Lionel Elie Mamane
61a194fbc1 Revert "fdo#61725 workaround"
This reverts commit 04651da19c.

Change-Id: Icd78c2305b127d42a43bd7995d0952617e06db99
2013-03-16 09:47:09 +01:00
Lionel Elie Mamane
04651da19c fdo#61725 workaround
Change-Id: I7d25f293020f366b20ddb9cade1854013857bed2
2013-03-16 08:19:39 +01:00
Fridrich Štrba
a2423c6822 Fix build
Change-Id: I7e0b7be9da04ff6055075b5c046f02c967bf59f2
2013-03-16 01:01:56 +01:00
Armin Le Grand
33b4c9938d Resolves: #i119125# various actions implemented, clipping added.
Esp hard was ImpSdrGDIMetaFileImport, but working now. Needed to hand-craft
alpha addition for alpha in Metafile content and gradient of action. Also added
better BitmapEx creation for convert to bitmap for draw objects.

Conflicts:
	svx/source/svdraw/svdxcgv.cxx
	vcl/source/gdi/impgraph.cxx

Change-Id: Ic6ac9fb3132dd122e16a5cd8f9c5ddd155ec9882
2013-03-15 23:43:01 +00:00
Armin Le Grand
977a05ac71 Related: #i119125# Added MetaFloatTransparentAction handling...
...using primitive renderer

Conflicts:
	svx/source/svdraw/svdedtv2.cxx
	svx/source/svdraw/svdfmtf.cxx
	svx/source/svdraw/svdfmtf.hxx
	svx/source/svdraw/svdograf.cxx

Change-Id: I2223f86a63be80ecae91af0a6987ac587f07bc30
2013-03-15 20:07:54 +00:00
Caolán McNamara
22ffe94809 Related: rhbz#906137 g_module_symbol returned nothing
for gdk_screen_get_primary_monitor but osl_getAsciiFunctionSymbol does the
right thing

Change-Id: Ibf1a17724a9393d95c4fbe0d26aa82148eea33a9
2013-03-15 11:01:06 +00:00
Caolán McNamara
67aae198f8 Resolves: rhbz#906137 slide show inverts outputs
we go to some effort to determine the right value of ret
and then throw it away and return 0

regression since 4a7e348291

Change-Id: I652cfbe44fdab6560c1c8dc8fe25d6211b5357cb
2013-03-15 10:39:49 +00:00
Michael Meeks
79b0046ba0 remove legacy build.pl prj/build.lst files. 2013-03-14 17:05:51 +00:00
Michael Stahl
3dd2eafcab vcl: fix WNT only debug code OUStrings
Change-Id: Ie864629499806d798ce4a4525c385bf1617b0160
2013-03-14 15:56:12 +01:00
Stephan Bergmann
d8daca4f4a Missing WNT --enable-debug String -> OUString conversion parts
Change-Id: Ica20eacd95538fe37d08bf76c7b5a6717a7e8422
2013-03-14 15:46:26 +01:00
Caolán McNamara
4cb17e8858 tests cases for EDB-24743
Change-Id: Iac75be70adbf611980605ef599d1c9ea9772eb2d
2013-03-14 14:29:44 +00:00
Caolán McNamara
8ece1cd6d5 stray test .png left behind
Change-Id: If0a0d61b58ecc46d5ba04951cd278d275fdf25e7
2013-03-14 14:18:45 +00:00
Caolán McNamara
533be98148 restore incrementing time fields by area cursor is in
regression from String->OUString conversion with
tricky unsigned xub_StrLen of 0xFFFF for not-found
> any found position, vs -1 for OUString for not-found

Change-Id: I4a2babae085916a86cd1e60b74b4ea839dd8b87a
2013-03-14 13:11:50 +00:00
Thorsten Behrens
29534bfb2e Remove some accidental merge by-products.
Change-Id: Ic04832bf95fd425f839bd4f6a1390959f3c82247
2013-03-14 13:55:55 +01:00
Chris
d7093ec594 Remove rtl:: namespace, fix minor spelling error in comment
Change-Id: Icd04bfa61209277c57afe313d679b253aa241b7d
Reviewed-on: https://gerrit.libreoffice.org/2726
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-14 12:39:46 +00:00
Radek Doulik
22f63477a3 pass argb32 pixmaps from vcl to canvas, avoiding costly x11 roundtrips
- fixes also problem with emf+ rendering for slideshow

Change-Id: Icb894d3f37b29f23d3f267c944d827eefbf47fda
2013-03-14 13:21:24 +01:00
Michael Stahl
38d3e115c1 vcl: make Region ctors explicit to prevent overloading desasters
Change-Id: Id36d125b4940418833bec31a4710d6cd545629e0
2013-03-13 22:29:46 +01:00
Michael Stahl
8131b3892a vcl: targetted restoration of OutputDevice::PixelToLogic overload
Add some code needed for commit 684c502ed0
This fixes the infinite loop that allocates gigs of memory in sc_unoapi test.
The problem was that instead of PixelToLogic overload an implicit Region
ctor was called.

Change-Id: Iefcd453a5c6327964c219074239ac65be737da6e
2013-03-13 20:52:43 +01:00
Xisco Fauli
40a0e22203 remove commented code
Change-Id: Ib62d4513e27791a848594925392a45ec9ff13983
2013-03-13 20:14:06 +01:00
Zhe Wang
58b6a6161e Fix issue #120627#: [From Symphony]the text on the Y axis is reversed when export ppt file to PDF format.
* subversion/main/vcl/source/gdi/pdfwriter_impl.cxx
[]Change nXOffset value from the distance of axis Y between two points to the distance between two points.

Patch by: Tang Meng<tmyl2010@gmail.com>
Suggested by: Wang Zhe <kingwisemmx@gmail.com>
Found by: Tang Meng <tmyl2010@gmail.com>
Review by: Wang Zhe <kingwisemmx@gmail.com>
2013-03-13 20:14:05 +01:00
Armin Le Grand
684c502ed0 Related: #119125# Added usage of the ClipRegion for dismantling Metafiles
to SdrObjects (ImpSdrGDIMetaFileImport) as good as possible with Metafile usage

Conflicts:
	svx/source/svdraw/svdfmtf.cxx
	svx/source/svdraw/svdfmtf.hxx

Change-Id: I41422696e97f919e618f7e385c68d4ac737a52c1
2013-03-13 13:40:41 +00:00
Chris
bc7202aad3 Remove RTL_CONSTASCII_USTRINGPARAM and remove rtl:: namespace for strings
Change-Id: I7327cfe644cc7c948692dff66f416f85a4e4ae40
Reviewed-on: https://gerrit.libreoffice.org/2693
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-13 08:32:37 +00:00
Tor Lillqvist
b125dd74a2 Avoid misleading leading zeros in hex digit
The hex literal 0x00000001 is a 32-bit unsigned int on all our platforms. Here
it is being cast to a pointer,resulting in 32 or 64 bits. Using exactly eight
hex digits with leading zeroes gives the impression that the leading zeroes
and the total number of hex digits would have some significance.

Change-Id: I75904dc4261c195dfaaf45aa3de729994da6d8dc
2013-03-13 07:38:57 +02:00
Thomas Arnhold
94a5f6b670 fix mac build
Change-Id: Ib7aa2ffd351e85e76c84cd03c2a3b31c6b2c87ac
2013-03-13 04:28:39 +01:00
Chr. Rossmanith
f92a592705 Polishing 7d1f4cdec3
Change-Id: I73334fca8429dc0ad4250ce638027fa52245dec4
Reviewed-on: https://gerrit.libreoffice.org/2676
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-12 23:12:14 +00:00
Caolán McNamara
e04fd83529 fix dbgutil build
Change-Id: Icc541fdcf854a2e8f660c3d8c03448c5e8cb46f7
2013-03-12 21:29:15 +00:00
Chr. Rossmanith
d2ffd0799f Replace XubString with OUString (vcl/ilstbox)
Change-Id: Ia2cefe1649538d411ae858e21a3145ca01fff2ee
Reviewed-on: https://gerrit.libreoffice.org/2690
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-12 21:19:14 +00:00
Chr. Rossmanith
8905062428 Replace XubString with OUString (dbggui.cxx)
Change-Id: I080f6671eaa923790fd41d4ed9f147c44c721442
Reviewed-on: https://gerrit.libreoffice.org/2688
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-12 21:18:24 +00:00
Luboš Luňák
42bbe3a96f Qt4.8 is enough for Qt glib integration support working properly
Change-Id: Ifaec37040f81de2718506b1ed27c7b52e74c513b
2013-03-12 20:06:01 +01:00
Luboš Luňák
6fbd871135 re-add support for KDE4 Qt+glib eventloop intergration
The necessary build stuff was apparently silently dropped during gbuild
conversion and never noticed.

Change-Id: Ib1f530b92618a9d4f11c54818e984f737abaa283
2013-03-12 20:05:56 +01:00
Eike Rathke
ba3f6551ce maybe fix MacOSX build
Change-Id: I5a3842e95e45ee80a2a3fb7954fb16878ad16907
2013-03-12 19:51:16 +01:00
Luboš Luňák
e75fba46b0 fix incorrectly applied patch
Change-Id: Ia35a4dc3c199d94cdaaefe0c632e6f08050ae63a
2013-03-12 18:38:32 +01:00