Commit graph

13806 commits

Author SHA1 Message Date
Thomas Arnhold
0af31660ea sd: translate debug messages
Change-Id: I8a50173babdd441c8247867fce0fdfbedaf0bc02
2013-03-11 22:51:53 +01:00
Caolán McNamara
9d3df36463 Resolves: fdo#62154 propogate text language down to icu for locl
Change-Id: I92f40d0a1e88b5cb0e6f07a1e6e4a8bd41cb8102
2013-03-11 21:45:38 +00:00
Thomas Arnhold
221c71c9c7 vcl: further fixes
introduced due to 7d1f4cdec3

Change-Id: I9e3489be57fc8fe3cfcf753a11d926e79bcba3de
2013-03-11 21:59:53 +01:00
Thomas Arnhold
dfc6c482be vcl: fix debug build
Change-Id: I7212e456f395208b2f322c5ac21a97fd63277a3b
2013-03-11 19:08:20 +01:00
elixir
7d1f4cdec3 fdo#38838: Converting String/UniString to OUString
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9
Reviewed-on: https://gerrit.libreoffice.org/2586
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-11 15:50:44 +00:00
Thomas Arnhold
937b63af33 use startsWith() instead of compareToAscii()
brain damage...

Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-11 11:07:09 +01:00
Zolnai Tamás
3a31375528 Make ComboBox::CalcSize to return the right width
Change-Id: I83f5075281b2edd3f7a5e94709f0529d0c744ff8
Reviewed-on: https://gerrit.libreoffice.org/2612
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-11 09:53:26 +00:00
Caolán McNamara
ab8f432b33 use approximate_char_width instead of GetTextWidth('X')
Change-Id: I4c25b07c1c5d80b70b801fd61b711a00d5194c04
2013-03-11 07:53:11 +00:00
Caolán McNamara
876f257249 XubString->OUString
Change-Id: I5821a57bcdaa5984a1f5c824db21759d15faec60
2013-03-11 07:53:10 +00:00
Peter Foley
b56e53f135 update pch files
Change-Id: I07c1acc9f9e788f1165b3e241008aa944485790d
2013-03-10 14:31:18 -04:00
Chris
ebe5bdf779 Remove now obsolete RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: I15ae64d621fd0a1fa178f9a4062b93520628bdb0
Reviewed-on: https://gerrit.libreoffice.org/2627
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2013-03-09 23:36:28 +00:00
Borim
a0296296fb fdo#60691 add modelines to *.src and *.hrc files
use solenv/bin/add-modulelines script for the task
and remove all UTF bom from *.src and *.hrc files

svx/source/dialog/hdft.src

Change-Id: I745d4f0fe9b05436a142a03f8512970f91c41bd4
2013-03-08 21:02:26 +00:00
Tor Lillqvist
54e458f691 AndroidSalInstance::Wakeup() is unused
The Wakeup() in the base class, SvpSalInstance, is not virtual. So this
Wakeup() does not override the Wakeup() in the base class, as the author maybe
thought. I don't see in git history that it would have ever been called
explicitly on any AndroidSalInstance objects either. Or am I missing
something?

Change-Id: I932398e7c0a37a3048c5d372996fe6ac6f209887
2013-03-08 21:12:24 +02:00
Tor Lillqvist
78e217bcd0 Don't crash the other experimental apps
Don't try to find the class org.libreoffice.experimental.desktop.Desktop in
the AndroidSalInstance constructor. It won't exist anyway except in that
specific app. Look up the class in the damaged() method where it is needed.

And actually, of course we should not hardcode the name of the app class like
that, but the app should pass its class down to the native code.

Change-Id: Ic15d5cc2c8d53be558711ca7a145d5489e34d298
2013-03-08 20:51:59 +02:00
Stephan Bergmann
c78f40a6d8 Make use of new-style AccessBridge ctor
Change-Id: I9239fb1c8b139ee2bdb27cdf55222d54e488f6d5
2013-03-08 15:43:57 +01:00
Caolán McNamara
6df8417b98 set action and content area via their internal-child ids
rather than based on their names, which changes if
there are more than one dialog in a .ui

set them explicitly in the manual-build-dialog
case of the SfxTabDialogs

Change-Id: I293c77df05d9e11e3f1cf3b358a9dd27fe668b0f
2013-03-08 13:42:32 +00:00
Thomas Arnhold
4bf95c4c31 make use of startsWith()
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679
Reviewed-on: https://gerrit.libreoffice.org/2599
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-08 13:16:49 +00:00
Chris
5745d7a08f Remove now obsolete RTL_CONSTASCII_(U)STRINGPARAM from salplug.cxx
Change-Id: I49b77fee3864e8a389998a4e9df1054bf29b2722
Reviewed-on: https://gerrit.libreoffice.org/2594
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-08 12:59:49 +00:00
Luboš Luňák
e99d502df6 fix handling of ttf embedding restrictions
Font is usable for viewing if not restricted from embedding completely
(since otherwise either viewing is allowed or a less restrictive setting
is present). Font is usable for editing if it's installable or editable.

Change-Id: I57604a54390b935bae3699dda581d1093fc245e3
2013-03-08 13:35:27 +01:00
Luboš Luňák
8da3cfcde0 editable ttf fonts are usable for print&preview too
Since it's a less restrictive setting (fonts should usually have both
bits set though).

Change-Id: I83f740762698bd0a0f8fdee388a6e710cfd9d00a
2013-03-08 13:35:27 +01:00
Luboš Luňák
e2cd75f005 embed also view-only fonts, but do not use them
MSO embeds even fonts which allow only embedding for viewing the document
but not editing it. So embed such fonts too, but do not actually use
them from the document. What MSO does when such a font is not present
locally when opening the document is switching to read-only mode,
warning about this and providing a button for switching to editing mode
by dumping the font(s). That should be done for LO too, but right now
dropping view-only fonts is better than using them for editing.

Change-Id: I19c28fadb091e6b21beaf4cbf8b47e3078256d1c
2013-03-08 13:35:27 +01:00
Luboš Luňák
8fcc60bee7 protect against incomplete writes
What good is an abstraction if one still has to fiddle with annoying
implementation details?

Change-Id: I80816bdad8c0560263306584ad001a41fc054cd2
2013-03-08 13:35:27 +01:00
Luboš Luňák
5c1c0a4eef function for duplicated code
Change-Id: If9d6a163abb5a1cbd64838ca005b14dcd51c4588
2013-03-08 13:35:26 +01:00
Michael Meeks
2e00860260 WaE: avoid mis-detection of uninitialized pixmap. 2013-03-08 11:02:44 +00:00
Tor Lillqvist
8475838679 Some further hacks for scrolling on touch devices, but no cigar
The scrolling concepts seem quite obscure and firmly tied to concepts like
"pages" and "lines". For touch devices one would want to be able to request
scrolling simply in *pixels*.

It is the scrollbar objects (in vcl and toolkit, and yes, UNO is also involved
over in toolkit) that all the action goes through so they must exist even if
they should not be displayed.

(Both on Android and iOS we should presumably use these system-specific
ephemeral scroll indicator thingies that show up only during scrolling but
otherwise fade away. Hmm, probably the VCL (or toolkit?) scrollbar code should
use platform-specific code to display those then.)

Change-Id: I1f82648561e41ae25f2427fd0fe60249c927a9a1
2013-03-07 21:51:26 +02:00
Tor Lillqvist
a9c6211a52 Add a comment
Change-Id: Id97c8e2bdbea40db4224147eaabe68a87cd9c08d
2013-03-07 21:51:26 +02:00
Tor Lillqvist
e278c023f7 Add a SAL_INFO()
Change-Id: Ic681a76deb8db931f7868ca00d649cc3cbabe21b
2013-03-07 21:51:26 +02:00
Jean-Noël Rouvignac
3bc29af446 fdo#38838 Replaced some use of (Uni)String with OUString.
Change-Id: Iad623c9300919fbae34279268a5a720f978c6434
Reviewed-on: https://gerrit.libreoffice.org/2514
Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-07 19:50:37 +00:00
Tor Lillqvist
6642d9ec9f OUString::replaceAt() does not replace in-place
Change-Id: I90bc139e1a188afbada12405d78ac71b97580f0d
2013-03-07 21:16:59 +02:00
Stephan Bergmann
efc4d6b83f Do not call OUStringBuffer::copy with bad argument
Change-Id: I7cb6e2343486ff9864c44d061fc38c1203791988
2013-03-07 17:49:41 +01:00
Herbert Dürr
91843f6122 c#708653# remove unused member SalXLib::pYieldEntries_
Change-Id: I0d562f102d5159c0711922ff0c2997a560304eba
2013-03-07 15:57:13 +00:00
Caolán McNamara
5ecb308bd3 rename setInitialLayoutSize to setOptimalLayoutSize
and add a mechanism to know that we're in true
initial layout mode

Change-Id: I4ff61160ae67a7ccf1cb8b25c41870c195d32b94
2013-03-07 14:06:17 +00:00
Caolán McNamara
b42ea2ad00 add stock button text for paste, and map to gtk-paste
Change-Id: I38a49ccc744060271be77c9eba2e6bd300630092
2013-03-07 14:06:17 +00:00
Herbert Dürr
736a63b25f Resolves: #i119997# fix a memory leak by WinGlyphFallbackSubstitution
Patch by: Chao Huang
Found by: Chao Huang
Review by: hdu

Conflicts:
	vcl/win/source/gdi/salgdi3.cxx

Change-Id: I6cde84b54a42fd8951d68280fac9dccd2b2e5c4a
2013-03-07 13:13:24 +00:00
Fridrich Štrba
81b3adfcf2 Oops, this is a conflict resolution problem
Change-Id: I809de78066859a6b340ae5382d7f546c2db61f17
2013-03-07 14:03:58 +01:00
Chr. Rossmanith
3cad6c806e Replace (Xub)String with OUString in vcl(field)
Change-Id: I62fba60a4c6e1db870443a796e6338cddc934352
Reviewed-on: https://gerrit.libreoffice.org/2229
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-07 12:48:10 +00:00
Radek Doulik
46e53913e9 fix canvas bitmap rendering (argb32 pixmaps) fixes color issue in n#780830
Change-Id: I5242bbb171ba21da43e535255b7e9dd73c1d4930
2013-03-07 13:37:27 +01:00
Chr. Rossmanith
cd2c3e72a7 Replaced XubString with OUString in vcl(combobox)
Change-Id: Ibe80e9837f1c8275d625e942eb75ecc8de897bf5
Reviewed-on: https://gerrit.libreoffice.org/2574
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-07 12:36:38 +00:00
Herbert Dürr
be5587ce0c c#705440# check ftell return value when emitting Type1 subset
Conflicts:
	vcl/source/fontsubset/cff.cxx

Change-Id: Idaf328b48a55fbcef13746f74120c13b6b435c93
2013-03-07 11:25:41 +00:00
Herbert Dürr
ce740afe80 c#705441# handle invalid FDSelect entry while emitting Type1
Change-Id: I1865eec0dcb29c74e98a6f42f7cf37a2851f8e85
2013-03-07 11:25:40 +00:00
Herbert Dürr
f9e73b74bc c#706171# handle invalid PFB chunk header
Conflicts:
	vcl/unx/generic/fontmanager/helper.cxx

Change-Id: I2d58b83c51a2c8b529727be0aeb5ef612f883acc
2013-03-07 10:18:37 +00:00
Caolán McNamara
4514f9bb13 OSL_TRACE->SAL_INFO
Change-Id: I889a32bce4f3c0eab5d3d5ef199dd321755cb177
2013-03-07 09:50:16 +00:00
Tor Lillqvist
e669502dcf Start hacking on scrolling
Change-Id: I74f1d7feb935be65629bdbd7464f9882229948e5
2013-03-07 10:15:58 +02:00
Tor Lillqvist
bcbe5fe885 Use view size for "work area" size
Don't know what this affects, though. Things seem to have worked as expected
even with the hardcoded bogus value?

Change-Id: I945bdcd53260fc5f43cf0031dfd96637168475f0
2013-03-07 10:15:57 +02:00
Tor Lillqvist
1192381595 Now get rid of the #if 0 blocks
Change-Id: I815cc4a703b7ca6d2894807396a06a3394b40676
2013-03-07 10:15:57 +02:00
Tor Lillqvist
54d3aa2785 Improve vcl/README
Change-Id: I9031ab98f263bcc32b747c85e1715b80c7059ae9
2013-03-07 10:15:57 +02:00
Tor Lillqvist
334e3dfd84 Revert "Window::PostPaint() was unused and empty"
Nah, seems that it was used after all on Windows, somehow.

This reverts commit 5754264f93001978a3c5f5f1cdabd7113de010b8.
2013-03-07 02:33:42 +02:00
Tor Lillqvist
0ce2d740a2 Handle damage tracking and redrawing properly in the "desktop" Android app
In the damaged() method do a callback up to Java code in Desktop that
invalidates the view. For now store the view in a static field, but need to do
that in a cleaner way eventually. There might in some circumstancest be
several instances of the Desktop activity present. Obviously should also run
just one LO thread.

Get rid of the temporary self-invalidattion in onDraw() silliness.

Start the LO thread that runs soffice_main() from Java, not from native
code. Apparently only threads created from Java have proper class loaders in
Android.

No need for an own DoReleaseYield() in AndroidSalInstance, the one in the
SvpSalInstance base class does what needs to be done.

Change-Id: I4cb85b352fca1f1375f726620ec8c93d2047f113
2013-03-07 02:33:42 +02:00
Tor Lillqvist
1ea2124ec6 SALEVENT_COUNT is unused
Change-Id: Ia4970bd63ae5a9af40a82c894ecd077b7ca199df
2013-03-07 02:33:42 +02:00
Tor Lillqvist
303ff2493b Window::PostPaint() was unused and empty
Change-Id: I0e35b55888df16067660862fd54d240f5dfcef8f
2013-03-07 00:35:04 +02:00