summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)AuthorFilesLines
2012-08-27fdo#46808, Adapt script::Converter service code to new styleNoel Grandin1-6/+3
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-08-22Resolves: rhbz#841092 don't crash on empty portions (a11y?)Caolán McNamara1-13/+17
Change-Id: Ibd08fa09370580bff12f19f867219098f0d4980e
2012-08-21add more runtime deps on resource files for unit-testsMatúš Kukan1-0/+4
Change-Id: Id9bbb2bbcafe335eada3f36ae103a9074a56848f
2012-08-16-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann6-18/+5
Change-Id: Ifff80c025d9e3309190330931e1eb49e8ea7f9e4
2012-08-09valgrind: use after freeCaolán McNamara1-1/+1
i.e. since b35980d9b seems remove, remove, delete was old pattern, new patterns ended up as remove+delete, remove. Reorder to remove, remove+delete Change-Id: I54ec8d0296e751110c516516465be2ac0615f6a1
2012-08-08remove include comments and boxesThomas Arnhold66-137/+0
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08Remove usage of list.hxxNoel Grandin1-2/+2
Change-Id: I5815bdc2ef0d7eff15d518f6d66e913e31592d83
2012-08-08STL'ify SV_DECL_IMPL_PERSIST_LISTNoel Grandin1-0/+1
Converts it to a template based on std::vector Change-Id: Id7f89f494164c61a3a573cff443ac0e0488e93f1
2012-08-07String::AllocBuffer replacementsCaolán McNamara2-22/+28
Change-Id: I278cd66fb4819721bb473796c28598aaf04eb123
2012-08-07drop bogus eof linesThomas Arnhold5-13/+0
Change-Id: Idda2852c3e96ce15fde75d5a95369ec50a012410
2012-08-07Remove non-existing forward declarationsThomas Arnhold1-2/+0
Those classes don't exist. So remove friend class operators too. Change-Id: I8e3b32db933dea7cbab86015f0c926df967511f6
2012-08-07fdo#46193 MessBox was made copyableZolnai Tamás1-1/+1
Part of MultiLineEdit was moved down from stvools to vcl with name VCLMultiLineEdit. MessBox uses it to display the message in read-only mode. Some of svtools' classes - which are necessary to implement VCLMultiLineEdit - were moved to vcl as a whole, and their includes are rewrite. Note: ExtTextView and ExtTextEngine classes would be leaved in svtools if VCLMultiLineEdit is a template class, but two macros: IMPL_LINK end IMPL_LINK_NOARG make it impossible to use template syntax. Change-Id: I26543868d8081c225c7125404d23369de3c3afcd
2012-08-04kill last (ab)user of SetRanges()Bjoern Michaelsen1-9/+4
Change-Id: I7f52d67d955896821f2c340fdd51e072b53fdd2f
2012-08-02Related fdo#53006 Make CApitals correction work without dictionaryStephan Bergmann1-12/+14
In a language for which there is no dictionary available (no "ABC" check in front of the current item in Writer's "Format - Character... - Font - Language" list), "Correct TWo INitial CApitals" (from Writer's "Tools - AutoCorrect Options... - Options") did not work (i.e., typing "FOo" followed by a space would not change it to "Foo"). That was apparently a regression introduced with 51efaa592d4f54133c74e38cf294526bc78dffcd "Double-capital autocor takes spellcheck in account." (I verified that with this fix words like "MPs" in "English (UK)" are still left as "MPs.") Thanks to Caolán for help. Change-Id: Ia76286e4ca73138ce3571145b9c40b031a4553ba
2012-07-31Invalidate current position in LookupTree at remove action.Tomaž Vajngerl2-6/+8
Change-Id: I7a32e8d7c21c1e87e1acab9020f9ecbb7e441f2c
2012-07-31error: attempt to increment a past-the-end iteratorStephan Bergmann1-1/+4
...when running editeng/CppunitTest_editeng_lookuptree.mk Change-Id: Ida1cbb16965138a42bec9e675b630bcbf2f6617e
2012-07-30LookupTree for fast autocompletion lookups (by Nico Weyand).Tomaž Vajngerl13-3/+1243
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-30remove unnecessary includes of svl/svarray.hxxCaolán McNamara1-2/+0
Change-Id: Ifec201efc4e97baf2d36d66c4ae6967eadd6134c
2012-07-28svxbox.cxx unbuilt, svxbox.hxx unnecessarily includedCaolán McNamara1-4/+5
so remove svxbox.?xx Change-Id: I329b8468d05ea108ea9cfb57e3702cccfcc69227
2012-07-28WaE: unused variableTor Lillqvist1-0/+2
Change-Id: I565b93a8dca6dadea7a6b3b9895c9d997acfb017
2012-07-27some tweaks in RTF filterMichael Stahl1-1/+3
2012-07-26fix non-const accesses in previous commit:Michael Stahl2-4/+1
Probably using const_cast is "good enough" here for the exising use cases of modifying elements in a sorted_vector; not exposing non-const accessors in sorted_vector should deter adding these in the future. Change-Id: I613d7d40041b01109fd1d54f51c105acf56ae34a
2012-07-26Convert SV_DECL_VARARR_SORT_VISIBILITY(SvxTabStopArr) o3tl::sorted_vectorNoel Grandin2-43/+37
And convert it from a private superclass to a member. The code is cleaner and easier to read as a consequence. Change-Id: I35501a208c96615ce5797ad06d34d3b7efc2c4db
2012-07-25delete svl/svstdarr.hxxMichael Stahl3-3/+0
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-07-25move SvStringsISortDtor to editeng/svxacorr.hxxMichael Stahl1-3/+19
Change-Id: I4465281396f44f53ba87db0a405586294ea65076
2012-07-25autocomplete: replace horrible use of SvStringsISortDtor...Michael Stahl2-6/+42
... to store not Strings but derived SwAutoCompleteStrings with something far saner: an abstract base class with virtual dtor. Change-Id: I7d966f385dd41154ee1c4cdb43b56ff1aace9b5e
2012-07-25Convert SvStringsISortDtor from an SV_DECL_PTRARR to a o3tl::sorted_vectorNoel Grandin3-23/+23
Change-Id: Ie1fa9b3cc2aef83ae9a82fbc110a08b2f298daef
2012-07-18Various Clang 3.1 -Wunsued-variable, -Wconstant-conversionStephan Bergmann3-8/+7
Change-Id: I0799f22685609201dfb524c373d065b6184ed53c
2012-07-12throw some const love at SvxAutocorrWordListCaolán McNamara1-2/+2
Change-Id: I41d59d386b8f1fd5dc1fb9744a649085c66143f9
2012-07-12make this a const_iterator for windows buildbotCaolán McNamara1-1/+1
Change-Id: I6e242de572595fdf39553d76932bc0e953cd3a34
2012-07-12Convert SV_DECL_PTRARR_SORT_DEL_VISIBILITY(SvxAutocorrWordList) to std::setNoel Grandin4-79/+50
Change-Id: I31783eecc28cdc6f4d8c40841302d5338a2cd7be
2012-07-11ure cppunit tests depend on unobootstrapprotectorCaolán McNamara1-1/+1
Change-Id: I998d0f46020d3f5ea6fd387fbed8480e3d57e59a
2012-07-11Resolves: rhbz#836937 insanely slow with Zemberek installedCaolán McNamara2-339/+2
Zemberek is a java spellchecker extension. With it installed the collecting of spellchecker information on first activation of spellchecking is insanely slow as the cache of spellcheckers is thrown away on each iteration through each language known to LibreOffice. So... move the config updating stuff from editeng down to the linguistic layer. Let the linguistic layer keep its spellchecker cache and listen to the extension manager to know if an extension which might be a spellchecker one has been modified and only throw away the cache on that event or if (existing implementation) the config data for linguistics changes. The polling of changed linguistic data in SvxLinguConfigUpdate::IsNeedUpdateAll can be removed and leave it up to LngSvcMgr to load everything in its ctor and keep itself up to date with its config and extension listeners. Change-Id: I9c93d998928e2e7f5128c36771b3e450a8057cd6
2012-07-11CalcDataFilesChangedCheckValue is always zeroCaolán McNamara2-13/+1
Change-Id: I851c0ac078b57f07e0a58a9fb2119d11cc5048e5
2012-07-11nCurrentDataFilesChangedCheckValue is kind of pointlessCaolán McNamara2-5/+1
Change-Id: Ibded6b0a72c9501d35fb884c93c505a2f716f678
2012-07-11Related: rhbz#836937 halve calls to expensive getAvailableServicesCaolán McNamara1-16/+9
getAvailableServices is very expensive, so halve the amount of calls to it that we need. This should be logically equivalent Change-Id: I5627ed539695fd837a497362cf9873debd254013
2012-07-11remove distracting and unhelpful debugging codeCaolán McNamara1-32/+1
Change-Id: I870df7d4af666c1cb087cec6d4daebcba87ff8ab
2012-07-09some UniString->rtl::OUStringCaolán McNamara9-42/+45
Change-Id: Ie69b30094da25df23a36baca2c7723d6a41f48c3
2012-07-05ConvertBorderWidthToWord: fix wrong INSET/OUSET conversion:Michael Stahl1-2/+2
This should do the inverse of ConvertBorderWidthFromWord. Change-Id: If0b2a8a83a7faa6600a07ecfcb13a124d7cdeab6
2012-07-04refactor handling of double border widths:Michael Stahl4-21/+172
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 Stahl5-114/+71
Change-Id: I1dadb53f46b23f92d34061ef78dda872bdbcda67
2012-07-04removed unnecessary forward declarations of classTakeshi Abe5-9/+0
Change-Id: I0d6aad17c471b6edd584c668dc7ff054090c185c
2012-07-03ditch String::CreateFromAsciiCaolán McNamara2-3/+3
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-02fdo#51582: Avoid double deletion of a text portion.Kohei Yoshida1-3/+4
Change-Id: Ia1c31cc8122c99a7e37bc285f61f8c5d2779b577
2012-07-02Remove unused definesThomas Arnhold7-21/+0
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02targetted improvement of UNO API includes / usageMichael Meeks1-4/+1
2012-07-01Remove unused definesThomas Arnhold5-24/+0
Change-Id: I45e1618dcff920b63b7e21ba9e842eed684114d7
2012-06-29Remove some unused defines and controlsThomas Arnhold3-10/+0
Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
2012-06-29some pesky XubStringsCaolán McNamara2-8/+8
Change-Id: Ib4095dee416cab6d954e1612d2e3f6e2d4464f48
2012-06-29Remove some more PCH tracesThomas Arnhold11-119/+28
Change-Id: Iafca82ac728feba97fb68523dcb032b0e17e5a3c