Commit graph

1122 commits

Author SHA1 Message Date
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
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
Stephan Bergmann
7828f43770 MSC needs those min/max macros after all
...otherwise, it will fail with "c:\program files\microsoft
sdks\windows\v7.1\include\GdiplusTypes.h(470) : error C3861: 'min': identifier
not found" errors.

Change-Id: Ib81ab7f5357b1f980202b63b144296fa252b71b1
2013-04-17 14:54:06 +02:00
Stephan Bergmann
adae41c0ed MSC needs those min/max macros after all
...otherwise, it will fail with "c:\program files\microsoft
sdks\windows\v7.1\include\GdiplusTypes.h(470) : error C3861: 'min': identifier
not found" errors.

Change-Id: Ie58a5e85e6712e4244ce4799c203b31a717a91e6
2013-04-17 13:38:19 +02:00
Stephan Bergmann
a43afd19c9 -Werror=unused-macros (MinGW, vcl)
Change-Id: I2a3b5ad429e7bcc60dc50635a48feb6037b0001e
2013-04-17 11:51:12 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02: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
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
Miklos Vajna
b5f296f818 vcl: unused includes
Change-Id: I43d83b916bf1741cea7c94a77dcc57b69544801c
2013-04-01 19:36: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
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
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
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
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
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
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
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
Thomas Arnhold
0af31660ea sd: translate debug messages
Change-Id: I8a50173babdd441c8247867fce0fdfbedaf0bc02
2013-03-11 22:51:53 +01:00
Thomas Arnhold
221c71c9c7 vcl: further fixes
introduced due to 7d1f4cdec3

Change-Id: I9e3489be57fc8fe3cfcf753a11d926e79bcba3de
2013-03-11 21:59:53 +01: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
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
Noel Grandin
3554b36530 fix for fdo#61801
... "crash on Tools - Options - LibreOffice - Personalization - Select Background Image"

The root cause of this is my conversion of the UNO code to use the
new-style FilePicker service constructor in commit
4b51374a70

Unfortunately, the new-style service constructor will always call
initialize(Sequence<Any>), which the old code did not do.
And initialize does not like being called without any arguments.

The cleanest fix for this is to simply remove the createDefault()
service constructor method and make all the call sites explicitly
choose the style of FilePicker dialog they want.

As a bonus, this simplifies some of the call sites.

Change-Id: I75f5e03cff4e39abe22cd9650a079ec78ab636c4
Reviewed-on: https://gerrit.libreoffice.org/2553
Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-05 16:12:53 +00:00
Thomas Arnhold
f5ca04caca Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml

Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
Luboš Luňák
f6deda85ef current mingw headers don't have fMergeNeutralItems
Reported upstream by Kendy (r5626), for now do not use the field
if not present, seems to be not that important.
2013-03-01 18:25:25 +01:00
Herbert Dürr
ee5d620011 (cherry picked from commit c4ce6e92db9e784eed2c0863d4c30bf9eddf3da1)
Conflicts:
	vcl/win/source/gdi/winlayout.cxx

Change-Id: I564e3d2186578041a70f329810173b82c8f1ce5b
2013-03-01 12:44:14 +00:00
Christian M. Heller
02a985013e fdo#39468: Translated German comments in vcl/{inc,win}
Change-Id: I1b11872dd56d93b116a65ac2e3905f751cfafeeb
Signed-off-by: Philipp Riemer <ruderphilipp@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/2447
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-02-28 11:08:54 +00:00
Michael Meeks
b5f1139427 cleanup some module calls.
Change-Id: I2871b7e49416c1fb25b80a7a4e7e2dc98efd75d8
2013-02-28 10:34:58 +00:00
Julien Nabet
2dca0ccf07 Fix typo recieved/received
Change-Id: I0c838f5c06ff26149113a9bbab970d314758c648
2013-02-23 19:09:11 +01:00
Thomas Arnhold
5c89214a80 fdo#39674: Rename menues to menu
Change-Id: Idc22167d1a0dc518b3f9e96884213140d07b565b
Reviewed-on: https://gerrit.libreoffice.org/2316
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-22 11:55:29 +00:00
Tor Lillqvist
2926bd4d6b s/whith/with/
Change-Id: I23da81c182ad30faf871d98e55820295418207d0
2013-02-22 09:39:11 +02:00
Julien Nabet
2ce2fafa1b Some cppcheck cleaning
Change-Id: Idb380dbb7470dbdb371778ba0c486392cc55380e
2013-02-12 14:48:04 +01:00
Luboš Luňák
8876ea069f remove executable bit on .cxx files 2013-02-12 11:35:35 +01:00
Noel Grandin
4b51374a70 fdo#46808, Adapt ui::dialogs::FilePicker UNO service to new style
Change-Id: I1cafbfc53994e5d74241042dbd1d292ddbda67d5
2013-02-12 10:14:45 +02:00
Luboš Luňák
6db8d0ba58 win-specific fixes for 9e310cc329 2013-02-08 19:01:36 +01:00
Jean-Noël Rouvignac
9e310cc329 fdo#38838 Some removal/replacement of the String/UniString with OUString
Change-Id: I6daea312198fae3a9717bd8d4fea6371aa4cd275
Reviewed-on: https://gerrit.libreoffice.org/1962
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-02-08 14:57:16 +00:00
Stephan Bergmann
eb7ccf863c Remove unused DeInitSalMain
Change-Id: I8fd733fe6535cc4f9f299f53adc1821ce344a85c
2013-01-30 13:50:25 +01:00
Aurimas Fišeras
c9b89297b3 Add Lithuanian translations of keyboard shortcuts (related to fdo#54165)
Change-Id: I0e9460adeebb2e2a46ca3cd0e683cd4f0026916b
Reviewed-on: https://gerrit.libreoffice.org/1775
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-01-22 16:44:58 +00:00
Petr Mladek
2f9cc7a486 Add Asturian, Slovenian, and Spanish translations of keymanes for Windows
Asturian by Xuacu <xuacusk8 at gmail dot com>
Spanish by Adolfo Jayme Barrientos <fitoschido at ubuntu dot com>
Slovenian by Martin Srebotnjak <miles at filmsi dot net>

Change-Id: I29387f5908ea456abc5c464a03cc74c718ae6b74
2013-01-21 16:11:25 +01:00
Jesús Corrius
42c0fa1b60 fdo#54165: Add key replacement names for Estonian (Patch by: Mihkel Tõnnov)
Change-Id: I6cb2eddf3fa2fbd492214fd092b394227d1e52c0
Reviewed-on: https://gerrit.libreoffice.org/1695
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-01-16 11:06:37 +00:00
Luboš Luňák
f5d047dcb8 second try with wcscpy()
On mingw sal_Unicode is not wchar_t (see sal/types.h).
2013-01-09 21:30:24 +01:00
Luboš Luňák
0a28778e9a mingw tinderbox doesn't know wcscpy_r()
Moreover, according to MSDN, wcscpy() in C++ is a template that doesn't
need the length passed, so this shouldn't make actually anything worse.
2013-01-09 21:12:29 +01:00
Jesús
28f5f06d70 fdo#54165: Allow localized shortcut names on Windows
Change-Id: I2de53cd8d888ecf819271e96f8eb2cc4a90e554d
2013-01-08 13:04:31 +01:00
Tor Lillqvist
4b4ca80c6b More ImplFontAttributes change fallout, in --enable-dbgutil code 2013-01-07 17:02:55 +02:00
Luboš Luňák
d7fbc4ad10 further windows build fix for vcl changes
Caused by 1e1ba8611f and not fixed
in 83f684c86c.

Change-Id: I43853f1d933a70789c4b89a22d06d2d383493758
2013-01-07 15:23:28 +01:00
Miklos Vajna
83f684c86c vcl: port WinSalGraphics and friends to new getter/setter methods 2013-01-07 14:35:25 +01:00
Jan Holesovsky
9ae27252a6 Personas: Make the Persona in the menubar working.
Change-Id: I21a45159f6b27aa7beff5ec07530b14480675729
2013-01-04 22:02:51 +01:00
Michael Stahl
cec68bceba fdo#47553: UniscribeLayout: adjust mnSubStringMin
... to actual minimum so that the fix for fdo#33090 in
UniscribeLayout::GetNextGlyphs subtracts exactly the right number.

The original value of mnSubStringMin is guessed and may be up to 8
smaller than the actual start of the first VisualItem.

For the bugdoc it happens that sometimes it's too small by 8 and then
the wrong entries in mpGlyphs2Chars are initialized and then apparently
there are single glyphs that represent multiple characters and so
GetNextGlyphs returns a -1 character which is invalid.

 ->GetNextGlyphs dir 1 36 mnSubStringMin 28
 ->GetNextGlyphs g2c #1 [8] = 36
 ->GetNextGlyphs g2c #1 [9] = 37
 ->GetNextGlyphs g2c #1 [10] = 38
 ->GetNextGlyphs g2c #1 [11] = 39
 ->GetNextGlyphs g2c #1 [12] = 40
 ->GetNextGlyphs g2c #2 [4] = 40
 ->GetNextGlyphs g2c #2 [3] = 39
 ->GetNextGlyphs g2c #2 [1] = 38
 ->GetNextGlyphs g2c #2 [1] = 37
 ->GetNextGlyphs g2c #2 [0] = 36
...
 ->GetNextGlyphs init nCharPos -1
 ->GetNextGlyphs g2c [2]  nCharPos -1
 ->GetNextGlyphs set pCharPosAry -1
layout[0]->GetNextGlyphs 768,1024 a1800 c-1 0

Change-Id: Ie33ec797a412aa898bec3f4e8f97b88dcfed4d11
2012-12-22 02:01:14 +01:00
Luboš Luňák
a6d5ed529a -DENABLE_GRAPHITE -> config_graphite.h
Change-Id: I94c7865b68c65540765c9fbfba6f669055dad4ba
2012-12-19 12:19:59 +01:00