summaryrefslogtreecommitdiff
path: root/vcl/win/source
AgeCommit message (Collapse)Author
2013-05-22Add mouse rollover effect to menubar on KDE and WindowsIsamu Mogi
- Add mouse rollover handling code to vcl::MenuBarWindow and vcl::Menu - Add member variable of rollover color to StyleSettings and ImplStyleData - Add rollover color definitions for each platforms Change-Id: I9ececd8a7089918ac63c5f2027c0c2f361a9d227 Reviewed-on: https://gerrit.libreoffice.org/3856 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-22Revert "fdo#62846 incorrect glyph to Unicode mappings in PDFs"Tor Lillqvist
Breaks the build for Windows: vcl/win/source/gdi/winlayout.cxx(1897) : error C2065: 'nCharPos' : undeclared identifier This reverts commit 0b70e4ea4fcf0adccdfdf4886e5cc45d46479692.
2013-05-22fdo#62846 incorrect glyph to Unicode mappings in PDFsJonathan Schultz
Change-Id: Idebc7f69f95d8f72626373475d8611ea68f1483a
2013-05-14SolarMutex does not belong into the URE interfaceStephan Bergmann
...so move it from osl/mutex.hxx to its own comphelper/solarmutex.hxx. It looks like a newbie mistake that 59e7685d8d812ee8773f57475cbe3aa2a0bdfc81 "Create an abstract interface to be used to implement a SolarMutex" put it here in the first place. I do not consider this an incompatible change really, as no external URE client code should have used SolarMutex anyway. (Also included some clean up, like removing unused {Clearable,Resettable}SolarGuard, and spelling out SolarGuard in the few places it is used.) Change-Id: I121ffb5b7cefbc19e88b5405e5a85ffc895be852
2013-05-13WaE: signed/unsigned mismatchTor Lillqvist
Change-Id: Id655a3f97107fd99bdf3c271fdc1938e22d6317d
2013-05-13Support IMR_QUERYCHARPOSITION in Writer and Calc.Yohei Yukawa
IMR_QUERYCHARPOSITION is one of optional but fundamental request message sent from IMEs to application. This message is used for retrieving the positional information for each character in a composition text especially when the composition text is drawn by the application. This information is critical for IMEs to align suggestion window with the composition text. Change-Id: I53a344a78688060004cc8bcbbf1127f22a468e20 Reviewed-on: https://gerrit.libreoffice.org/3849 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-10Related: #i120306# better input checks in WinSalBitmap::ImplCreateDIB()Herbert Dürr
Patch-by: hdu, orw (cherry picked from commit 7b6990763f759f2de1902f8d22a22eb8e66797f7) Conflicts: vcl/win/source/gdi/salbmp.cxx Change-Id: I106efb3960cb99367d2ecefb8bcae006f389e271 Corrected static_cast which does not work on Win compiler reinterpret cas needed (base classes are not related) (cherry picked from commit 99e4d3a57f88f71c47f1e519bde13080f0df3041) Change-Id: I02fc89d1ab346231985c68d63d9710c036d2ab2a
2013-05-10Related: #i112873# check native widget's control value type...Herbert Dürr
before converting to SpinbuttonValue or ScrollbarValue Else problems like #i112873# or even crashes can and do happen. (cherry picked from commit d2fde1d34c3c28572b1b6b4780269c15dd4c2bef) Conflicts: vcl/unx/kde/salnativewidgets-kde.cxx Change-Id: I6429205ab41b3194577bc50aa02384c920e11ed2
2013-04-25Fix KEY_SHIFT clashTor Lillqvist
Since 360d6bf4fd1241af47f55648b7597fda3120390a 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-20fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza
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-17MSC needs those min/max macros after allStephan Bergmann
...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-17MSC needs those min/max macros after allStephan Bergmann
...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-Werror=unused-macros (MinGW, vcl)Stephan Bergmann
Change-Id: I2a3b5ad429e7bcc60dc50635a48feb6037b0001e
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
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-05new module i18nlangtagEike Rathke
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-03fdo#58807 bring Beep() for basic backThomas Arnhold
The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef 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-01vcl: unused includesMiklos Vajna
Change-Id: I43d83b916bf1741cea7c94a77dcc57b69544801c
2013-03-27No need for two sets of names for the same exttextinput flag bitsTor Lillqvist
Change-Id: Ic5756d75bc86795a7add95694aef6fc9d1f6b9fa
2013-03-27No need for two sets of names for the same frame/window state bitsTor Lillqvist
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-23fdo#39468 Translate German comments - vcl/win/source/gdi/Christian M. Heller
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-23fdo#39468 Translate German Comments - salframe.cxxChristian M. Heller
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-23fdo#39468 Translate German comments - vcl/win/source/appChristian M. Heller
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-20use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold
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-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold
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-14vcl: fix WNT only debug code OUStringsMichael Stahl
Change-Id: Ie864629499806d798ce4a4525c385bf1617b0160
2013-03-14Missing WNT --enable-debug String -> OUString conversion partsStephan Bergmann
Change-Id: Ica20eacd95538fe37d08bf76c7b5a6717a7e8422
2013-03-11sd: translate debug messagesThomas Arnhold
Change-Id: I8a50173babdd441c8247867fce0fdfbedaf0bc02
2013-03-11vcl: further fixesThomas Arnhold
introduced due to 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 Change-Id: I9e3489be57fc8fe3cfcf753a11d926e79bcba3de
2013-03-07fdo#38838 Replaced some use of (Uni)String with OUString.Jean-Noël Rouvignac
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-07Resolves: #i119997# fix a memory leak by WinGlyphFallbackSubstitutionHerbert Dürr
Patch by: Chao Huang Found by: Chao Huang Review by: hdu Conflicts: vcl/win/source/gdi/salgdi3.cxx Change-Id: I6cde84b54a42fd8951d68280fac9dccd2b2e5c4a
2013-03-05fix for fdo#61801Noel Grandin
... "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 4b51374a7021d52f7f1be1861e2ee6a011b30ecd 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-03Related to fdo#60724: correct spellingThomas Arnhold
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-01current mingw headers don't have fMergeNeutralItemsLuboš Luňák
Reported upstream by Kendy (r5626), for now do not use the field if not present, seems to be not that important.
2013-03-01(cherry picked from commit c4ce6e92db9e784eed2c0863d4c30bf9eddf3da1)Herbert Dürr
Conflicts: vcl/win/source/gdi/winlayout.cxx Change-Id: I564e3d2186578041a70f329810173b82c8f1ce5b
2013-02-28fdo#39468: Translated German comments in vcl/{inc,win}Christian M. Heller
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-28cleanup some module calls.Michael Meeks
Change-Id: I2871b7e49416c1fb25b80a7a4e7e2dc98efd75d8
2013-02-23Fix typo recieved/receivedJulien Nabet
Change-Id: I0c838f5c06ff26149113a9bbab970d314758c648
2013-02-22fdo#39674: Rename menues to menuThomas Arnhold
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-22s/whith/with/Tor Lillqvist
Change-Id: I23da81c182ad30faf871d98e55820295418207d0
2013-02-12Some cppcheck cleaningJulien Nabet
Change-Id: Idb380dbb7470dbdb371778ba0c486392cc55380e
2013-02-12remove executable bit on .cxx filesLuboš Luňák
2013-02-12fdo#46808, Adapt ui::dialogs::FilePicker UNO service to new styleNoel Grandin
Change-Id: I1cafbfc53994e5d74241042dbd1d292ddbda67d5
2013-02-08win-specific fixes for 9e310cc32923ceb4b18d97ce68d54a339b935f01Luboš Luňák
2013-02-08fdo#38838 Some removal/replacement of the String/UniString with OUStringJean-Noël Rouvignac
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-01-30Remove unused DeInitSalMainStephan Bergmann
Change-Id: I8fd733fe6535cc4f9f299f53adc1821ce344a85c
2013-01-22Add Lithuanian translations of keyboard shortcuts (related to fdo#54165)Aurimas Fišeras
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-21Add Asturian, Slovenian, and Spanish translations of keymanes for WindowsPetr Mladek
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-16fdo#54165: Add key replacement names for Estonian (Patch by: Mihkel Tõnnov)Jesús Corrius
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-09second try with wcscpy()Luboš Luňák
On mingw sal_Unicode is not wchar_t (see sal/types.h).