summaryrefslogtreecommitdiff
path: root/unotools
AgeCommit message (Collapse)AuthorFilesLines
2013-01-21PRODUCTEXTENSION: fix various obvious strings and such...Michael Stahl1-1/+0
... to look pretty; most of these expect PRODUCTEXTENSION to be a word like "Beta" but nowadays it is ".micro.rc.alphabeta" numbers so there should be no space before it. ReplaceStringHookProc adds insult to injury by refusing to replace %ABOUTBOX variables unless some %PRODUCT is in the string. Change-Id: Ib676f3837ab0785529a226fc9359e8defacf3459 (cherry picked from commit c106167f5f6ec1bff9b2291ff8791ca6d4d411c3) Reviewed-on: https://gerrit.libreoffice.org/1763 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-18Related: fdo#50284 apple's modern symbol font is unicode encodedCaolán McNamara1-5/+95
So codepoints that are from the legacy range need to be converted to their unicode equivalents even in the presence of an installed "symbol" font on MacOSX. This should work out ok if input codepoints that exist in the apple symbol unicode are used, they should be left untouched by this conversion. Change-Id: Ia9996e2d9bf632c86c8d26832d77c7c662cf1076
2012-12-1832bit compile fix for OString::valueOf usage.Michael Meeks1-2/+2
Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2012-12-17Resolves: fdo#31055 fallback to a default bullet on symbol lackCaolán McNamara1-16/+27
a) fix up some entries in Wingdings for which we do have a suitable mapping after all b) on complete failure for mapping to OpenSymbol show a default bullet, which is better than no glyph c) document that the original tables were against StarSymbol which had extra glyphs (and/or I thought it had) Change-Id: I5e43cc0a5216e76d00b7df1a69967e08c3656e21 (cherry picked from commit 0d777f33a1d818a7fd27d755e54db64823f46636)
2012-12-13added FIXME-BCP47 marker, adapted debug checkEike Rathke1-4/+5
Change-Id: I334b00c907099517d327bf6314c4e853530a58cf (cherry picked from commit 1d486e6c65806a9ca4b9e06504056cc16f687475)
2012-12-04more explicit ctorsDavid Tardon1-1/+1
Change-Id: If91343890d9ed29ff2887e47c7c0a332baa5a8e1
2012-12-01fix SAL_WARN_UNUSED placementLuboš Luňák1-1/+1
Change-Id: Icd320e2a7459b1850de42c83854ab8a905d97a56
2012-11-30shake out unused option instancesCaolán McNamara18-18/+19
Change-Id: I2a7ac1ed79455f28f2ba2043b9183a77c63e68ab
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens10-38/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30fdo#46808, use service constructor for i18n::CollatorNoel Grandin4-20/+26
Change-Id: I15a360723e335345aad09e73fcb0f6815ed9e0d4
2012-11-30Remove SvtStartOptionsStephan Bergmann6-432/+0
...the single remaining user can use officecfg/Setup.hxx instead. Change-Id: Icc1b56d820a9fcd7ecc52e279bcdde3aac4499d4
2012-11-30Remove deprecated and unused entries from /org.openoffice.SetupStephan Bergmann1-26/+2
...but ooSetupInstCompleted is apparently not (yet) deprecated. Change-Id: I21237f804266e1f119bcf51f957ff4f22a64e3b2
2012-11-27fdo#46808, use service constructor for i18n::NativeNumberSupplierNoel Grandin2-12/+6
Change-Id: I092ca8f912e26f0743909920c6e740d648b8677e
2012-11-25Make ~SearchParam non-inlineStephan Bergmann2-0/+4
...so clients do not need to link against tl merely because of ~String. Change-Id: I1cf1dd17c6bed96f6bea765747adbbe962a93fb1
2012-11-23some i18n wrappers with LanguageTagEike Rathke8-105/+107
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
2012-11-21obtain LanguageTag from SvtSysLocaleEike Rathke6-73/+28
Change-Id: Iaee25f1d92349704eaae45e6582d31dfa718ddcb
2012-11-20Bin pointless _SOLAR__PRIVATE which was always 1 anywayTor Lillqvist1-2/+0
Change-Id: I98f35920f02d4ee71787a9968158b220af69bde6
2012-11-16use LanguageTag::reset()Eike Rathke2-6/+6
Change-Id: I592cb042465ceda960a0b34dfe3eb6d669868acf
2012-11-16need more coffeeEike Rathke1-2/+2
Change-Id: I0ca6898de11e42a36453e3f0fae8d86d84c9352f
2012-11-16correct include order and include languagetag.hxxEike Rathke2-0/+2
Change-Id: If7b7d10765faba62907eca35f77b8e8d4a1e9391
2012-11-16merge failureEike Rathke1-2/+2
Change-Id: I5c716353b231d9c36972bce8c99d9c3c3e74b1e4
2012-11-16converted to use LanguageTagEike Rathke8-72/+63
Change-Id: I25c5d965d953146e91903cf2ff8e6b58f978ad20
2012-11-15changed tabs to spacesEike Rathke1-24/+24
tabs creeped in with b4d1aaa074e2be9fd778134c40f99d2ab8a01e93 Change-Id: Idb73a4db82970a3af06e7d50e4d71d4a3ece44cf
2012-11-15fdo#46808, use service constructor for i18n::NumberFormatMapperNoel Grandin6-32/+38
Also create a utility constructor for LocaleDataWrapper, which simplifies many of the calling sites. Change-Id: Ic8510b51c4201fa17fc0620e18d3e258e43636ba
2012-11-14callcatcher: update unused code post binfilter deathCaolán McNamara2-55/+0
Change-Id: I5b25d14ef2769126f98523551597f43812b9feb7
2012-11-13Avoid global static dataStephan Bergmann1-25/+23
...that (indirectly) allocates memory via rtl/alloc.h, thereby causing the rtl_cache_wsupdate_init thread to be spawned before main, as on Mac OS X that would interfere with the code in sal_detail_initialize to close all file descriptors >= 3 -- on Mac OS X the pthreads implementation makes use of KQUEUE file descriptors. * This commit removes enough global static data to make ui-preview work again on Mac OS X (where it crashed at startup when the main thread closed the KQUEUE fd used by pthreads implementation threads). gengal uses further static data (at least from module sb), so needs further clean-up. * Avoiding global static instances derived from class Application required the introduction of vcl/vclmain.hxx. * That the vcl library was linked against the static vclmain library (which only provides an implementation of main) appears to me to be a historic relic (all executables should either include a SAL_IMPLEMENT_MAIN or link against vclmain), so I removed that. Change-Id: I048aa616208cb3a1b9bd8dcc3b729ba1665729bd
2012-11-12fdo#36324 fdo#42929 - option to ingore system input language changesJeremy Brown2-3/+65
Created a new checkbox on the Langauges options page: [] Ignore system input language This is unchecked by default so that the current behavior remains the default, i.e. newly entered text will be flagged as whatever the current system input language is. When checked however, this instructs LibreOffice to ignore the system language (on Windows for example, the language from the Language Bar) when determining the language for newly entered text. This is handled in the lcl_isNonDefaultLanguage method of sw/source/ui/docvw/edtwin.cxx. The option is also saved in registrymodifications.xcu There are two main use cases: 1. This allows someone to use a single "international" keyboard on Windows to type in multiple languages, (e.g. English, French, Spanish) without changing the system keyboard. The person is then responsible for setting the language for each word or run of text themselves in LibreOffice. This seems to be the preferred workflow for some translators and some educators developing language materials. 2. This allows someone writing in a minority language that is not represented in one of Windows' locale options to still be able to type in LibreOffice in their language using a keyboard tagged for another language. Once they set the language in LibreOffice (e.g. to Teke-Eboo [ebo_CG]), they can type with a keyboard as being for "Swahili" but still succeed in entering new text in their language. This allows spell-checking to work properly without them having to select each new word they enter and reset the language of that word to Teke-Eboo (as is currently the case). Change-Id: I86248f5865b69048eb1f3e427a8c03b093138796 Reviewed-on: https://gerrit.libreoffice.org/1029 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-05fdo#46808, use service constructor for i18n::CharacterClassificationNoel Grandin3-14/+9
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
2012-11-05fdo#46808: Slight simplifications of previous commitStephan Bergmann1-2/+2
Change-Id: I9e0158faa24d388176427529500f073b8b6f34bd
2012-11-05fdo#46808, Adapt i18n::Transliteration UNO service to new styleNoel Grandin2-11/+7
Simply make the service implement XExtendedTransliteration, since all of the implementatins already do that. Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
2012-11-05fdo#46808, rename methodNoel Grandin2-3/+3
Rename utl::OConfigurationTreeRoot::tryCreateWithServiceFactory to utl::OConfigurationTreeRoot::tryCreateWithComponentContext Change-Id: Ib39b44b21d206b5fdfa4162106fbdeb30b1dd37c
2012-10-31fdo#46808, Deprecate configuration::ConfigurationProvider old-style serviceNoel Grandin6-137/+105
...in favor of existing new-style configuration::theDefaultProvider singleton. Theoretically, ConfigurationProvider instances can be created with specific Locale and EnableAsync arguments, but this is hardly used in practice, and thus effectively all uses of the ConfigurationProvider service use the theDefaultProvider instance, anyway. theDefaultProvider is restricted to the XMultiServiceFactory interface, while ConfigurationProvider also makes available XComponent. However, dispose must not be called manually on theDefaultProvider singleton anyway, and calls to add-/removeEventListener are so few (and in dubious code that should better be cleaned up) that requiring an explicit queryInterface does not really hurt there. This commit originated as a patch by Noel Grandin to "Adapt configuration::ConfigurationProvider UNO service to new style [by creating] a merged XConfigurationProvider interface for this service to implement." It was then modified by Stephan Bergmann by deprecating ConfigurationProvider instead of adding XConfigurationProvider and by replacing calls to ConfigurationProvider::create with calls to theDefaultProvider::get. Change-Id: I9c16700afe0faff1ef6f20338a66bd7a9af990bd
2012-10-29fdo#46808, Adapt i18n::LocaleCalendar UNO service to new styleNoel Grandin2-10/+6
Did not need to create a new interface, because XCalendar3 already covers the whole service interface. Change-Id: Iaf094014c16e872d2003ca6e8e7588abd081d882
2012-10-24fdo#46808, convert comphelper::ConfigurationHelper to XComponentContextNoel Grandin4-6/+6
Convert the helper methods to take an XComponentContext parameter, instead of XMultiServiceFactory. Change-Id: I9f0098af37b91f107d8799f14caa04756eac82b1
2012-10-22fdo#46808, Adapt xml::sax::XWriter UNO service to new styleNoel Grandin1-7/+4
Create a merged XWriter interface for the service. The xml.sax.Writer service already existed, it just did not have an IDL file. Change-Id: I4e6d3f3c68f9282a55fc7aa19778f97632fd8ad5
2012-10-22some more clang warningsCaolán McNamara2-5/+5
Change-Id: I4359784279875dc9dac99bc4d2db95dccf094b20
2012-10-19replace sxub_Unicode by sal_UnicodeNorbert Thiebaud1-4/+4
Change-Id: Icf4b434a1961cc4964ee6e362491868e898a1831 Reviewed-on: https://gerrit.libreoffice.org/887 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-19delegating a constructor can't work like this, fdo#55033Markus Mohrhard2-13/+2
Change-Id: I6b057ad68054fe5806daec722b3bfe4e33bc3602
2012-10-19don't catch this exception, we want to crash if this fails and fix itMarkus Mohrhard1-11/+5
Change-Id: I6aa0e1ba94b1702a54c7520a5093e6d0ba75a0d9
2012-10-12mark lcl_ functions static or rename them if they are not local at allLuboš Luňák2-4/+4
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html Change-Id: I37b2c7b7acd31437f4be74b0163f4dac2279655b
2012-10-05fdo#46071: Do not hide windows based on nil "Visible" propertyStephan Bergmann2-7/+40
This appears to be messy: The /org.openoffice.Office.Views/WindowType configuration group template has both a nilable bool "Visible" property and a UserData/Data string property that encodes various things like geometry---but also visibility---in a string. Now, likely due to the problem that has meanwhile been fixed through f3f79cc9e6c265baf48955d53f7e888205e0b3e0 "Resolves fdo#46074: Fix Partial::contains for paths that go past a leaf node," some registrymodification.xcu files in the wild contain such WindowType entries in "default" state, without a UserData/Data string and with a nil "Visible" property. The way SfxChildWindow::InitializeChildWinFactory_Impl and SvtViewOptions::IsVisible are implemented, they will always lead to an invisible window for such broken registrymodification.xcu data (as IsVisible unhelpfully returns false for a nil value, and InitializeChildWinFactory_Impl uses that value when there is no UserData/Data string). For the Math formula editor window (ID 30378) this means that it can disappear from the UI completely, as there appears to be no UI trigger for the user to show it in case it is hidden. The fix is to introdue SvtViewOptions::HasVisible (which only returns true if the property is not nil) and change InitializeChidlWinFactory_Impl to only use the value of IsVisible() if HasVisible() returns true. This makes the code even more baroque, but this is a rather central, generic piece of code for all sorts of windows, so I do not want to break any other uses by e.g. changing IsVisible to return true for a nil property. Change-Id: Iae40075a7116a8aabd2d25aa9334709522e23d8f
2012-10-04fdo#46808, Adapt xml::sax::XParser UNO service to new styleNoel Grandin1-4/+2
The xml.sax.Parser service already existed, it just did not have a new-style service to create it. Change-Id: I6f145a7504ff9e149c802f723991954a2801cbc9
2012-10-04callcatcher: update unused code listCaolán McNamara2-60/+0
and remove code freshly unused post widget layout introduction Change-Id: Ifa244391f7f2b565dec10314ca3fd2958dfd87a9
2012-10-01Replace usage of rtl_*Memory with equivalent from string.hArnaud Versini1-1/+1
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159 Reviewed-on: https://gerrit.libreoffice.org/734 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01Unused code cleanup.Marcos Paulo de Souza2-16/+0
Change-Id: Iad4d1f6cdd9ad03c5ccc02c57acef5b9bbb47d35
2012-09-29Use comphelper::getComponentContextStephan Bergmann1-9/+4
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl1-2/+0
Always link in gb_STDLIBS, except when the library explicitly opts out with gb_LinkTarget_disable_standard_system_libs. Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl1-1/+2
... new gb_LinkTarget_add_standard_system_libs Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl1-0/+1
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-25fdo#55019: Cope with empty TrustedAuthor entriesStephan Bergmann1-2/+11
Change-Id: I9c01c1c718897a4be992150170a6ed9b5bd8a0a0