summaryrefslogtreecommitdiff
path: root/svtools/source/control
AgeCommit message (Collapse)Author
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin
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
2013-10-23convert code to use OUString::endsWithNoel Grandin
Convert places that call aStr[aStr.getLength()-1] == 'x' to use the shorter form aStr.endsWith("x") Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
2013-10-22vcl: mark more Image constructors as "explicit"Michael Stahl
Change-Id: If59d7c75c89a102a573738d15d8593cb8ac5c486
2013-10-21remove uses of COMPARE_*Caolán McNamara
Change-Id: Icdc36b4b24d2f399f481065df3200feb98025135
2013-10-21post String conversion cleanupThomas Arnhold
Change-Id: I9747817edc76973af4a4ffdbf542b8d1467d7f08
2013-10-07make font style size stable on switching fontsCaolán McNamara
Change-Id: I891fa5b9b8bd3be7dd4d73f2911ec56d16a3b09f
2013-10-06Ruler: don't draw ticks out of the ruler areaTomaž Vajngerl
Change-Id: I086e812b0db60fed094d21d2ba5aac1b9943e0d5
2013-09-27cppcheck: redundantAssignmentJulien Nabet
Change-Id: I16ced23894e461e7953ed4978ca0d4cf7f40f5e8
2013-09-18fdo#69280 fixing comments toggle button position when localAbdulaziz A Alayed
set to RTL language Change-Id: I0c133e3bbb6801f56e9ac0f508961bfa07a19523 Conflicts: svtools/source/control/ruler.cxx
2013-09-17fdo#63926: remove extra include paths in svtools/ and sfx2/Marcos Paulo de Souza
Change-Id: I0b47849ba0fa0dfaf4a481779a5ece09be496c1e Reviewed-on: https://gerrit.libreoffice.org/5973 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-09-17convert SVTOOLS module from String to OUStringNoel Grandin
Change-Id: I647e952769c79b95e11af778b07d64d3a6fbe226
2013-09-15Fix drawing of fine dashed border typeZolnai Tamás
On the Borders tab in the preview block (called User-defined area in help) fine dashed border is drawn as solid line. The problem is that 1 pixel gap is too small and painting can hadnle it so I doubled the numbers to get the same rate and get the rigth visual result. Change-Id: Ide037fa3f4f90b304dc53f5f806c2acd2194ec0c
2013-09-15ruler: Also show ticks below/above numbers in "negative" areaTomaž Vajngerl
Change-Id: I70d9f0409962be607eddac1b308d8cc44d2a7b7f
2013-09-15Ruler: disable snapping, tooltipsTomaž Vajngerl
It is now possible to disable snapping of the ruler at dragging with holding the ALT key and coarse snapping with ALT+SHIFT key. Tooltips are shown when hovering over indents and borders. Change-Id: Ib1e9639e1e2824f2a75b5abd35765bbbd02c87f7
2013-09-15ruler: translate or clear comments in ruler.cxxTomaž Vajngerl
Change-Id: I051e28d9241c17192b580c49fbec488be69f727b
2013-09-13select sheet menu as a right-click popup to the prev/next sheet dingusCaolán McNamara
Change-Id: Ifc9baeabedeab526d040220e9e45f171b5353bcf
2013-09-12cppcheck: fix Prefer prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: I7495f86cb35b6f712cfb7d603f022f6f6c407266
2013-09-12drop tools/string.hxx from a bunch of placesCaolán McNamara
Change-Id: Id6d22b71f2b552ea7872e8a3da6afe207e856561
2013-09-03WaE: C4805: '!=' : unsafe mix of type 'bool' and type 'sal_Bool'Tor Lillqvist
Change-Id: I18cefc69b963cb957645a4586079de0d448e90b3
2013-09-03dbgutil deref of empty vector assertCaolán McNamara
Change-Id: I9c3b4f84df252e632f02e79e069426fafadee0fe
2013-09-03Ruler: minimal unit 1/16 inch, 1/10 cm, dynamic tick draw, variousTomaž Vajngerl
- minimal unit for inch is 1/16 and for cm 1/10 (1mm) - additional tick level (now 4 in total) - top and bottom tick in addition to the number (highes tick level) - dynamically draw tick levels depending on the tick gap (should be at least 6 pixel wide) Change-Id: I0598b16e32d19eb1294a2358eacbeb19a70966a2
2013-09-03Ruler: clear ruler elements at copying only when input is not emptyTomaž Vajngerl
Change-Id: I633dcd452a0df426421eaccadf648ad06b8e124c
2013-09-03Ruler: use vector instead of array for elementsTomaž Vajngerl
Change-Id: I099387648988b83d4d4b53f59237906e8f939c6e
2013-08-31fdo#39468: Translate German commentsPhilipp Riemer
Change-Id: I9ccb6453fbebf03d44d3f5b385fa5a49579da873
2013-08-31fix existing commentsPhilipp Riemer
Change-Id: I06dca63053dae5d3dceb49bf67adb0c100b56e8b
2013-08-31fdo#62475 - remove visual noisePhilipp Riemer
Change-Id: I7409f7a58796c9bf7542b6a7904ad40581637eeb
2013-08-31fdo#62475 - remove visual noisePhilipp Riemer
This is a follow up commit to - 22d1beb78a475e4846af945afde1c4d6c263b5d6 - 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Change-Id: I102685391125f3b4f7bdf838f8bd17a2283d558d
2013-08-30fdo#68689 Sub-divide ruler ticks into 1/8 insted of 1/10 for inchTomaž Vajngerl
Change-Id: Ied2a6982d5564228b0ce7fecb89723f3742b6d0d
2013-08-29Use different cursor when resizing borders than moving.Tomaž Vajngerl
Change-Id: Ie77f9bfc44708db6555386eeb8b2da3a39259f42
2013-08-29Highlight indents on ruler on mouse over and dragging.Tomaž Vajngerl
Change-Id: Ie2ffa23966fcd14bc4c60fc2139b74534a6edeb0
2013-08-29fdo#67033 fix default tab drawing on rulerTomaž Vajngerl
Change-Id: I471920e26a8e336cde795360945b5a843fe8f9c8
2013-08-27Spread "Use std::find()" part2Julien Nabet
Change-Id: I58e6f189c950dbaa5b71bb1b040f9eff20c50796
2013-08-27Use std::find().Jan Holesovsky
Change-Id: Ie302038c5c9e8771bb27be50081788d6545aef5a
2013-08-27Bin bool + transform while into for loop + add end iterator (3)Julien Nabet
Change-Id: I3d22eede61fb7ba15bac6f6130a7a60ec62170dc
2013-08-24Mark as constTakeshi Abe
Change-Id: Ib5849c9a652401dbac7e93bb69c18d95d31292af
2013-08-24sal_Bool to boolTakeshi Abe
Change-Id: Id6488ba7a72603f2f0eb2972f22797d6025f6031
2013-08-22fix windows build after my String->OUString changesNoel Grandin
One of the changes is inside an "#ifdef WNT" block, so I missed it. The other change is because MSVC is not quite as smart when it comes to matching the "const char *" OUString constructors. Change-Id: I60f2ccb719630bab2a178cecc2f84b7a706ad230
2013-08-22convert svtools/source/control/* from String to OUStringNoel Grandin
Change-Id: I32e411801d3754ca635cfc3ed9529b8ea43ffa3c
2013-08-22convert svtools/source/control/toolbarmenuimp.hxx from String to OUStringNoel Grandin
Change-Id: If4a61b5d9f24c7dd7d815540d40c13e1d784d574
2013-08-22convert include/svtools/calendar.hxx from String to OUStringNoel Grandin
Change-Id: I69db7527f915badb26d7162305521a81d65b3599
2013-08-22convert include/svtools/ctrl*.hxx from String to OUStringNoel Grandin
Change-Id: I86b78137f02a11c5a2c34930b19cef22acd7ac69
2013-08-22convert include/svtools/file*.hxx from String to OUStringNoel Grandin
Change-Id: Ie0e07c61caba1e15475900622c97e0f0426558d6
2013-08-22convert include/svtools/fmtfield.hxx from String to OUStringNoel Grandin
Change-Id: Id8b6e41b6eeb0f0b6cd835cea53abca55f1d1373
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-20Re-work 8bit characters in source code, or remove them.Michael Meeks
Change-Id: I93e14d4936c0ffbe03425d4a54bb0e09bc62b3e3 Reviewed-on: https://gerrit.libreoffice.org/5550 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist
Change all instances of hardcoded "program", "share" etc subfolder names to use those from <config_folders.h> instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-16Related: fdo#38838 ToInt64 and a EqualsIgnoreCaseAscii variant are now unusedCaolán McNamara
Change-Id: I2a2cc56cf005f564c798b8d43ef7e8c4b7f9eeff
2013-08-15Revert "fdo#63926 - remove extra include paths in svtools/ and sfx2/"Michael Stahl
This reverts commit 389bdc162415abff78971b1ce7c5d47482e1d37b. Sadly this was going in the wrong direction...
2013-08-15Revert "fdo#63926 - remove extra include paths in svtools/ and sfx2/"Michael Stahl
This reverts commit 1cbdcc31b8a921c508f2fdf09847f64d004a7faa. Sadly this was going in the wrong direction...
2013-08-15fix Windows build after my String->OUString changesNoel Grandin
Change-Id: Id3ae8e34fa8ca8c7a47ddaa9cf5183fec48457fa