summaryrefslogtreecommitdiffstats
path: root/svtools/source
Commit message (Collapse)AuthorAgeFilesLines
* Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin2013-10-314-10/+10
| | | | | | | | | | | | | | | | | | | | | | This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
* Remove unnecessary SyntaxHighlighter::Tokenizer statefulnessStephan Bergmann2013-10-281-2/+0
| | | | | | ...which reveals that SyntaxHighlighter::notifyChange does nothing, so remove it. Change-Id: I49834af29081ee703d9e62e182e3c1f8ce7e212e
* Fold SyntaxHighlighter::initialize into ctorStephan Bergmann2013-10-281-2/+1
| | | | | | ...which reveals that m_pKeyWords, m_nKeyWordCount members are unused. Change-Id: I55020e892d463f2e40d5bcf71efba92778b317c1
* Remove unused SimpleTokenizer_Impl::nLine/nColStephan Bergmann2013-10-281-2/+2
| | | | | | ...which are never read; remove thereby unused parameters from functions. Change-Id: I644d2dc1b2d13ae2f932d04243521eef97e67e3e
* more flexible language tag override mechanismEike Rathke2013-10-251-1/+1
| | | | | | | | * allow overriding higher level lll-Ssss-CC with lower level lll-CC for known MS-LangID mappings that use tags with suppress-script * internal override "canonicalization", e.g. ca-XV => ca-ES-valencia Change-Id: I067d7515fb9144a896697617ad1b079e294f1ced
* added/checked/aligned MS-LangIDs and mappings from new MS-LCID.pdfEike Rathke2013-10-242-8/+16
| | | | | | | | | ... found at http://msdn.microsoft.com/library/cc233965.aspx (the 5th or 6th place I'm aware of where MS defines LCIDs, all different ...) * a bunch of new definitions up to Windows 8.1 * lots of cross-checks done with SIL, Ethnologue, ... Change-Id: Ifae8e676558c6712fe752856acca600d05d0a63f
* convert code to use OUString::endsWithNoel Grandin2013-10-233-22/+17
| | | | | | | | | Convert places that call aStr[aStr.getLength()-1] == 'x' to use the shorter form aStr.endsWith("x") Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
* Use conventional std::vector idiomsStephan Bergmann2013-10-221-3/+3
| | | | Change-Id: I4d26372ea40e7890b76461a764435f8948466ae1
* Unwind HighlightPortions typedefStephan Bergmann2013-10-221-1/+1
| | | | Change-Id: I0ecc15f9bfd557d0a70a05536906a4984a46463c
* Bin comments that claim to say why some header is includedTor Lillqvist2013-10-224-7/+7
| | | | | | They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
* vcl: mark more Image constructors as "explicit"Michael Stahl2013-10-222-2/+2
| | | | Change-Id: If59d7c75c89a102a573738d15d8593cb8ac5c486
* remove uses of COMPARE_*Caolán McNamara2013-10-216-61/+62
| | | | Change-Id: Icdc36b4b24d2f399f481065df3200feb98025135
* post String conversion cleanupThomas Arnhold2013-10-211-2/+2
| | | | Change-Id: I9747817edc76973af4a4ffdbf542b8d1467d7f08
* added Ladin [lld-IT] to language list, fdo#70530Eike Rathke2013-10-181-0/+1
| | | | Change-Id: I9bd65a7f66710d94a2c4dbe6d1b28f8ddef8d9a3
* fdo#54938: Adapt svtools and comphelper module ...Marcos Paulo de Souza2013-10-178-86/+16
| | | | | | | to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* cleanupThomas Arnhold2013-10-161-2/+0
| | | | Change-Id: I7bfd221f89718ba8634417c93a26b3a199178694
* Resolves: #i123438# Corrected crop for clipboard bitmap data preparationsArmin Le Grand2013-10-141-23/+40
| | | | | | (cherry picked from commit 2104f864ec0cf0989e962c045ee69010e3505f3e) Change-Id: I3376d72317f27bfe7898e515ce1d2788761d1422
* html: remove unused optionsThomas Arnhold2013-10-141-48/+0
| | | | Change-Id: If8a6d5136e9e397f5f9b2b49bd9aaf4a7e6bfc17
* Reduce copypasta: Introduce SAL_NEWLINE_STRING and use itTor Lillqvist2013-10-132-21/+7
| | | | | | | | | | Contains the platform-dependent on-disk line separator ("\r\n" for Windows, "\n" otherwise, and yes, I assume an ASCII-based world). Use it instead of static constant char array fields, with ifdeffed initialisations, in various classes here and there. Change-Id: Ibea1f2cc1acfb8cc067c3892a41f73bf44f2c78a
* Test _WIN32 instead of UNX as it's Win32 that is the special case hereTor Lillqvist2013-10-122-6/+6
| | | | Change-Id: Ic729eab62109d854122fa5c6b7b4dc163088dd04
* have another shot at placing the expander checkitem optimallyCaolán McNamara2013-10-111-2/+6
| | | | | | | | | reverts 03569dc7d38e4edf3f3e50f7dff3252116c28ab1 "I hate the positioning of the expander checkitem in hierarchical view". I still hate it, so merge together the various places where different efforts are made to try and position the checkitem optimally and provide a single central place to do that. Change-Id: I047504945fb5bf94e5f451007eb74328b8b56785
* CID#1103695 avoid use of -1 hereCaolán McNamara2013-10-111-1/+1
| | | | Change-Id: I7097d26f301fffa79d04fe4f26aeddb32223d62c
* html: Options need to be lowercase, tooThomas Arnhold2013-10-101-4/+2
| | | | | | | | | Because the lookup table (include/svtools/htmlkywd.hxx) is now lowercase. Change-Id: Ica0606eb1546f74d2b651a70adee8117c956d4e2 Reviewed-on: https://gerrit.libreoffice.org/6193 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* n#812793: clrChange applying for EMFsMuthu Subramanian2013-10-101-3/+3
| | | | Also fixed alpha clrChanges.
* unographic::GraphicProvider: lock SolarMutex as neededMichael Stahl2013-10-101-0/+6
| | | | | | ... thanks to bug report from David O. Change-Id: I7a72c36848a110fe7487c85c7720990d3c1e14de
* Make CalcFocusRect look rightStephan Bergmann2013-10-091-10/+3
| | | | | | | | | | | | | | | | | | ...at least for its (only, it appears) uses at the left of the "Insert - Hyperlink" dialog and at the left of a Database window. As aBmpRect and aTextRect never extend aBoundRect (and aTextRect always leaving a gap left and right towards aBoundRect, it appears, with the text abbreviated with an ellipsis if it would be too wide), there should be no need to eventually adjust "the focus rectangle [to] not touch the text," and for calculating the top of the focus rect aBoundRect can be used just as well as aBmpRect. (Though for calculating the bottom, aBoundRect apparently stretches "too far" compareed to aTextRect; whatever... The offsets look somewhat "magic" anyway, but appear to produce the desired visual results.) Change-Id: Ic324561294fb6172c0d02a697fc261717e01c87c Reviewed-on: https://gerrit.libreoffice.org/6165 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* CID#1079290 uninitialized memberCaolán McNamara2013-10-081-1/+3
| | | | Change-Id: Ibc75fed4b5282d3caeccac54a884ff5dde3d1910
* CID#1078684 ensure no -1 uses in replaceAtCaolán McNamara2013-10-081-3/+6
| | | | Change-Id: Ic3a652aa38efe1bfaba81ba7d9103f40f093ed6a
* added Karakalpak Latin [kaa-Latn-UZ] to language list, fdo#70217Eike Rathke2013-10-071-0/+1
| | | | Change-Id: I202b01e8ac705c11d816a607e3293d8ba56f4640
* added Nogai [nog-RU] to language list, fdo#69987Eike Rathke2013-10-071-0/+1
| | | | Change-Id: Ib59c75ee13b5e16ef014ab7245540ffdc62c2daa
* WaE [-Wstrict-overflow] assuming signed overflow does not occurEike Rathke2013-10-071-2/+2
| | | | | | | ... when assuming that (X - c) <= X is always true ... or that (X + c) < X is always false Change-Id: Ib2313827cd6358ced0141b41cba753896b676e28
* html: <li> is on/off - arrange list correctlyThomas Arnhold2013-10-071-1/+1
| | | | | | despite the fact, that <li> tags are currently not closed... Change-Id: If77d99b8dfcb00e60d918e5ce5030e6e44a6e64a
* html: remove unused and unsupported tagsThomas Arnhold2013-10-071-29/+0
| | | | Change-Id: Ibd44d716e70034ffe7d31e3f5dc2c547a822b0e1
* CID#1078656 Read has a break, but Write doesn'tCaolán McNamara2013-10-071-1/+1
| | | | Change-Id: I54675b0c9683afb25fb9eaeb3def1e43c77fb053
* make font style size stable on switching fontsCaolán McNamara2013-10-071-2/+22
| | | | Change-Id: I891fa5b9b8bd3be7dd4d73f2911ec56d16a3b09f
* fix html testsThomas Arnhold2013-10-061-3/+3
| | | | | | | after 73e3aafa990168aa532fa7b81fc4de8f455b10e1 we need to lowercase all html tags. Change-Id: Ied686e153666f79c2a866473eeb393ec4e5bb961
* html: remove duplicatesThomas Arnhold2013-10-061-8/+0
| | | | | | | OOO_STRING_SVTOOLS_HTML_C_LT is the same as OOO_STRING_SVTOOLS_HTML_C_lt and so on... Change-Id: I7cc94a662e83176c2c2c441cbce27b4f2774e4a4
* Ruler: don't draw ticks out of the ruler areaTomaž Vajngerl2013-10-061-9/+17
| | | | Change-Id: I086e812b0db60fed094d21d2ba5aac1b9943e0d5
* fdo#39674 fix some spellingThomas Arnhold2013-10-041-2/+2
| | | | Change-Id: I72e497fb97edf8782c69000576f42896594e1556
* added Kumyk [kum-RU] to language list, fdo#70089Eike Rathke2013-10-041-0/+1
| | | | Change-Id: Iebf76555903fec1b533141104d3752735a8be075
* -Werror,-Wunused-variableStephan Bergmann2013-10-021-1/+1
| | | | Change-Id: I8e49e150706b0f63fe97a97eaf719d9c62aa9795
* -Werror,-Wunused-variableStephan Bergmann2013-10-021-1/+0
| | | | Change-Id: Ie4ca73581937c27bb1cb1a90a2877a5155226b25
* -Werror,-Wunused-variableStephan Bergmann2013-10-021-2/+0
| | | | Change-Id: Ia67ce94bc18f5ddf5755862f81098bb60aee11ea
* bWeiter -> bContinuePhilipp Riemer2013-10-021-7/+7
| | | | | | | Change-Id: Ia0bba3c1610dce5d364fb584f04e0b66cc41fb20 Reviewed-on: https://gerrit.libreoffice.org/6077 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* svtools: removed dead code from the export dialogAndres Gomez2013-10-021-4/+0
| | | | | | | | | Removed unused variables in ExportDialog::GetGraphicStream() Change-Id: I2b4a5eb6a60dd8337eb137025b4583ca5e5685ec Reviewed-on: https://gerrit.libreoffice.org/6058 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Use std::auto_ptr::reset where applicableStephan Bergmann2013-10-021-1/+1
| | | | | | (avoids warnings about std::auto_ptr ctor being deprecated) Change-Id: I39d2d155c0bc62ca77a30c02428ea39102213f42
* -Werror,-Wunused-const-variableStephan Bergmann2013-10-021-2/+0
| | | | Change-Id: Iddccf82bc39557ebf03486df18630d1d860aa039
* desktop: stop replacing %PRODUCTNAME %PRODUCTXMLFILEFORMATVERSIONMichael Stahl2013-10-012-20/+20
| | | | | | | ... and %PRODUCTXMLFILEFORMATNAME at runtime and hard-code OpenOffice.org 1.0 for these too. Change-Id: Id96390506d2a0f367f932e85d3115362ad483bc3
* Fix iterator managementJulien Nabet2013-10-011-19/+16
| | | | | | | Change-Id: I32ac35d3a4d0cc2376c5890086d1ff011442683d Reviewed-on: https://gerrit.libreoffice.org/5998 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* merge queue_layout and queue_resizeCaolán McNamara2013-09-301-1/+1
| | | | | | | | | | | so that any window derived class, and not just dialogs, can trigger layouting of their children. Merge together the handful of hacked-up impls of this. Do that then for the sidebar PanelLayout so that when the label of the custom animation frame changes that the frame allocates enough space for the new label to display fully Change-Id: I9a95f6c3f60cd6cea47656e66cb9ffcc154a3a5a