summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: Ic12c8b5ad5256b729b7cab8f78758b57f5316d3c
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: If31b41296a91c6a6ac990494e88ab7b47240a823
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: Id70cf0a2412de5d9b202b8209f0376c2f62a0669
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: I9a0f424adbcf95fb5ab275b90af1c56ae1d2fc44
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: Ic1c68ee7094afbd9727508a148eae2429ba8c380
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: Iedac4c93e84db2db2d9527557c32b01e9a3934bd
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: I0bba962b4110cb988a6beda71cfc347c4d31d279
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: Ia6d6c5a2821fb5b221fbfcc174a4a661556d4441
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: I266f8cdc113a08bf224bc8b2c858f5105aeaa87a
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: I34f4bd3174eb41639c870621646d211675bfa1c1
2014-12-02Blind fix for C2491: definition of dllimport function not allowedTor Lillqvist
Change-Id: I81e89126a7721e50fb07a99e582de792cdc480dd
2014-12-02WaE: Unreferenced function definition [loplugin:unreffun]Tor Lillqvist
Change-Id: I0a09b968651a5b98fae47d59c6a5e9b81468ae95
2014-12-02WaE: variable 'bRet' is used uninitialized whenever 'if' condition is trueTor Lillqvist
Change-Id: Iba1566931c551dd9d3f0eed7b3192379ed8990c7
2014-12-02unconfuse clang about the nature of struct-class-duality of traitsBjoern Michaelsen
Change-Id: I030ab87d489cadce0b0e7a64744cef941268132d
2014-12-02kill FOREACHPAM_START_CONSTBjoern Michaelsen
it was used for iterations with non-const operations only anyway Change-Id: I63b0c1b3a58ff940820f469e586369cb2a255df7
2014-12-02const iteratorsBjoern Michaelsen
Change-Id: I129b51c2e736e04287141c0eae8c212c179a3475
2014-12-02move Ring to sw::RingBjoern Michaelsen
Change-Id: I3109185f747b821ee94aae5c58f86768ca30713a
2014-12-02no need to use Ring here anymoreBjoern Michaelsen
Change-Id: I868ba712561b10eec91bf254c3fb1cadd5fdb282
2014-12-02use new typesafer implementationBjoern Michaelsen
Change-Id: I2228b2d421987c71e9738e32d138eccab02ea1db
2014-12-02make ring header onlyBjoern Michaelsen
Change-Id: If8a52d12cb145120be4477ee79f8cdc55329c36c
2014-12-02use macro in macroBjoern Michaelsen
Change-Id: Iadc70ec4ddfced07eeb761302c9d8485263c114b
2014-12-02some test tweakingBjoern Michaelsen
Change-Id: I45f60a0c37471a24219c95cf916b9cbfe0fc4c43
2014-12-02test FOREACHBjoern Michaelsen
Change-Id: Iaa63f0fb1be5efe0659f56bf15bfa13c48f3ab81
2014-12-02some more iterationBjoern Michaelsen
Change-Id: I5ca9b79b2992b8499beec04ebe86d82ae14b0ee2
2014-12-02more testing and initial iteratorsBjoern Michaelsen
2014-12-02private pointerBjoern Michaelsen
Change-Id: I2c5b2a5d99236f3d3887bba994acd1cf77ae83ba
2014-12-02use boostBjoern Michaelsen
Change-Id: Ic5ded259912eb4d6b367ea294dc3a372fcd44195
2014-12-02test intrusiveBjoern Michaelsen
2014-12-01-Werror,-Wunused-private-fieldStephan Bergmann
Change-Id: Ic090eee9e7705baf2c44fa2990a986e06cd0cf68
2014-12-01Use reference instead of pointerMichaël Lefèvre
Change-Id: I569ab4711e25387736beb730072420b7a7c9f939 Reviewed-on: https://gerrit.libreoffice.org/13240 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-12-01fix higher level debug buildCaolán McNamara
Change-Id: I6a1f92100c08dd1523fc9b02c070a5039041cb13
2014-12-01fdo#86871: better button label in Index/ContentsOlivier Hallot
Change the ellipsis button label Insert -> Table of Contents -> Index and Table of contents tab -> Create from -> Styles -> ... This last ellipsis means actually "Assign styles...". Change-Id: I22d761891d212240aedfe26ce3885b1ded2dcc1a Reviewed-on: https://gerrit.libreoffice.org/13207 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-12-01Factor out SdrPage::dumpAsXml() from SwDoc::dumpAsXml()Miklos Vajna
Change-Id: Ida16087b1d954454c672ddeec78b8dfe0e5a45fe
2014-12-01fdo#84938: replace EVENT_ constants with enumTobias Madl
Change-Id: I8275832d8dae43b374bddd48520d11592e9a6a1f Reviewed-on: https://gerrit.libreoffice.org/13134 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-30fix higher debug level buildCaolán McNamara
Change-Id: Ic5aae12c6a32c535faf790892810522aa4c527f5
2014-11-30fdo#85486 - Clean up unnecessary enumerations from xenum.hxxRadu Ioan
Removed XDashStyle Change-Id: Id14802a007a90508ee033e1dc964c57d3d5ef582 Reviewed-on: https://gerrit.libreoffice.org/13213 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-11-30fdo#72031 RTF import: bogus call to getBestTextEncodingFromLocale()Miklos Vajna
There were two problems here. First, commit bbe3627eece0c3486e7ea11f2f13377aaa3a8fed (rtftok: stop sending sprm:CRgFtc{0,1,2} tokens, 2014-03-05) broke the use-case when the font encoding is 0, but it's present. Before that commit, we parsed the font encoding instantly; after that commit we parse it once we have a font name. If we do that, then we have to have an idea if we have a font encoding. Given that 0 is a valid encoding, use -1 for the "have no encoding" case instead. Second, commit 7839633fb356285652ed96f4bf3f85bcd5b561a4 (fdo#85889 handle pc, pca and mac rtf keywords in writerfilter, 2014-11-24) abused m_nCurrentEncoding, which is meant to be used within the font table only. The problem with this is that this way only the first font will get the encoding, while the spec says it should be used in every context where there is no other explicit encoding. Fix this by setting the default encoding for those 3 control words instead -- and consider the default encoding in getEncoding(). Change-Id: Ia1d71f8ce70f2a53a3770b4840e21362d082e71f
2014-11-30Use IDocumentMarkAccess::findMark hereMatúš Kukan
Presumably, the names should be unique, so it's the same. Change-Id: I74907b97bc25f9512d4f7514162360e8b21ad4a5
2014-11-30fdo#85820 move insert table to table menu in writer related appsYousuf Philips
Change-Id: I90a44d9e826558a80174a452626c8e8438e25666 Reviewed-on: https://gerrit.libreoffice.org/13198 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2014-11-29fdo#86035 removed uno:InsertDraw and added shapes submenu to writerYousuf Philips
Change-Id: I66a762ac267f48b9866d6ccb0fec9542eec52aaa Reviewed-on: https://gerrit.libreoffice.org/13188 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2014-11-29fdo#86035 removed shapes and textbox from writer web as they dont functionYousuf Philips
Change-Id: Ia6b1c7f9d7ad3cdf9dd5aa06d1c0ba86a71607ab Reviewed-on: https://gerrit.libreoffice.org/13187 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2014-11-28DOCX import: ignore <w:tblpPr> in shape textMiklos Vajna
Floating tables are kind of anchored objects, which are not supported in shape text by Word, so we should ignore their flotation on import as well. Note that there is no need for a setIsInShape(false) in PopShapeContext() as we pop the whole table manager from the stack anyway. Change-Id: Ie9e88d2c83c0c34a01922e6e89f69f6089585b4b
2014-11-28SwAnchoredObjectPosition::_GetHoriAlignmentValues: fix position of textboxesMiklos Vajna
The problem was that the right edge of the textbox was outside the parent draw shape, which is unexpected for rectangle shapes. Change-Id: I5154a61b07d3d8d894491e76923b3b017aa3ce8e
2014-11-28Unittest for autocorrect in writerDaniel Sikeler
At first we test normal replacement of wrong words. Second part of the test is about style changes during autocorrection. And at the end we replace a word with a table. The rules for the autocorrection are in test/user-template/user/autocorr/acor_fr.dat I needed to make SwAutoCorrect public for my test. Conflicts: sw/qa/extras/uiwriter/uiwriter.cxx Change-Id: Ie753c2187c1f4eddaefe0cc428a605107112c24f Reviewed-on: https://gerrit.libreoffice.org/13131 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-28Factor out SdrObject::dumpAsXml() from SwDoc::dumpAsXml()Miklos Vajna
Change-Id: I043f740c73f1b39d81383f4f1eab2aae009ac2ba
2014-11-28fix higher debug level buildCaolán McNamara
Change-Id: I97ff0a97eed8723b6fb5cec9f11027bf6ee7c7d0
2014-11-27fdo#79303: Revert "fdo#70861 SwToSfxPageDescAttr: fix call to ...Michael Stahl
... SvxExtParagraphTabPage" This reverts commit 5ce19ddcb6595c71980aecfa1e8c0827343159a4. It is now simply wrong to claim that a SID_ATTR_PARA_PAGENUM item with value 0 is set, when that is a valid offset value. SwTxtShell::Execute() will call SfxToSwPageDescAttr() which pulls the SID_ATTR_PARA_PAGENUM out of the item set and sets it. Change-Id: If5a155c2874486b3ef7d01883fe73f8e5fca46fe
2014-11-27WW8_WrPlcSubDoc::WriteGenericTxt: fix missing indentationMiklos Vajna
Change-Id: I21e47d004e011c706a1e7e591f9204beb9b6f70f
2014-11-27HdFtDistanceGlue ctor: unused usingMiklos Vajna
Change-Id: I753ad1580e589a2acea41394a7fdb04f9cd3e2a4
2014-11-27fdo#81475 rearrange, add and remove entries from toolbarsYousuf Philips
Change-Id: Ibc01c13947524c272c143058f451a75ad087913d Reviewed-on: https://gerrit.libreoffice.org/13143 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>