Commit graph

14163 commits

Author SHA1 Message Date
Stephan Bergmann
1c2862e8d1 Remove residue of undocumented "edition" feature
...whereby some branding could be orverridden with information from a program/edition/
directory.

Change-Id: I7f9324678b09bc8069775dfcbda97be8e0618a91
2013-04-29 10:27:29 +02:00
Chris Sherlock
e986d3e396 fdo#39468 Translation and cleanup
Cleanup of source code:
- translated German to English
- removed useless comment decorations
- removed commented out code
- some reformatting of code

Change-Id: I71d5fdab8226d61bda9ac906bb82176dc11cafd2
Reviewed-on: https://gerrit.libreoffice.org/3643
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-29 04:15:58 +00:00
Julien Nabet
14a96e28c9 fdo#63197: convert osxres
Change-Id: I969217263fdda3e61b38dc16f0a9251b745de885
Reviewed-on: https://gerrit.libreoffice.org/3652
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-28 18:23:10 +00:00
Ahmad H. Al Harthi
4c4b9db8bb fdo#35320 A fix for Arabic justification problem caused by kashidas
Change-Id: I512e6332a632acf90e4f995fbc7fd19e7ef094ec
Reviewed-on: https://gerrit.libreoffice.org/3644
Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
2013-04-28 06:15:19 +00:00
Caolán McNamara
b3c1497867 convert input field dialog to .ui format
Change-Id: I1c6c43b73b22120b2f2985256896af214012f0ad
2013-04-27 20:58:40 +01:00
Samuel Mehrbrodt
f13324bc84 Better text for "Insert as Link" Checkbox
This Checkbox is shown in the File picker dialog and does not embed the file in the document, if checked.

Change-Id: I84fbc182cc9b432cd38ccb044c0479ced119d97f
Reviewed-on: https://gerrit.libreoffice.org/3602
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-04-26 07:07:04 +00:00
Caolán McNamara
29cdabb853 drop duplicated warning
Change-Id: Ied358faaf6ba1aecae4f61ff56e639752a2de664
2013-04-25 17:06:53 +01:00
Caolán McNamara
21fb092398 Related: fdo#63802
let si-phonetic-dynamic survive libreoffice losing focus and regain it cycle
and still use surrounding text. It should be safe to report that we can provide
surrounding text but there isn't any during the time window when there is no
focus window, because the focus in event was received but it hasn't arrived yet
because that happens on a postuserevent.

Change-Id: I0481c42208953f2a0618aaed7b0d9e9f3e7bda07
2013-04-25 15:14:51 +01:00
Caolán McNamara
b1fc17ea25 Resolves: fdo#63802 return true if we have known empty context
i.e. false for "we can't provide context", and true for
"we can provide context, even if there isn't any"

Still looks to me that there's a bug in the si-phonetic-dynamic
im (or something in the stack) that assumes that returning
false once means it will always return false and give up
for ever

fix indent while I'm at it

Change-Id: I6df7f2689101250c33318db1fac5ec1b3e340566
2013-04-25 14:10:49 +01:00
Eike Rathke
53b8d25caa use LanguageTag fallback
Change-Id: I34c532dc7d1c71724a5c0e29c113f2d6510cc2d7
2013-04-25 14:23:20 +02:00
Tor Lillqvist
792181299b Fix KEY_SHIFT clash
Since 360d6bf4fd the precompiled header for vcl
includes <rsc/rsc-vcl-shared-types.hxx> , so the KEY_SHIFT from there
interfered with the KEY_SHIFT here.

These magic values apparently are the "known" return values from
MapVirtualKey() called to translate (fixed) virtual key codes to scan codes,
suitably shifted and ORed with some flag bit(s). Whether such scan code values
really are constant in all Windows installations I have no idea, it does sound
a bit scary to me to assume they are. (If they are, why does <windows.h> then
not provide symbolic names for them?)

Change-Id: Ic18a8e1a8b7a95bb6b018382662944f6912e4734
2013-04-25 14:43:30 +03:00
Thomas Arnhold
360d6bf4fd update pch
Change-Id: I67e73438312f2a672e71762ee6707ec5d425bb47
2013-04-25 12:11:53 +02:00
Michael Stahl
ca629ad332 vcl: rename WinResTarget target to match source file
makedepend relies on that

Change-Id: I6a166f65d25c2750c24bc7831d074c32f6524722
2013-04-24 17:37:45 +02:00
Jan Holesovsky
f650b3a50c More places where we can suppress output.
Change-Id: Ib316bf40bb9b9afeb5fbdf9281f2d3b9539e346f
2013-04-24 16:28:18 +02:00
Jan Holesovsky
617dddda62 fdo#59259: Suppress the expensive parts when we are only writing to metafile.
When we are launching the printing dialog, we first draw the page using
drawinglayer to a metafile, and then render the metafile.  Unfortunately, here
we did the real operation of allocating large bitmaps, and destroying them
again; all that just to throw all that away at the end of the operation.

The preview sets the mbOutput to false correctly, so we can just skip the
expensive parts.

Change-Id: Ice77d83100eba339602bbdf374fec8546d4d1e12
2013-04-24 16:28:18 +02:00
David Tardon
1cc9bbfd57 gbuild: drop empty use_packages calls
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f
Reviewed-on: https://gerrit.libreoffice.org/3503
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24 05:18:15 +00:00
David Tardon
c042cd05e9 gbuild: drop uses of removed packages
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac
Reviewed-on: https://gerrit.libreoffice.org/3502
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24 05:18:03 +00:00
David Tardon
6c7659b584 move URE headers to include/
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d
Reviewed-on: https://gerrit.libreoffice.org/3499
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24 05:17:10 +00:00
Bjoern Michaelsen
b9337e22ce execute move of global headers
see https://gerrit.libreoffice.org/#/c/3367/
and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details

Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-23 22:20:31 +02:00
Matúš Kukan
88b325aac5 libmerged: add harfbuzz external
Change-Id: I7be27b049c4a482be256544c295a7aee89f81f57
2013-04-23 16:24:17 +02:00
Caolán McNamara
fe45c9ef10 restore ImageList::AddImage variant
correctly removed in 804e86170f
but we will need it again soon

Change-Id: I52700cb4da0285bf08db20af2d7c314a37c4fee2
2013-04-23 14:45:18 +01:00
Khaled Hosny
9d4395540a Fix glyph width calculation in HarfBuzz
Make sure everything is using 16.16 fixed point values consistently.

Change-Id: Icdcd94775d3860d57bb446a3f237c31e35e0710a
Reviewed-on: https://gerrit.libreoffice.org/3573
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-23 10:57:08 +00:00
Fridrich Štrba
9a943e585a Fix linking with harfbuzz
Change-Id: Ic28c7922b0fab3b5a7ac1c0500a429539a4c29bc
2013-04-23 11:23:38 +02:00
Khaled Hosny
b760eff8cb Add support for using HarfBuzz instead of ICU LE
HarfBuzz is an up to date, actively maintained OpenType layout engine,
while the ICU LayoutEngine we use now has been unmaintained for a
while now, and existing users are encouraged to switch to HarfBuzz.

This is work in progress, text layout mostly works, but the handling
of combining marks is broken and needs further work, so it is kept
optional for now, with SAL_USE_HARFBUZZ env variable to enable it at
runtime.

Change-Id: I07e698f7486379bae68329771695cd94d6e561b5
Reviewed-on: https://gerrit.libreoffice.org/3518
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-23 09:23:27 +00:00
Khaled Hosny
7e389f4def Add HarfBuzz support to the build system
To be used in the next commit.

Change-Id: I6ee286d0c050a5ca650e7fb3692b0facccb5f0c0
Reviewed-on: https://gerrit.libreoffice.org/3517
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-23 08:00:14 +00:00
Stephan Bergmann
aa1aedb2a0 rhbz#954991 Avoid static data (causing trouble at exit)
Change-Id: Ifc8275276811ba24b62f93096e7cb98a5dbf658c
2013-04-22 16:21:57 +02:00
Michael Stahl
76a2e7faf0 adjust_exif_parameters defined but not used [-Werror=unused-function]
Change-Id: I2bb49bd85844d35301372b4f9d06f11db27fe9ea
2013-04-22 12:56:46 +02:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Tor Lillqvist
c16de2eb12 Factor out identical code for vertical and horizontal scrollbar
Change-Id: Ifc4925feccea9c35654356120b157f27d7cbfd3b
2013-04-22 11:21:41 +03:00
Stephan Bergmann
6e2bc6403b -Werror=unused-parameter
Change-Id: I01995091350ed4a4edefa13ca6946d23062112a1
2013-04-22 09:20:31 +02:00
Stephan Bergmann
2a65f0e185 Make jdiv_round_up available (-Werror=implicit-function-declaration)
...apparently caused by 845456565d "DO NOT use
internal headers of jpeg."  The warning there "I am not sure if it is all right
to include parts of jpeg directly into our code" still holds, of course.

Change-Id: I4754dbcd9b2c3eafc64d32c3b83faa53cf913abd
2013-04-22 09:20:31 +02:00
David Tardon
845456565d DO NOT use internal headers of jpeg
They ARE NOT available when using system jpeg.

Apart of that, I am not sure if it is all right to include parts of jpeg
directly into our code.

Change-Id: Ic19a22e73094d452ffd072b819020e4a46256406
2013-04-22 08:14:46 +02:00
Tomaž Vajngerl
8ecf0d45d8 Add jpegint.h to jpeg module. Fix warning in Exif.
Change-Id: I098ad140d013f1bda057416b2e0622bc038d2a30
2013-04-21 23:31:03 +02:00
Tomaž Vajngerl
2fa3cde17c WaE: unused variable in Exif
Change-Id: I921ba50f1d251489bfb56703247890f9ff23200f
2013-04-21 22:55:41 +02:00
Tomaž Vajngerl
4cbe623af8 Fix enum Tag and Orientation usage.
Change-Id: I50014b227b07a4b7bff7b2569ec55409f371b38e
2013-04-21 22:52:30 +02:00
Tomaž Vajngerl
922d87535b Extract IFD processing in Exif.
Change-Id: Ia00803c748cd40b7e2e6142a2802ea6e4e13f8fd
2013-04-21 21:55:48 +02:00
Tomaž Vajngerl
c0bb58329e At native rotation of JPEG image detect and reset image orientation.
Change-Id: I81bc0f4a7cb192f8f9806a9b5bb0d2a6ab1b00df
2013-04-21 21:55:48 +02:00
Tomaž Vajngerl
4f3bc8cf69 More correct reading of Exif metadata.
Change-Id: Id9e7754cfcbd1d7e8b512eb1c1a3384df2db149f
2013-04-21 21:55:47 +02:00
Tomaž Vajngerl
06c25631e3 Remove rotation for SVG for now.
Change-Id: I6f9b9cc510778ea561ebbb9ac215db615ea34a8e
2013-04-21 21:55:47 +02:00
Tomaž Vajngerl
8ae05bf7a0 canBeRotated added to ask if native rotation can be performed.
The canBeRotated method was added to determine if a native rotation
can be performed for a graphics or not.

Change-Id: I026cf6fe4baa4d964d0a2c2b6e36c3b15aa91549
2013-04-21 21:55:46 +02:00
Tomaž Vajngerl
29545247e4 Use GraphicFilter directly in GraphicNativeTransform.
Change-Id: Ib7c028ae32783f112507fb848398b389ed7a484f
2013-04-21 21:55:46 +02:00
Tomaž Vajngerl
75f60bff08 Add rotation for PNG and GIF to GraphicNativeRotation.
Rotation for PNG and GIF format perform by exporting and importing
of the Graphic. This is a "fallback" way to perform graphic rotation
and the easiest to do for lossless raster formats.

Change-Id: I31efad9106b5cfbd1d7c6c5063726c455d05f934
2013-04-21 21:55:46 +02:00
Tomaž Vajngerl
6c7e476ae6 Regster rotate left, right menu items.
Change-Id: I64340da256a9ee66b13870854ccdccacaaf4f0d2
2013-04-21 21:55:45 +02:00
Tomaž Vajngerl
b5a9cc71d2 Exif reading/writing and Jpeg lossless transformations support.
Support for reading/writing of Exif image metadata. Currently only
orientation is implemented, but support for other tags can be added.

Jpeg lossless transformations - currently only lossless rotation is
supported, but others can be added when needed.

Additionally GraphicNativeTransform and GraphicNativeMetadata has
been added. The responsibillity of GraphicNativeTransform is to
provide graphic transformations (like rotation) on native data and
the purpose is to be as lossless as possible in transformations.
GraphicNativeMetadata is a class for reading metadata which is
contained in a native data graphic stream. For now both support
only Jpeg.

Change-Id: I3e67cd3e7f5386746bcd1f0bfd2b90f5fe834b92
2013-04-21 21:55:45 +02:00
Tomaž Vajngerl
649f000084 sal_Bool to bool in jpeg filter
Change-Id: I9a091e9b209c443cb32983e6d35044eec8681d18
2013-04-21 21:55:45 +02:00
Tomaž Vajngerl
759f24152a Split JpegWriter and JpegReader out from jpeg.cxx/hxx
jpeg.cxx/hxx contains classes JpegWriter and JpegReader which are
considered private. Split this two classes and other related
functions into its own files.

Change-Id: I41c1139b30a4dc19e03b2232dfe0986cc05d0c08
2013-04-21 21:55:44 +02:00
Michael Dunphy
8f4fc74c34 fdo#62699 Remove a few more pass-through headers
Change-Id: I4cc2dc7f1da3bc15921939e3bd5908a3f7049eab
Reviewed-on: https://gerrit.libreoffice.org/3492
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-21 05:51:29 +00:00
Markus Mohrhard
a049c87ba5 fix access to invalid string position
Change-Id: If811f256dc2a0cbdc25fe2a56e949736191aa002
2013-04-21 02:35:01 +02:00
Marcos Paulo de Souza
0f200cc30e fdo#63154: Change Min/Max/Abs for std::min/max/abs
Now all these usages were removed from LO.

Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6
Reviewed-on: https://gerrit.libreoffice.org/3326
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-20 11:09:54 +00:00
Tor Lillqvist
07c1b61933 Small refactoring of the Android "desktop app" code, no functional change
Move the native methods out to a separate AppSupport class so that they aren't
in our "experimenal" Desktop app's namespace. Don't hardcode the name of that
class in the native code, but have the app register the class to which the
damage callbacks should be done.

Possibly the AppSupport and Bootstrap classes should be combined. Later.

Also, the "android" part of the package name is superfluous; it is
Android-specific code, no information gained by having an "android" part in
the package name.

Change-Id: Iddf55c8034ead7693887ace8438deb002c5eea9f
2013-04-19 18:50:36 +03:00