summaryrefslogtreecommitdiff
path: root/unotools
AgeCommit message (Collapse)AuthorFilesLines
2013-01-0932bit compile fix for OString::valueOf usage.Michael Meeks1-2/+2
Conflicts: unotools/source/misc/fontcvt.cxx Change-Id: Ie486961f157a419ab41b29acf539f0e0e057380f Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-04Related: 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 Reviewed-on: https://gerrit.libreoffice.org/1403 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-20Resolves: fdo#31055 fallback to a default bullet on symbol lackCaolán McNamara1-16/+28
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) (cherry picked from commit 0d777f33a1d818a7fd27d755e54db64823f46636) Change-Id: I5e43cc0a5216e76d00b7df1a69967e08c3656e21 Reviewed-on: https://gerrit.libreoffice.org/1402 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-10-07fdo#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 (cherry picked from commit 9db74c6133ede2a28af077fd563398176ff0d858) Reviewed-on: https://gerrit.libreoffice.org/773 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-09-25fdo#55019: Cope with empty TrustedAuthor entriesStephan Bergmann1-2/+11
Change-Id: I9c01c1c718897a4be992150170a6ed9b5bd8a0a0 Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2012-09-07resolved fdo#52240 fdo#52137 fdo#52288 user editable date patternsEike Rathke5-8/+174
Implemented user editable date acceptance patterns. The introduction of strict date parsing using locale dependent date acceptance patterns in 3.6.0 wasn't always welcomed. Besides that not every locale had patterns for incomplete (only day and month) date input, users also complained about not being able to key in dates on numeric keypads if the locale's date separator wasn't '/' or '-' This commit implements a "Date acceptance patterns" edit field under Tools->Options->LanguageSettings->Languages that follows the selected locale and enables the user to add patterns. Example de-DE locale: * default patterns: D.M.Y;D.M. * to enable additional input on numeric keypad: D.M.Y;D.M.;D-M-Y;D-M * if 3-4 shall not result in a date, D-M- could be used instead of D-M * note that to enter an ISO 8601 Y-M-D date with a D-M-Y pattern active one needs to enter a year >31 or with at least 3 digits, e.g. 011 (cherry picked from commit bf10f4d62a5fe308ea47f9a0aac4f6f7e264ae3e) Conflicts: cui/source/options/optgdlg.hrc svl/source/numbers/zforfind.cxx unotools/source/config/syslocaleoptions.cxx Change-Id: Ic1ce91b1f9d29f1837d56b45ba0ae16f6d9cb17c Reviewed-on: https://gerrit.libreoffice.org/511 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2012-08-22fdo#46249: UCBContentHelper::GetTitle must not fail for void propertyStephan Bergmann2-9/+15
This was a regression introduced with 2af9040d38af7c7353855415dbea0134585058f3 "Cleaned up utl::UCBContentHelper." GetSize exhibited the same problem and has also been fixed. IsYounger exhibits a similar problem, but has not been addressed, as it is unclear what to return in case no dates can be compared; it is only used in one place (handling SID_EDITDOC in SfxViewFrame::ExecReload_Impl, sfx2/source/view/viewfrm.cxx) where, it appears, only contents for which DateModified /does/ yield a non-void value are relevant. Change-Id: Iff9f5e1ed6f45eede117713d64a265b98f6862b1 Reviewed-on: https://gerrit.libreoffice.org/449 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-06-05Add ODF1.2 extended-but-more-compatible modeThorsten Behrens1-0/+1
With several legacy pre-ODF1.2 and ODF1.2-only consumers out there, folks wanted a more backward-compatible ODF1.2 extended mode, that uses stuff deprecated in 1.2, and/or is 'bug-compatible' to older OOo-versions. Therefore, adding ODFVER_012_EXT_COMPAT, and sticking it to several attributes that were ODFVER_LATEST before.
2012-06-02targeted string re-workNorbert Thiebaud11-103/+95
Change-Id: I1af89db47fb3e387b5b83a86424bfac44eb28135
2012-05-30targeted string re-workNorbert Thiebaud3-12/+10
Change-Id: I3ef48c34e9e0e1c0e567b013b55a630ee1c7e9c5
2012-05-24removed unused const char[]Takeshi Abe1-1/+0
Change-Id: Ia5f26c13e7bae42685230769fa86b52703eb2f7e
2012-05-17removed unused const rtl::OUStringTakeshi Abe2-2/+0
Change-Id: I7c3409ac39e690fcf2f7e4085bf6857e6bd182fb
2012-05-16fdo#46074 fdo#49948 Ignore corrupted items in Recent DocumentsStephan Bergmann1-1/+17
...following up on 4ccb4bda483eb548eb6efb5e2f1952f094522320 "fdo#46074 Ignore corrupted items in Recent Documents" with another problematic scenario found with fdo#49948. Change-Id: I3e7c803813f09c1f031defc2c18cfab6732b1621
2012-05-16Unwound unhelpful LogHelper::logItStephan Bergmann4-96/+44
...where the OSL_FAIL line numbers did not point at the relevant code. Change-Id: I4d12d63782378cbbc446cdcd77c07676ffc81d78
2012-05-06nuke dead codeTakeshi Abe1-131/+0
Change-Id: Ic7110a2d589c5be60c2beae1fa8c9e7ed6d63c04
2012-05-06removed unused definesTakeshi Abe10-30/+0
Change-Id: Ibb6141776fc3a418095b7184c7dacfba70dd7238
2012-05-04fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CASTThomas Arnhold2-5/+5
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-05-02!= instead of < for comparison with end iteratorJulien Nabet1-1/+1
Change-Id: I7baa34c1cf7161fb55914d41b451b842ad4ab0c8
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen1-1/+0
this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-21Replace css macro with namespace for nicer namespacingThomas Arnhold2-7/+2
2012-04-20fdo#46074 Ignore corrupted items in Recent DocumentsStephan Bergmann1-10/+28
2012-04-19Improved error reportingStephan Bergmann1-2/+2
2012-04-10fix typoCaolán McNamara1-1/+1
2012-04-10add a getBuildVersion helperCaolán McNamara2-0/+15
2012-04-09s/pathes/paths/Tor Lillqvist3-11/+11
2012-04-09s/pathes/paths/Tor Lillqvist8-10/+10
2012-04-08LinkTarget.mk: remove gb_LinkTarget_add_package_headersMichael Stahl1-1/+1
2012-04-08gbuild: "use" vs. "add":Michael Stahl2-3/+3
Naming convention for gbuild methods: - "add" is used for stuff that is logically a part of the target (i.e. not registered at the Module, but defined in the target's makefile) - "use" is used for stuff that is logically a different target (i.e. it is registered at the Module, has it's own makefile, may be in a different module than the target)
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi3-7/+3
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-8/+8
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi2-11/+11
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-05UniString::CreateFromInt32 -> rtl::OUString::valueOfCaolán McNamara2-12/+11
2012-03-28remove static OUStrings from static_initialization_and_destruction chainCaolán McNamara1-14/+13
2012-03-28remove static OUStrings from static_initialization_and_destruction chainCaolán McNamara1-57/+58
2012-03-28fold historyoptions_const.hxx into historyoptions.cxxCaolán McNamara2-57/+16
2012-03-28don't have to deliver historyoptions_const.hxxCaolán McNamara1-1/+0
2012-03-28remove static OUStrings from static_initialization_and_destruction chainCaolán McNamara1-73/+73
2012-03-28fold useroptions_const.hxx into useroptions.cxxCaolán McNamara2-23/+23
2012-03-28don't need to export useroptions_const.hxxCaolán McNamara1-1/+0
2012-03-21chmod -xTor Lillqvist1-0/+0
2012-03-14Enable -Wnon-virtual-dtor for GCC 4.6Stephan Bergmann1-0/+3
...which has the necessary features to support it. Change a lot of classes to either contain a protected non-virtual dtor (which is backwards compatible, so even works for cppumaker-generated UNO headers) or a public virtual one. cppuhelper/propertysetmixin.hxx still needs to disable the warning, as the relevant class has a non-virtual dtor but friends, which would still cause GCC to warn. Includes a patch for libcmis, intended to be upstreamed.
2012-03-12callcatcher: remove some unused codeCaolán McNamara2-21/+0
2012-03-06leak in IMHandler::signalIMPreeditChanged early returnCaolán McNamara1-7/+0
2012-03-06remove TransliterationWrapper::compareSubstringCaolán McNamara3-24/+7
2012-03-01New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problemStephan Bergmann1-1/+1
...see ebe26f72e90337da2d14f3029de148904e3e30b6 "WaE: 'unused' attribute ignored when parsing type" for the problem.
2012-03-01WaE: 'unused' attribute ignored when parsing typeTor Lillqvist1-1/+1
2012-02-27drop UniString::CreateFromInt64Caolán McNamara1-1/+1
2012-02-21expand and remove NS_* macroThomas Arnhold2-32/+22
2012-02-21Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))Takeshi Abe1-2/+2
to equalsIgnoreAsciiCaseAscii("...")
2012-02-20gb_JunitTest_JunitTest takes only one argumentStephan Bergmann1-1/+1