summaryrefslogtreecommitdiff
path: root/shell/inc
AgeCommit message (Collapse)AuthorFilesLines
2017-10-27loplugin:includeform: shell (Windows)Stephan Bergmann12-15/+15
Change-Id: I80109e4e60b0f72efee53509d5539918cec789bd
2017-09-29Drop check for Windows versions we don't supportMike Kaganski1-6/+0
Since we dropped support of Vista and below in master toward 6.0, those checks are needless. Removing the code that only worked in older versions, and streamlining the resulting code. Also, use kernel32.dll version for Windows version, instead of deprecated GetVersionEx, and inconvenient VersionHelpers. Since both GetVersion(Ex) and VersionHelpers (based on VerifyVersionInfo) are subject to manifest-based behavior since Windows 8.1, this move will hopefully result in more reliable OS version detection. Change-Id: I3edd8fc1843e64b6a65bd3a126be6a085511f13c Reviewed-on: https://gerrit.libreoffice.org/42905 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-28shell: use Unicode on WindowsMike Kaganski11-28/+64
Change-Id: I9f7962db320f8832879ba327108425a7592b4b77 Reviewed-on: https://gerrit.libreoffice.org/42885 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-22Windows: avoid dependence on UNICODE define; prefer W functionsMike Kaganski1-2/+0
Change-Id: I95b90128e93f0d88ed73601bcc5a7ca9279d4cf1 Reviewed-on: https://gerrit.libreoffice.org/42560 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-18Use even more WIN32_LEAN_AND_MEANMike Kaganski1-0/+3
Change-Id: I538fe5b41156366e0e87b3a93e58a3947afd18f5 Reviewed-on: https://gerrit.libreoffice.org/42398 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-16Use more WIN32_LEAN_AND_MEANMike Kaganski2-0/+6
https://msdn.microsoft.com/en-us/aa383745 Change-Id: I83528dc8e6a5e119e7aa816219d35f1ea3723b96 Reviewed-on: https://gerrit.libreoffice.org/42338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-11tdf#103058: allow optional registration for MS ProgIDsMike Kaganski3-8/+21
To allow in-place replacement of OWSSUPP.dll, we need to be able to handle the same ProgIDs that it handles, namely: SharePoint.OpenDocuments and its versions. This allows to use the SharePoint integration capabilities of LO without the need to reconfigure SharePoint server's DOCICON.xml (the system would start the component with same name as MS Office uses). But this cannot be the default mode, since if MS Office is installed on the same system, we would hijack the registration, that could be undesirable. So, this commit adds an option to use regsvr32 [/u] /i:Substitute_OWSSUPP path\to\spsupp.dll to also [un]register SharePoint.OpenDocuments in addition to normal LOSPSupport.OpenDocuments. Change-Id: Icc284f9aa8f97ecf04594dd55b99bc1e3d20740d Reviewed-on: https://gerrit.libreoffice.org/36389 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-04loplugin:redundantinline (clang-cl)Stephan Bergmann1-2/+2
Change-Id: I03a19b599005f6ef25040889a1e1802445ebf430 Reviewed-on: https://gerrit.libreoffice.org/36063 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-03-14Various clang-cl/loplugin warningsStephan Bergmann5-16/+23
Change-Id: Ib18e04e5024d15f8bbbf4921932b07465fb1f32f
2017-03-10CosmeticsTor Lillqvist2-2/+0
Change-Id: Icbe4491b45a8fcf7f5cc005c9394e660efc0691b
2017-03-10tdf#103058: Implement OpenDocuments ActiveX controlMike Kaganski5-0/+354
Change-Id: I97489090476cd884a122a4b36d3ac62ca86fd886 Reviewed-on: https://gerrit.libreoffice.org/29608 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2017-02-10Remove MinGW supportStephan Bergmann2-29/+0
In OOo times, there'd originally been efforts to allow building on Windows with MinGW. Later, in LO times, this has been shifted to an attempt of cross- compiling for Windows on Linux. That attempt can be considered abandoned, and the relevant code rotting. Due to this heritage, there are now three kinds of MinGW-specific code in LO: * Code from the original OOo native Windows effort that is no longer relevant for the LO cross-compilation effort, but has never been removed properly. * Code from the original OOo native Windows effort that is re-purposed for the LO cross-compilation effort. * Code that has been added specifially for the LO cross-compilation effort. All three kinds of code are removed. (An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing --with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.) Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568 Reviewed-on: https://gerrit.libreoffice.org/34127 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-11loplugin:externvar (clang-cl)Stephan Bergmann1-0/+2
Change-Id: I9efdd5136fdf793e0075b91fcfae4fed42050109
2016-10-15clang-cl loplugin: shellStephan Bergmann9-78/+71
Change-Id: I98d2e5154270b795cdd11653ecfff2abd8dda294 Reviewed-on: https://gerrit.libreoffice.org/29851 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-09-09loplugin:constantparam in sfx2Noel Grandin1-1/+1
Change-Id: If5d401001abb7bf3fc642d47f537b57836e6d9c5 Reviewed-on: https://gerrit.libreoffice.org/28772 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-25new loplugin: countusersofdefaultparamsNoel Grandin1-1/+1
Change-Id: I79e2c690f3e664c14af12cf763dd5a8ac20d6b04 Reviewed-on: https://gerrit.libreoffice.org/28353 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-22Work towards tdf#72606 EasyHack _tstring/TCHAR eliminationskswales2-8/+8
shell module largely already compiled UNICODE: A/W clarity Verified by installing release build and trying property sheets etc. Change-Id: I4965cdadbce635d86da1996c3c1bbd37a981ffde Reviewed-on: https://gerrit.libreoffice.org/26556 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-04-19WIP tdf#89609 Ignore subsecond precision in iso8601Muhammet Kara1-1/+2
Explorer shell extension fails to convert date into locale specific string if it has sub-second precision. Change-Id: I11bd38fc2876aa1f8235dbfb8c7850ff22ac2a8b Reviewed-on: https://gerrit.libreoffice.org/24220 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-04-07Drop pointless "internal" directory level for already internal include filesTor Lillqvist21-15/+15
Change-Id: I1ece44616704483cd4d9d2b6204329414f82a98c
2016-03-31use SAL_N_ELEMENTS more widelyNoel Grandin1-2/+2
found using git grep -n 'sizeof.*/.*sizeof.*[0]' Change-Id: Icd4a6cc1ca8ec8ebd68e1701a02789c74cf0eb2a
2016-02-16use consistent #define checks for the Windows platformNoel Grandin1-4/+0
stage 1 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f Reviewed-on: https://gerrit.libreoffice.org/22390 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-09Remove excess newlinesChris Sherlock2-2/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-05Fix typosAndrea Gelmini1-1/+1
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-11-23loplugin:unusedfields in shell/Noel Grandin1-14/+2
Change-Id: I3a3f7144483cebaad6d64588ff0570f29ab24e27
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-1/+1
Change-Id: Ied61699170bd5d2c3878135b1a43b4dc1deff4d4
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-2/+2
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-08-04shell,sfx2,sd: inline some use-once typedefsNoel Grandin1-7/+3
Change-Id: Ifde52b0d92163f99d399b4a9544a196defad1ba4
2015-07-23inline a handful of use-once #definesNoel Grandin1-2/+0
Change-Id: Id2654555c4042f8c0bdbd6bab6507e705f08326b
2015-07-06loplugin:unusedmethods sax,shell,stoc,basegfxNoel Grandin1-7/+0
Change-Id: I8f3871fd4e82b6850718b6f2a8757f3043d00017
2015-07-04Fix typosAndrea Gelmini1-1/+1
Change-Id: Ic6415423f46aaee7ba90239a617c318cf92ae222 Reviewed-on: https://gerrit.libreoffice.org/16711 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-03Revert "loplugin:unusedmethods sax,shell,stoc,basegfx"Michael Stahl1-0/+7
The basegfx changes appear to break Windows builds. This reverts commit 3b32c5898ff4e744d3f18b00421b433500426d74.
2015-07-03loplugin:unusedmethods sax,shell,stoc,basegfxNoel Grandin1-7/+0
Change-Id: Ia5d63f7153e4b02acc5e206739316264d6d1184e
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin6-14/+14
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-01Typo: wheter->whetherJulien Nabet1-1/+1
Change-Id: Iab5e7de499452924b4ac0d34cc604ee38395c813
2015-03-09V801: Decreased performanceCaolán McNamara1-1/+1
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
2015-03-04V813: Decreased performanceCaolán McNamara2-5/+5
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-02-07loplugin:deletedspecialStephan Bergmann1-3/+3
Change-Id: I2a3d9deb9c71bb4dfe3ad9076d7202636001e0bb
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin2-8/+0
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2014-10-02shell (Windows): std::auto_ptr -> std::unique_ptrStephan Bergmann1-1/+1
Change-Id: I44c843c028c2dfcfcea9f6a2196440ca700fc3a8
2014-08-08match va_start() with va_end()Takeshi Abe1-0/+1
Change-Id: I5c3c2570d6311f49da95bb80c0f9850f89970235
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin1-1/+1
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-02-26Remove visual noise from shellAlexander Wilms11-59/+59
Change-Id: I1857fd7a9aeda38cb8ef2a0eda7783203b7658ed Reviewed-on: https://gerrit.libreoffice.org/8311 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-20Spelling correction: s/retrive/retrieve/Tor Lillqvist1-2/+2
Change-Id: I96845d358765e2d2507763a9b15a30388b32bc6b
2013-11-06include <stack>Takeshi Abe2-0/+2
Change-Id: Iedaacd9981a6ca186ab5e1f9715ed4fcf4ff0cb7
2013-11-06Drop unnecessary #includesTakeshi Abe1-1/+0
Change-Id: I9659279233067a8946a9e54be2f22439854a961e
2013-11-05fixincludeguards.sh: shellThomas Arnhold21-42/+42
Change-Id: I987c54b15c271fc80b7efd25933e13950f974423
2013-09-26typo fixes in commentsAndras Timar1-1/+1
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-07-16bnc#829017 fix issue with negative seeks in win32 shell extensionFridrich Štrba2-3/+3
Change-Id: Ia8072f78ad43281e406377922f50f8de53194f1b
2013-05-08zlib: remove ExternalPackage_zlibMichael Stahl1-4/+0
Change-Id: I5bce88b2044279a6563fd68c35f9c1ac824c8850
2013-04-23execute move of global headersBjoern Michaelsen3-305/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a