summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2015-04-06sw: use variadic cppu::WeakImplHelperMiklos Vajna
Change-Id: I2c03ffad8d935bad126c19a8647c924af5a9bce5 Reviewed-on: https://gerrit.libreoffice.org/15174 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-05tdf#51287: Personalisation of keyboard shortcuts incoherenceRishabh Kumar
"To Document Begin" moved to Navigate from View Change-Id: I16061d8d10de42e5eac462bd970dc49a7a4291ce Reviewed-on: https://gerrit.libreoffice.org/15162 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-04-05Why use sal_Unicode for this when OUStringLiteral1 takes a char anyway?Tor Lillqvist
The compiler generates an error anyway if we would pass a sal_Unicode that is outside the range of 'char' as the template parameter to OUStringLiteral1, so if for some reason we would want cSequenceMarkSeparator to be outside of ASCII, the code would need changes. Change-Id: I1f6be560d3347cb957e1283dea2f7f7920d3aba7
2015-04-05WaE: elide construction of rtl::OUString with ASCII sal_Unicode argument ...Tor Lillqvist
... in call of rtl::operator+ [loplugin:stringconstant]. Change-Id: If29fb371efafc074eb830d7dbca75e7e735c979b
2015-04-05Use more proper integer types and range-for loops, reduce scopeMatteo Casalin
Change-Id: Ibcf9d404b2f189fb486c5a26c2b8cfe198860b73
2015-04-05Reduce scope and improve readabilityMatteo Casalin
Change-Id: I4bf1e2c0f928644e6f85acd75b88685303c4ac06
2015-04-05Use +=Matteo Casalin
Change-Id: I280a5ee0d63cabba7482164132b092f4087814bd
2015-04-05Use more proper integer types and range-for loopsMatteo Casalin
Change-Id: I66d2d469a6dc03b3e6ad3609b5a04ac670f6e000
2015-04-05Use indexes in OUString::getTokenMatteo Casalin
Change-Id: Id30c5d094688d29e36e4ead8c58b59705b6bc91b
2015-04-05SimplifyMatteo Casalin
Change-Id: I2f8c55fb82ac6d161d942b3d7b96c8d3996037e1
2015-04-05Reduce OUString temporariesMatteo Casalin
Change-Id: I7ad78a1d7b544326570abac77122055a9cf3c57c
2015-04-05Use more proper types and range-for loopsMatteo Casalin
Change-Id: I2bb9f1536e37f1662c0bb8554459d25532ff648e
2015-04-05Filled vector already provides nuber of itemsMatteo Casalin
But taking advantages of range-for loops is even better Change-Id: I79c6721ca63482c0ed40dad828ba736eeae92b6c
2015-04-05Fix my previous commitsMatteo Casalin
4c80589cf22934b6809f159917a1f8499544f8fc 6d0de28ae04d3386dca0360df28c5317c80fc53c Change-Id: I965650388530317588b3a591e8b51f162924af36
2015-04-05Some OUString simplificationsMatteo Casalin
Change-Id: I6bdb45e5a4b84d0c851f07c4063b7d6d58d54a44
2015-04-05SimplifyMatteo Casalin
Change-Id: I09a9a4f3873fc64f4236d131b091087cadb9cf17
2015-04-05Avoid two special values as "whole array" flagMatteo Casalin
Keep 0, which is used in all call places, and remove the unused (and data-type sensible) USHRT_MAX Change-Id: I5258ce0d684723e4cf90444314ef55cc2f826f9d
2015-04-05Default value of nLookahead is never overriddenMatteo Casalin
Change-Id: I3341b307f56f5bcdde7a667aa3968c1444376705
2015-04-05Use more proper integer typesMatteo Casalin
Change-Id: I8c3ffee5a11c239902b972dd58618db9943c6989
2015-04-04sw: prefix members of SwRootFrmMiklos Vajna
Change-Id: I146fa693e89b00c77df33547971fb3a49c7e1b34 Reviewed-on: https://gerrit.libreoffice.org/15148 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-04cppcheck: Identical code for different branchesJulien Nabet
Using a similar fix as Caolan's one: http://cgit.freedesktop.org/libreoffice/core/commit/?id=8f9bc93ba3299efbd8ad181481e6e2e87df7c066 Change-Id: Ib33f9585bf1e1c2cf6dd367bfe4eb0604794decc
2015-04-03CppunitTest_sw_ooxmlexport5: fix Fedora 22 alpha buildMiklos Vajna
09:41 <@dtardon> vmiklos, maybe it's a regression in libxml2. "Fix XPath '//' optimization with predicates (Nick Wellnhofer)" in NEWS looks suspicious So tweak the XPath not to use // for now. Change-Id: Ia1c4508d8aede5818bc258d6e4243f026da3a3cd
2015-04-03Resolves: tdf#83977 Push/Pop before/after messing with the cursorCaolán McNamara
otherwise we lose our selection with multi-page tables Change-Id: I4f52d3cfb7a6d3c2cc1dbb68bbd5ce5c0005b1c3
2015-04-03Resolves: tdf#90138 don't try to save a marks OtherPos if it doesn't have oneCaolán McNamara
Change-Id: I522a236015c91c0744b3018d3d4e4d6c65ea19ab
2015-04-03Resolves: tdf#87548 don't create a new list for each multiselection portionCaolán McNamara
create one list and share it among all the subsections possibly a regression from/triggered by author Oliver-Rainer Wittmann <orw@apache.org> 2014-03-18 14:33:39 (GMT) Resolves: #i124371# When changing the numbering or bullet styling... of a set of paragraph which have more than one different List Style applied create a new List Style and put the paragraphs into a new list. (cherry picked from commit 0087ca89e3905009ed947c651f3dc70f3d61ea93) Change-Id: I9416b97d6afe323ac99150fdcc23f71ecea98a58
2015-04-03Resolves: tdf#90099 group new style and change style together as one undoCaolán McNamara
Change-Id: I978f503fabce69bb08a892c47d07ff8fa43c73b5
2015-04-03use UNDO_EMPTY instead of bare 0Caolán McNamara
Change-Id: Ida0b34a28b30eb9b3bab6b1b6a8112eb1c427c67
2015-04-03Resolves: tdf#89785 drop down list sizes locked in too earlyCaolán McNamara
get initial size request after language and sort lists have been filled. We should really queue_resize in list/combo boxes if the StateChanged::DATA gets emitted for them. But we're mostly gotten away with it so far. Change-Id: I37137365e8e71b8f803977edaf46d6c7cfb3fcc2
2015-04-03DOCX export: use std::shared_ptr<> in FieldInfos::pFieldMiklos Vajna
Change-Id: I8165adcad90e98cd166e27586f4948deb24b22c9
2015-04-02sw: fix crash on SwUndoDelete after select-all with table at startMichael Stahl
Somehow the Redo leaves the shell cursor at an invalid offset into the paragraph, which then leads to out-of-bounds string access. Noticed that SwUndRng::SetPaM() leaves an invalid nContent.m_nIndex on the start position, due to a surprising omission in SwIndex::ChgValue(). (regression from 555ff26501d1bbd8a7872c20671c6303db1e1701) Change-Id: I6e6ad7f70835d7e9d6da1fb680e2ae15469fad71
2015-04-02tdf#87400: sw: fix ~SwIndexReg assertion in AutoCorrectMichael Stahl
SwAutoFormat::DoUnderline() calls DeleteSel() with a SwPaM that is not corrected, except if it's passed along directly to SwDoc methods. (regression from f9b62506b22c3eb885ffd5a4ec8025c33df7b2d4) Change-Id: I741e0391e7f8e09a64bcfe99ca4d650f1016aaa7
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02sw: [loplugin:stringconstant]Michael Stahl
Change-Id: Idb8a113254574ca5f998980ede91e42f9bd09277
2015-04-02Added test function for Search-and-Replace with TransliterationVarun
This test function checks the search-and-replace operation with some Transliteration Flags enabled. Change-Id: I86e0068e9d91e4fe426f9d6c120baf66e59e2b7e Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-04-02use helpers some moreBjoern Michaelsen
Change-Id: Ia448046b41d6d7594b1ff6f630dbbd4217e13732
2015-04-02condense item population code down a bitBjoern Michaelsen
- the functor argument is likely overkill, but I havent checked yet if there are sideeffects from the item ctor in the previous late eval Change-Id: I439ac3095013945b725ad02ed04076bf008a71c0
2015-04-02use helpers some moreBjoern Michaelsen
Change-Id: I596f25d3098edeef154917201ba6fd2f351517b3
2015-04-02throw instead of returning an empty AnyBjoern Michaelsen
Change-Id: I299ac48e480517289348c651f28b5c7fc7653362
2015-04-02throw instead of silent noopBjoern Michaelsen
Change-Id: I47dddce1513a870c27844d88694295c5999c0c7f
2015-04-02simplify UNO boilerplateBjoern Michaelsen
Change-Id: I07538ae4b33a4fa1f07bc6bb4ce6b9af2159e40f
2015-04-02simplify UNO boilerplateBjoern Michaelsen
Change-Id: Iec0f4bff0d32c79e3ee8b545abe30d03bddb162b
2015-04-02be honest and throw about unimplemented functionsBjoern Michaelsen
Change-Id: I912297a79d3eb99700dce635ab606eee190350e5
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-04-02DocxAttributeOutput::m_pPostponedCustomShape: use std::unique_ptr<>Miklos Vajna
Change-Id: I73916d70278068e1cec979f080cce00f25c54f1c
2015-04-01sw: remove pointless SolarMutexGuard in SwXTextMarkup::ModifyMichael Stahl
Change-Id: Ifb96e8194a29bee3a92e2a957f08a5c51584e565
2015-04-01i#105557: fix locking for SwXTextMarkupMichael Stahl
... by adding the usual sw::UnoImplPtr pImpl. This was crashing in sw_unoapi under ASAN in the dtor's SwClient deregistering. Change-Id: I038ca21e04fae7599113b949846a23e1ca73181e
2015-04-01sw: remove utterly pointless assignment in SwXFlatParagraph::changeText()Michael Stahl
It will be set to 0 at the end anyway. Change-Id: If9a8a70057a03980c37951f9ce74e1ae27541bfb
2015-04-01Typo: wheter->whetherJulien Nabet
Change-Id: Iab5e7de499452924b4ac0d34cc604ee38395c813
2015-04-01CppunitTest_sw_ooxmlexport5: try to make MacOSX_37-tdf-buildbot happyMiklos Vajna
Blind fix, can't reproduce the problem locally. Even if the XPath we give explicitly requests one XML node, we get multiple ones: equality assertion failed - Expected: 1 - Actual : 2 - In <file:///var/folders/_n/q7swt8596vz0063kvnql9nrw0000gn/T/luyyyujc.tmp>, XPath ´//w:formProt[1]´ number of nodes is incorrect Change-Id: I380fd077c5740b3045f64a6748dd96d1b213e453