summaryrefslogtreecommitdiff
path: root/editeng/qa
AgeCommit message (Collapse)Author
2014-12-18editeng: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Iab879390c18a3ce2c5bfc49548ca273ce0b907da
2014-12-02Adapt to int/sal_Int32 mismatch on 32-bit buildTor Lillqvist
Change-Id: I9c5cb458ea7595c1b623ce14ed58fd3d5b3d961e
2014-12-02Adapt to int/sal_Int32 mismatch on 32-bit buildTor Lillqvist
Change-Id: Ifef81d53bee4241be3c0dd6b7ddb2c1bbf419b5e
2014-12-01fdo#85496: editeng: do not add multiple 0-length attributes...Michael Stahl
... at the same position. Since commit 0d57434180db6c8eda8c5b9b704f8a1c18b371df these will be exported by the ODF filter as duplicate attributes. Change-Id: I8befe55f61c59ab968409fa03359540c300f9198
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-10-13create a macro library for implementing bit-flags typesNoel Grandin
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, changed from a macro- to a template-based solution. (Unfortunately MSVC 2012 does not support explicit conversion operators. Worked around that with explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a baseline that requires unconditional support for them.) Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
2014-07-28WaE: overriding virtual function declaration not marked 'override'Tor Lillqvist
Change-Id: I18274d920865f8e28377acce8084eb1629ff8127
2014-07-27bnc#467459 - fix editeng text search with expanded fields.Michael Meeks
Change-Id: If59d0e2f886e94148b81cb6cfcad067733fcb918
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-27editeng: sal_Bool->boolNoel Grandin
Change-Id: Ice3b0a4ccf7a6d25311ff65a23efa9082cd501de
2014-02-08fdo#74363: fix auto correct of initial capitals on start of first paraMichael Stahl
The GetPrevPara() method apparently has to return 0 when there is no previous paragraph. (regression from ac85b6cff11d193f5f71d11b1f3cc1c474653f59) Change-Id: I09a3e1d3a3adb33562e4e03c0755447047cbd433
2014-02-06Remove LookupTree as it is replaced with Trie.Tomaž Vajngerl
Change-Id: I7611c5307e4d4e925dc3e54c6b3f2d1a47bd9080
2014-02-06Add getAllElements (strings) for Trie.Tomaž Vajngerl
Change-Id: I9603cc51545f72fdb0854f2d76e2326706329000
2014-02-03xub_StrLen and tools/string.hxx final strawNorbert Thiebaud
Thre is still some 0xffff limit left and possibly some less than gracefully handled overflow/error cases Change-Id: I00957ee3a30b02f73918ea49d7353056263dc638 Reviewed-on: https://gerrit.libreoffice.org/7787 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-01-15Related: #i17171# big xub_Strlen -> sal_Int32 changesCaolán McNamara
Change-Id: I31bce794c95062abfa1171c13cf565498688b5f3
2013-11-17bugs.freedesktop.org -> bugs.libreoffice.orgAndras Timar
Change-Id: I56c1190c93333636981acf2dd271515170a8a904
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-09-21map autocorrection files with LanguageTag keyEike Rathke
... as several tags (i.e. renamed) may map to the same LangID. Change-Id: I8202b18ea0dc8034522017be59bb104b3d06c0f4
2013-09-18convert SvxAutoCorrect::DoAutoCorrect to OUStringCaolán McNamara
which makes autocorrect in the editengine work again Change-Id: I97d56448e4abd6e563479ffee706b86cb04199ec
2013-09-11convert SvxAutoCorrDoc from String to OUStringNoel Grandin
Also: - simplify the return type of the GetPrevPara method, there is no need return an OUString by pointer - simply the ppPara parameter of the ChgAutoCorrWord method, passing a pointer to a pointer to a value type is unnecessary. Change-Id: I4a8c44fdab1cf68af88c34003827d1c20704f839
2013-08-28Rename SectionAttribute to Section.Kohei Yoshida
It fits better this way. Change-Id: I139de7858e999a6dd26633a548c47634dfad8a65
2013-08-28Fix incorrect logic in section attribute array construction.Kohei Yoshida
And a new test case to catch it. Change-Id: Ie51ddf185f70c656e7d838fc7016b5726efbdf3f
2013-08-20Add a means to retrieve all formatting attributes in non-overlapping sections.Kohei Yoshida
Change-Id: Id04dffc135fad6bb66ea157cd280dd481cb80117
2013-07-30String to OUStringMatteo Casalin
Change-Id: I8d4f62b473ad43807621a9dbb826ed33857b737e Reviewed-on: https://gerrit.libreoffice.org/5189 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-06-11fdo#55315 Added simple Trie lookup tree for autocomplete words storageTomaž Vajngerl
Added simple Trie lookup tree which is more tailored to what is needed in autocomplete implementation, but still has the speed of the LatinLookupTree that has been used till now. As the implementation is much simpler it should be more managable and easier fixable. For now two actions: insert (word) and findSuggestions are supported. Acttion findSuggestion returns all words in a list for a searched sub-word, it also fixes fdo#62945. Change-Id: I63b69c30d28b4e1c465c2122ebc537f7f75a033a
2013-06-11Work around -Werror=strict-aliasingStephan Bergmann
Change-Id: I0184488344bd11c50bddd1bb1726e0d1225aff7e
2013-06-07sw: fix AutoCorrect bold/underline regressionMichael Stahl
The horrible SvxAutoCorrect::AutoCorrect() inserts the character into the document half-way through, and then _expects_ this inserted character to show up in its rTxt parameter. This broke in Writer when SwTxtNode::m_Text was converted to OUString, because now a temporary String copy is created. Work around this disaster area for now. (regression from 0295c8a34e39326414c1b98cf4da905802f061b0) Change-Id: I1cb11a20cb0c2577036176e605426105631f3311
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-01Related: fdo#55693 add regression tests for autocorrectionCaolán McNamara
Change-Id: Ie9bbeb38ec9cc2fa0377709e75abb0338b20bab5
2012-07-31Invalidate current position in LookupTree at remove action.Tomaž Vajngerl
Change-Id: I7a32e8d7c21c1e87e1acab9020f9ecbb7e441f2c
2012-07-30LookupTree for fast autocompletion lookups (by Nico Weyand).Tomaž Vajngerl
LookupTree is a tree structure for fast autocompletion lookups. Additionally the tree structure stores word probabilities, so each autocompletion request returns a result with highest probability. LatinLookupTree is an implementation which was designed to be even faster and more efficient latin text, however it works with any kind of unicode strings. The tree structure was coded by Nico Weyand, Unicode strings support and conversion to Libreoffice code structure was done by me. Change-Id: I6549ee45d0952407b8a070f30ed0598fcb420aa7
2012-07-04refactor handling of double border widths:Michael Stahl
Word uses a completely different definition of "width" of a double border than OOo and ODF: for Word the width is apparently the largest of the 3 component widths, while OOo and ODF define the width as the total with of all 3 components. The new border implementation in LO 3.4 was apparently inspired by Word's double border definition, which resulted in various import filter regressions, see the previous fixes: 36e43b52992735c622833e923faa63774b9e2f76 e2ffb71305c5f085eec6d396651c76d6daee3406 70a6a4d425558340bb49507975343a3e0a1bdde8 These fixes set the ScaleMetrics, which actually seems sub-optimal as there is a ScaleItemSet function somewhere that apparently re-scales all items in an itemset, which could undo the fixes. Also, one of the fixes actually managed to break RTF/DOCX import of double borders, as that ended up in the same code via the API. This commit now reverses the change, so that the width of a border is now always the total with of all components, which is (imho) much more intutitive, and also leads to a consistent UI where selecting say 3pt width has predictable results, no matter what the border style. The border widths are now converted in the Word format import/export filters (writerfilter and sw/source/filter/ww8), and various tests were adapted to the new handling. Change-Id: I50456c49b1a298569607e6c88f19f18441348ac3
2012-07-04replace enum SvxBorderStyle with css::table::BorderLineSyleMichael Stahl
Change-Id: I1dadb53f46b23f92d34061ef78dda872bdbcda67
2012-06-27targetted re-work of cppunit pieces.Michael Meeks
2012-06-25rename SvxBorderLine::SetStyle to something unambiguousMichael Stahl
Change-Id: Iec70985319a64cdc3630e15499ac304a7f1aabae
2012-05-14Renamed FILE to DOCINFO_TITLE, which is more appropriate for this field.Kohei Yoshida
Change-Id: I1267629da8b66fc21c4ae2e78634c2093274aa61
2012-05-11Unit test for UNO field item implementation.Kohei Yoshida
Make sure the type IDs are associated with correct service names. Change-Id: I5ff8ec7fb56f2790f9a3eca8e019c784cb27de43
2012-04-13setup/teardown default component context once before/after all testsCaolán McNamara
avoids the problems of dangling uno singletons invalidated after the first dispose and the chain of other singletons that don't expect to need to re-initialize, etc. reenable editeng cppunit test inherit i18npool cppunit test from unotest base drop LibreOfficeProtector, do "throwable" work in setUp/tearDown not in ctors/dtors
2012-04-12partially revert the editeng singleton stuff to get build to completeCaolán McNamara
2012-04-12Handle the correct deletion order of EditDLL in the base class.Kohei Yoshida
Turns out that this change affected all cppunit runs.
2012-04-11Remove the TODO comment that's no longer relevant.Kohei Yoshida
2012-04-11We need to delete EditDLL before de-initialize vcl to avoid crash.Kohei Yoshida
Without manually releasing the EditDLL singleton instance, it gets deleted *after* the cppunit does its cleanup, which de-initializes VCL. The problem is, when the EditDLL instance is destroyed, its member GlobalEditData instance deletes the OutputDevice instance that it owns, which in turn accesses font caches in VCL. But by the time we reach that point, VCL is already de-initialized, hence the problem.
2012-04-11Avoid duplicate symbols & use setUp() and tearDown() for the item pool.Kohei Yoshida
2012-04-11Just use the internal item pool already written for the edit engine.Kohei Yoshida
2012-04-11You *are* fixed.Kohei Yoshida
2012-04-11Set default items to the item pool, do this and that, and now the test passes.Kohei Yoshida
2012-04-11needs ure and base-class setUp does necessary stuffCaolán McNamara