summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
AgeCommit message (Collapse)AuthorFilesLines
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-31/+31
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
2015-11-07Misc tweaks and cleanups.Ashod Nakashian1-7/+7
Streamlined a couple of hotspots and some minor cleanups. Change-Id: I85a9423e03f7e20ce78736a44d668da859a443cd Reviewed-on: https://gerrit.libreoffice.org/19720 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-11-06com::sun::star->css in sw/incNoel Grandin1-9/+8
Change-Id: I6ffdb1deaa32156c65f997a1a1056928b7cd863d Reviewed-on: https://gerrit.libreoffice.org/19803 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-2/+2
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-2/+2
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-09-30Fix typosAndrea Gelmini1-1/+1
Change-Id: I92f9eda138c387dde3095e1a6281bdcec3a2adde Reviewed-on: https://gerrit.libreoffice.org/18982 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-01sw: sort includes in editsh.hxxMichael Stahl1-13/+17
Change-Id: I74181ccf42e86bc6b65056199e6102bc05518a34
2015-09-01sw: replace boost::ptr_vector with std::vectorMichael Stahl1-2/+2
Change-Id: Iad91811a0e674b3541d51f3e94a9a5770bfda0a1
2015-08-21AutoCorrect methods result in ambiguous overloadsNoel Grandin1-2/+2
When actually using the parameter defaults. So just remove the defaults. Change-Id: I02dbffcd87a3a07382cb10655d46e7d0312f4e51
2015-08-20tdf#92324 Fixed MailMerge printing with values from databaseVasily Melenchuk1-0/+1
Locking of ExpFields is required to lock current state of fields and database cursor: generation of print preview and some other operations can cause changing of current database record, especially if document contains nextrecord fields. Change-Id: If0466ef2489d96264380b5978ef7d7cf3f545c23 Reviewed-on: https://gerrit.libreoffice.org/17857 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-07-21loplugin:unusedmethods swNoel Grandin1-2/+0
Change-Id: Ied51535fa169451fc4991237122817a34a59f6fe Reviewed-on: https://gerrit.libreoffice.org/17256 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-04Fix typosAndrea Gelmini1-1/+1
Change-Id: Id9296115f30858e7fd470a199e59343a96d7deec Reviewed-on: https://gerrit.libreoffice.org/16712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-05-25Use size_t consistently for GetFldTypeCount/GetFldType/RemoveFldTypeMatteo Casalin1-3/+3
Change-Id: Ie88af20e20f788c0d8b53f99da3decd98dec5078
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-98/+98
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-05loplugin:staticmethodsNoel Grandin1-8/+8
Change-Id: I90dd921077bbfc57200e398e7959306f26c65cfe
2015-05-03tdf#89783: sal_uInt16 replacement by size_t: sectionsVasily Melenchuk1-5/+5
These replacements allow LO to load, save and mail merge documents having more than 65536 sections in total. Change-Id: I0e70889b1edc6e472a39f1f2638ac3c70a0d7058 Signed-off-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-04-30Get rid of initial :: for the svx namespaceTor Lillqvist1-2/+2
Change-Id: I03e428a749bca409ebac9c142acaddafcbfeca23
2015-04-28SwEditShell::Copy return type wants to be boolStephan Bergmann1-1/+1
Change-Id: Id39077324630cead2584bae48dd8470335f4d1fb
2015-04-17convert SCRIPTTYPE_ constants to scoped enumNoel Grandin1-2/+2
Change-Id: I5be3980ac865162d8d7626556ca47eca4b0ee433 Reviewed-on: https://gerrit.libreoffice.org/15344 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-12sal_uInt16 to sal_Int32Matteo Casalin1-1/+1
Change-Id: I163c88ff2d6e8ac2ac14b7ff585bf09f6262270e
2015-04-12Use size() on array filled by SwEditShell::GetINetAttrs to get number of itemsMatteo Casalin1-1/+1
Change-Id: I10d05c6b635c220f2ec833e4207afbd46651aec8
2015-04-12return value of SwEditShell::GetGlobalDocContent is always discardedMatteo Casalin1-1/+1
Change-Id: Ib1d6ff89f378aa1e1e311cce5aaf186d843b0bef
2015-03-31sw: prefix members of SwEditShellMichael Stahl1-4/+4
Change-Id: I8a06e0660767f23518952e22cca1b56c16d0bbd1
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann1-2/+2
Change-Id: Icb14a036ea9d7636359b6bc5e0af17568c0d54cb
2015-03-11convert SetAttrMode to enum classNoel Grandin1-2/+2
Change-Id: If7dd0c49480756afb7d4eaaba597ecc305c35f64
2015-03-11sw: s/eEnde/eEnd/Michael Stahl1-3/+3
Change-Id: I9ea963d09c2975b8e40856e3ba2d3896be9a1876
2015-02-07loplugin:deletedspecialStephan Bergmann1-3/+2
Change-Id: Ia2b137e0167966a3d0b60f3c642a106834da8f1c
2015-01-21SwSection::GetFmt const-correctnessStephan Bergmann1-1/+1
...otherwise, wouldn't make sense to have non-const/const overloads anyway. Needs to introduce one const_cast into doctxm.cxx (which already contains quite a handful), otherwise the required changes would turn into too much of an avalanche. Change-Id: I694c7a1df7089d83ee95d35ed09bb864e9703f7c
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin1-1/+0
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2014-12-25sal_uInt16 to size_tMatteo Casalin1-2/+2
Change-Id: I5b63396fba55b717f35aee5718dd348a9d795786
2014-12-02De-/Increase fontsize when multi-sized textDaniel Sikeler1-9/+4
I did the changes proposed in https://gerrit.libreoffice.org/#/c/11857/ I also tested it with a mixture of CJK and CTL text Change-Id: Ic75f557b8c0a68f43abbd8c28b2222945e9361b7 Reviewed-on: https://gerrit.libreoffice.org/13152 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-12-02use boostBjoern Michaelsen1-4/+0
Change-Id: Ic5ded259912eb4d6b367ea294dc3a372fcd44195
2014-12-02test intrusiveBjoern Michaelsen1-0/+4
2014-11-25Revert "loplugin: cstylecast"Tor Lillqvist1-2/+2
The change was broken. Luckily MSVC noticed: sw\inc\doc.hxx(1707) : warning C4717: 'SwDoc::GetNumberFormatter' : recursive on all control paths, function will cause runtime stack overflow. This reverts commit 7ca3303aaadd20dcc1d6e08bdeba38021cbec4bb.
2014-11-25loplugin: cstylecastNoel Grandin1-2/+2
Change-Id: Idc6c34d8b3cfab35c7dc841a9ff70c218e0282df
2014-11-16Remove sal_True/sal_False from code and comments in sw includesMatteo Casalin1-2/+2
Change-Id: Icfbbae898749196e27199802ec728417d5205bc5
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini1-1/+1
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-10loplugin: cstylecastNoel Grandin1-1/+2
Change-Id: If7ada4cba0b1098bba304f1ec9b860ec7df75e7a
2014-11-10loplugin: cstylecastNoel Grandin1-1/+2
Change-Id: Ie57f543681790e662f6ac7d074ccb37925999790
2014-11-03fdo#35862 De-/Increase font when multi-sized textDaniel Sikeler1-0/+11
Added two new function to the SwEditShell. The first returns all items of a specific WhichId wich belong to the current selection. The items from the attribute set and from the hints are used. The second returns SwPaMs separated at borders of an itemtype identified by its WhichId. The SwPaMs must be deleted after yous. Change-Id: I00e6d1b0f75b9f184343711c6d2bdc7e5694c711 Reviewed-on: https://gerrit.libreoffice.org/11857 Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-30fdo#82577: Handle PolyPolygonNoel Grandin1-3/+3
Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows PolyPolygon typedef. Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
2014-09-23fdo#82577: Handle WindowNoel Grandin1-2/+2
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-17callcatcher: update unused codeCaolán McNamara1-4/+0
Change-Id: I2ddda0600ee876e9886ee3221f0ac5ad515fbd22
2014-09-06Use size_t consistently, constify, reduce scopeMatteo Casalin1-1/+1
Change-Id: Ie5de70645becc5ac584f1b3ffe6048969d2a19a9
2014-08-19fdo#75757: remove inheritance to std::vectorTakeshi Abe1-3/+1
by replacing it with a typedef. Change-Id: Iaa88086e3c5195012982dd625bfd589de2e484a2 Reviewed-on: https://gerrit.libreoffice.org/11017 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-06-27Related: #i78498# Do not keep OutlineLevel attribute at paragraph...Oliver-Rainer Wittmann1-2/+1
when a Paragraph Style is assigned. (cherry picked from commit 6a1564284d90c7e175f7848520924f7f6a5884b7) (cherry picked from commit 4a381b1124f60b76cabb558fa24827448a1caab0) Conflicts: sw/inc/doc.hxx sw/inc/editsh.hxx sw/inc/fmtcol.hxx sw/inc/ndtxt.hxx sw/source/core/attr/format.cxx sw/source/core/doc/docfmt.cxx sw/source/core/doc/docglbl.cxx sw/source/core/doc/doctxm.cxx sw/source/core/doc/fmtcol.cxx sw/source/core/edit/edfcol.cxx sw/source/core/txtnode/ndtxt.cxx sw/source/core/undo/unfmco.cxx sw/source/core/unocore/unosett.cxx sw/source/core/unocore/unostyle.cxx Change-Id: Ifa1214876df296f2e1210cc4a35f2df67f9f6bc4
2014-05-06SwViewShell: fix brain-damaged non-virtual CalcLayout() overrideMichael Stahl1-1/+1
The ooxml_export test crashes on Mac, because SwModelTestBase::calcLayout() calls ViewShell::CalcLayout() and that does not do StartAction(), and inside the layout indirectly a StartAction()/EndAction() is then called, which of course trashes the still-under-construction layout. Strangely no crash on Linux, the layout is completely finished before the SwModelTestBase::calcLayout() is called, maybe because of the headless vclplug. Change-Id: I767b1e41597ce752eb8c61dc106390f2abb90257
2014-05-02Rename SwDBMgr -> SwDBManager.Jan Holesovsky1-2/+2
We were renaming it recently from SwNewDBMgr, let's use the full name to make it more readable. Change-Id: I2ceb3f1790321b70d5936c35e13870439969e64d
2014-04-30sw: sal_Bool->boolNoel Grandin1-90/+90
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
2014-04-28allow accepting/rejecting changes in a selection (bnc#874790)Luboš Luňák1-0/+2
Adds 'Accept Changes'/'Reject Changes' to the RMB popup if appropriate, more convenient than handling them one by one. Change-Id: I4e2670aa9fdacaaaa1b7ecca36b9c150c82e2e72