summaryrefslogtreecommitdiff
path: root/sw/source
AgeCommit message (Collapse)Author
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-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-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-01sw: fix error handling in SwXTextTable methodsMichael Stahl
PythonTest_sw_python fails because of an unexpected IndexOutOfBoundsException, because "complex" tables have 0 rows / columns. (regression from 84e71f3bad28f2003a0f654f0938d5bc7e309666) Change-Id: Ieb958594e56dc007812cc44ad8440eb49698e926
2015-04-01tdf#88360: sw: fix crash on closing help in Navigator windowMichael Stahl
SwContentTree::pActiveShell is not cleared because of a check that the shell exists, which is only done in the special case bIsConstant. * at most one of bIsActive or bIsConstant is true * the only place that calls SetActiveShell() if bIsConstant is true already checks this condition So remove the unnecessary check from SetActiveShell() Change-Id: Id3b3b98bd38303b5afc529cc8be669872bd354b7
2015-04-01sw: -Werror=sign-compareMichael Stahl
Change-Id: Ia493809149d0a0bc7e4890e4ec5889a6ba9cfe8e
2015-04-01WaE: comparison of integers of different signsTor Lillqvist
Change-Id: Iae6be25962975f7db2226d4e5d58ce69eb23de57
2015-04-01tdf#60060: DOCX export of section protectionEilidh McAdam
Initial implementation - no password protection is saved. Specific sections are protected in OOXML by using form protection; that is, only form elements may be edited in protected sections. Change-Id: I294064bbc4e3c307d17001ebd21f1bd6f07de42c Reviewed-on: https://gerrit.libreoffice.org/14895 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-04-01also refactor description setterBjoern Michaelsen
Change-Id: I69deac6d830f63aea94f3512ab4156217fbc7b27
2015-04-01refactor labels getter on one baseBjoern Michaelsen
Change-Id: I21a6ea8d76b94e09ae05e63a01d451b776e6ddcd
2015-04-01create generic getCells() functionBjoern Michaelsen
Change-Id: I36f0b7113e22b801295eb704b8f5f9df4536eddc
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01Remove redundant Reference<> from within UnoType<> usesStephan Bergmann
Change-Id: I1aeb9c73c284e39f371e49ded98e8dba0d055056
2015-04-01convert BOX_LINE and BOXINFO_LINE to enum classNoel Grandin
since their usage is intertwined. Also introduce new o3tl utilities enumrange and enumarray to make working with scoped enums a little simpler. Change-Id: I2e1cc65dd7c638e59f17d96dfae504747cad6533
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: I091e11ab1e7fbacf04a0eac51262d22d3835ab17
2015-03-31sw: fix obscure crash in SwXTextDocument::getSomething()Michael Stahl
xNumFmtAgg may be null if you directly call global ServiceManager's createInstanceWithContext("com.sun.star.text.TextDocument") Change-Id: Id619a3f5c9e3f8281f9ef72db132c64287e027c4
2015-03-31sw: remove pointless wrtsh/docsh.cxx fileMichael Stahl
SwDocShell already has 4 or 5 other cxx files. Change-Id: I591d6e5d7ebf5727b4a760add2eeea04c3ca5abe
2015-03-31sw: prefix members of SwOleClientMichael Stahl
Change-Id: I60fe718c489fc47d667534560241a8b3eb5f20a6
2015-03-31sw: no need to handle a null SwDoc in SwDrawModel ctorMichael Stahl
Change-Id: I9ac596ade8b42979ee3fc944af878c702a7e223b
2015-03-31sw: prefix members of SwDrawModelMichael Stahl
Change-Id: Ica69a3c94e674c12619ec0f5c849b8e82dff6090
2015-03-31sw: clean up odd formattingMichael Stahl
Change-Id: I0e84e3dce84096a9085c911e6b82f5a4ee90d903