summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2015-06-01sw: SwTxtNode::CutImpl(): destination must be in same SwDocMichael Stahl
Change-Id: I541dad26125bcd98e9c74016ecd03cd7f8bc71e6
2015-06-01sw: SwTxtNode::CutText() requires a destinationMichael Stahl
Remove dead code. Change-Id: Ib6a75718d411effe87d59d30420e2e9d7f15984e
2015-06-01sal_uInt16 to sal_Int32, and use -1 as a special caseMatteo Casalin
Change-Id: Iaf90f96665781d3aa43f1f71802538f54409bd4a
2015-06-01Translate German messageMatteo Casalin
Change-Id: Idbb72bc894cb8053e329a2713916cf896337351f
2015-06-01SwDBManager: embed data source definition if possibleMiklos Vajna
In the past SwDBManager (used by the MM wizard) created a smaller .odb file in the home directory by default in case the data source was something external (.ods file, etc). If the document is saved already (and experimental mode is enabled, as this is still a work in progress), then stop saving these small .odb files to the home directory, instead embed the data source definition into the currently active .odt file. Previously created such separate .odb files are still fully supported, of course. Change-Id: I7c1776e5ed57cdde05c0adfc5f7d1dc485363f03
2015-06-01Use o3tl::make_unique<>Miklos Vajna
Change-Id: I9be8542d5ea99694af54121d3fe659bb4ed8ebb6
2015-06-01tdf#79639 DOCX import: don't delay text frame conversion of in-header tablesMiklos Vajna
Floating tables may or may not be converted to table-in-textframes during import, depending on if we guess that it'll be a multi-page table with minimal wrapping or a real wrapped table. If the floating table is in a header or footer, then it won't be a multi-page one, so can do the conversion right away. Change-Id: I8d5ff8c5fe00037d5cef92dea6b54de6806214bc
2015-06-01WaE - Fix C4389: ´==´ : signed/unsigned mismatchMatteo Casalin
Change-Id: I049ca27a0b69887d7ab82312dd30311ddb2bed63
2015-06-01Use auto or more proper integer types, avoid temporariesMatteo Casalin
Change-Id: Iae81c30d23aa61e92b8dfd79c326c554b4164987
2015-05-31tdf#91781 Reorganize writer's menu barYousuf Philips
Change-Id: I28fcfb7511df137f8995dd4d1271d8dfdf112be8 Reviewed-on: https://gerrit.libreoffice.org/16006 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-05-31Use more proper integer types and range-based for loopsMatteo Casalin
Change-Id: Ie91ab1fad1b2f16380071b8c8fbb928151f85d4b
2015-05-31Use more proper integer types and range-based for loopsMatteo Casalin
Change-Id: I04a53b2e6f48e597b5d2de79587458a9f7f61f4d
2015-05-31Use size_t and range-based fo loopsMatteo Casalin
Change-Id: I41a30326a2507b1a21b7f9ed17edb21e373ab526
2015-05-31More proper tipes, avoid cast to wrong typeMatteo Casalin
Change-Id: Ia323ed625b51bdb9dac3f3e2826b0dfec2141165
2015-05-31Unuseful check, unless nLoop is signed (as returned by GetSNumber)Matteo Casalin
Change-Id: If3a24832251de6be9c4428bfedb6a2a612d6a375
2015-05-31Use auto, intMatteo Casalin
Change-Id: I39a7f83684d044602dd95e4523c43920d3caeac8
2015-05-31Use size_t, auto and range-based for loopsMatteo Casalin
Change-Id: I7f3672928b3d1ee937c7c6c2684b1396425b9fe6
2015-05-31Use auto and range-based for loopsMatteo Casalin
Change-Id: Idbef553cf734eb9eb194912e60f7811d35ce6c84
2015-05-31Use more proper integer types and range-based for loopsMatteo Casalin
Change-Id: Ie02ebb5337bb902b33685feba95d1265be084450
2015-05-31Use more proper integer types and range-based for loopsMatteo Casalin
Change-Id: I59dc93687063e1df082d5c96c691dd364cc78ddb
2015-05-31Use std::find instead of custom codeMatteo Casalin
Change-Id: I5841fa214b53e5b65b4c1251b4c033bb2e55dadc
2015-05-31Use more explicative namesMatteo Casalin
Change-Id: Ie42b204b8cc81552b0fb18b8f4ef938787fa5c4d
2015-05-31Simplify and optimize (no need to count footnotes/endnotes)Matteo Casalin
Change-Id: I4b539ec929e62a3d65c8a3fa2e9eb7794abf2a37
2015-05-31Use more proper types and range-based for loopsMatteo Casalin
Change-Id: I9e891923a1301e4b3d19c75102943f30f42965a1
2015-05-31tdf#81475 Additional work on the formatting and draw toolbarYousuf Philips
Change-Id: Idf8c389915e880cbc4246743d2b6a70d4e99f2e2 Reviewed-on: https://gerrit.libreoffice.org/15992 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-05-30SimplifyMatteo Casalin
Change-Id: Iafeed40abb3228c00c5490692c9f2f4d526c1dee
2015-05-30Fix indentationMatteo Casalin
Change-Id: I5a2d05d476b81ad610ddf470b4e9a176f41a8c82
2015-05-30Use size_t for GetMemberCount/GetMemberMatteo Casalin
Also use more proper integer types in related files. Change-Id: I07536491f0a28d27de07ceb3326b703206087caf
2015-05-300 is fine hereMatteo Casalin
Change-Id: I5f4e98f644dfd10e6fb35d15622b46fdcac00395
2015-05-30Fix TB Linux-F19-x86_64_14-with-checkJulien Nabet
CStyleCastExpr, suspicious cast from ´bool´ to ´sal_Bool´ (aka ´unsigned char´) [loplugin:salbool] Change-Id: Ic463a57a0ef701c3d8dbcfb9b2254f6bbc266460
2015-05-29VclPtr: tdf#91396 crash after tool options and sidebar switchingCaolán McNamara
Change-Id: I86c23ffc08c8dec275608d9bc0bbe5eaf7ce0993 Reviewed-on: https://gerrit.libreoffice.org/15985 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-29Fix Mac TBs by unhidding testSkipImages()Julien Nabet
Change-Id: I2624ef7824859339b1b0a669279e7c4186ebf35b
2015-05-29Revert "skip SkipImages unit test on MacOs"Julien Nabet
Let's reenable the test for MacOs to see. The system cache has been purged, a "make distclean" has been done (see http://nabble.documentfoundation.org/About-skip-SkipImages-unit-test-on-MacOs-td4149788.html) This reverts commit be01d68420086fc36ecf26b5f597ba7c6b29b369. Change-Id: Ib281db5e3497a3bc9b176a28ccbee25ba051910a
2015-05-29dispose SfxControllerItem objects correctlyLászló Németh
Change-Id: Id5f80e06e5609b4e85f3d6db7bc37aabe6ef0dac
2015-05-29fix Invalid Read on conversion of ooo95991-1.odt to pdfCaolán McNamara
"Prepare" can delete the Portion belonging to the SwTxtFrm and replace it. Prepare knows this and re-fetches it if that happens. But Prepare can call itself and the outermost Prepare doesn't know that the innermost Prepare replaced the SwTxtFrm (and re-fetched it for the remainer of the innermost Prepare). So bubble out that it was re-fetched so the outer most one re-fetches too Invalid read of size 1 SwParaPortion::SetPrep(bool) (porlay.hxx:299) SwTextFrm::Prepare(PrepareHint, void const*, bool) (txtfrm.cxx:1805) SwContentFrm::MakeAll() (calcmove.cxx:1317) SwFrm::PrepareMake() (calcmove.cxx:340) SwFrm::Calc() const (frame.hxx:1004) CalcContent(SwLayoutFrm*, bool, bool) (fly.cxx:1465) SwLayoutFrm::FormatWidthCols(SwBorderAttrs const&, long, long) (wsfrm.cxx:3306) Address 0x2137c850 is 832 bytes inside a block of size 840 free'd free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) rtl_freeMemory_SYSTEM(void*) (alloc_global.cxx:277) rtl_freeMemory (alloc_global.cxx:347) rtl_cache_free (alloc_cache.cxx:1222) FixedMemPool::Free(void*) (mempool.cxx:48) SwParaPortion::operator delete(void*, unsigned long) (in /home/caolan/LibreOffice/core/instdir/program/libswlo.so) SwParaPortion::~SwParaPortion() (porlay.cxx:1967) SwTextFrm::ClearPara() (txtcache.cxx:106) SwTextFrm::Init() (txtfrm.cxx:339) SwTextFrm::CalcLineSpace() (txtfrm.cxx:792) SwTextFrm::Prepare(PrepareHint, void const*, bool) (txtfrm.cxx:1724) SwTextFrm::Prepare(PrepareHint, void const*, bool) (txtfrm.cxx:1706) SwContentFrm::MakeAll() (calcmove.cxx:1317) SwFrm::PrepareMake() (calcmove.cxx:340) SwFrm::Calc() const (frame.hxx:1004) CalcContent(SwLayoutFrm*, bool, bool) (fly.cxx:1465) SwLayoutFrm::FormatWidthCols(SwBorderAttrs const&, long, long) (wsfrm.cxx:3306) Change-Id: I1fdade2846e3cbd2e73be1f58d2597e9358fa0ea
2015-05-29add test for frame backgroundsVarun Dhall
Change-Id: I39766373811a48a683706c391aa46a9bf89b3462 Reviewed-on: https://gerrit.libreoffice.org/15924 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-05-29tdf#91702 - fix stack-based MessBox allocation.Michael Meeks
Change-Id: I62dd164e281911d9db3de453789a5badc7cd5fd7 Reviewed-on: https://gerrit.libreoffice.org/15954 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-29split sw unoapi test for performanceBjoern Michaelsen
- test previously took 3m35s here - slowest part is now 70s Change-Id: I4a3e03cf6ef014ad60ecf6897b7395a680c33460 Reviewed-on: https://gerrit.libreoffice.org/15957 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-05-29LOK: add DOCUMENT_SIZE_CHANGED testcaseMiklos Vajna
This failed without the SwViewShell::SizeChgNotify() hunk of commit 63a40c45018ad2e6f4a660a520a5907beb1d7801 (LOK: change PAGE_COUNT to a more generic DOCUMENT_SIZE, 2015-05-27). Change-Id: Id230420f60d1a6f3caf822f7e23ffca010919196
2015-05-29loplugin:redundantcast: const_cast to same typeStephan Bergmann
Change-Id: I7cb919140539d0d573b5fbf786a6041843c2388a
2015-05-28brown paper bagStephan Bergmann
Change-Id: If290c03d86d691674b6a50f20f818f2e80d530ac
2015-05-28loplugin:unreffunStephan Bergmann
Change-Id: I89674148bd25f0ee996bf8796138bbab234d8c8f
2015-05-28Replace SWAP_IF_[NOT_]SWAPPED/UNDO_SWAP with RAII classesStephan Bergmann
Change-Id: I3c2c1dd8221b6b9c884f368a65696318c698bb43
2015-05-28loplugin:stringconstantStephan Bergmann
Change-Id: I86c8bd43a4fd87ce14e36108d686f6c8fca6cf81
2015-05-28SvxSearchItem: add m_nStartPoint{X,Y}Miklos Vajna
The idea is that if you have your cursor at the begining of a Writer document, and you scroll down a lot, then search, then it's annoying that search jumps back to the start of the document for the first hit. Add an optional way to provide what is the starting point of such a search, so we can have "when nothing is selected, then search from the top left corner of the visible area". No UI yet to enable this, but available via the UNO API. Change-Id: Ibcf3a5f2eeba1372b1dfe8474081e6591a6e0134
2015-05-28Unit test related to tdf#89783: more than 64k PageDescsKatarina Behrens
Change-Id: I19207a15e1a3eec2ac097ec007afd7bfc2fd1cf1 Reviewed-on: https://gerrit.libreoffice.org/15941 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-05-28convert GETFOCUS constants to scoped enumNoel Grandin
Change-Id: I7c324bb6358be28c119592850eb7607479279f09
2015-05-28Rewrite all calls like Dialog(params).Execute()Philippe Jung
Replace all calls looking like ADialog(some params).Execute() by ScopedVclPtrInstance<ADialog>::Create(some parms)->Execute() Change-Id: I0b6f0a9ea5ef0a749ffa30ce131e9dc989604639 Reviewed-on: https://gerrit.libreoffice.org/15915 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-28sw: -Werror=shadowMiklos Vajna
Change-Id: If09cc703bf1a922c6b3a1f584f23e5867ea7ad5f
2015-05-28sw: prefix HTMLTableCnts membersMiklos Vajna
So that one can stop guessing if pTable or pHTMLTable is the member variable. Change-Id: Ia2c240d15c3e5d6d1a6e2e23373ed57909501070