summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:25:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:53 +0100
commit01b49802c7cda7fd4d5ba71263cef7bc95234b89 (patch)
treeb8d92f1c6abf5ac548d0bcb0c581ebfcffd8bfac
parent6cd7bf2043146a630925a2e49336f02c802f707a (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
-rw-r--r--sw/inc/HandleAnchorNodeChg.hxx2
-rw-r--r--sw/inc/IDocumentUndoRedo.hxx2
-rw-r--r--sw/inc/PostItMgr.hxx2
-rw-r--r--sw/inc/accmap.hxx2
-rw-r--r--sw/inc/anchoreddrawobject.hxx2
-rw-r--r--sw/inc/bparr.hxx2
-rw-r--r--sw/inc/calc.hxx8
-rw-r--r--sw/inc/ccoll.hxx2
-rw-r--r--sw/inc/cellatr.hxx6
-rw-r--r--sw/inc/cellfml.hxx38
-rw-r--r--sw/inc/crsrsh.hxx38
-rw-r--r--sw/inc/dbmgr.hxx12
-rw-r--r--sw/inc/dcontact.hxx6
-rw-r--r--sw/inc/doc.hxx82
-rw-r--r--sw/inc/docary.hxx2
-rw-r--r--sw/inc/docfac.hxx2
-rw-r--r--sw/inc/docsh.hxx12
-rw-r--r--sw/inc/docufld.hxx2
-rw-r--r--sw/inc/dpage.hxx2
-rw-r--r--sw/inc/edglbldc.hxx4
-rw-r--r--sw/inc/editsh.hxx62
-rw-r--r--sw/inc/extinput.hxx2
-rw-r--r--sw/inc/fchrfmt.hxx6
-rw-r--r--sw/inc/fesh.hxx68
-rw-r--r--sw/inc/fldbas.hxx2
-rw-r--r--sw/inc/fmtanchr.hxx4
-rw-r--r--sw/inc/fmtautofmt.hxx4
-rw-r--r--sw/inc/fmtclbl.hxx2
-rw-r--r--sw/inc/fmtclds.hxx4
-rw-r--r--sw/inc/fmtcnct.hxx4
-rw-r--r--sw/inc/fmtcntnt.hxx4
-rw-r--r--sw/inc/fmtcol.hxx12
-rw-r--r--sw/inc/fmtcolfunc.hxx2
-rw-r--r--sw/inc/fmteiro.hxx4
-rw-r--r--sw/inc/fmtflcnt.hxx4
-rw-r--r--sw/inc/fmtfld.hxx4
-rw-r--r--sw/inc/fmtfollowtextflow.hxx4
-rw-r--r--sw/inc/fmtfordr.hxx2
-rw-r--r--sw/inc/fmtfsize.hxx4
-rw-r--r--sw/inc/fmtftn.hxx2
-rw-r--r--sw/inc/fmtftntx.hxx6
-rw-r--r--sw/inc/fmthdft.hxx8
-rw-r--r--sw/inc/fmtinfmt.hxx6
-rw-r--r--sw/inc/fmtline.hxx4
-rw-r--r--sw/inc/fmtlsplt.hxx4
-rw-r--r--sw/inc/fmtmeta.hxx8
-rw-r--r--sw/inc/fmtornt.hxx8
-rw-r--r--sw/inc/fmtpdsc.hxx6
-rw-r--r--sw/inc/fmtrfmrk.hxx2
-rw-r--r--sw/inc/fmtrowsplt.hxx4
-rw-r--r--sw/inc/fmtruby.hxx4
-rw-r--r--sw/inc/fmtsrnd.hxx4
-rw-r--r--sw/inc/fmturl.hxx4
-rw-r--r--sw/inc/fmtwrapinfluenceonobjpos.hxx2
-rw-r--r--sw/inc/format.hxx6
-rw-r--r--sw/inc/frmfmt.hxx12
-rw-r--r--sw/inc/ftnidx.hxx2
-rw-r--r--sw/inc/ftninfo.hxx4
-rw-r--r--sw/inc/grfatr.hxx42
-rw-r--r--sw/inc/hfspacingitem.hxx4
-rw-r--r--sw/inc/hints.hxx2
-rw-r--r--sw/inc/htmltbl.hxx4
-rw-r--r--sw/inc/index.hxx2
-rw-r--r--sw/inc/iodetect.hxx4
-rw-r--r--sw/inc/lineinfo.hxx2
-rw-r--r--sw/inc/mdiexp.hxx4
-rw-r--r--sw/inc/modcfg.hxx2
-rw-r--r--sw/inc/ndarr.hxx28
-rw-r--r--sw/inc/ndgrf.hxx18
-rw-r--r--sw/inc/ndhints.hxx4
-rw-r--r--sw/inc/ndnotxt.hxx8
-rw-r--r--sw/inc/ndole.hxx8
-rw-r--r--sw/inc/ndtxt.hxx14
-rw-r--r--sw/inc/node.hxx40
-rw-r--r--sw/inc/numrule.hxx4
-rw-r--r--sw/inc/pam.hxx26
-rw-r--r--sw/inc/paratr.hxx16
-rw-r--r--sw/inc/postithelper.hxx6
-rw-r--r--sw/inc/printdata.hxx10
-rw-r--r--sw/inc/redline.hxx10
-rw-r--r--sw/inc/reffld.hxx2
-rw-r--r--sw/inc/section.hxx10
-rw-r--r--sw/inc/shellio.hxx18
-rw-r--r--sw/inc/splargs.hxx4
-rw-r--r--sw/inc/swabstdlg.hxx12
-rw-r--r--sw/inc/swatrset.hxx4
-rw-r--r--sw/inc/swbaslnk.hxx4
-rw-r--r--sw/inc/swcrsr.hxx18
-rw-r--r--sw/inc/swevent.hxx8
-rw-r--r--sw/inc/swtable.hxx26
-rw-r--r--sw/inc/swunohelper.hxx4
-rw-r--r--sw/inc/tblsel.hxx10
-rw-r--r--sw/inc/tgrditem.hxx4
-rw-r--r--sw/inc/tox.hxx4
-rw-r--r--sw/inc/txtannotationfld.hxx2
-rw-r--r--sw/inc/txtrfmrk.hxx2
-rw-r--r--sw/inc/txttxmrk.hxx2
-rw-r--r--sw/inc/undobj.hxx8
-rw-r--r--sw/inc/unocrsr.hxx2
-rw-r--r--sw/inc/unocrsrhelper.hxx2
-rw-r--r--sw/inc/unodraw.hxx2
-rw-r--r--sw/inc/unoparagraph.hxx6
-rw-r--r--sw/inc/unosett.hxx10
-rw-r--r--sw/inc/unotextcursor.hxx2
-rw-r--r--sw/inc/unotxdoc.hxx4
-rw-r--r--sw/inc/view.hxx22
-rw-r--r--sw/inc/viewopt.hxx2
-rw-r--r--sw/inc/viewsh.hxx4
-rw-r--r--sw/inc/viscrs.hxx14
-rw-r--r--sw/qa/core/filters-test.cxx4
-rw-r--r--sw/qa/core/test_ToxTextGenerator.cxx12
-rw-r--r--sw/qa/core/uwriter.cxx20
-rw-r--r--sw/qa/extras/globalfilter/globalfilter.cxx6
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx8
-rw-r--r--sw/qa/extras/mailmerge/mailmerge.cxx4
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport7.cxx2
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx18
-rw-r--r--sw/source/core/SwNumberTree/SwNodeNum.cxx12
-rw-r--r--sw/source/core/SwNumberTree/SwNumberTree.cxx30
-rw-r--r--sw/source/core/access/acccontext.cxx24
-rw-r--r--sw/source/core/access/acccontext.hxx8
-rw-r--r--sw/source/core/access/accdoc.cxx44
-rw-r--r--sw/source/core/access/accframe.hxx4
-rw-r--r--sw/source/core/access/accframebase.cxx10
-rw-r--r--sw/source/core/access/accfrmobj.cxx50
-rw-r--r--sw/source/core/access/accfrmobjslist.cxx8
-rw-r--r--sw/source/core/access/acchyperlink.cxx4
-rw-r--r--sw/source/core/access/accmap.cxx40
-rw-r--r--sw/source/core/access/accnotextframe.cxx6
-rw-r--r--sw/source/core/access/accnotexthyperlink.cxx10
-rw-r--r--sw/source/core/access/accpage.cxx4
-rw-r--r--sw/source/core/access/accpara.cxx98
-rw-r--r--sw/source/core/access/accpara.hxx2
-rw-r--r--sw/source/core/access/accportions.cxx14
-rw-r--r--sw/source/core/access/accportions.hxx4
-rw-r--r--sw/source/core/access/accselectionhelper.cxx20
-rw-r--r--sw/source/core/access/acctable.cxx38
-rw-r--r--sw/source/core/access/acctable.hxx2
-rw-r--r--sw/source/core/access/acctextframe.cxx6
-rw-r--r--sw/source/core/access/parachangetrackinginfo.cxx24
-rw-r--r--sw/source/core/access/textmarkuphelper.cxx10
-rw-r--r--sw/source/core/attr/cellatr.cxx8
-rw-r--r--sw/source/core/attr/format.cxx16
-rw-r--r--sw/source/core/attr/hints.cxx14
-rw-r--r--sw/source/core/attr/swatrset.cxx40
-rw-r--r--sw/source/core/bastyp/SwSmartTagMgr.cxx2
-rw-r--r--sw/source/core/bastyp/bparr.cxx4
-rw-r--r--sw/source/core/bastyp/breakit.cxx8
-rw-r--r--sw/source/core/bastyp/calc.cxx18
-rw-r--r--sw/source/core/bastyp/index.cxx30
-rw-r--r--sw/source/core/bastyp/init.cxx34
-rw-r--r--sw/source/core/bastyp/swcache.cxx38
-rw-r--r--sw/source/core/crsr/BlockCursor.cxx4
-rw-r--r--sw/source/core/crsr/BlockCursor.hxx2
-rw-r--r--sw/source/core/crsr/annotationmark.cxx20
-rw-r--r--sw/source/core/crsr/bookmrk.cxx22
-rw-r--r--sw/source/core/crsr/callnk.cxx14
-rw-r--r--sw/source/core/crsr/crbm.cxx2
-rw-r--r--sw/source/core/crsr/crsrsh.cxx144
-rw-r--r--sw/source/core/crsr/crstrvl.cxx172
-rw-r--r--sw/source/core/crsr/findattr.cxx38
-rw-r--r--sw/source/core/crsr/findcoll.cxx4
-rw-r--r--sw/source/core/crsr/findfmt.cxx2
-rw-r--r--sw/source/core/crsr/findtxt.cxx20
-rw-r--r--sw/source/core/crsr/pam.cxx80
-rw-r--r--sw/source/core/crsr/swcrsr.cxx58
-rw-r--r--sw/source/core/crsr/trvlcol.cxx10
-rw-r--r--sw/source/core/crsr/trvlfnfl.cxx30
-rw-r--r--sw/source/core/crsr/trvlreg.cxx14
-rw-r--r--sw/source/core/crsr/trvltbl.cxx68
-rw-r--r--sw/source/core/crsr/viscrs.cxx20
-rw-r--r--sw/source/core/doc/CntntIdxStore.cxx4
-rw-r--r--sw/source/core/doc/DocumentChartDataProviderManager.cxx8
-rw-r--r--sw/source/core/doc/DocumentContentOperationsManager.cxx158
-rw-r--r--sw/source/core/doc/DocumentDeviceManager.cxx12
-rw-r--r--sw/source/core/doc/DocumentDrawModelManager.cxx4
-rw-r--r--sw/source/core/doc/DocumentFieldsManager.cxx70
-rw-r--r--sw/source/core/doc/DocumentLayoutManager.cxx28
-rw-r--r--sw/source/core/doc/DocumentLinksAdministrationManager.cxx38
-rw-r--r--sw/source/core/doc/DocumentListItemsManager.cxx6
-rw-r--r--sw/source/core/doc/DocumentListsManager.cxx18
-rw-r--r--sw/source/core/doc/DocumentRedlineManager.cxx166
-rw-r--r--sw/source/core/doc/DocumentSettingManager.cxx2
-rw-r--r--sw/source/core/doc/DocumentStatisticsManager.cxx2
-rw-r--r--sw/source/core/doc/DocumentStylePoolManager.cxx22
-rw-r--r--sw/source/core/doc/DocumentTimerManager.cxx8
-rw-r--r--sw/source/core/doc/SwStyleNameMapper.cxx94
-rw-r--r--sw/source/core/doc/acmplwrd.cxx2
-rw-r--r--sw/source/core/doc/dbgoutsw.cxx24
-rw-r--r--sw/source/core/doc/doc.cxx52
-rw-r--r--sw/source/core/doc/docbasic.cxx12
-rw-r--r--sw/source/core/doc/docbm.cxx44
-rw-r--r--sw/source/core/doc/docchart.cxx10
-rw-r--r--sw/source/core/doc/doccomp.cxx40
-rw-r--r--sw/source/core/doc/doccorr.cxx12
-rw-r--r--sw/source/core/doc/docdesc.cxx16
-rw-r--r--sw/source/core/doc/docdraw.cxx24
-rw-r--r--sw/source/core/doc/docedt.cxx24
-rw-r--r--sw/source/core/doc/docfld.cxx32
-rw-r--r--sw/source/core/doc/docfly.cxx54
-rw-r--r--sw/source/core/doc/docfmt.cxx42
-rw-r--r--sw/source/core/doc/docftn.cxx20
-rw-r--r--sw/source/core/doc/docglbl.cxx24
-rw-r--r--sw/source/core/doc/docglos.cxx8
-rw-r--r--sw/source/core/doc/doclay.cxx74
-rw-r--r--sw/source/core/doc/docnew.cxx60
-rw-r--r--sw/source/core/doc/docnum.cxx102
-rw-r--r--sw/source/core/doc/docredln.cxx70
-rw-r--r--sw/source/core/doc/docruby.cxx6
-rw-r--r--sw/source/core/doc/docsort.cxx58
-rw-r--r--sw/source/core/doc/doctxm.cxx92
-rw-r--r--sw/source/core/doc/extinput.cxx8
-rw-r--r--sw/source/core/doc/fmtcol.cxx24
-rw-r--r--sw/source/core/doc/ftnidx.cxx4
-rw-r--r--sw/source/core/doc/gctable.cxx22
-rw-r--r--sw/source/core/doc/htmltbl.cxx14
-rw-r--r--sw/source/core/doc/notxtfrm.cxx16
-rw-r--r--sw/source/core/doc/number.cxx36
-rw-r--r--sw/source/core/doc/swserv.cxx22
-rw-r--r--sw/source/core/doc/swstylemanager.cxx8
-rw-r--r--sw/source/core/doc/swstylemanager.hxx2
-rw-r--r--sw/source/core/doc/tblafmt.cxx20
-rw-r--r--sw/source/core/doc/tblcpy.cxx36
-rw-r--r--sw/source/core/doc/tblrwcl.cxx134
-rw-r--r--sw/source/core/doc/textboxhelper.cxx10
-rw-r--r--sw/source/core/doc/visiturl.cxx6
-rw-r--r--sw/source/core/docnode/finalthreadmanager.cxx44
-rw-r--r--sw/source/core/docnode/ndcopy.cxx14
-rw-r--r--sw/source/core/docnode/ndnotxt.cxx8
-rw-r--r--sw/source/core/docnode/ndsect.cxx66
-rw-r--r--sw/source/core/docnode/ndtbl.cxx314
-rw-r--r--sw/source/core/docnode/ndtbl1.cxx74
-rw-r--r--sw/source/core/docnode/node.cxx140
-rw-r--r--sw/source/core/docnode/node2lay.cxx50
-rw-r--r--sw/source/core/docnode/nodes.cxx56
-rw-r--r--sw/source/core/docnode/section.cxx52
-rw-r--r--sw/source/core/docnode/swbaslnk.cxx18
-rw-r--r--sw/source/core/docnode/threadmanager.cxx2
-rw-r--r--sw/source/core/draw/dcontact.cxx70
-rw-r--r--sw/source/core/draw/dflyobj.cxx6
-rw-r--r--sw/source/core/draw/dpage.cxx12
-rw-r--r--sw/source/core/draw/drawdoc.cxx2
-rw-r--r--sw/source/core/draw/dview.cxx34
-rw-r--r--sw/source/core/edit/acorrect.cxx10
-rw-r--r--sw/source/core/edit/autofmt.cxx44
-rw-r--r--sw/source/core/edit/edatmisc.cxx14
-rw-r--r--sw/source/core/edit/edattr.cxx16
-rw-r--r--sw/source/core/edit/eddel.cxx22
-rw-r--r--sw/source/core/edit/edfcol.cxx10
-rw-r--r--sw/source/core/edit/edfld.cxx20
-rw-r--r--sw/source/core/edit/edfmt.cxx2
-rw-r--r--sw/source/core/edit/edglbldc.cxx14
-rw-r--r--sw/source/core/edit/edglss.cxx8
-rw-r--r--sw/source/core/edit/editsh.cxx42
-rw-r--r--sw/source/core/edit/edlingu.cxx72
-rw-r--r--sw/source/core/edit/ednumber.cxx46
-rw-r--r--sw/source/core/edit/edredln.cxx2
-rw-r--r--sw/source/core/edit/edsect.cxx36
-rw-r--r--sw/source/core/edit/edtab.cxx26
-rw-r--r--sw/source/core/edit/edtox.cxx8
-rw-r--r--sw/source/core/edit/edundo.cxx12
-rw-r--r--sw/source/core/edit/edws.cxx2
-rw-r--r--sw/source/core/fields/authfld.cxx2
-rw-r--r--sw/source/core/fields/cellfml.cxx70
-rw-r--r--sw/source/core/fields/ddefld.cxx8
-rw-r--r--sw/source/core/fields/ddetbl.cxx2
-rw-r--r--sw/source/core/fields/docufld.cxx26
-rw-r--r--sw/source/core/fields/expfld.cxx34
-rw-r--r--sw/source/core/fields/fldbas.cxx4
-rw-r--r--sw/source/core/fields/postithelper.cxx14
-rw-r--r--sw/source/core/fields/reffld.cxx24
-rw-r--r--sw/source/core/fields/tblcalc.cxx6
-rw-r--r--sw/source/core/fields/textapi.cxx12
-rw-r--r--sw/source/core/fields/usrfld.cxx2
-rw-r--r--sw/source/core/frmedt/fecopy.cxx54
-rw-r--r--sw/source/core/frmedt/fedesc.cxx20
-rw-r--r--sw/source/core/frmedt/fefly1.cxx124
-rw-r--r--sw/source/core/frmedt/feflyole.cxx6
-rw-r--r--sw/source/core/frmedt/feshview.cxx72
-rw-r--r--sw/source/core/frmedt/fetab.cxx90
-rw-r--r--sw/source/core/frmedt/fews.cxx18
-rw-r--r--sw/source/core/frmedt/tblsel.cxx76
-rw-r--r--sw/source/core/graphic/ndgrf.cxx38
-rw-r--r--sw/source/core/inc/DocumentContentOperationsManager.hxx6
-rw-r--r--sw/source/core/inc/SwPortionHandler.hxx2
-rw-r--r--sw/source/core/inc/UndoCore.hxx4
-rw-r--r--sw/source/core/inc/UndoManager.hxx2
-rw-r--r--sw/source/core/inc/UndoTable.hxx4
-rw-r--r--sw/source/core/inc/acorrect.hxx2
-rw-r--r--sw/source/core/inc/blink.hxx2
-rw-r--r--sw/source/core/inc/bodyfrm.hxx2
-rw-r--r--sw/source/core/inc/cellfrm.hxx6
-rw-r--r--sw/source/core/inc/cntfrm.hxx4
-rw-r--r--sw/source/core/inc/dbg_lay.hxx2
-rw-r--r--sw/source/core/inc/docfld.hxx24
-rw-r--r--sw/source/core/inc/docsort.hxx10
-rw-r--r--sw/source/core/inc/doctxm.hxx18
-rw-r--r--sw/source/core/inc/drawfont.hxx16
-rw-r--r--sw/source/core/inc/dview.hxx4
-rw-r--r--sw/source/core/inc/flowfrm.hxx16
-rw-r--r--sw/source/core/inc/flyfrm.hxx14
-rw-r--r--sw/source/core/inc/flyfrms.hxx2
-rw-r--r--sw/source/core/inc/frame.hxx38
-rw-r--r--sw/source/core/inc/frminf.hxx2
-rw-r--r--sw/source/core/inc/frmtool.hxx20
-rw-r--r--sw/source/core/inc/ftnboss.hxx4
-rw-r--r--sw/source/core/inc/ftnfrm.hxx4
-rw-r--r--sw/source/core/inc/hffrm.hxx2
-rw-r--r--sw/source/core/inc/layact.hxx2
-rw-r--r--sw/source/core/inc/laycache.hxx4
-rw-r--r--sw/source/core/inc/layfrm.hxx10
-rw-r--r--sw/source/core/inc/mvsave.hxx10
-rw-r--r--sw/source/core/inc/node2lay.hxx4
-rw-r--r--sw/source/core/inc/notxtfrm.hxx12
-rw-r--r--sw/source/core/inc/objectformatter.hxx12
-rw-r--r--sw/source/core/inc/pagefrm.hxx10
-rw-r--r--sw/source/core/inc/prevwpage.hxx2
-rw-r--r--sw/source/core/inc/rootfrm.hxx16
-rw-r--r--sw/source/core/inc/rowfrm.hxx4
-rw-r--r--sw/source/core/inc/scriptinfo.hxx8
-rw-r--r--sw/source/core/inc/sectfrm.hxx10
-rw-r--r--sw/source/core/inc/swcache.hxx12
-rw-r--r--sw/source/core/inc/swfont.hxx70
-rw-r--r--sw/source/core/inc/tabfrm.hxx12
-rw-r--r--sw/source/core/inc/tblrwcl.hxx14
-rw-r--r--sw/source/core/inc/threadmanager.hxx2
-rw-r--r--sw/source/core/inc/txmsrt.hxx2
-rw-r--r--sw/source/core/inc/txtfrm.hxx14
-rw-r--r--sw/source/core/inc/unobookmark.hxx4
-rw-r--r--sw/source/core/inc/unofield.hxx2
-rw-r--r--sw/source/core/inc/unometa.hxx2
-rw-r--r--sw/source/core/inc/unosection.hxx2
-rw-r--r--sw/source/core/inc/viewimp.hxx24
-rw-r--r--sw/source/core/inc/wrong.hxx6
-rw-r--r--sw/source/core/layout/anchoreddrawobject.cxx4
-rw-r--r--sw/source/core/layout/anchoredobject.cxx18
-rw-r--r--sw/source/core/layout/atrfrm.cxx108
-rw-r--r--sw/source/core/layout/calcmove.cxx70
-rw-r--r--sw/source/core/layout/colfrm.cxx22
-rw-r--r--sw/source/core/layout/dbg_lay.cxx16
-rw-r--r--sw/source/core/layout/dumpfilter.cxx4
-rw-r--r--sw/source/core/layout/findfrm.cxx152
-rw-r--r--sw/source/core/layout/flowfrm.cxx122
-rw-r--r--sw/source/core/layout/fly.cxx68
-rw-r--r--sw/source/core/layout/flycnt.cxx66
-rw-r--r--sw/source/core/layout/flyincnt.cxx2
-rw-r--r--sw/source/core/layout/flylay.cxx26
-rw-r--r--sw/source/core/layout/frmtool.cxx124
-rw-r--r--sw/source/core/layout/ftnfrm.cxx158
-rw-r--r--sw/source/core/layout/hffrm.cxx2
-rw-r--r--sw/source/core/layout/layact.cxx58
-rw-r--r--sw/source/core/layout/laycache.cxx30
-rw-r--r--sw/source/core/layout/layouter.cxx22
-rw-r--r--sw/source/core/layout/newfrm.cxx44
-rw-r--r--sw/source/core/layout/objectformatter.cxx10
-rw-r--r--sw/source/core/layout/objectformatterlayfrm.cxx4
-rw-r--r--sw/source/core/layout/objectformattertxtfrm.cxx14
-rw-r--r--sw/source/core/layout/pagechg.cxx58
-rw-r--r--sw/source/core/layout/pagedesc.cxx24
-rw-r--r--sw/source/core/layout/paintfrm.cxx234
-rw-r--r--sw/source/core/layout/sectfrm.cxx156
-rw-r--r--sw/source/core/layout/softpagebreak.cxx2
-rw-r--r--sw/source/core/layout/sortedobjs.cxx2
-rw-r--r--sw/source/core/layout/ssfrm.cxx8
-rw-r--r--sw/source/core/layout/tabfrm.cxx132
-rw-r--r--sw/source/core/layout/trvlfrm.cxx92
-rw-r--r--sw/source/core/layout/virtoutp.cxx6
-rw-r--r--sw/source/core/layout/virtoutp.hxx2
-rw-r--r--sw/source/core/layout/wsfrm.cxx100
-rw-r--r--sw/source/core/objectpositioning/anchoredobjectposition.cxx10
-rw-r--r--sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx18
-rw-r--r--sw/source/core/ole/ndole.cxx38
-rw-r--r--sw/source/core/para/paratr.cxx6
-rw-r--r--sw/source/core/sw3io/swacorr.cxx2
-rw-r--r--sw/source/core/swg/SwXMLSectionList.cxx4
-rw-r--r--sw/source/core/swg/SwXMLTextBlocks.cxx14
-rw-r--r--sw/source/core/swg/SwXMLTextBlocks1.cxx12
-rw-r--r--sw/source/core/swg/swblocks.cxx6
-rw-r--r--sw/source/core/table/swnewtable.cxx50
-rw-r--r--sw/source/core/table/swtable.cxx132
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx24
-rw-r--r--sw/source/core/text/atrstck.cxx20
-rw-r--r--sw/source/core/text/blink.cxx2
-rw-r--r--sw/source/core/text/frmcrsr.cxx18
-rw-r--r--sw/source/core/text/frmform.cxx32
-rw-r--r--sw/source/core/text/frminf.cxx2
-rw-r--r--sw/source/core/text/frmpaint.cxx36
-rw-r--r--sw/source/core/text/guess.cxx4
-rw-r--r--sw/source/core/text/guess.hxx4
-rw-r--r--sw/source/core/text/inftxt.cxx132
-rw-r--r--sw/source/core/text/inftxt.hxx20
-rw-r--r--sw/source/core/text/itradj.cxx20
-rw-r--r--sw/source/core/text/itratr.cxx38
-rw-r--r--sw/source/core/text/itratr.hxx22
-rw-r--r--sw/source/core/text/itrcrsr.cxx14
-rw-r--r--sw/source/core/text/itrform2.cxx76
-rw-r--r--sw/source/core/text/itrform2.hxx2
-rw-r--r--sw/source/core/text/itrpaint.cxx24
-rw-r--r--sw/source/core/text/itrpaint.hxx2
-rw-r--r--sw/source/core/text/itrtxt.cxx18
-rw-r--r--sw/source/core/text/itrtxt.hxx16
-rw-r--r--sw/source/core/text/noteurl.cxx2
-rw-r--r--sw/source/core/text/pordrop.hxx4
-rw-r--r--sw/source/core/text/porexp.cxx6
-rw-r--r--sw/source/core/text/porfld.cxx30
-rw-r--r--sw/source/core/text/porfld.hxx6
-rw-r--r--sw/source/core/text/porfly.cxx10
-rw-r--r--sw/source/core/text/porglue.cxx10
-rw-r--r--sw/source/core/text/porlay.cxx22
-rw-r--r--sw/source/core/text/porlay.hxx12
-rw-r--r--sw/source/core/text/porlin.cxx14
-rw-r--r--sw/source/core/text/porlin.hxx2
-rw-r--r--sw/source/core/text/pormulti.cxx124
-rw-r--r--sw/source/core/text/pormulti.hxx4
-rw-r--r--sw/source/core/text/porrst.cxx10
-rw-r--r--sw/source/core/text/portxt.cxx22
-rw-r--r--sw/source/core/text/redlnitr.cxx16
-rw-r--r--sw/source/core/text/redlnitr.hxx8
-rw-r--r--sw/source/core/text/txtcache.cxx4
-rw-r--r--sw/source/core/text/txtcache.hxx2
-rw-r--r--sw/source/core/text/txtdrop.cxx20
-rw-r--r--sw/source/core/text/txtfld.cxx28
-rw-r--r--sw/source/core/text/txtfly.cxx34
-rw-r--r--sw/source/core/text/txtfrm.cxx46
-rw-r--r--sw/source/core/text/txtftn.cxx72
-rw-r--r--sw/source/core/text/txthyph.cxx4
-rw-r--r--sw/source/core/text/txtinit.cxx6
-rw-r--r--sw/source/core/text/txtpaint.hxx4
-rw-r--r--sw/source/core/text/txttab.cxx10
-rw-r--r--sw/source/core/text/wrong.cxx12
-rw-r--r--sw/source/core/text/xmldump.cxx18
-rw-r--r--sw/source/core/tox/tox.cxx14
-rw-r--r--sw/source/core/tox/txmsrt.cxx14
-rw-r--r--sw/source/core/txtnode/SwGrammarContact.cxx14
-rw-r--r--sw/source/core/txtnode/atrfld.cxx70
-rw-r--r--sw/source/core/txtnode/atrflyin.cxx6
-rw-r--r--sw/source/core/txtnode/atrftn.cxx28
-rw-r--r--sw/source/core/txtnode/atrref.cxx14
-rw-r--r--sw/source/core/txtnode/atrtox.cxx6
-rw-r--r--sw/source/core/txtnode/fmtatr2.cxx46
-rw-r--r--sw/source/core/txtnode/fntcache.cxx40
-rw-r--r--sw/source/core/txtnode/fntcap.cxx24
-rw-r--r--sw/source/core/txtnode/ndhints.cxx6
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx204
-rw-r--r--sw/source/core/txtnode/swfntcch.cxx4
-rw-r--r--sw/source/core/txtnode/swfont.cxx36
-rw-r--r--sw/source/core/txtnode/thints.cxx88
-rw-r--r--sw/source/core/txtnode/txatbase.cxx4
-rw-r--r--sw/source/core/txtnode/txatritr.cxx6
-rw-r--r--sw/source/core/txtnode/txtatr2.cxx16
-rw-r--r--sw/source/core/txtnode/txtedt.cxx66
-rw-r--r--sw/source/core/undo/SwUndoField.cxx4
-rw-r--r--sw/source/core/undo/SwUndoFmt.cxx4
-rw-r--r--sw/source/core/undo/SwUndoPageDesc.cxx8
-rw-r--r--sw/source/core/undo/docundo.cxx10
-rw-r--r--sw/source/core/undo/rolbck.cxx46
-rw-r--r--sw/source/core/undo/unattr.cxx18
-rw-r--r--sw/source/core/undo/undel.cxx36
-rw-r--r--sw/source/core/undo/undobj.cxx32
-rw-r--r--sw/source/core/undo/undobj1.cxx12
-rw-r--r--sw/source/core/undo/undraw.cxx28
-rw-r--r--sw/source/core/undo/unins.cxx50
-rw-r--r--sw/source/core/undo/unmove.cxx6
-rw-r--r--sw/source/core/undo/unnum.cxx18
-rw-r--r--sw/source/core/undo/unovwr.cxx10
-rw-r--r--sw/source/core/undo/unredln.cxx24
-rw-r--r--sw/source/core/undo/unsect.cxx24
-rw-r--r--sw/source/core/undo/unsort.cxx6
-rw-r--r--sw/source/core/undo/unspnd.cxx4
-rw-r--r--sw/source/core/undo/untbl.cxx138
-rw-r--r--sw/source/core/undo/untblk.cxx6
-rw-r--r--sw/source/core/unocore/SwXTextDefaults.cxx4
-rw-r--r--sw/source/core/unocore/XMLRangeHelper.cxx2
-rw-r--r--sw/source/core/unocore/unobkm.cxx30
-rw-r--r--sw/source/core/unocore/unochart.cxx58
-rw-r--r--sw/source/core/unocore/unocoll.cxx48
-rw-r--r--sw/source/core/unocore/unocrsr.cxx16
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx44
-rw-r--r--sw/source/core/unocore/unodraw.cxx88
-rw-r--r--sw/source/core/unocore/unoevent.cxx12
-rw-r--r--sw/source/core/unocore/unofield.cxx78
-rw-r--r--sw/source/core/unocore/unoflatpara.cxx14
-rw-r--r--sw/source/core/unocore/unoframe.cxx282
-rw-r--r--sw/source/core/unocore/unoftn.cxx18
-rw-r--r--sw/source/core/unocore/unoidx.cxx50
-rw-r--r--sw/source/core/unocore/unomap.cxx4
-rw-r--r--sw/source/core/unocore/unoobj.cxx84
-rw-r--r--sw/source/core/unocore/unoobj2.cxx58
-rw-r--r--sw/source/core/unocore/unoparagraph.cxx36
-rw-r--r--sw/source/core/unocore/unoport.cxx24
-rw-r--r--sw/source/core/unocore/unoportenum.cxx28
-rw-r--r--sw/source/core/unocore/unoredline.cxx20
-rw-r--r--sw/source/core/unocore/unoredlines.cxx2
-rw-r--r--sw/source/core/unocore/unorefmk.cxx56
-rw-r--r--sw/source/core/unocore/unosect.cxx46
-rw-r--r--sw/source/core/unocore/unosett.cxx56
-rw-r--r--sw/source/core/unocore/unosrch.cxx100
-rw-r--r--sw/source/core/unocore/unostyle.cxx94
-rw-r--r--sw/source/core/unocore/unotbl.cxx32
-rw-r--r--sw/source/core/unocore/unotext.cxx72
-rw-r--r--sw/source/core/unocore/unotextmarkup.cxx10
-rw-r--r--sw/source/core/view/pagepreviewlayout.cxx4
-rw-r--r--sw/source/core/view/printdata.cxx4
-rw-r--r--sw/source/core/view/viewimp.cxx22
-rw-r--r--sw/source/core/view/viewpg.cxx6
-rw-r--r--sw/source/core/view/viewsh.cxx44
-rw-r--r--sw/source/core/view/vnew.cxx34
-rw-r--r--sw/source/core/view/vprint.cxx36
-rw-r--r--sw/source/filter/ascii/ascatr.cxx4
-rw-r--r--sw/source/filter/ascii/parasc.cxx12
-rw-r--r--sw/source/filter/basflt/fltini.cxx38
-rw-r--r--sw/source/filter/basflt/fltshell.cxx20
-rw-r--r--sw/source/filter/basflt/iodetect.cxx6
-rw-r--r--sw/source/filter/basflt/shellio.cxx56
-rw-r--r--sw/source/filter/html/css1atr.cxx322
-rw-r--r--sw/source/filter/html/htmlatr.cxx280
-rw-r--r--sw/source/filter/html/htmlbas.cxx2
-rw-r--r--sw/source/filter/html/htmlcss1.cxx56
-rw-r--r--sw/source/filter/html/htmlctxt.cxx10
-rw-r--r--sw/source/filter/html/htmldrawreader.cxx6
-rw-r--r--sw/source/filter/html/htmldrawwriter.cxx8
-rw-r--r--sw/source/filter/html/htmlfld.cxx28
-rw-r--r--sw/source/filter/html/htmlfldw.cxx18
-rw-r--r--sw/source/filter/html/htmlflywriter.cxx58
-rw-r--r--sw/source/filter/html/htmlform.cxx50
-rw-r--r--sw/source/filter/html/htmlforw.cxx20
-rw-r--r--sw/source/filter/html/htmlftn.cxx12
-rw-r--r--sw/source/filter/html/htmlgrin.cxx30
-rw-r--r--sw/source/filter/html/htmlnum.cxx2
-rw-r--r--sw/source/filter/html/htmlnum.hxx6
-rw-r--r--sw/source/filter/html/htmlnumreader.cxx14
-rw-r--r--sw/source/filter/html/htmlnumwriter.cxx8
-rw-r--r--sw/source/filter/html/htmlplug.cxx20
-rw-r--r--sw/source/filter/html/htmlsect.cxx24
-rw-r--r--sw/source/filter/html/htmltab.cxx140
-rw-r--r--sw/source/filter/html/htmltabw.cxx12
-rw-r--r--sw/source/filter/html/parcss1.cxx18
-rw-r--r--sw/source/filter/html/parcss1.hxx6
-rw-r--r--sw/source/filter/html/svxcss1.cxx68
-rw-r--r--sw/source/filter/html/svxcss1.hxx4
-rw-r--r--sw/source/filter/html/swcss1.hxx4
-rw-r--r--sw/source/filter/html/swhtml.cxx152
-rw-r--r--sw/source/filter/html/swhtml.hxx42
-rw-r--r--sw/source/filter/html/wrthtml.cxx74
-rw-r--r--sw/source/filter/html/wrthtml.hxx30
-rw-r--r--sw/source/filter/inc/fltshell.hxx12
-rw-r--r--sw/source/filter/rtf/swparrtf.cxx4
-rw-r--r--sw/source/filter/writer/writer.cxx28
-rw-r--r--sw/source/filter/writer/wrt_fn.cxx14
-rw-r--r--sw/source/filter/writer/wrtswtbl.cxx16
-rw-r--r--sw/source/filter/ww8/WW8TableInfo.cxx70
-rw-r--r--sw/source/filter/ww8/WW8TableInfo.hxx4
-rw-r--r--sw/source/filter/ww8/attributeoutputbase.hxx4
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx148
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.hxx8
-rw-r--r--sw/source/filter/ww8/docxexport.cxx28
-rw-r--r--sw/source/filter/ww8/docxexport.hxx4
-rw-r--r--sw/source/filter/ww8/docxexportfilter.cxx8
-rw-r--r--sw/source/filter/ww8/docxexportfilter.hxx8
-rw-r--r--sw/source/filter/ww8/docxfootnotes.hxx2
-rw-r--r--sw/source/filter/ww8/docxsdrexport.cxx42
-rw-r--r--sw/source/filter/ww8/docxtablestyleexport.cxx8
-rw-r--r--sw/source/filter/ww8/fields.cxx28
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx64
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.hxx6
-rw-r--r--sw/source/filter/ww8/rtfexport.cxx44
-rw-r--r--sw/source/filter/ww8/rtfexport.hxx4
-rw-r--r--sw/source/filter/ww8/rtfexportfilter.cxx4
-rw-r--r--sw/source/filter/ww8/rtfsdrexport.cxx12
-rw-r--r--sw/source/filter/ww8/rtfsdrexport.hxx2
-rw-r--r--sw/source/filter/ww8/rtfstringbuffer.cxx6
-rw-r--r--sw/source/filter/ww8/styles.cxx2
-rw-r--r--sw/source/filter/ww8/writerhelper.cxx46
-rw-r--r--sw/source/filter/ww8/writerhelper.hxx4
-rw-r--r--sw/source/filter/ww8/writerwordglue.cxx6
-rw-r--r--sw/source/filter/ww8/wrtw8esh.cxx64
-rw-r--r--sw/source/filter/ww8/wrtw8nds.cxx104
-rw-r--r--sw/source/filter/ww8/wrtw8num.cxx8
-rw-r--r--sw/source/filter/ww8/wrtw8sty.cxx40
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx194
-rw-r--r--sw/source/filter/ww8/wrtww8.hxx30
-rw-r--r--sw/source/filter/ww8/wrtww8gr.cxx24
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx90
-rw-r--r--sw/source/filter/ww8/ww8attributeoutput.hxx4
-rw-r--r--sw/source/filter/ww8/ww8glsy.cxx8
-rw-r--r--sw/source/filter/ww8/ww8glsy.hxx2
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx112
-rw-r--r--sw/source/filter/ww8/ww8graf2.cxx28
-rw-r--r--sw/source/filter/ww8/ww8par.cxx260
-rw-r--r--sw/source/filter/ww8/ww8par.hxx52
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx146
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx54
-rw-r--r--sw/source/filter/ww8/ww8par4.cxx26
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx116
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx828
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx164
-rw-r--r--sw/source/filter/ww8/ww8scan.hxx28
-rw-r--r--sw/source/filter/ww8/ww8struc.hxx4
-rw-r--r--sw/source/filter/ww8/ww8toolbar.cxx16
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.cxx46
-rw-r--r--sw/source/filter/xml/swxml.cxx34
-rw-r--r--sw/source/filter/xml/wrtxml.cxx14
-rw-r--r--sw/source/filter/xml/wrtxml.hxx2
-rw-r--r--sw/source/filter/xml/xmlbrsh.cxx4
-rw-r--r--sw/source/filter/xml/xmlexp.cxx18
-rw-r--r--sw/source/filter/xml/xmlexpit.cxx28
-rw-r--r--sw/source/filter/xml/xmlexpit.hxx2
-rw-r--r--sw/source/filter/xml/xmlfmt.cxx26
-rw-r--r--sw/source/filter/xml/xmlfonte.cxx2
-rw-r--r--sw/source/filter/xml/xmlimp.cxx66
-rw-r--r--sw/source/filter/xml/xmlimp.hxx4
-rw-r--r--sw/source/filter/xml/xmlimpit.cxx24
-rw-r--r--sw/source/filter/xml/xmliteme.cxx2
-rw-r--r--sw/source/filter/xml/xmlitemi.cxx4
-rw-r--r--sw/source/filter/xml/xmlithlp.cxx4
-rw-r--r--sw/source/filter/xml/xmlitmap.hxx2
-rw-r--r--sw/source/filter/xml/xmlitmpr.cxx2
-rw-r--r--sw/source/filter/xml/xmlmeta.cxx26
-rw-r--r--sw/source/filter/xml/xmlscript.cxx2
-rw-r--r--sw/source/filter/xml/xmltble.cxx42
-rw-r--r--sw/source/filter/xml/xmltbli.cxx138
-rw-r--r--sw/source/filter/xml/xmltbli.hxx20
-rw-r--r--sw/source/filter/xml/xmltext.cxx4
-rw-r--r--sw/source/filter/xml/xmltexte.cxx6
-rw-r--r--sw/source/filter/xml/xmltexti.cxx56
-rw-r--r--sw/source/ui/chrdlg/break.cxx2
-rw-r--r--sw/source/ui/chrdlg/chardlg.cxx24
-rw-r--r--sw/source/ui/chrdlg/drpcps.cxx6
-rw-r--r--sw/source/ui/chrdlg/numpara.cxx8
-rw-r--r--sw/source/ui/chrdlg/pardlg.cxx6
-rw-r--r--sw/source/ui/chrdlg/swuiccoll.cxx12
-rw-r--r--sw/source/ui/config/mailconfigpage.cxx2
-rw-r--r--sw/source/ui/config/optcomp.cxx6
-rw-r--r--sw/source/ui/config/optload.cxx6
-rw-r--r--sw/source/ui/config/optpage.cxx38
-rw-r--r--sw/source/ui/dbui/addresslistdialog.cxx18
-rw-r--r--sw/source/ui/dbui/createaddresslistdialog.cxx8
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx38
-rw-r--r--sw/source/ui/dbui/dbtablepreviewdialog.cxx2
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx26
-rw-r--r--sw/source/ui/dbui/mmgreetingspage.cxx6
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.cxx14
-rw-r--r--sw/source/ui/dbui/mmoutputpage.cxx20
-rw-r--r--sw/source/ui/dbui/mmoutputtypepage.cxx4
-rw-r--r--sw/source/ui/dbui/selectdbtabledialog.cxx4
-rw-r--r--sw/source/ui/dialog/ascfldlg.cxx4
-rw-r--r--sw/source/ui/dialog/docstdlg.cxx2
-rw-r--r--sw/source/ui/dialog/swdialmgr.cxx2
-rw-r--r--sw/source/ui/dialog/swdlgfact.cxx26
-rw-r--r--sw/source/ui/dialog/swdlgfact.hxx12
-rw-r--r--sw/source/ui/dialog/swuiexp.cxx2
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx48
-rw-r--r--sw/source/ui/dialog/wordcountdialog.cxx4
-rw-r--r--sw/source/ui/envelp/envfmt.cxx2
-rw-r--r--sw/source/ui/envelp/envfmt.hxx2
-rw-r--r--sw/source/ui/envelp/envlop1.cxx12
-rw-r--r--sw/source/ui/envelp/envprt.cxx2
-rw-r--r--sw/source/ui/envelp/envprt.hxx2
-rw-r--r--sw/source/ui/envelp/label1.cxx28
-rw-r--r--sw/source/ui/envelp/labelexp.cxx2
-rw-r--r--sw/source/ui/envelp/labfmt.cxx4
-rw-r--r--sw/source/ui/envelp/labfmt.hxx2
-rw-r--r--sw/source/ui/envelp/labprt.cxx2
-rw-r--r--sw/source/ui/envelp/labprt.hxx2
-rw-r--r--sw/source/ui/envelp/mailmrge.cxx2
-rw-r--r--sw/source/ui/envelp/swuilabimp.hxx8
-rw-r--r--sw/source/ui/fldui/DropDownFieldDialog.cxx2
-rw-r--r--sw/source/ui/fldui/changedb.cxx10
-rw-r--r--sw/source/ui/fldui/flddb.cxx6
-rw-r--r--sw/source/ui/fldui/flddinf.cxx12
-rw-r--r--sw/source/ui/fldui/fldedt.cxx20
-rw-r--r--sw/source/ui/fldui/fldpage.cxx12
-rw-r--r--sw/source/ui/fldui/fldpage.hxx8
-rw-r--r--sw/source/ui/fldui/fldref.cxx8
-rw-r--r--sw/source/ui/fldui/fldtdlg.cxx18
-rw-r--r--sw/source/ui/fldui/fldvar.cxx12
-rw-r--r--sw/source/ui/fldui/inpdlg.cxx8
-rw-r--r--sw/source/ui/fldui/javaedit.cxx10
-rw-r--r--sw/source/ui/fmtui/tmpdlg.cxx2
-rw-r--r--sw/source/ui/frmdlg/column.cxx46
-rw-r--r--sw/source/ui/frmdlg/cption.cxx2
-rw-r--r--sw/source/ui/frmdlg/frmdlg.cxx18
-rw-r--r--sw/source/ui/frmdlg/frmpage.cxx68
-rw-r--r--sw/source/ui/frmdlg/wrap.cxx24
-rw-r--r--sw/source/ui/index/cnttab.cxx92
-rw-r--r--sw/source/ui/index/swuiidxmrk.cxx30
-rw-r--r--sw/source/ui/misc/docfnote.cxx20
-rw-r--r--sw/source/ui/misc/glossary.cxx12
-rw-r--r--sw/source/ui/misc/insfnote.cxx8
-rw-r--r--sw/source/ui/misc/linenum.cxx2
-rw-r--r--sw/source/ui/misc/num.cxx16
-rw-r--r--sw/source/ui/misc/outline.cxx20
-rw-r--r--sw/source/ui/misc/pgfnote.cxx4
-rw-r--r--sw/source/ui/misc/pggrid.cxx2
-rw-r--r--sw/source/ui/misc/srtdlg.cxx12
-rw-r--r--sw/source/ui/misc/swmodalredlineacceptdlg.cxx2
-rw-r--r--sw/source/ui/misc/titlepage.cxx10
-rw-r--r--sw/source/ui/table/convert.cxx2
-rw-r--r--sw/source/ui/table/instable.cxx4
-rw-r--r--sw/source/ui/table/tabledlg.cxx38
-rw-r--r--sw/source/ui/table/tautofmt.cxx2
-rw-r--r--sw/source/ui/vba/vbadialog.cxx2
-rw-r--r--sw/source/ui/vba/vbadocumentproperties.cxx2
-rw-r--r--sw/source/ui/vba/vbafield.cxx28
-rw-r--r--sw/source/ui/vba/vbastyles.cxx8
-rw-r--r--sw/source/ui/vba/wordvbahelper.cxx6
-rw-r--r--sw/source/uibase/app/appenv.cxx6
-rw-r--r--sw/source/uibase/app/apphdl.cxx50
-rw-r--r--sw/source/uibase/app/applab.cxx8
-rw-r--r--sw/source/uibase/app/appopt.cxx14
-rw-r--r--sw/source/uibase/app/docsh.cxx34
-rw-r--r--sw/source/uibase/app/docsh2.cxx32
-rw-r--r--sw/source/uibase/app/docshini.cxx10
-rw-r--r--sw/source/uibase/app/docst.cxx22
-rw-r--r--sw/source/uibase/app/docstyle.cxx154
-rw-r--r--sw/source/uibase/app/mainwn.cxx12
-rw-r--r--sw/source/uibase/app/swdll.cxx6
-rw-r--r--sw/source/uibase/app/swmodul1.cxx6
-rw-r--r--sw/source/uibase/app/swmodule.cxx44
-rw-r--r--sw/source/uibase/config/StoredChapterNumbering.cxx10
-rw-r--r--sw/source/uibase/config/dbconfig.cxx4
-rw-r--r--sw/source/uibase/config/modcfg.cxx40
-rw-r--r--sw/source/uibase/config/uinums.cxx20
-rw-r--r--sw/source/uibase/config/usrpref.cxx2
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx58
-rw-r--r--sw/source/uibase/dbui/dbtree.cxx22
-rw-r--r--sw/source/uibase/dbui/maildispatcher.cxx2
-rw-r--r--sw/source/uibase/dbui/mailmergehelper.cxx2
-rw-r--r--sw/source/uibase/dbui/mmconfigitem.cxx14
-rw-r--r--sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx44
-rw-r--r--sw/source/uibase/dialog/regionsw.cxx6
-rw-r--r--sw/source/uibase/dialog/swabstdlg.cxx4
-rw-r--r--sw/source/uibase/dochdl/gloshdl.cxx16
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx106
-rw-r--r--sw/source/uibase/docvw/AnchorOverlayObject.cxx2
-rw-r--r--sw/source/uibase/docvw/AnnotationWin.cxx14
-rw-r--r--sw/source/uibase/docvw/FrameControlsManager.cxx8
-rw-r--r--sw/source/uibase/docvw/HeaderFooterWin.cxx4
-rw-r--r--sw/source/uibase/docvw/OverlayRanges.cxx4
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx56
-rw-r--r--sw/source/uibase/docvw/ShadowOverlayObject.cxx2
-rw-r--r--sw/source/uibase/docvw/SidebarTxtControl.cxx2
-rw-r--r--sw/source/uibase/docvw/SidebarTxtControlAcc.cxx4
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx48
-rw-r--r--sw/source/uibase/docvw/edtdd.cxx16
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx176
-rw-r--r--sw/source/uibase/docvw/edtwin2.cxx4
-rw-r--r--sw/source/uibase/docvw/frmsidebarwincontainer.cxx2
-rw-r--r--sw/source/uibase/docvw/romenu.cxx16
-rw-r--r--sw/source/uibase/docvw/srcedtw.cxx18
-rw-r--r--sw/source/uibase/fldui/fldmgr.cxx30
-rw-r--r--sw/source/uibase/fldui/fldwrap.cxx2
-rw-r--r--sw/source/uibase/frmdlg/frmmgr.cxx6
-rw-r--r--sw/source/uibase/inc/PageBreakWin.hxx2
-rw-r--r--sw/source/uibase/inc/caption.hxx2
-rw-r--r--sw/source/uibase/inc/cfgitems.hxx10
-rw-r--r--sw/source/uibase/inc/chrdlg.hxx2
-rw-r--r--sw/source/uibase/inc/colex.hxx4
-rw-r--r--sw/source/uibase/inc/content.hxx8
-rw-r--r--sw/source/uibase/inc/conttree.hxx2
-rw-r--r--sw/source/uibase/inc/convert.hxx4
-rw-r--r--sw/source/uibase/inc/dbtree.hxx2
-rw-r--r--sw/source/uibase/inc/edtwin.hxx2
-rw-r--r--sw/source/uibase/inc/envimg.hxx2
-rw-r--r--sw/source/uibase/inc/envlop.hxx2
-rw-r--r--sw/source/uibase/inc/fldmgr.hxx20
-rw-r--r--sw/source/uibase/inc/frmdlg.hxx2
-rw-r--r--sw/source/uibase/inc/gloshdl.hxx8
-rw-r--r--sw/source/uibase/inc/instable.hxx4
-rw-r--r--sw/source/uibase/inc/labimg.hxx2
-rw-r--r--sw/source/uibase/inc/linenum.hxx2
-rw-r--r--sw/source/uibase/inc/mailmergehelper.hxx6
-rw-r--r--sw/source/uibase/inc/mailmrge.hxx2
-rw-r--r--sw/source/uibase/inc/numpara.hxx2
-rw-r--r--sw/source/uibase/inc/numprevw.hxx4
-rw-r--r--sw/source/uibase/inc/optload.hxx2
-rw-r--r--sw/source/uibase/inc/pgfnote.hxx2
-rw-r--r--sw/source/uibase/inc/pggrid.hxx2
-rw-r--r--sw/source/uibase/inc/pview.hxx4
-rw-r--r--sw/source/uibase/inc/regionsw.hxx2
-rw-r--r--sw/source/uibase/inc/srcedtw.hxx2
-rw-r--r--sw/source/uibase/inc/swdtflvr.hxx12
-rw-r--r--sw/source/uibase/inc/swuicnttab.hxx6
-rw-r--r--sw/source/uibase/inc/swuiidxmrk.hxx2
-rw-r--r--sw/source/uibase/inc/swuipardlg.hxx2
-rw-r--r--sw/source/uibase/inc/swwrtshitem.hxx2
-rw-r--r--sw/source/uibase/inc/tablemgr.hxx4
-rw-r--r--sw/source/uibase/inc/tautofmt.hxx2
-rw-r--r--sw/source/uibase/inc/tmpdlg.hxx2
-rw-r--r--sw/source/uibase/inc/toxmgr.hxx22
-rw-r--r--sw/source/uibase/inc/uiitems.hxx16
-rw-r--r--sw/source/uibase/inc/uivwimp.hxx4
-rw-r--r--sw/source/uibase/inc/unoatxt.hxx2
-rw-r--r--sw/source/uibase/inc/unomod.hxx2
-rw-r--r--sw/source/uibase/inc/unotools.hxx4
-rw-r--r--sw/source/uibase/inc/unotxvw.hxx2
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx60
-rw-r--r--sw/source/uibase/index/toxmgr.cxx18
-rw-r--r--sw/source/uibase/lingu/hhcwrp.cxx14
-rw-r--r--sw/source/uibase/lingu/hyp.cxx2
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx4
-rw-r--r--sw/source/uibase/lingu/sdrhhcwrap.cxx8
-rw-r--r--sw/source/uibase/misc/glosdoc.cxx10
-rw-r--r--sw/source/uibase/misc/glshell.cxx6
-rw-r--r--sw/source/uibase/misc/numberingtypelistbox.cxx2
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx44
-rw-r--r--sw/source/uibase/ribbar/conrect.cxx2
-rw-r--r--sw/source/uibase/ribbar/drawbase.cxx4
-rw-r--r--sw/source/uibase/ribbar/inputwin.cxx12
-rw-r--r--sw/source/uibase/ribbar/tbxanchr.cxx10
-rw-r--r--sw/source/uibase/ribbar/workctrl.cxx8
-rw-r--r--sw/source/uibase/shells/annotsh.cxx32
-rw-r--r--sw/source/uibase/shells/basesh.cxx66
-rw-r--r--sw/source/uibase/shells/drawdlg.cxx8
-rw-r--r--sw/source/uibase/shells/drawsh.cxx16
-rw-r--r--sw/source/uibase/shells/drformsh.cxx2
-rw-r--r--sw/source/uibase/shells/drwbassh.cxx40
-rw-r--r--sw/source/uibase/shells/drwtxtex.cxx6
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx16
-rw-r--r--sw/source/uibase/shells/frmsh.cxx34
-rw-r--r--sw/source/uibase/shells/grfsh.cxx14
-rw-r--r--sw/source/uibase/shells/langhelper.cxx12
-rw-r--r--sw/source/uibase/shells/mediash.cxx2
-rw-r--r--sw/source/uibase/shells/tabsh.cxx30
-rw-r--r--sw/source/uibase/shells/textfld.cxx26
-rw-r--r--sw/source/uibase/shells/textglos.cxx2
-rw-r--r--sw/source/uibase/shells/textidx.cxx12
-rw-r--r--sw/source/uibase/shells/textsh.cxx16
-rw-r--r--sw/source/uibase/shells/textsh1.cxx20
-rw-r--r--sw/source/uibase/shells/textsh2.cxx16
-rw-r--r--sw/source/uibase/shells/txtattr.cxx14
-rw-r--r--sw/source/uibase/shells/txtcrsr.cxx16
-rw-r--r--sw/source/uibase/shells/txtnum.cxx22
-rw-r--r--sw/source/uibase/sidebar/PageColumnControl.cxx20
-rw-r--r--sw/source/uibase/sidebar/PageMarginControl.cxx10
-rw-r--r--sw/source/uibase/sidebar/PageOrientationControl.cxx8
-rw-r--r--sw/source/uibase/sidebar/PagePropertyPanel.cxx32
-rw-r--r--sw/source/uibase/sidebar/PageSizeControl.cxx2
-rw-r--r--sw/source/uibase/sidebar/StylePresetsPanel.cxx10
-rw-r--r--sw/source/uibase/sidebar/SwPanelFactory.cxx10
-rw-r--r--sw/source/uibase/sidebar/ThemePanel.cxx10
-rw-r--r--sw/source/uibase/sidebar/WrapPropertyPanel.cxx10
-rw-r--r--sw/source/uibase/table/chartins.cxx4
-rw-r--r--sw/source/uibase/table/tablemgr.cxx2
-rw-r--r--sw/source/uibase/table/tablepg.hxx6
-rw-r--r--sw/source/uibase/uiview/formatclipboard.cxx38
-rw-r--r--sw/source/uibase/uiview/pview.cxx22
-rw-r--r--sw/source/uibase/uiview/srcview.cxx4
-rw-r--r--sw/source/uibase/uiview/swcli.cxx6
-rw-r--r--sw/source/uibase/uiview/uivwimp.cxx14
-rw-r--r--sw/source/uibase/uiview/view.cxx52
-rw-r--r--sw/source/uibase/uiview/view0.cxx4
-rw-r--r--sw/source/uibase/uiview/view1.cxx2
-rw-r--r--sw/source/uibase/uiview/view2.cxx28
-rw-r--r--sw/source/uibase/uiview/viewcoll.cxx2
-rw-r--r--sw/source/uibase/uiview/viewdlg.cxx2
-rw-r--r--sw/source/uibase/uiview/viewdlg2.cxx2
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx20
-rw-r--r--sw/source/uibase/uiview/viewfunc.hxx4
-rw-r--r--sw/source/uibase/uiview/viewling.cxx16
-rw-r--r--sw/source/uibase/uiview/viewmdi.cxx6
-rw-r--r--sw/source/uibase/uiview/viewport.cxx2
-rw-r--r--sw/source/uibase/uiview/viewprt.cxx6
-rw-r--r--sw/source/uibase/uiview/viewsrch.cxx22
-rw-r--r--sw/source/uibase/uiview/viewstat.cxx26
-rw-r--r--sw/source/uibase/uiview/viewtab.cxx12
-rw-r--r--sw/source/uibase/uno/SwXDocumentSettings.cxx26
-rw-r--r--sw/source/uibase/uno/SwXFilterOptions.cxx6
-rw-r--r--sw/source/uibase/uno/dlelstnr.cxx10
-rw-r--r--sw/source/uibase/uno/unoatxt.cxx52
-rw-r--r--sw/source/uibase/uno/unodefaults.cxx2
-rw-r--r--sw/source/uibase/uno/unodispatch.cxx12
-rw-r--r--sw/source/uibase/uno/unofreg.cxx2
-rw-r--r--sw/source/uibase/uno/unomailmerge.cxx22
-rw-r--r--sw/source/uibase/uno/unomod.cxx20
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx124
-rw-r--r--sw/source/uibase/uno/unotxvw.cxx46
-rw-r--r--sw/source/uibase/utlui/content.cxx92
-rw-r--r--sw/source/uibase/utlui/glbltree.cxx106
-rw-r--r--sw/source/uibase/utlui/gloslst.cxx2
-rw-r--r--sw/source/uibase/utlui/initui.cxx16
-rw-r--r--sw/source/uibase/utlui/navipi.cxx64
-rw-r--r--sw/source/uibase/utlui/numfmtlb.cxx8
-rw-r--r--sw/source/uibase/utlui/prcntfld.cxx2
-rw-r--r--sw/source/uibase/utlui/tmplctrl.cxx2
-rw-r--r--sw/source/uibase/utlui/uiitems.cxx2
-rw-r--r--sw/source/uibase/utlui/uitool.cxx16
-rw-r--r--sw/source/uibase/utlui/unotools.cxx8
-rw-r--r--sw/source/uibase/utlui/viewlayoutctrl.cxx2
-rw-r--r--sw/source/uibase/wrtsh/delete.cxx8
-rw-r--r--sw/source/uibase/wrtsh/move.cxx16
-rw-r--r--sw/source/uibase/wrtsh/select.cxx10
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx46
-rw-r--r--sw/source/uibase/wrtsh/wrtsh2.cxx18
-rw-r--r--sw/source/uibase/wrtsh/wrtsh3.cxx6
-rw-r--r--sw/source/uibase/wrtsh/wrtundo.cxx2
896 files changed, 11260 insertions, 11260 deletions
diff --git a/sw/inc/HandleAnchorNodeChg.hxx b/sw/inc/HandleAnchorNodeChg.hxx
index d8331acb9cf9..cba6d26e545d 100644
--- a/sw/inc/HandleAnchorNodeChg.hxx
+++ b/sw/inc/HandleAnchorNodeChg.hxx
@@ -49,7 +49,7 @@ public:
*/
SwHandleAnchorNodeChg( SwFlyFrameFormat& _rFlyFrameFormat,
const SwFormatAnchor& _rNewAnchorFormat,
- SwFlyFrm* _pKeepThisFlyFrm = 0L );
+ SwFlyFrm* _pKeepThisFlyFrm = nullptr );
/** calls <SwFlyFrameFormat::MakeFrms>, if re-creation of fly frames is necessary.
diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx
index 206617f0a034..d30d4c3aa5a3 100644
--- a/sw/inc/IDocumentUndoRedo.hxx
+++ b/sw/inc/IDocumentUndoRedo.hxx
@@ -157,7 +157,7 @@ public:
@return true if there is a Redo action, false if none
*/
virtual bool GetFirstRedoInfo(OUString *const o_pStr,
- SwUndoId *const o_pId = 0) const = 0;
+ SwUndoId *const o_pId = nullptr) const = 0;
/** Get comments of Redo actions.
@return comments of all top-level Redo actions.
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx
index aab0a46f9194..dbf4ce38d1b6 100644
--- a/sw/inc/PostItMgr.hxx
+++ b/sw/inc/PostItMgr.hxx
@@ -92,7 +92,7 @@ struct FieldShadowState
const SwPostItField* mpShadowField;
bool bCursor;
bool bMouse;
- FieldShadowState(): mpShadowField(0),bCursor(false),bMouse(false)
+ FieldShadowState(): mpShadowField(nullptr),bCursor(false),bMouse(false)
{
}
};
diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx
index e549f42d79c8..a47051303379 100644
--- a/sw/inc/accmap.hxx
+++ b/sw/inc/accmap.hxx
@@ -206,7 +206,7 @@ public:
// Invalidate state of whole tree. If an action is open, this call
// is processed when the last action ends.
void InvalidateStates( AccessibleStates _nStates,
- const SwFrm* _pFrm = 0 );
+ const SwFrm* _pFrm = nullptr );
void InvalidateRelationSet( const SwFrm* pMaster, const SwFrm* pFollow );
diff --git a/sw/inc/anchoreddrawobject.hxx b/sw/inc/anchoreddrawobject.hxx
index 695beed6f7ae..58f42512ca20 100644
--- a/sw/inc/anchoreddrawobject.hxx
+++ b/sw/inc/anchoreddrawobject.hxx
@@ -163,7 +163,7 @@ class SW_DLLPUBLIC SwAnchoredDrawObject : public SwAnchoredObject
provided the current object rectangle is taken.
*/
void AdjustPositioningAttr( const SwFrm* _pNewAnchorFrm,
- const SwRect* _pNewObjRect = 0L );
+ const SwRect* _pNewObjRect = nullptr );
/** method to notify background of drawing object
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index 741534d2e7b1..c8a1acd880ad 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -34,7 +34,7 @@ class BigPtrEntry
BlockInfo* pBlock;
sal_uInt16 nOffset;
public:
- BigPtrEntry() : pBlock(0), nOffset(0) {}
+ BigPtrEntry() : pBlock(nullptr), nOffset(0) {}
virtual ~BigPtrEntry() {}
inline sal_uLong GetPos() const;
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx
index 436649eb5eb8..491920e1fb13 100644
--- a/sw/inc/calc.hxx
+++ b/sw/inc/calc.hxx
@@ -137,11 +137,11 @@ struct SwCalcExp : public SwHash
const SwFieldType* pFieldType;
SwCalcExp( const OUString& rStr, const SwSbxValue& rVal,
- const SwFieldType* pFieldType = 0 );
+ const SwFieldType* pFieldType = nullptr );
};
SwHash* Find( const OUString& rSrch, SwHash* const * ppTable,
- sal_uInt16 nTableSize, sal_uInt16* pPos = 0 );
+ sal_uInt16 nTableSize, sal_uInt16* pPos = nullptr );
void DeleteHashTable( SwHash** ppTable, sal_uInt16 nTableSize );
@@ -203,12 +203,12 @@ public:
static bool Str2Double( const OUString& rStr, sal_Int32& rPos,
double& rVal,
- LocaleDataWrapper const*const pData = 0 );
+ LocaleDataWrapper const*const pData = nullptr );
static bool Str2Double( const OUString& rStr, sal_Int32& rPos,
double& rVal, SwDoc *const pDoc );
SW_DLLPUBLIC static bool IsValidVarName( const OUString& rStr,
- OUString* pValidName = 0 );
+ OUString* pValidName = nullptr );
};
#endif
diff --git a/sw/inc/ccoll.hxx b/sw/inc/ccoll.hxx
index 4eb89f1e9c74..7a4d27ce2191 100644
--- a/sw/inc/ccoll.hxx
+++ b/sw/inc/ccoll.hxx
@@ -58,7 +58,7 @@ public:
TYPEINFO_OVERRIDE();
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
static inline const CommandStruct* GetCmds() { return aCmds; }
diff --git a/sw/inc/cellatr.hxx b/sw/inc/cellatr.hxx
index 3f7ae81a3f52..ae7773deb4b0 100644
--- a/sw/inc/cellatr.hxx
+++ b/sw/inc/cellatr.hxx
@@ -37,7 +37,7 @@ public:
// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
inline SwTableBoxNumFormat& operator=( const SwTableBoxNumFormat& rAttr )
{
@@ -61,7 +61,7 @@ public:
// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
inline const SwModify* GetDefinedIn() const { return pDefinedIn; }
inline void ChgDefinedIn( const SwModify* pNew )
@@ -86,7 +86,7 @@ public:
// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
inline SwTableBoxValue& operator=( const SwTableBoxValue& rCmp )
{
diff --git a/sw/inc/cellfml.hxx b/sw/inc/cellfml.hxx
index 11386ef6d48e..a470914ddb8f 100644
--- a/sw/inc/cellfml.hxx
+++ b/sw/inc/cellfml.hxx
@@ -56,29 +56,29 @@ class SwTableFormula
typedef void (SwTableFormula:: *FnScanFormula)( const SwTable&, OUString&,
OUString&, OUString*, void* ) const;
- void BoxNmsToPtr( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void PtrToBoxNms( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void RelNmsToBoxNms( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void RelBoxNmsToPtr( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void BoxNmsToRelNm( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void _MakeFormula( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void _GetFormulaBoxes( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void _HasValidBoxes( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
- void _SplitMergeBoxNm( const SwTable&, OUString&, OUString&, OUString* = 0,
- void* pPara = 0 ) const;
+ void BoxNmsToPtr( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void PtrToBoxNms( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void RelNmsToBoxNms( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void RelBoxNmsToPtr( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void BoxNmsToRelNm( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void _MakeFormula( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void _GetFormulaBoxes( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void _HasValidBoxes( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
+ void _SplitMergeBoxNm( const SwTable&, OUString&, OUString&, OUString* = nullptr,
+ void* pPara = nullptr ) const;
static void GetBoxes( const SwTableBox& rStt, const SwTableBox& rEnd,
SwSelBoxes& rBoxes );
OUString ScanString( FnScanFormula fnFormula, const SwTable& rTable,
- void* = 0 ) const;
+ void* = nullptr ) const;
static const SwTable* FindTable( SwDoc& rDoc, const OUString& rNm );
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index cda2ccf0296d..6de3f8a82452 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -121,8 +121,8 @@ struct SwContentAtPos
SwContentAtPos( int eGetAtPos = 0xffff )
: eContentAtPos( (IsAttrAtPos)eGetAtPos )
{
- aFnd.pField = 0;
- pFndTextAttr = 0;
+ aFnd.pField = nullptr;
+ pFndTextAttr = nullptr;
nDist = 0; // #i23726#
}
@@ -257,7 +257,7 @@ private:
SAL_DLLPRIVATE bool LRMargin( bool, bool bAPI = false );
SAL_DLLPRIVATE bool IsAtLRMargin( bool, bool bAPI = false ) const;
- SAL_DLLPRIVATE short GetTextDirection( const Point* pPt = 0 ) const;
+ SAL_DLLPRIVATE short GetTextDirection( const Point* pPt = nullptr ) const;
SAL_DLLPRIVATE bool isInHiddenTextFrm(SwShellCrsr* pShellCrsr);
@@ -300,7 +300,7 @@ protected:
public:
TYPEINFO_OVERRIDE();
- SwCrsrShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = 0 );
+ SwCrsrShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = nullptr );
// disguised copy constructor
SwCrsrShell( SwCrsrShell& rShell, vcl::Window *pWin );
virtual ~SwCrsrShell();
@@ -378,14 +378,14 @@ public:
sal_uLong Find( const SwTextFormatColl& rFormatColl,
SwDocPositions eStart, SwDocPositions eEnd,
bool& bCancel,
- FindRanges eRng, const SwTextFormatColl* pReplFormat = 0 );
+ FindRanges eRng, const SwTextFormatColl* pReplFormat = nullptr );
sal_uLong Find( const SfxItemSet& rSet, bool bNoCollections,
SwDocPositions eStart, SwDocPositions eEnd,
bool& bCancel,
FindRanges eRng,
- const css::util::SearchOptions* pSearchOpt = 0,
- const SfxItemSet* rReplSet = 0 );
+ const css::util::SearchOptions* pSearchOpt = nullptr,
+ const SfxItemSet* rReplSet = nullptr );
// Position the Cursor
// return values:
@@ -634,10 +634,10 @@ public:
const SwShellCrsr* getShellCrsr( bool bBlock ) const
{ return (const_cast<SwCrsrShell*>(this))->getShellCrsr( bBlock ); }
- bool IsBlockMode() const { return 0 != m_pBlockCrsr; }
+ bool IsBlockMode() const { return nullptr != m_pBlockCrsr; }
// is the Crsr in a table and is the selection over 2 columns
- bool IsTableMode() const { return 0 != m_pTableCrsr; }
+ bool IsTableMode() const { return nullptr != m_pTableCrsr; }
const SwShellTableCrsr* GetTableCrsr() const { return m_pTableCrsr; }
SwShellTableCrsr* GetTableCrsr() { return m_pTableCrsr; }
@@ -656,10 +656,10 @@ public:
bool bInHeader = true );
// is point of cursor in header/footer. pbInHeader return true if it is
// in a headerframe otherwise in a footerframe
- bool IsInHeaderFooter( bool* pbInHeader = 0 ) const;
+ bool IsInHeaderFooter( bool* pbInHeader = nullptr ) const;
- bool GotoNextTOXBase( const OUString* = 0 );
- bool GotoPrevTOXBase( const OUString* = 0 );
+ bool GotoNextTOXBase( const OUString* = nullptr );
+ bool GotoPrevTOXBase( const OUString* = nullptr );
bool GotoTOXMarkBase();
// jump to the next or previous index entry
bool GotoNxtPrvTOXMark( bool bNext = true );
@@ -721,7 +721,7 @@ public:
bool GoNextSentence();
bool GoStartSentence();
bool GoEndSentence();
- bool SelectWord( const Point* pPt = 0 );
+ bool SelectWord( const Point* pPt = nullptr );
bool ExpandToSentenceBorders();
// get position from current cursor
@@ -766,7 +766,7 @@ public:
bool GetContentAtPos( const Point& rPt,
SwContentAtPos& rContentAtPos,
bool bSetCrsr = false,
- SwRect* pFieldRect = 0 );
+ SwRect* pFieldRect = nullptr );
const SwPostItField* GetPostItFieldAtCursor() const;
@@ -784,15 +784,15 @@ public:
bool IsPageAtPos( const Point &rPt ) const;
- bool SelectTextAttr( sal_uInt16 nWhich, bool bExpand, const SwTextAttr* pAttr = 0 );
+ bool SelectTextAttr( sal_uInt16 nWhich, bool bExpand, const SwTextAttr* pAttr = nullptr );
bool GotoINetAttr( const SwTextINetFormat& rAttr );
const SwFormatINetFormat* FindINetAttr( const OUString& rName ) const;
bool SelectText( const sal_Int32 nStart,
const sal_Int32 nEnd );
- bool CheckTableBoxContent( const SwPosition* pPos = 0 );
- void SaveTableBoxContent( const SwPosition* pPos = 0 );
+ bool CheckTableBoxContent( const SwPosition* pPos = nullptr );
+ void SaveTableBoxContent( const SwPosition* pPos = nullptr );
void ClearTableBoxContent();
bool EndAllTableBoxEdit();
@@ -811,9 +811,9 @@ public:
const SwRangeRedline* GotoRedline( sal_uInt16 nArrPos, bool bSelect = false );
// is cursor or the point in/over a vertical formatted text?
- bool IsInVerticalText( const Point* pPt = 0 ) const;
+ bool IsInVerticalText( const Point* pPt = nullptr ) const;
// is cursor or the point in/over a right to left formatted text?
- bool IsInRightToLeftText( const Point* pPt = 0 ) const;
+ bool IsInRightToLeftText( const Point* pPt = nullptr ) const;
static void FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage);
bool bColumnChange();
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index ca7fc51e3540..07b984077d3d 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -178,7 +178,7 @@ struct SwMergeDescriptor
bPrintAsync( false ),
bCreateSingleFile( false ),
bSubjectIsFilename( false ),
- pMailMergeConfigItem(0)
+ pMailMergeConfigItem(nullptr)
{}
};
@@ -357,7 +357,7 @@ public:
the filename returned by a file picker and additional settings dialog.
In case of success it returns the registered name, otherwise an empty string.
*/
- static OUString LoadAndRegisterDataSource(SwDocShell* pDocShell = 0);
+ static OUString LoadAndRegisterDataSource(SwDocShell* pDocShell = nullptr);
/**
Loads a data source from file and registers it.
@@ -367,16 +367,16 @@ public:
*/
static OUString LoadAndRegisterDataSource(const DBConnURITypes type, const css::uno::Any &rUnoURI,
const css::uno::Reference < css::beans::XPropertySet > *pSettings,
- const OUString &rURI, const OUString *pPrefix = 0, const OUString *pDestDir = 0,
- SwDocShell* pDocShell = 0);
+ const OUString &rURI, const OUString *pPrefix = nullptr, const OUString *pDestDir = nullptr,
+ SwDocShell* pDocShell = nullptr);
/**
Loads a data source from file and registers it.
Convenience function, which calls GetDBunoURI and has just one mandatory parameter.
In case of success it returns the registered name, otherwise an empty string.
*/
- static OUString LoadAndRegisterDataSource(const OUString& rURI, const OUString *pPrefix = 0, const OUString *pDestDir = 0,
- const css::uno::Reference < css::beans::XPropertySet > *pSettings = 0);
+ static OUString LoadAndRegisterDataSource(const OUString& rURI, const OUString *pPrefix = nullptr, const OUString *pDestDir = nullptr,
+ const css::uno::Reference < css::beans::XPropertySet > *pSettings = nullptr);
/// Load the embedded data source of the document and also register it.
void LoadAndRegisterEmbeddedDataSource(const SwDBData& rData, const SwDocShell& rDocShell);
diff --git a/sw/inc/dcontact.hxx b/sw/inc/dcontact.hxx
index b5ca6c211e0a..1b3d20bb17b4 100644
--- a/sw/inc/dcontact.hxx
+++ b/sw/inc/dcontact.hxx
@@ -400,8 +400,8 @@ class SwDrawContact : public SwContact
virtual SdrObject* GetMaster() override;
virtual void SetMaster( SdrObject* _pNewMaster ) override;
- const SwFrm* GetAnchorFrm( const SdrObject* _pDrawObj = 0L ) const;
- SwFrm* GetAnchorFrm( SdrObject* _pDrawObj = 0L );
+ const SwFrm* GetAnchorFrm( const SdrObject* _pDrawObj = nullptr ) const;
+ SwFrm* GetAnchorFrm( SdrObject* _pDrawObj = nullptr );
inline const SwPageFrm* GetPageFrm() const
{
@@ -421,7 +421,7 @@ class SwDrawContact : public SwContact
/** Inserts SdrObject in the arrays of the layout ((SwPageFrm and SwFrm).
The anchor is determined according to the attribute SwFormatAnchor.
If required the object gets unregistered with the old anchor. */
- void ConnectToLayout( const SwFormatAnchor *pAnch = 0 );
+ void ConnectToLayout( const SwFormatAnchor *pAnch = nullptr );
/** method to insert 'master' drawing object
into drawing page */
void InsertMasterIntoDrawPage();
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 46ee9e2aa953..b13679c5b73e 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -398,7 +398,7 @@ private:
SwFlyFrameFormat* _MakeFlySection( const SwPosition& rAnchPos,
const SwContentNode& rNode, RndStdIds eRequestId,
const SfxItemSet* pFlyAttrSet,
- SwFrameFormat* = 0 );
+ SwFrameFormat* = nullptr );
sal_Int8 SetFlyFrmAnchor( SwFrameFormat& rFlyFormat, SfxItemSet& rSet, bool bNewFrms );
typedef SwFormat* (SwDoc:: *FNCopyFormat)( const OUString&, SwFormat*, bool, bool );
@@ -626,7 +626,7 @@ public:
have to be surrounded completely by css::awt::Selection.
( Start < Pos < End ) !!!
(Required for Writers.) */
- SwPosFlyFrms GetAllFlyFormats( const SwPaM* = 0,
+ SwPosFlyFrms GetAllFlyFormats( const SwPaM* = nullptr,
bool bDrawAlso = false,
bool bAsCharAlso = false ) const;
@@ -649,12 +649,12 @@ public:
*/
SwFlyFrameFormat* MakeFlySection( RndStdIds eAnchorType,
const SwPosition* pAnchorPos,
- const SfxItemSet* pSet = 0,
- SwFrameFormat *pParent = 0,
+ const SfxItemSet* pSet = nullptr,
+ SwFrameFormat *pParent = nullptr,
bool bCalledFromShell = false );
SwFlyFrameFormat* MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet,
- const SwSelBoxes* pSelBoxes = 0,
- SwFrameFormat *pParent = 0 );
+ const SwSelBoxes* pSelBoxes = nullptr,
+ SwFrameFormat *pParent = nullptr );
//UUUU Helper that checks for unique items for DrawingLayer items of type NameOrIndex
// and evtl. corrects that items to ensure unique names for that type. This call may
@@ -666,7 +666,7 @@ public:
bool SetFlyFrmAttr( SwFrameFormat& rFlyFormat, SfxItemSet& rSet );
bool SetFrameFormatToFly( SwFrameFormat& rFlyFormat, SwFrameFormat& rNewFormat,
- SfxItemSet* pSet = 0, bool bKeepOrient = false );
+ SfxItemSet* pSet = nullptr, bool bKeepOrient = false );
void SetFlyFrmTitle( SwFlyFrameFormat& rFlyFrameFormat,
const OUString& sNewTitle );
void SetFlyFrmDescription( SwFlyFrameFormat& rFlyFrameFormat,
@@ -690,7 +690,7 @@ public:
css::uno::Any
Spell( SwPaM&, css::uno::Reference< css::linguistic2::XSpellChecker1 > &,
sal_uInt16* pPageCnt, sal_uInt16* pPageSt, bool bGrammarCheck,
- SwConversionArgs *pConvArgs = 0 ) const;
+ SwConversionArgs *pConvArgs = nullptr ) const;
css::uno::Reference< css::linguistic2::XHyphenatedWord >
Hyphenate( SwPaM *pPam, const Point &rCrsrPos,
@@ -708,9 +708,9 @@ public:
bool IsInHeaderFooter( const SwNodeIndex& rIdx ) const;
short GetTextDirection( const SwPosition& rPos,
- const Point* pPt = 0 ) const;
+ const Point* pPt = nullptr ) const;
bool IsInVerticalText( const SwPosition& rPos,
- const Point* pPt = 0 ) const;
+ const Point* pPt = nullptr ) const;
// Database and DB-Manager
void SetDBManager( SwDBManager* pNewMgr ) { mpDBManager = pNewMgr; }
@@ -721,7 +721,7 @@ public:
// Find out which databases are used by fields.
void GetAllUsedDB( std::vector<OUString>& rDBNameList,
- const std::vector<OUString>* pAllDBNames = 0 );
+ const std::vector<OUString>* pAllDBNames = nullptr );
void ChgDBData( const SwDBData& rNewData );
SwDBData GetDBData();
@@ -905,7 +905,7 @@ public:
// travel over PaM Ring
bool InsertGlossary( SwTextBlocks& rBlock, const OUString& rEntry,
- SwPaM& rPaM, SwCrsrShell* pShell = 0);
+ SwPaM& rPaM, SwCrsrShell* pShell = nullptr);
/** get the set of printable pages for the XRenderable API by
evaluating the respective settings (see implementation) */
@@ -945,7 +945,7 @@ public:
void DelPageDesc( const OUString & rName, bool bBroadcast = false);
void DelPageDesc( size_t i, bool bBroadcast = false );
void PreDelPageDesc(SwPageDesc * pDel);
- SwPageDesc* MakePageDesc(const OUString &rName, const SwPageDesc* pCpy = 0,
+ SwPageDesc* MakePageDesc(const OUString &rName, const SwPageDesc* pCpy = nullptr,
bool bRegardLanguage = true,
bool bBroadcast = false);
void BroadcastStyleOperation(const OUString& rName, SfxStyleFamily eFamily,
@@ -965,11 +965,11 @@ public:
// Insert/Renew table/indes
SwTOXBaseSection* InsertTableOf( const SwPosition& rPos,
const SwTOXBase& rTOX,
- const SfxItemSet* pSet = 0,
+ const SfxItemSet* pSet = nullptr,
bool bExpand = false );
const SwTOXBaseSection* InsertTableOf( sal_uLong nSttNd, sal_uLong nEndNd,
const SwTOXBase& rTOX,
- const SfxItemSet* pSet = 0 );
+ const SfxItemSet* pSet = nullptr );
static SwTOXBase* GetCurTOX( const SwPosition& rPos );
static const SwAttrSet& GetTOXBaseAttrSet(const SwTOXBase& rTOX);
@@ -1103,7 +1103,7 @@ public:
// add optional parameter <eDefaultNumberFormatPositionAndSpaceMode>
sal_uInt16 MakeNumRule( const OUString &rName,
- const SwNumRule* pCpy = 0,
+ const SwNumRule* pCpy = nullptr,
bool bBroadcast = false,
const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode =
SvxNumberFormat::LABEL_WIDTH_AND_POSITION );
@@ -1114,7 +1114,7 @@ public:
bool RenameNumRule(const OUString & aOldName, const OUString & aNewName,
bool bBroadcast = false);
bool DelNumRule( const OUString& rName, bool bBroadCast = false );
- OUString GetUniqueNumRuleName( const OUString* pChkStr = 0, bool bAutoNum = true ) const;
+ OUString GetUniqueNumRuleName( const OUString* pChkStr = nullptr, bool bAutoNum = true ) const;
void UpdateNumRule(); // Update all invalids.
void ChgNumRuleFormats( const SwNumRule& rRule );
@@ -1123,9 +1123,9 @@ public:
// Goto next/previous on same level.
static bool GotoNextNum( SwPosition&, bool bOverUpper = true,
- sal_uInt8* pUpper = 0, sal_uInt8* pLower = 0 );
+ sal_uInt8* pUpper = nullptr, sal_uInt8* pLower = nullptr );
static bool GotoPrevNum( SwPosition&, bool bOverUpper = true,
- sal_uInt8* pUpper = 0, sal_uInt8* pLower = 0 );
+ sal_uInt8* pUpper = nullptr, sal_uInt8* pLower = nullptr );
/** Searches for a text node with a numbering rule.
@@ -1190,8 +1190,8 @@ public:
const SwTable* InsertTable( const SwInsertTableOptions& rInsTableOpts, // HEADLINE_NO_BORDER
const SwPosition& rPos, sal_uInt16 nRows,
sal_uInt16 nCols, short eAdjust,
- const SwTableAutoFormat* pTAFormat = 0,
- const std::vector<sal_uInt16> *pColArr = 0,
+ const SwTableAutoFormat* pTAFormat = nullptr,
+ const std::vector<sal_uInt16> *pColArr = nullptr,
bool bCalledFromShell = false,
bool bNewModel = true );
@@ -1203,7 +1203,7 @@ public:
const SwTable* TextToTable( const SwInsertTableOptions& rInsTableOpts, // HEADLINE_NO_BORDER,
const SwPaM& rRange, sal_Unicode cCh,
short eAdjust,
- const SwTableAutoFormat* = 0 );
+ const SwTableAutoFormat* = nullptr );
// text to table conversion - API support
const SwTable* TextToTable( const std::vector< std::vector<SwNodeRange> >& rTableNodes );
@@ -1238,13 +1238,13 @@ public:
// From FEShell (for Undo and BModified).
static void GetTabCols( SwTabCols &rFill, const SwCursor* pCrsr,
- const SwCellFrm* pBoxFrm = 0 );
+ const SwCellFrm* pBoxFrm = nullptr );
void SetTabCols( const SwTabCols &rNew, bool bCurRowOnly,
- const SwCursor* pCrsr, const SwCellFrm* pBoxFrm = 0 );
+ const SwCursor* pCrsr, const SwCellFrm* pBoxFrm = nullptr );
static void GetTabRows( SwTabCols &rFill, const SwCursor* pCrsr,
- const SwCellFrm* pBoxFrm = 0 );
+ const SwCellFrm* pBoxFrm = nullptr );
void SetTabRows( const SwTabCols &rNew, bool bCurColOnly, const SwCursor* pCrsr,
- const SwCellFrm* pBoxFrm = 0 );
+ const SwCellFrm* pBoxFrm = nullptr );
// Direct access for UNO.
void SetTabCols(SwTable& rTab, const SwTabCols &rNew, const SwTabCols &rOld,
@@ -1276,15 +1276,15 @@ public:
void ClearLineNumAttrs( SwPosition & rPos );
bool InsCopyOfTable( SwPosition& rInsPos, const SwSelBoxes& rBoxes,
- const SwTable* pCpyTable = 0, bool bCpyName = false,
+ const SwTable* pCpyTable = nullptr, bool bCpyName = false,
bool bCorrPos = false );
bool UnProtectCells( const OUString& rTableName );
bool UnProtectCells( const SwSelBoxes& rBoxes );
bool UnProtectTables( const SwPaM& rPam );
bool HasTableAnyProtection( const SwPosition* pPos,
- const OUString* pTableName = 0,
- bool* pFullTableProtection = 0 );
+ const OUString* pTableName = nullptr,
+ bool* pFullTableProtection = nullptr );
// Split table at baseline position, i.e. create a new table.
bool SplitTable( const SwPosition& rPos, sal_uInt16 eMode = 0,
@@ -1312,7 +1312,7 @@ public:
/** @return names of all references that are set in document.
If array pointer is 0 return only whether a RefMark is set in document. */
- sal_uInt16 GetRefMarks( std::vector<OUString>* = 0 ) const;
+ sal_uInt16 GetRefMarks( std::vector<OUString>* = nullptr ) const;
// Insert label. If a FlyFormat is created, return it.
SwFlyFrameFormat* InsertLabel( const SwLabelType eType, const OUString &rText, const OUString& rSeparator,
@@ -1339,18 +1339,18 @@ public:
// insert section (the ODF kind of section, not the nodesarray kind)
SwSection * InsertSwSection(SwPaM const& rRange, SwSectionData &,
- SwTOXBase const*const pTOXBase = 0,
- SfxItemSet const*const pAttr = 0, bool const bUpdate = true);
+ SwTOXBase const*const pTOXBase = nullptr,
+ SfxItemSet const*const pAttr = nullptr, bool const bUpdate = true);
static sal_uInt16 IsInsRegionAvailable( const SwPaM& rRange,
- const SwNode** ppSttNd = 0 );
+ const SwNode** ppSttNd = nullptr );
static SwSection* GetCurrSection( const SwPosition& rPos );
SwSectionFormats& GetSections() { return *mpSectionFormatTable; }
const SwSectionFormats& GetSections() const { return *mpSectionFormatTable; }
SwSectionFormat *MakeSectionFormat( SwSectionFormat *pDerivedFrom );
void DelSectionFormat( SwSectionFormat *pFormat, bool bDelNodes = false );
void UpdateSection(size_t const nSect, SwSectionData &,
- SfxItemSet const*const = 0, bool const bPreventLinkUpdate = false);
- OUString GetUniqueSectionName( const OUString* pChkStr = 0 ) const;
+ SfxItemSet const*const = nullptr, bool const bPreventLinkUpdate = false);
+ OUString GetUniqueSectionName( const OUString* pChkStr = nullptr ) const;
/* @@@MAINTAINABILITY-HORROR@@@
The model should not have anything to do with a shell.
@@ -1404,11 +1404,11 @@ public:
const SwFormatINetFormat* FindINetAttr( const OUString& rName ) const;
// Call into intransparent Basic; expect possible Return String.
- bool ExecMacro( const SvxMacro& rMacro, OUString* pRet = 0, SbxArray* pArgs = 0 );
+ bool ExecMacro( const SvxMacro& rMacro, OUString* pRet = nullptr, SbxArray* pArgs = nullptr );
// Call into intransparent Basic / JavaScript.
sal_uInt16 CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEvent,
- bool bChkPtr = false, SbxArray* pArgs = 0 );
+ bool bChkPtr = false, SbxArray* pArgs = nullptr );
/** Adjust left margin via object bar (similar to adjustment of numerations).
One can either change the margin "by" adding or subtracting a given
@@ -1431,10 +1431,10 @@ public:
// Create sub-documents according to given collection.
// If no collection is given, use chapter styles for 1st level.
bool GenerateGlobalDoc( const OUString& rPath,
- const SwTextFormatColl* pSplitColl = 0 );
+ const SwTextFormatColl* pSplitColl = nullptr );
bool GenerateGlobalDoc( const OUString& rPath, int nOutlineLevel = 0 );
bool GenerateHTMLDoc( const OUString& rPath,
- const SwTextFormatColl* pSplitColl = 0 );
+ const SwTextFormatColl* pSplitColl = nullptr );
bool GenerateHTMLDoc( const OUString& rPath, int nOutlineLevel = 0 );
// Compare two documents.
@@ -1448,7 +1448,7 @@ public:
// For AutoFormat: with Undo/Redlining.
void SetTextFormatCollByAutoFormat( const SwPosition& rPos, sal_uInt16 nPoolId,
- const SfxItemSet* pSet = 0 );
+ const SfxItemSet* pSet = nullptr );
void SetFormatItemByAutoFormat( const SwPaM& rPam, const SfxItemSet& );
// Only for SW-textbloxks! Does not pay any attention to layout!
@@ -1638,7 +1638,7 @@ public:
* Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by default)
* @since 3.5
*/
- void dumpAsXml(struct _xmlTextWriter* = 0) const;
+ void dumpAsXml(struct _xmlTextWriter* = nullptr) const;
std::set<Color> GetDocColors();
std::vector< std::weak_ptr<SwUnoCrsr> > mvUnoCrsrTbl;
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index d319c70aaa19..07246188f681 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -199,7 +199,7 @@ public:
bool Insert( SwRangeRedline* p, bool bIns = true );
bool Insert( SwRangeRedline* p, sal_uInt16& rInsPos, bool bIns = true );
- bool InsertWithValidRanges( SwRangeRedline* p, sal_uInt16* pInsPos = 0 );
+ bool InsertWithValidRanges( SwRangeRedline* p, sal_uInt16* pInsPos = nullptr );
void Remove( sal_uInt16 nPos );
bool Remove( const SwRangeRedline* p );
diff --git a/sw/inc/docfac.hxx b/sw/inc/docfac.hxx
index 35827e09a4b2..cf073a9398ba 100644
--- a/sw/inc/docfac.hxx
+++ b/sw/inc/docfac.hxx
@@ -29,7 +29,7 @@ protected:
SwDoc* pDoc;
public:
- SwDocFac( SwDoc *pDoc = 0 );
+ SwDocFac( SwDoc *pDoc = nullptr );
~SwDocFac();
/// Document is created after calling Read(...).
diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx
index a5871daa85e5..bf20d9ba2015 100644
--- a/sw/inc/docsh.hxx
+++ b/sw/inc/docsh.hxx
@@ -127,19 +127,19 @@ class SW_DLLPUBLIC SwDocShell
sal_uInt16 nMask,
const bool bNew,
const OString& sPageId = OString(),
- SwWrtShell* pActShell = 0,
+ SwWrtShell* pActShell = nullptr,
const bool bBasic = false );
SAL_DLLPRIVATE bool Delete(const OUString &rName, sal_uInt16 nFamily);
SAL_DLLPRIVATE bool Hide(const OUString &rName, sal_uInt16 nFamily, bool bHidden);
SAL_DLLPRIVATE sal_uInt16 ApplyStyles(const OUString &rName,
const sal_uInt16 nFamily,
- SwWrtShell* pShell = 0,
+ SwWrtShell* pShell = nullptr,
sal_uInt16 nMode = 0);
SAL_DLLPRIVATE sal_uInt16 DoWaterCan( const OUString &rName, sal_uInt16 nFamily);
- SAL_DLLPRIVATE sal_uInt16 UpdateStyle(const OUString &rName, sal_uInt16 nFamily, SwWrtShell* pShell = 0);
+ SAL_DLLPRIVATE sal_uInt16 UpdateStyle(const OUString &rName, sal_uInt16 nFamily, SwWrtShell* pShell = nullptr);
SAL_DLLPRIVATE sal_uInt16 MakeByExample(const OUString &rName,
- sal_uInt16 nFamily, sal_uInt16 nMask, SwWrtShell* pShell = 0);
+ sal_uInt16 nFamily, sal_uInt16 nMask, SwWrtShell* pShell = nullptr);
SAL_DLLPRIVATE void SubInitNew(); ///< for InitNew and HtmlSourceMode.
@@ -192,7 +192,7 @@ public:
void ExecStyleSheet(SfxRequest&);
void GetState(SfxItemSet &);
- void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = 0 );
+ void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = nullptr );
/// returns Doc. But be careful!
inline SwDoc* GetDoc() { return m_pDoc; }
@@ -229,7 +229,7 @@ public:
/// For inserting document.
Reader* StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr,
- SwCrsrShell* pCrsrSh = 0, SwPaM* pPaM = 0);
+ SwCrsrShell* pCrsrSh = nullptr, SwPaM* pPaM = nullptr);
#if defined WNT
virtual bool DdeGetData( const OUString& rItem, const OUString& rMimeType,
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index d18bf72b8a4f..34b083efeb77 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -140,7 +140,7 @@ public:
OUString Expand( sal_uInt32 nFormat, short nOff, sal_uInt16 const nPageNumber,
sal_uInt16 const nMaxPage, const OUString& ) const;
void ChangeExpansion( SwDoc* pDoc,
- bool bVirtPageNum, const sal_Int16* pNumFormat = 0 );
+ bool bVirtPageNum, const sal_Int16* pNumFormat = nullptr );
virtual SwFieldType* Copy() const override;
};
diff --git a/sw/inc/dpage.hxx b/sw/inc/dpage.hxx
index a0a47ce8a719..cbb00fd0fab4 100644
--- a/sw/inc/dpage.hxx
+++ b/sw/inc/dpage.hxx
@@ -53,7 +53,7 @@ public:
virtual css::uno::Reference< css::uno::XInterface > createUnoPage() override;
protected:
- void lateInit(const SwDPage& rPage, SwDrawModel* pNewModel = 0);
+ void lateInit(const SwDPage& rPage, SwDrawModel* pNewModel = nullptr);
private:
SwDPage(const SwDPage& rSrcPage);
diff --git a/sw/inc/edglbldc.hxx b/sw/inc/edglbldc.hxx
index 42b3f0b1bf37..53ba14d7497a 100644
--- a/sw/inc/edglbldc.hxx
+++ b/sw/inc/edglbldc.hxx
@@ -48,9 +48,9 @@ public:
/// Query contents.
GlobalDocContentType GetType() const { return eType; }
const SwSection* GetSection() const
- { return GLBLDOC_SECTION == eType ? PTR.pSect : 0; }
+ { return GLBLDOC_SECTION == eType ? PTR.pSect : nullptr; }
const SwTOXBase* GetTOX() const
- { return GLBLDOC_TOXBASE == eType ? PTR.pTOX : 0; }
+ { return GLBLDOC_TOXBASE == eType ? PTR.pTOX : nullptr; }
sal_uLong GetDocPos() const { return nDocPos; }
/// For sorting.
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index 1469997b2b44..74605baa5749 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -156,7 +156,7 @@ class SW_DLLPUBLIC SwEditShell : public SwCrsrShell
that will be used by GetGraphic() and GetGraphicSize(). */
SAL_DLLPRIVATE SwGrfNode *_GetGrfNode() const ;
- SAL_DLLPRIVATE void DeleteSel( SwPaM& rPam, bool* pUndo = 0 );
+ SAL_DLLPRIVATE void DeleteSel( SwPaM& rPam, bool* pUndo = nullptr );
SAL_DLLPRIVATE void _SetSectionAttr( SwSectionFormat& rSectFormat, const SfxItemSet& rSet );
@@ -200,13 +200,13 @@ public:
void SetLinkUpdMode( sal_uInt16 nMode );
/// Copy content of all ranges at current position of cursor to given Shell.
- bool Copy( SwEditShell* pDestShell = 0 );
+ bool Copy( SwEditShell* pDestShell = nullptr );
/** For copying via ClipBoard:
If table is copied into table, move all cursors away from it.
Copy and Paste must be in FEShell because of FlyFrames!
Copy all selections to the document. */
- bool _CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pNdInsPos = 0 );
+ bool _CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pNdInsPos = nullptr );
long SplitNode( bool bAutoFormat = false, bool bCheckTableStart = true );
bool AppendTextNode();
@@ -295,7 +295,7 @@ public:
SwCharFormat& GetCharFormat(sal_uInt16 nFormat) const;
SwCharFormat* GetCurCharFormat() const;
void FillByEx(SwCharFormat*, bool bReset = false);
- SwCharFormat* MakeCharFormat( const OUString& rName, SwCharFormat* pDerivedFrom = 0 );
+ SwCharFormat* MakeCharFormat( const OUString& rName, SwCharFormat* pDerivedFrom = nullptr );
SwCharFormat* FindCharFormatByName( const OUString& rName ) const;
/* FormatCollections (new) - Explaining the general naming pattern:
@@ -337,7 +337,7 @@ public:
/// Add 2nd optional parameter <bResetListAttrs> - see also <SwDoc::SetTextFormatColl(..)>
void SetTextFormatColl(SwTextFormatColl*, const bool bResetListAttrs = false);
SwTextFormatColl *MakeTextFormatColl(const OUString &rFormatCollName,
- SwTextFormatColl *pDerivedFrom = 0);
+ SwTextFormatColl *pDerivedFrom = nullptr);
void FillByEx(SwTextFormatColl*, bool bReset = false);
SwTextFormatColl* FindTextFormatCollByName( const OUString& rName ) const;
@@ -381,7 +381,7 @@ public:
void ChangeDBFields( const std::vector<OUString>& rOldNames,
const OUString& rNewName );
void GetAllUsedDB( std::vector<OUString>& rDBNameList,
- std::vector<OUString>* pAllDBNames = 0 );
+ std::vector<OUString>* pAllDBNames = nullptr );
bool IsAnyDatabaseFieldInDoc()const;
@@ -419,9 +419,9 @@ public:
/// Insert content table. Renew if required.
void InsertTableOf(const SwTOXBase& rTOX,
- const SfxItemSet* pSet = 0);
+ const SfxItemSet* pSet = nullptr);
bool UpdateTableOf(const SwTOXBase& rTOX,
- const SfxItemSet* pSet = 0);
+ const SfxItemSet* pSet = nullptr);
const SwTOXBase* GetCurTOX() const;
const SwTOXBase* GetDefaultTOXBase( TOXTypes eTyp, bool bCreate = false );
void SetDefaultTOXBase(const SwTOXBase& rBase);
@@ -521,7 +521,7 @@ public:
bool SelectionHasNumber() const;
bool SelectionHasBullet() const;
- OUString GetUniqueNumRuleName( const OUString* pChkStr = 0, bool bAutoNum = true ) const;
+ OUString GetUniqueNumRuleName( const OUString* pChkStr = nullptr, bool bAutoNum = true ) const;
void ChgNumRuleFormats( const SwNumRule& rRule );
/// Set (and query if) a numbering with StartFlag starts at current PointPos.
@@ -552,10 +552,10 @@ public:
void DelAllUndoObj();
/// Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
- SwUndoId StartUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = 0 );
+ SwUndoId StartUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = nullptr );
/// Closes parenthesis of nUndoId, not used by UI.
- SwUndoId EndUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = 0 );
+ SwUndoId EndUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = nullptr );
bool GetLastUndoInfo(OUString *const o_pStr,
SwUndoId *const o_pId) const;
@@ -617,12 +617,12 @@ public:
else give a rap on the knuckles!
If a string-ptr != 0 return the respective name. */
void GetGrfNms( OUString* pGrfName, OUString* pFltName,
- const SwFlyFrameFormat* = 0 ) const;
+ const SwFlyFrameFormat* = nullptr ) const;
/// Re-read if graphic is not ok. Current graphic is replaced by the new one.
void ReRead( const OUString& rGrfName, const OUString& rFltName,
- const Graphic* pGraphic = 0,
- const GraphicObject* pGrafObj = 0 );
+ const Graphic* pGraphic = nullptr,
+ const GraphicObject* pGrafObj = nullptr );
/// Unique identification of object (for ImageMapDlg).
void *GetIMapInventor() const;
@@ -656,7 +656,7 @@ public:
including styles. */
sal_uInt16 MakeGlossary( SwTextBlocks& rToFill, const OUString& rName,
const OUString& rShortName, bool bSaveRelFile = false,
- const OUString* pOnlyText=0 );
+ const OUString* pOnlyText=nullptr );
/// Save complete content of doc as glossary.
sal_uInt16 SaveGlossaryDoc( SwTextBlocks& rGlossary, const OUString& rName,
@@ -681,7 +681,7 @@ public:
const SwTable& InsertTable( const SwInsertTableOptions& rInsTableOpts, ///< ALL_TBL_INS_ATTR
sal_uInt16 nRows, sal_uInt16 nCols,
sal_Int16 eAdj = css::text::HoriOrientation::FULL,
- const SwTableAutoFormat* pTAFormat = 0 );
+ const SwTableAutoFormat* pTAFormat = nullptr );
void InsertDDETable( const SwInsertTableOptions& rInsTableOpts, ///< HEADLINE_NO_BORDER
SwDDEFieldType* pDDEType,
@@ -695,7 +695,7 @@ public:
bool TextToTable( const SwInsertTableOptions& rInsTableOpts, ///< ALL_TBL_INS_ATTR
sal_Unicode cCh,
sal_Int16 eAdj = css::text::HoriOrientation::FULL,
- const SwTableAutoFormat* pTAFormat = 0 );
+ const SwTableAutoFormat* pTAFormat = nullptr );
bool TableToText( sal_Unicode cCh );
bool IsTextToTableAvailable() const;
@@ -715,7 +715,7 @@ public:
Can Merge checks if Prev or Next are possible.
If pointer pChkNxtPrv is passed possible direction is given. */
- bool CanMergeTable( bool bWithPrev = true, bool* pChkNxtPrv = 0 ) const;
+ bool CanMergeTable( bool bWithPrev = true, bool* pChkNxtPrv = nullptr ) const;
bool MergeTable( bool bWithPrev = true, sal_uInt16 nMode = 0 );
/// Set up InsertDB as table Undo.
@@ -725,13 +725,13 @@ public:
/// Save selections.
void SpellStart( SwDocPositions eStart, SwDocPositions eEnd,
- SwDocPositions eCurr, SwConversionArgs *pConvArgs = 0 );
+ SwDocPositions eCurr, SwConversionArgs *pConvArgs = nullptr );
/// Restore selections.
- void SpellEnd( SwConversionArgs *pConvArgs = 0, bool bRestoreSelection = true );
+ void SpellEnd( SwConversionArgs *pConvArgs = nullptr, bool bRestoreSelection = true );
css::uno::Any SpellContinue(
sal_uInt16* pPageCnt, sal_uInt16* pPageSt,
- SwConversionArgs *pConvArgs = 0 );
+ SwConversionArgs *pConvArgs = nullptr );
/** Spells on a sentence basis - the SpellPortions are needed
@return false if no error could be found. */
@@ -772,7 +772,7 @@ public:
/** @return names of all references set in document.
If ArrayPointer == 0 then return only whether a RefMark is set in document. */
- sal_uInt16 GetRefMarks( std::vector<OUString>* = 0 ) const;
+ sal_uInt16 GetRefMarks( std::vector<OUString>* = nullptr ) const;
/// Call AutoCorrect
void AutoCorrect( SvxAutoCorrect& rACorr, bool bInsertMode,
@@ -780,7 +780,7 @@ public:
bool GetPrevAutoCorrWord( SvxAutoCorrect& rACorr, OUString& rWord );
/// Set our styles according to the respective rules.
- void AutoFormat( const SvxSwAutoFormatFlags* pAFlags = 0 );
+ void AutoFormat( const SvxSwAutoFormatFlags* pAFlags = nullptr );
static SvxSwAutoFormatFlags* GetAutoFormatFlags();
static void SetAutoFormatFlags(SvxSwAutoFormatFlags *);
@@ -803,7 +803,7 @@ public:
sal_uInt16 GetLineCount( bool bActPos = true );
/// Query and set footnote-text/number. Set.. to current SSelection!
- bool GetCurFootnote( SwFormatFootnote* pToFillFootnote = 0 );
+ bool GetCurFootnote( SwFormatFootnote* pToFillFootnote = nullptr );
bool SetCurFootnote( const SwFormatFootnote& rFillFootnote );
bool HasFootnotes( bool bEndNotes = false ) const;
@@ -811,7 +811,7 @@ public:
/// @return list of all footnotes and their first portions of text.
SwSection const* InsertSection(
- SwSectionData & rNewData, SfxItemSet const*const = 0 );
+ SwSectionData & rNewData, SfxItemSet const*const = nullptr );
bool IsInsRegionAvailable() const;
const SwSection* GetCurrSection() const;
@@ -820,22 +820,22 @@ public:
a footnote the reference of which is in a columned range.
If bOutOfTab is set, the range comprising the table is searched
and not an inner one. */
- SwSection* GetAnySection( bool bOutOfTab = false, const Point* pPt = 0 );
+ SwSection* GetAnySection( bool bOutOfTab = false, const Point* pPt = nullptr );
size_t GetSectionFormatCount() const;
size_t GetSectionFormatPos(const SwSectionFormat&) const;
const SwSectionFormat& GetSectionFormat(size_t nFormat) const;
void DelSectionFormat( size_t nFormat);
void UpdateSection( size_t const nSect, SwSectionData &,
- SfxItemSet const*const = 0);
+ SfxItemSet const*const = nullptr);
bool IsAnySectionInDoc( bool bChkReadOnly = false,
bool bChkHidden = false,
bool BChkTOX = false ) const;
- OUString GetUniqueSectionName( const OUString* pChkStr = 0 ) const;
+ OUString GetUniqueSectionName( const OUString* pChkStr = nullptr ) const;
/// Set attributes.
- void SetSectionAttr(const SfxItemSet& rSet, SwSectionFormat* pSectFormat = 0);
+ void SetSectionAttr(const SfxItemSet& rSet, SwSectionFormat* pSectFormat = nullptr);
/** Search inside the cursor selection for full selected sections.
if any part of section in the selection @return 0.
@@ -927,7 +927,7 @@ public:
/// Interface for TextInputData - (for input of Japanese/Chinese chars.)
SwExtTextInput* CreateExtTextInput(LanguageType eInputLanguage);
- OUString DeleteExtTextInput( SwExtTextInput* pDel = 0, bool bInsText = true);
+ OUString DeleteExtTextInput( SwExtTextInput* pDel = nullptr, bool bInsText = true);
void SetExtTextInputData( const CommandExtTextInputData& );
/// Interface for access to AutoComplete-list.
@@ -938,7 +938,7 @@ public:
sal_uInt16 GetScalingOfSelectedText() const;
/// Ctor/Dtor.
- SwEditShell( SwDoc&, vcl::Window*, const SwViewOption *pOpt = 0 );
+ SwEditShell( SwDoc&, vcl::Window*, const SwViewOption *pOpt = nullptr );
/// Copy-Constructor in disguise.
SwEditShell( SwEditShell&, vcl::Window* );
diff --git a/sw/inc/extinput.hxx b/sw/inc/extinput.hxx
index fb7f4427a34d..6e41d9559c38 100644
--- a/sw/inc/extinput.hxx
+++ b/sw/inc/extinput.hxx
@@ -33,7 +33,7 @@ class SwExtTextInput : public SwPaM
bool bIsOverwriteCursor : 1;
LanguageType eInputLanguage;
public:
- SwExtTextInput( const SwPaM& rPam, Ring* pRing = 0 );
+ SwExtTextInput( const SwPaM& rPam, Ring* pRing = nullptr );
virtual ~SwExtTextInput();
void SetInputData( const CommandExtTextInputData& rData );
diff --git a/sw/inc/fchrfmt.hxx b/sw/inc/fchrfmt.hxx
index a3055f05a19c..6e6ad6b86254 100644
--- a/sw/inc/fchrfmt.hxx
+++ b/sw/inc/fchrfmt.hxx
@@ -33,7 +33,7 @@ class SW_DLLPUBLIC SwFormatCharFormat: public SfxPoolItem, public SwClient
SwTextCharFormat* pTextAttr; ///< My text attribute.
public:
- SwFormatCharFormat() : pTextAttr(0) {}
+ SwFormatCharFormat() : pTextAttr(nullptr) {}
/// single argument ctors shall be explicit.
explicit SwFormatCharFormat( SwCharFormat *pFormat );
@@ -53,12 +53,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index b589480a2312..6ea8b19986ac 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -157,7 +157,7 @@ struct SwGetCurColNumPara
{
const SwFrameFormat* pFrameFormat;
const SwRect* pPrtRect, *pFrmRect;
- SwGetCurColNumPara() : pFrameFormat( 0 ), pPrtRect( 0 ), pFrmRect( 0 ) {}
+ SwGetCurColNumPara() : pFrameFormat( nullptr ), pPrtRect( nullptr ), pFrmRect( nullptr ) {}
};
enum class SwPasteSdr
@@ -218,7 +218,7 @@ private:
/** Used for mouse operations on a table:
@return a cell frame that is 'close' to rPt. */
- SAL_DLLPRIVATE const SwFrm *GetBox( const Point &rPt, bool* pbRow = 0, bool* pbCol = 0 ) const;
+ SAL_DLLPRIVATE const SwFrm *GetBox( const Point &rPt, bool* pbRow = nullptr, bool* pbCol = nullptr ) const;
// 0 == not in any column.
SAL_DLLPRIVATE sal_uInt16 _GetCurColNum( const SwFrm *pFrm,
@@ -249,12 +249,12 @@ public:
using SwEditShell::Insert;
TYPEINFO_OVERRIDE();
- SwFEShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = 0 );
+ SwFEShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = nullptr );
SwFEShell( SwEditShell& rShell, vcl::Window *pWin );
virtual ~SwFEShell();
/// Copy and Paste methods for internal clipboard.
- bool Copy( SwDoc* pClpDoc, const OUString* pNewClpText = 0 );
+ bool Copy( SwDoc* pClpDoc, const OUString* pNewClpText = nullptr );
bool Paste( SwDoc* pClpDoc, bool bIncludingPageFrames = false);
/// Paste some pages into another doc - used in mailmerge.
@@ -271,7 +271,7 @@ public:
/** If an object as been given, exactly this object is selected
(instead of searching over position). */
- bool SelectObj( const Point& rSelPt, sal_uInt8 nFlag = 0, SdrObject *pObj = 0 );
+ bool SelectObj( const Point& rSelPt, sal_uInt8 nFlag = 0, SdrObject *pObj = nullptr );
void DelSelectedObj();
/** Move selection upwards or downwards (Z-Order).
@@ -315,7 +315,7 @@ public:
bool IsSelContainsControl() const;
ObjCntType GetObjCntType( const Point &rPt, SdrObject *&rpObj ) const;
- ObjCntType GetObjCntTypeOfSelection( SdrObject** ppObj = 0 ) const;
+ ObjCntType GetObjCntTypeOfSelection( SdrObject** ppObj = nullptr ) const;
/// For adjustment of PosAttr when anchor changes.
SwRect GetObjRect() const;
@@ -335,7 +335,7 @@ public:
bool _bMirror = false,
Point* _opRef = nullptr,
Size* _opPercent = nullptr,
- const SwFormatFrmSize* pFormatFrmSize = 0 ) const;
+ const SwFormatFrmSize* pFormatFrmSize = nullptr ) const;
/// Set size of draw objects.
void SetObjRect( const SwRect& rRect );
@@ -359,7 +359,7 @@ public:
/** @return FrameFormat of object that may be under Point.
Object does not become selected! */
- const SwFrameFormat* GetFormatFromObj( const Point& rPt, SwRect** pRectToFill = 0 ) const;
+ const SwFrameFormat* GetFormatFromObj( const Point& rPt, SwRect** pRectToFill = nullptr ) const;
/// @return a format too, if the point is over the text of any fly.
const SwFrameFormat* GetFormatFromAnyObj( const Point& rPt ) const;
@@ -381,9 +381,9 @@ public:
bool GetFlyFrmAttr( SfxItemSet &rSet ) const;
bool SetFlyFrmAttr( SfxItemSet &rSet );
static SfxItemSet makeItemSetFromFormatAnchor(SfxItemPool& rPool, const SwFormatAnchor &rAnchor);
- bool ResetFlyFrmAttr( sal_uInt16 nWhich, const SfxItemSet* pSet = 0 );
+ bool ResetFlyFrmAttr( sal_uInt16 nWhich, const SfxItemSet* pSet = nullptr );
const SwFrameFormat *NewFlyFrm( const SfxItemSet &rSet, bool bAnchValid = false,
- SwFrameFormat *pParent = 0 );
+ SwFrameFormat *pParent = nullptr );
void SetFlyPos( const Point &rAbsPos);
Point FindAnchorPos( const Point &rAbsPos, bool bMoveIt = false );
@@ -393,7 +393,7 @@ public:
bool IsFrmVertical(const bool bEnvironment, bool& bRightToLeft, bool& bVertL2R) const;
SwFrameFormat* GetSelectedFrameFormat() const; ///< If frame then frame style, else 0.
- void SetFrameFormat( SwFrameFormat *pFormat, bool bKeepOrient = false, Point* pDocPos = 0 ); ///< If frame then set frame style.
+ void SetFrameFormat( SwFrameFormat *pFormat, bool bKeepOrient = false, Point* pDocPos = nullptr ); ///< If frame then set frame style.
// Get selected fly
SwFlyFrm* GetSelectedFlyFrm() const;
@@ -438,8 +438,8 @@ public:
If a pointer is passed on a size, this is the object's current core-size.
Else the size is provided via GetCurFlyRect(). */
virtual void CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
- const SwRect *pFlyPrtRect = 0,
- const SwRect *pFlyFrmRect = 0,
+ const SwRect *pFlyPrtRect = nullptr,
+ const SwRect *pFlyFrmRect = nullptr,
const bool bNoTextFrmPrtAreaChanged = false ) = 0;
/** Connect objects with ActivateWhenVisible at Paint.
@@ -470,9 +470,9 @@ public:
bool bSelFrame = true );
/// Position is a graphic with URL?
- const SwFrameFormat* IsURLGrfAtPos( const Point& rPt, OUString* pURL = 0,
- OUString *pTargetFrameName = 0,
- OUString *pURLDescription = 0 ) const;
+ const SwFrameFormat* IsURLGrfAtPos( const Point& rPt, OUString* pURL = nullptr,
+ OUString *pTargetFrameName = nullptr,
+ OUString *pURLDescription = nullptr ) const;
/** For Chain always connect Fly specified by format with that hit by point.
rRect contains rect of Fly (for its highlight). */
@@ -557,7 +557,7 @@ public:
Return value indicates if it was converted. */
bool GetDrawObjGraphic( SotClipboardFormatId nFormat, Graphic& rGrf ) const;
- void Paste( SvStream& rStm, SwPasteSdr nAction, const Point* pPt = 0 );
+ void Paste( SvStream& rStm, SwPasteSdr nAction, const Point* pPt = nullptr );
bool Paste( const Graphic &rGrf, const OUString& rURL );
bool IsAlignPossible() const;
@@ -565,22 +565,22 @@ public:
void Insert(const OUString& rGrfName,
const OUString& rFltName,
- const Graphic* pGraphic = 0,
- const SfxItemSet* pFlyAttrSet = 0,
- const SfxItemSet* pGrfAttrSet = 0,
- SwFrameFormat* = 0 );
+ const Graphic* pGraphic = nullptr,
+ const SfxItemSet* pFlyAttrSet = nullptr,
+ const SfxItemSet* pGrfAttrSet = nullptr,
+ SwFrameFormat* = nullptr );
/// Insertion of a drawing object which have to be already inserted in the DrawModel.
void InsertDrawObj( SdrObject& rDrawObj,
const Point& rInsertPosition );
bool ReplaceSdrObj( const OUString& rGrfName, const OUString& rFltName,
- const Graphic* pGrf = 0 );
+ const Graphic* pGrf = nullptr );
// --> #i972#
/** for starmath formulas anchored 'as char' it aligns it baseline to baseline
changing the previous vertical orientation */
- void AlignFormulaToBaseline( const css::uno::Reference < css::embed::XEmbeddedObject >& xObj, SwFlyFrm * pFly = 0 );
+ void AlignFormulaToBaseline( const css::uno::Reference < css::embed::XEmbeddedObject >& xObj, SwFlyFrm * pFly = nullptr );
/// aligns all formulas with anchor 'as char' to baseline
void AlignAllFormulasToBaseline();
@@ -602,7 +602,7 @@ public:
size_t GetPageDescCnt() const;
SwPageDesc* FindPageDescByName( const OUString& rName,
bool bGetFromPool = false,
- size_t* pPos = 0 );
+ size_t* pPos = nullptr );
const SwPageDesc& GetPageDesc( size_t i ) const;
void ChgPageDesc( size_t i, const SwPageDesc& );
@@ -611,7 +611,7 @@ public:
const SwPageDesc* GetSelectedPageDescs() const;
const SwRect& GetAnyCurRect( CurRectType eType,
- const Point* pPt = 0,
+ const Point* pPt = nullptr,
const css::uno::Reference < css::embed::XEmbeddedObject >& =
css::uno::Reference < css::embed::XEmbeddedObject >() ) const;
@@ -620,9 +620,9 @@ public:
bool GetPageNumber( long nYPos, bool bAtCrsrPos, sal_uInt16& rPhyNum, sal_uInt16& rVirtNum, OUString &rDisplay ) const;
SwFlyFrameFormat* InsertObject( const svt::EmbeddedObjectRef&,
- const SfxItemSet* pFlyAttrSet = 0,
- const SfxItemSet* pGrfAttrSet = 0,
- SwFrameFormat* = 0 );
+ const SfxItemSet* pFlyAttrSet = nullptr,
+ const SfxItemSet* pGrfAttrSet = nullptr,
+ SwFrameFormat* = nullptr );
bool FinishOLEObj(); ///< Shutdown server.
void GetTableAttr( SfxItemSet & ) const;
@@ -686,7 +686,7 @@ public:
const Point &rPt );
/// pEnd will be used during MouseMove
- bool SelTableRowCol( const Point& rPt, const Point* pEnd = 0, bool bRowDrag = false );
+ bool SelTableRowCol( const Point& rPt, const Point* pEnd = nullptr, bool bRowDrag = false );
void GetTabRows( SwTabCols &rToFill ) const;
void SetTabRows( const SwTabCols &rNew, bool bCurColOnly );
@@ -697,8 +697,8 @@ public:
cursor is not allowed in readonly. */
void UnProtectCells(); ///< Refers to table selection.
void UnProtectTables(); ///< Unprotect all tables in selection.
- bool HasTableAnyProtection( const OUString* pTableName = 0,
- bool* pFullTableProtection = 0 );
+ bool HasTableAnyProtection( const OUString* pTableName = nullptr,
+ bool* pFullTableProtection = nullptr );
bool CanUnProtectCells() const;
sal_uInt16 GetRowsToRepeat() const;
@@ -749,12 +749,12 @@ public:
const bool bCpyBrd = true );
/// The ruler needs some information too.
- sal_uInt16 GetCurColNum( SwGetCurColNumPara* pPara = 0 ) const; //0 == not in any column.
+ sal_uInt16 GetCurColNum( SwGetCurColNumPara* pPara = nullptr ) const; //0 == not in any column.
sal_uInt16 GetCurMouseColNum( const Point &rPt,
- SwGetCurColNumPara* pPara = 0 ) const;
+ SwGetCurColNumPara* pPara = nullptr ) const;
size_t GetCurTabColNum() const; //0 == not in any table.
size_t GetCurMouseTabColNum( const Point &rPt ) const;
- sal_uInt16 GetCurOutColNum( SwGetCurColNumPara* pPara = 0 ) const; ///< Current outer column.
+ sal_uInt16 GetCurOutColNum( SwGetCurColNumPara* pPara = nullptr ) const; ///< Current outer column.
bool IsTableRightToLeft() const;
bool IsMouseTableRightToLeft( const Point &rPt ) const;
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx
index 4363fb5bc036..603e7587b8ee 100644
--- a/sw/inc/fldbas.hxx
+++ b/sw/inc/fldbas.hxx
@@ -267,7 +267,7 @@ public:
inline void SwFieldType::UpdateFields() const
{
- const_cast<SwFieldType*>(this)->ModifyNotification( 0, 0 );
+ const_cast<SwFieldType*>(this)->ModifyNotification( nullptr, nullptr );
}
/** Base class of all fields.
diff --git a/sw/inc/fmtanchr.hxx b/sw/inc/fmtanchr.hxx
index da2b091b1499..bd260372b1e8 100644
--- a/sw/inc/fmtanchr.hxx
+++ b/sw/inc/fmtanchr.hxx
@@ -52,12 +52,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtautofmt.hxx b/sw/inc/fmtautofmt.hxx
index a76ff7e2f948..f72adf0a5411 100644
--- a/sw/inc/fmtautofmt.hxx
+++ b/sw/inc/fmtautofmt.hxx
@@ -44,12 +44,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtclbl.hxx b/sw/inc/fmtclbl.hxx
index f7ac3d18d561..4f74fdca1889 100644
--- a/sw/inc/fmtclbl.hxx
+++ b/sw/inc/fmtclbl.hxx
@@ -32,7 +32,7 @@ public:
: SfxBoolItem( RES_COLUMNBALANCE, bFlag ) {}
/// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
void dumpAsXml(struct _xmlTextWriter* pWriter) const override;
};
diff --git a/sw/inc/fmtclds.hxx b/sw/inc/fmtclds.hxx
index 336453555a38..ab3532b901ed 100644
--- a/sw/inc/fmtclds.hxx
+++ b/sw/inc/fmtclds.hxx
@@ -102,12 +102,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtcnct.hxx b/sw/inc/fmtcnct.hxx
index 3578bb794705..2fb7ee23177b 100644
--- a/sw/inc/fmtcnct.hxx
+++ b/sw/inc/fmtcnct.hxx
@@ -41,12 +41,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
diff --git a/sw/inc/fmtcntnt.hxx b/sw/inc/fmtcntnt.hxx
index d170da60c970..2403675f41fc 100644
--- a/sw/inc/fmtcntnt.hxx
+++ b/sw/inc/fmtcntnt.hxx
@@ -34,13 +34,13 @@ class SW_DLLPUBLIC SwFormatContent: public SfxPoolItem
SwFormatContent &operator=( const SwFormatContent & ) = delete;
public:
- SwFormatContent( const SwStartNode* pStartNode = 0 );
+ SwFormatContent( const SwStartNode* pStartNode = nullptr );
SwFormatContent( const SwFormatContent &rCpy );
virtual ~SwFormatContent();
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
const SwNodeIndex *GetContentIdx() const { return pStartNode; }
void SetNewContentIdx( const SwNodeIndex *pIdx );
diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx
index 57d29ea4b714..7388af608a00 100644
--- a/sw/inc/fmtcol.hxx
+++ b/sw/inc/fmtcol.hxx
@@ -67,7 +67,7 @@ protected:
SwTextFormatColl *mpNextTextFormatColl;
SwTextFormatColl( SwAttrPool& rPool, const sal_Char* pFormatCollName,
- SwTextFormatColl* pDerFrom = 0,
+ SwTextFormatColl* pDerFrom = nullptr,
sal_uInt16 nFormatWh = RES_TXTFMTCOLL )
: SwFormatColl(rPool, pFormatCollName, aTextFormatCollSetRange, pDerFrom, nFormatWh)
, mbStayAssignedToListLevelOfOutlineStyle(false)
@@ -77,7 +77,7 @@ protected:
}
SwTextFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
- SwTextFormatColl* pDerFrom = 0,
+ SwTextFormatColl* pDerFrom = nullptr,
sal_uInt16 nFormatWh = RES_TXTFMTCOLL )
: SwFormatColl(rPool, rFormatCollName, aTextFormatCollSetRange, pDerFrom, nFormatWh)
, mbStayAssignedToListLevelOfOutlineStyle(false)
@@ -141,13 +141,13 @@ class SwGrfFormatColl: public SwFormatColl
friend class SwDoc;
protected:
SwGrfFormatColl( SwAttrPool& rPool, const sal_Char* pFormatCollName,
- SwGrfFormatColl* pDerFrom = 0 )
+ SwGrfFormatColl* pDerFrom = nullptr )
: SwFormatColl( rPool, pFormatCollName, aGrfFormatCollSetRange,
pDerFrom, RES_GRFFMTCOLL )
{}
SwGrfFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
- SwGrfFormatColl* pDerFrom = 0 )
+ SwGrfFormatColl* pDerFrom = nullptr )
: SwFormatColl( rPool, rFormatCollName, aGrfFormatCollSetRange,
pDerFrom, RES_GRFFMTCOLL )
{}
@@ -223,11 +223,11 @@ protected:
SwFormatCollConditions m_CondColls;
SwConditionTextFormatColl( SwAttrPool& rPool, const sal_Char* pFormatCollName,
- SwTextFormatColl* pDerFrom = 0 )
+ SwTextFormatColl* pDerFrom = nullptr )
: SwTextFormatColl( rPool, pFormatCollName, pDerFrom, RES_CONDTXTFMTCOLL )
{}
SwConditionTextFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
- SwTextFormatColl* pDerFrom = 0 )
+ SwTextFormatColl* pDerFrom = nullptr )
: SwTextFormatColl( rPool, rFormatCollName, pDerFrom, RES_CONDTXTFMTCOLL )
{}
diff --git a/sw/inc/fmtcolfunc.hxx b/sw/inc/fmtcolfunc.hxx
index e6b12d0ef61b..452db0350669 100644
--- a/sw/inc/fmtcolfunc.hxx
+++ b/sw/inc/fmtcolfunc.hxx
@@ -38,7 +38,7 @@ namespace TextFormatCollFunc
*/
void CheckTextFormatCollForDeletionOfAssignmentToOutlineStyle(
SwFormat* pFormat,
- const SwNumRuleItem* pNewNumRuleItem = 0L );
+ const SwNumRuleItem* pNewNumRuleItem = nullptr );
/** determines the list style, which directly set at the given paragraph style
diff --git a/sw/inc/fmteiro.hxx b/sw/inc/fmteiro.hxx
index 8070ddf1f54b..cef3224b303a 100644
--- a/sw/inc/fmteiro.hxx
+++ b/sw/inc/fmteiro.hxx
@@ -33,12 +33,12 @@ public:
bool bPrt = false ) : SfxBoolItem( nId, bPrt ) {}
/// "pure virtual methos" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
void dumpAsXml(struct _xmlTextWriter* pWriter) const override;
};
diff --git a/sw/inc/fmtflcnt.hxx b/sw/inc/fmtflcnt.hxx
index 7b678c0d47ea..06ad1f32f2ae 100644
--- a/sw/inc/fmtflcnt.hxx
+++ b/sw/inc/fmtflcnt.hxx
@@ -40,11 +40,11 @@ public:
SwFormatFlyCnt( SwFrameFormat *pFrameFormat );
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
inline SwFrameFormat *GetFrameFormat() const { return pFormat; }
/// For Undo: delete the FlyFrmFormat "logically"; it is kept in Undo-object.
- inline void SetFlyFormat( SwFrameFormat* pNew = 0 ) { pFormat = pNew; }
+ inline void SetFlyFormat( SwFrameFormat* pNew = nullptr ) { pFormat = pNew; }
const SwTextFlyCnt *GetTextFlyCnt() const { return pTextAttr; }
};
diff --git a/sw/inc/fmtfld.hxx b/sw/inc/fmtfld.hxx
index 9204f15fad2c..0f83415293e8 100644
--- a/sw/inc/fmtfld.hxx
+++ b/sw/inc/fmtfld.hxx
@@ -69,7 +69,7 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetInfo( SfxPoolItem& rInfo ) const override;
@@ -130,7 +130,7 @@ class SW_DLLPUBLIC SwFormatFieldHint : public SfxHint
const SwView* pView;
public:
- SwFormatFieldHint( const SwFormatField* p, SwFormatFieldHintWhich n, const SwView* pV = 0)
+ SwFormatFieldHint( const SwFormatField* p, SwFormatFieldHintWhich n, const SwView* pV = nullptr)
: pField(p)
, nWhich(n)
, pView(pV)
diff --git a/sw/inc/fmtfollowtextflow.hxx b/sw/inc/fmtfollowtextflow.hxx
index 0ce283f38984..a23e0f3e7501 100644
--- a/sw/inc/fmtfollowtextflow.hxx
+++ b/sw/inc/fmtfollowtextflow.hxx
@@ -35,12 +35,12 @@ public:
TYPEINFO_OVERRIDE();
/// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
void dumpAsXml(struct _xmlTextWriter* pWriter) const override;
};
diff --git a/sw/inc/fmtfordr.hxx b/sw/inc/fmtfordr.hxx
index 2389f6566275..d3416adf3998 100644
--- a/sw/inc/fmtfordr.hxx
+++ b/sw/inc/fmtfordr.hxx
@@ -40,7 +40,7 @@ public:
inline SwFormatFillOrder &operator=( const SwFormatFillOrder &rCpy );
/// "Pure virtual methods" of SfxPoolItem.
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual sal_uInt16 GetValueCount() const override;
SwFillOrder GetFillOrder() const { return SwFillOrder(GetValue()); }
diff --git a/sw/inc/fmtfsize.hxx b/sw/inc/fmtfsize.hxx
index 10e56dcf0c47..4f77040ed410 100644
--- a/sw/inc/fmtfsize.hxx
+++ b/sw/inc/fmtfsize.hxx
@@ -66,12 +66,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtftn.hxx b/sw/inc/fmtftn.hxx
index a7025d32747d..96f53dcf7845 100644
--- a/sw/inc/fmtftn.hxx
+++ b/sw/inc/fmtftn.hxx
@@ -56,7 +56,7 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
// SwClient
virtual void Modify(SfxPoolItem const* pOld, SfxPoolItem const* pNew)
diff --git a/sw/inc/fmtftntx.hxx b/sw/inc/fmtftntx.hxx
index d9730b6de3b5..879c561d61bd 100644
--- a/sw/inc/fmtftntx.hxx
+++ b/sw/inc/fmtftntx.hxx
@@ -63,7 +63,7 @@ public:
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
inline bool IsAtEnd() const { return FTNEND_ATPGORDOCEND != GetValue(); }
@@ -91,7 +91,7 @@ public:
: SwFormatFootnoteEndAtTextEnd( RES_FTN_AT_TXTEND, ePos )
{}
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
};
class SW_DLLPUBLIC SwFormatEndAtTextEnd : public SwFormatFootnoteEndAtTextEnd
@@ -103,7 +103,7 @@ public:
SetNumType( SVX_NUM_ROMAN_LOWER );
}
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
};
inline const SwFormatFootnoteAtTextEnd &SwAttrSet::GetFootnoteAtTextEnd(bool bInP) const
diff --git a/sw/inc/fmthdft.hxx b/sw/inc/fmthdft.hxx
index 7434c1acb301..e0c9a513c081 100644
--- a/sw/inc/fmthdft.hxx
+++ b/sw/inc/fmthdft.hxx
@@ -46,12 +46,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
const SwFrameFormat *GetHeaderFormat() const { return static_cast<const SwFrameFormat*>(GetRegisteredIn()); }
SwFrameFormat *GetHeaderFormat() { return static_cast<SwFrameFormat*>(GetRegisteredIn()); }
@@ -78,12 +78,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
const SwFrameFormat *GetFooterFormat() const { return static_cast<const SwFrameFormat*>(GetRegisteredIn()); }
SwFrameFormat *GetFooterFormat() { return static_cast<SwFrameFormat*>(GetRegisteredIn()); }
diff --git a/sw/inc/fmtinfmt.hxx b/sw/inc/fmtinfmt.hxx
index 528bad3ecf7d..aa6ca6f424e9 100644
--- a/sw/inc/fmtinfmt.hxx
+++ b/sw/inc/fmtinfmt.hxx
@@ -52,12 +52,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
@@ -123,7 +123,7 @@ public:
}
/// Set a new MacroTable or clear the current one.
- void SetMacroTable( const SvxMacroTableDtor* pTable = 0 );
+ void SetMacroTable( const SvxMacroTableDtor* pTable = nullptr );
const SvxMacroTableDtor* GetMacroTable() const
{
return mpMacroTable;
diff --git a/sw/inc/fmtline.hxx b/sw/inc/fmtline.hxx
index cde782f63717..7d81094d3c9a 100644
--- a/sw/inc/fmtline.hxx
+++ b/sw/inc/fmtline.hxx
@@ -39,12 +39,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtlsplt.hxx b/sw/inc/fmtlsplt.hxx
index 84dac2749389..112da9ba567c 100644
--- a/sw/inc/fmtlsplt.hxx
+++ b/sw/inc/fmtlsplt.hxx
@@ -32,12 +32,12 @@ public:
SwFormatLayoutSplit( bool bSplit = true ) : SfxBoolItem( RES_LAYOUT_SPLIT, bSplit ) {}
/// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
inline const SwFormatLayoutSplit &SwAttrSet::GetLayoutSplit(bool bInP) const
diff --git a/sw/inc/fmtmeta.hxx b/sw/inc/fmtmeta.hxx
index 8e2f92e448ba..ab1ac82ddefb 100644
--- a/sw/inc/fmtmeta.hxx
+++ b/sw/inc/fmtmeta.hxx
@@ -110,7 +110,7 @@ public:
/// SfxPoolItem
virtual bool operator==( const SfxPoolItem & ) const override;
- virtual SfxPoolItem * Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem * Clone( SfxItemPool *pPool = nullptr ) const override;
/// notify clients registered at m_pMeta that this meta is being (re-)moved
void NotifyChangeTextNode(SwTextNode *const pTextNode);
@@ -152,7 +152,7 @@ protected:
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ) override;
public:
- explicit Meta(SwFormatMeta * const i_pFormat = 0);
+ explicit Meta(SwFormatMeta * const i_pFormat = nullptr);
virtual ~Meta();
/// sfx2::Metadatable
@@ -179,7 +179,7 @@ private:
bool IsFixedLanguage() const { return m_bIsFixedLanguage; }
void SetIsFixedLanguage(bool b) { m_bIsFixedLanguage = b; }
- explicit MetaField(SwFormatMeta * const i_pFormat = 0,
+ explicit MetaField(SwFormatMeta * const i_pFormat = nullptr,
const sal_uInt32 nNumberFormat = SAL_MAX_UINT32,
const bool bIsFixedLanguage = false );
@@ -200,7 +200,7 @@ private:
public:
MetaFieldManager();
std::shared_ptr<MetaField> makeMetaField(
- SwFormatMeta * const i_pFormat = 0,
+ SwFormatMeta * const i_pFormat = nullptr,
const sal_uInt32 nNumberFormat = SAL_MAX_UINT32,
const bool bIsFixedLanguage = false );
/// get all meta fields
diff --git a/sw/inc/fmtornt.hxx b/sw/inc/fmtornt.hxx
index 8c9ed10935cf..112d7fe343e2 100644
--- a/sw/inc/fmtornt.hxx
+++ b/sw/inc/fmtornt.hxx
@@ -43,12 +43,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
@@ -80,12 +80,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtpdsc.hxx b/sw/inc/fmtpdsc.hxx
index 5a0d12bd3b14..c07a2182b9ef 100644
--- a/sw/inc/fmtpdsc.hxx
+++ b/sw/inc/fmtpdsc.hxx
@@ -47,7 +47,7 @@ protected:
virtual void SwClientNotify( const SwModify&, const SfxHint& rHint ) override;
public:
- SwFormatPageDesc( const SwPageDesc *pDesc = 0 );
+ SwFormatPageDesc( const SwPageDesc *pDesc = nullptr );
SwFormatPageDesc( const SwFormatPageDesc &rCpy );
SwFormatPageDesc &operator=( const SwFormatPageDesc &rCpy );
virtual ~SwFormatPageDesc();
@@ -56,12 +56,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtrfmrk.hxx b/sw/inc/fmtrfmrk.hxx
index 6f6521926c24..1c1c578edec9 100644
--- a/sw/inc/fmtrfmrk.hxx
+++ b/sw/inc/fmtrfmrk.hxx
@@ -52,7 +52,7 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
// SwClient
virtual void Modify(SfxPoolItem const* pOld, SfxPoolItem const* pNew)
diff --git a/sw/inc/fmtrowsplt.hxx b/sw/inc/fmtrowsplt.hxx
index 5238a5f047c4..58c601461bbb 100644
--- a/sw/inc/fmtrowsplt.hxx
+++ b/sw/inc/fmtrowsplt.hxx
@@ -32,12 +32,12 @@ public:
SwFormatRowSplit( bool bSplit = true ) : SfxBoolItem( RES_ROW_SPLIT, bSplit ) {}
// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
inline const SwFormatRowSplit &SwAttrSet::GetRowSplit(bool bInP) const
diff --git a/sw/inc/fmtruby.hxx b/sw/inc/fmtruby.hxx
index 22b1d069f905..62f27043e5de 100644
--- a/sw/inc/fmtruby.hxx
+++ b/sw/inc/fmtruby.hxx
@@ -43,13 +43,13 @@ public:
// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtsrnd.hxx b/sw/inc/fmtsrnd.hxx
index 8aaa75aad533..b628a9408d21 100644
--- a/sw/inc/fmtsrnd.hxx
+++ b/sw/inc/fmtsrnd.hxx
@@ -40,13 +40,13 @@ public:
// "Pure virtual Methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual sal_uInt16 GetValueCount() const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmturl.hxx b/sw/inc/fmturl.hxx
index b29156c4c023..20eb332719fa 100644
--- a/sw/inc/fmturl.hxx
+++ b/sw/inc/fmturl.hxx
@@ -50,12 +50,12 @@ public:
/// "Pure virtual methods" of SfxPoolItem.
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/fmtwrapinfluenceonobjpos.hxx b/sw/inc/fmtwrapinfluenceonobjpos.hxx
index 0d72126413f2..d60d9c829c66 100644
--- a/sw/inc/fmtwrapinfluenceonobjpos.hxx
+++ b/sw/inc/fmtwrapinfluenceonobjpos.hxx
@@ -44,7 +44,7 @@ public:
/// pure virtual methods of class <SfxPoolItem>
virtual bool operator==( const SfxPoolItem& _rAttr ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx
index bff32bc663f3..fe0ddfd2ec55 100644
--- a/sw/inc/format.hxx
+++ b/sw/inc/format.hxx
@@ -89,7 +89,7 @@ public:
void DelDiffs( const SwFormat& rFormat ) { DelDiffs( rFormat.GetAttrSet() ); }
/// 0 is Default.
- bool SetDerivedFrom(SwFormat *pDerivedFrom = 0);
+ bool SetDerivedFrom(SwFormat *pDerivedFrom = nullptr);
/// If bInParents is FALSE, search only in this format for attribute.
//UUUUinline
@@ -97,7 +97,7 @@ public:
bool bInParents = true ) const;
//UUUUinline
SfxItemState GetItemState( sal_uInt16 nWhich, bool bSrchInParent = true,
- const SfxPoolItem **ppItem = 0 ) const;
+ const SfxPoolItem **ppItem = nullptr ) const;
SfxItemState GetBackgroundState(SvxBrushItem &rItem,
bool bSrchInParent = true) const;
virtual bool SetFormatAttr( const SfxPoolItem& rAttr );
@@ -109,7 +109,7 @@ public:
virtual sal_uInt16 ResetAllFormatAttr();
inline SwFormat* DerivedFrom() const { return const_cast<SwFormat*>(static_cast<const SwFormat*>(GetRegisteredIn())); }
- inline bool IsDefault() const { return DerivedFrom() == 0; }
+ inline bool IsDefault() const { return DerivedFrom() == nullptr; }
inline OUString GetName() const { return m_aFormatName; }
inline bool HasName(const OUString &rName) const { return m_aFormatName == rName; }
diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx
index 69fa3047d407..3e881645a6f9 100644
--- a/sw/inc/frmfmt.hxx
+++ b/sw/inc/frmfmt.hxx
@@ -53,14 +53,14 @@ protected:
const sal_Char* pFormatNm,
SwFrameFormat *pDrvdFrm,
sal_uInt16 nFormatWhich = RES_FRMFMT,
- const sal_uInt16* pWhichRange = 0);
+ const sal_uInt16* pWhichRange = nullptr);
SwFrameFormat(
SwAttrPool& rPool,
const OUString &rFormatNm,
SwFrameFormat *pDrvdFrm,
sal_uInt16 nFormatWhich = RES_FRMFMT,
- const sal_uInt16* pWhichRange = 0);
+ const sal_uInt16* pWhichRange = nullptr);
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNewValue ) override;
@@ -81,13 +81,13 @@ public:
rPoint - test on DocPosition.
pFly - optional FlyFrame, in case it is already known. */
IMapObject* GetIMapObject( const Point& rPoint,
- const SwFlyFrm *pFly = 0 ) const;
+ const SwFlyFrm *pFly = nullptr ) const;
/** @return the real size of the frame - or an empty rectangle
if no layout exists.
If pPoint is given, look for the frame closest to it. */
SwRect FindLayoutRect( const bool bPrtArea = false,
- const Point* pPoint = 0,
+ const Point* pPoint = nullptr,
const bool bCalcFrm = false ) const;
/** Searches SdrObject. SdrObjUserCall is client of the format.
@@ -175,10 +175,10 @@ public:
/// Creates the views.
virtual void MakeFrms() override;
- SwFlyFrm* GetFrm( const Point* pDocPos = 0,
+ SwFlyFrm* GetFrm( const Point* pDocPos = nullptr,
const bool bCalcFrm = false ) const;
- SwAnchoredObject* GetAnchoredObj( const Point* pDocPos = 0,
+ SwAnchoredObject* GetAnchoredObj( const Point* pDocPos = nullptr,
const bool bCalcFrm = false ) const;
virtual Graphic MakeGraphic( ImageMap* pMap = nullptr ) override;
diff --git a/sw/inc/ftnidx.hxx b/sw/inc/ftnidx.hxx
index b79a57e72980..62396a5f369f 100644
--- a/sw/inc/ftnidx.hxx
+++ b/sw/inc/ftnidx.hxx
@@ -45,7 +45,7 @@ public:
void UpdateFootnote( const SwNodeIndex& rStt ); // Update all from pos.
void UpdateAllFootnote(); // Update all footnotes.
- SwTextFootnote* SeekEntry( const SwNodeIndex& rIdx, size_t* pPos = 0 ) const;
+ SwTextFootnote* SeekEntry( const SwNodeIndex& rIdx, size_t* pPos = nullptr ) const;
};
class SwUpdFootnoteEndNtAtEnd
diff --git a/sw/inc/ftninfo.hxx b/sw/inc/ftninfo.hxx
index ae6820ae6c79..76bdff5aa1e0 100644
--- a/sw/inc/ftninfo.hxx
+++ b/sw/inc/ftninfo.hxx
@@ -63,7 +63,7 @@ public:
SwEndNoteInfo & operator=(const SwEndNoteInfo&);
bool operator==( const SwEndNoteInfo &rInf ) const;
- SwEndNoteInfo( SwTextFormatColl *pTextColl = 0);
+ SwEndNoteInfo( SwTextFormatColl *pTextColl = nullptr);
SwEndNoteInfo(const SwEndNoteInfo&);
const OUString& GetPrefix() const { return sPrefix; }
@@ -100,7 +100,7 @@ public:
bool operator==( const SwFootnoteInfo &rInf ) const;
- SwFootnoteInfo(SwTextFormatColl* pTextColl = 0);
+ SwFootnoteInfo(SwTextFormatColl* pTextColl = nullptr);
SwFootnoteInfo(const SwFootnoteInfo&);
};
diff --git a/sw/inc/grfatr.hxx b/sw/inc/grfatr.hxx
index ce8031a0f7ba..9b16b4b44c2c 100644
--- a/sw/inc/grfatr.hxx
+++ b/sw/inc/grfatr.hxx
@@ -52,7 +52,7 @@ public:
{}
// pure virtual methods of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
// pure virtual methods of SfxEnumItem
virtual sal_uInt16 GetValueCount() const override;
@@ -61,7 +61,7 @@ public:
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal,
sal_uInt8 nMemberId = 0 ) const override;
@@ -88,7 +88,7 @@ public:
sal_Int32 nTop, sal_Int32 nBottom );
// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
};
class SwRotationGrf : public SfxUInt16Item
@@ -103,13 +103,13 @@ public:
{}
// pure virtual methods from SfxInt16Item
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal,
sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal,
@@ -126,12 +126,12 @@ public:
{}
// pure virtual methods from SfxInt16Item
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
class SW_DLLPUBLIC SwContrastGrf : public SfxInt16Item
@@ -142,12 +142,12 @@ public:
{}
// pure virtual methods from SfxInt16Item
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
class SwChannelGrf : public SfxInt16Item
@@ -163,7 +163,7 @@ public:
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
class SwChannelRGrf : public SwChannelGrf
@@ -172,7 +172,7 @@ public:
SwChannelRGrf( sal_Int16 nVal = 0 )
: SwChannelGrf( nVal, RES_GRFATR_CHANNELR )
{}
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
};
class SwChannelGGrf : public SwChannelGrf
{
@@ -180,7 +180,7 @@ public:
SwChannelGGrf( sal_Int16 nVal = 0 )
: SwChannelGrf( nVal, RES_GRFATR_CHANNELG )
{}
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
};
class SwChannelBGrf : public SwChannelGrf
{
@@ -188,7 +188,7 @@ public:
SwChannelBGrf( sal_Int16 nVal = 0 )
: SwChannelGrf( nVal, RES_GRFATR_CHANNELB )
{}
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
};
class SW_DLLPUBLIC SwGammaGrf : public SfxPoolItem
@@ -210,13 +210,13 @@ public:
}
// pure virtual methods from SfxEnumItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal,
sal_uInt8 nMemberId = 0 ) const override;
@@ -235,12 +235,12 @@ public:
{}
// pure virtual methods from SfxInt16Item
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
class SwTransparencyGrf : public SfxByteItem
@@ -251,12 +251,12 @@ public:
{}
// pure virtual methods from SfxInt16Item
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal,
sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal,
@@ -271,7 +271,7 @@ public:
{}
// pure virtual methods of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
// pure virtual methods of SfxEnumItem
virtual sal_uInt16 GetValueCount() const override;
@@ -279,7 +279,7 @@ public:
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal,
sal_uInt8 nMemberId = 0 ) const override;
diff --git a/sw/inc/hfspacingitem.hxx b/sw/inc/hfspacingitem.hxx
index 1a3b407cc068..3822ee3edd84 100644
--- a/sw/inc/hfspacingitem.hxx
+++ b/sw/inc/hfspacingitem.hxx
@@ -32,12 +32,12 @@ public:
bool bPrt = false ) : SfxBoolItem( nId, bPrt ) {}
// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
inline const SwHeaderAndFooterEatSpacingItem &SwAttrSet::GetHeaderAndFooterEatSpacing(bool bInP) const
diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx
index 481993d409ce..751dd5daae53 100644
--- a/sw/inc/hints.hxx
+++ b/sw/inc/hints.hxx
@@ -43,7 +43,7 @@ public:
// "Overhead" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
};
// SwPtrMsgPoolItem (old SwObjectDying!)
diff --git a/sw/inc/htmltbl.hxx b/sw/inc/htmltbl.hxx
index 8c038a5df51b..2f6e98e42d79 100644
--- a/sw/inc/htmltbl.hxx
+++ b/sw/inc/htmltbl.hxx
@@ -300,7 +300,7 @@ public:
bool HasColsOption() const { return m_bColsOption; }
bool HasColTags() const { return m_bColTags; }
- bool IsTopTable() const { return m_pSwTable != 0; }
+ bool IsTopTable() const { return m_pSwTable != nullptr; }
void SetMustResize( bool bSet ) { m_bMustResize = bSet; }
void SetMustNotResize( bool bSet ) { m_bMustNotResize = bSet; }
@@ -358,7 +358,7 @@ inline void SwHTMLTableLayoutCell::SetProtected()
nRowSpan = 1;
nColSpan = 1;
- pContents = 0;
+ pContents = nullptr;
}
inline void SwHTMLTableLayoutColumn::MergeMinMaxNoAlign( sal_uLong nCMin,
diff --git a/sw/inc/index.hxx b/sw/inc/index.hxx
index 09289a382e7e..d7b6fef945d6 100644
--- a/sw/inc/index.hxx
+++ b/sw/inc/index.hxx
@@ -123,7 +123,7 @@ protected:
virtual void Update( SwIndex const & rPos, const sal_Int32 nChangeLen,
const bool bNegative = false, const bool bDelete = false );
- bool HasAnyIndex() const { return 0 != m_pFirst; }
+ bool HasAnyIndex() const { return nullptr != m_pFirst; }
public:
SwIndexReg();
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx
index 84ee60fc1f2d..4e6614ebce43 100644
--- a/sw/inc/iodetect.hxx
+++ b/sw/inc/iodetect.hxx
@@ -85,7 +85,7 @@ public:
/// find for an internal format name the corresponding filter entry
SW_DLLPUBLIC static const SfxFilter*
GetFilterOfFormat( const OUString& rFormat,
- const SfxFilterContainer* pCnt = 0 );
+ const SfxFilterContainer* pCnt = nullptr );
/** Detect for the given file which filter should be used. The filter name
is returned. If no filter could be found, the name of the ASCII filter
@@ -96,7 +96,7 @@ public:
static bool IsValidStgFilter( const css::uno::Reference < css::embed::XStorage >& rStg, const SfxFilter& rFilter);
static bool IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen,
- rtl_TextEncoding *pCharSet=0, bool *pSwap=0, LineEnd *pLineEnd=0, bool bEncodedFilter = false );
+ rtl_TextEncoding *pCharSet=nullptr, bool *pSwap=nullptr, LineEnd *pLineEnd=nullptr, bool bEncodedFilter = false );
static const OUString GetSubStorageName( const SfxFilter& rFltr );
};
diff --git a/sw/inc/lineinfo.hxx b/sw/inc/lineinfo.hxx
index 68c5626caead..374c55bdc8d3 100644
--- a/sw/inc/lineinfo.hxx
+++ b/sw/inc/lineinfo.hxx
@@ -91,7 +91,7 @@ public:
bool IsRestartEachPage() const { return bRestartEachPage; }
void SetRestartEachPage( bool b ) { bRestartEachPage = b; }
- bool HasCharFormat() const { return GetRegisteredIn() != 0; }
+ bool HasCharFormat() const { return GetRegisteredIn() != nullptr; }
};
#endif
diff --git a/sw/inc/mdiexp.hxx b/sw/inc/mdiexp.hxx
index d8a5e0f685e0..04c61cea7bc1 100644
--- a/sw/inc/mdiexp.hxx
+++ b/sw/inc/mdiexp.hxx
@@ -43,8 +43,8 @@ extern void PageNumNotify( SwViewShell* pVwSh,
enum FlyMode { FLY_DRAG_START, FLY_DRAG, FLY_DRAG_END };
extern void FrameNotify( SwViewShell* pVwSh, FlyMode eMode = FLY_DRAG );
-SW_DLLPUBLIC void StartProgress ( sal_uInt16 nMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = 0 );
-SW_DLLPUBLIC void EndProgress ( SwDocShell *pDocSh = 0 );
+SW_DLLPUBLIC void StartProgress ( sal_uInt16 nMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = nullptr );
+SW_DLLPUBLIC void EndProgress ( SwDocShell *pDocSh = nullptr );
SW_DLLPUBLIC void SetProgressState ( long nPosition, SwDocShell *pDocShell );
void SetProgressText ( sal_uInt16 nMessId, SwDocShell *pDocShell );
void RescheduleProgress( SwDocShell *pDocShell );
diff --git a/sw/inc/modcfg.hxx b/sw/inc/modcfg.hxx
index 4c47284b14db..1bb0de60f23c 100644
--- a/sw/inc/modcfg.hxx
+++ b/sw/inc/modcfg.hxx
@@ -58,7 +58,7 @@ private:
typedef std::vector<std::unique_ptr<InsCaptionOpt>> InsCapOptArr;
InsCapOptArr m_InsCapOptArr;
public:
- InsCaptionOpt* Find(const SwCapObjType eType, const SvGlobalName *pOleId = 0);
+ InsCaptionOpt* Find(const SwCapObjType eType, const SvGlobalName *pOleId = nullptr);
void Insert(InsCaptionOpt* pObj);
};
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index c3c1f5030b7a..8850d62d1c3a 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -141,13 +141,13 @@ public:
SwNodePtr operator[]( sal_uLong n ) const; // defined in node.hxx
sal_uLong Count() const { return BigPtrArray::Count(); }
- void ForEach( FnForEach_SwNodes fnForEach, void* pArgs = 0 )
+ void ForEach( FnForEach_SwNodes fnForEach, void* pArgs = nullptr )
{
ForEach( 0, BigPtrArray::Count(), fnForEach, pArgs );
}
- void ForEach( sal_uLong nStt, sal_uLong nEnd, FnForEach_SwNodes fnForEach, void* pArgs = 0 );
+ void ForEach( sal_uLong nStt, sal_uLong nEnd, FnForEach_SwNodes fnForEach, void* pArgs = nullptr );
void ForEach( const SwNodeIndex& rStart, const SwNodeIndex& rEnd,
- FnForEach_SwNodes fnForEach, void* pArgs = 0 );
+ FnForEach_SwNodes fnForEach, void* pArgs = nullptr );
/// A still empty section.
SwNode& GetEndOfPostIts() const { return *m_pEndOfPostIts; }
@@ -205,29 +205,29 @@ public:
/// Implementations of "Make...Node" are in the given .cxx-files.
SwTextNode *MakeTextNode( const SwNodeIndex & rWhere,
SwTextFormatColl *pColl,
- SwAttrSet* pAutoAttr = 0 ); ///< in ndtxt.cxx
+ SwAttrSet* pAutoAttr = nullptr ); ///< in ndtxt.cxx
SwStartNode* MakeTextSection( const SwNodeIndex & rWhere,
SwStartNodeType eSttNdTyp,
SwTextFormatColl *pColl,
- SwAttrSet* pAutoAttr = 0 );
+ SwAttrSet* pAutoAttr = nullptr );
static SwGrfNode *MakeGrfNode( const SwNodeIndex & rWhere,
const OUString& rGrfName,
const OUString& rFltName,
const Graphic* pGraphic,
SwGrfFormatColl *pColl,
- SwAttrSet* pAutoAttr = 0,
+ SwAttrSet* pAutoAttr = nullptr,
bool bDelayed = false ); ///< in ndgrf.cxx
static SwGrfNode *MakeGrfNode( const SwNodeIndex & rWhere,
const GraphicObject& rGrfObj,
SwGrfFormatColl *pColl,
- SwAttrSet* pAutoAttr = 0 ); ///< in ndgrf.cxx
+ SwAttrSet* pAutoAttr = nullptr ); ///< in ndgrf.cxx
SwOLENode *MakeOLENode( const SwNodeIndex & rWhere,
const svt::EmbeddedObjectRef&,
SwGrfFormatColl *pColl,
- SwAttrSet* pAutoAttr = 0 ); ///< in ndole.cxx
+ SwAttrSet* pAutoAttr = nullptr ); ///< in ndole.cxx
SwOLENode *MakeOLENode( const SwNodeIndex & rWhere,
const OUString &rName,
sal_Int64 nAspect,
@@ -251,8 +251,8 @@ public:
static SwTableNode* InsertTable( const SwNodeIndex& rNdIdx,
sal_uInt16 nBoxes, SwTextFormatColl* pContentTextColl,
sal_uInt16 nLines = 0, sal_uInt16 nRepeat = 0,
- SwTextFormatColl* pHeadlineTextColl = 0,
- const SwAttrSet * pAttrSet = 0);
+ SwTextFormatColl* pHeadlineTextColl = nullptr,
+ const SwAttrSet * pAttrSet = nullptr);
/// Create balanced table from selected range.
SwTableNode* TextToTable( const SwNodeRange& rRange, sal_Unicode cCh,
@@ -260,7 +260,7 @@ public:
SwTableLineFormat* pLineFormat,
SwTableBoxFormat* pBoxFormat,
SwTextFormatColl* pTextColl,
- SwUndoTextToTable* pUndo = 0 );
+ SwUndoTextToTable* pUndo = nullptr );
static SwNodeRange * ExpandRangeForTableBox(const SwNodeRange & rRange);
@@ -274,7 +274,7 @@ public:
/// Create regular text from what was table.
bool TableToText( const SwNodeRange& rRange, sal_Unicode cCh,
- SwUndoTableToText* = 0 );
+ SwUndoTableToText* = nullptr );
/// Is in untbl.cxx and may called only by Undo-object.
SwTableNode* UndoTableToText( sal_uLong nStt, sal_uLong nEnd,
const SwTableToTextSaves& rSavedData );
@@ -296,7 +296,7 @@ public:
bool bCalcNewSize = false );
/// Two Tables that are following one another are merged.
bool MergeTable( const SwNodeIndex& rPos, bool bWithPrev = true,
- sal_uInt16 nMode = 0, SwHistory* pHistory = 0 );
+ sal_uInt16 nMode = 0, SwHistory* pHistory = nullptr );
/// Insert a new SwSection.
SwSectionNode* InsertTextSection(SwNodeIndex const& rNdIdx,
@@ -316,7 +316,7 @@ public:
with that before rFrmIdx and pEnd at the back.
If no valid node is found, return 0. rFrmIdx points to the node with frames. **/
SwNode* FindPrvNxtFrmNode( SwNodeIndex& rFrmIdx,
- const SwNode* pEnd = 0 ) const;
+ const SwNode* pEnd = nullptr ) const;
SwNode * DocumentSectionStartNode(SwNode * pNode) const;
SwNode * DocumentSectionEndNode(SwNode * pNode) const;
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index ac02f976f068..d50e682c4b14 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -57,16 +57,16 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
const OUString& rGrfName, const OUString& rFltName,
const Graphic* pGraphic,
SwGrfFormatColl* pGrfColl,
- SwAttrSet* pAutoAttr = 0 );
+ SwAttrSet* pAutoAttr = nullptr );
///< Ctor for reading (SW/G) without graphics.
SwGrfNode( const SwNodeIndex& rWhere,
const OUString& rGrfName, const OUString& rFltName,
SwGrfFormatColl* pGrfColl,
- SwAttrSet* pAutoAttr = 0 );
+ SwAttrSet* pAutoAttr = nullptr );
SwGrfNode( const SwNodeIndex& rWhere,
const GraphicObject& rGrfObj,
SwGrfFormatColl* pGrfColl,
- SwAttrSet* pAutoAttr = 0 );
+ SwAttrSet* pAutoAttr = nullptr );
void InsertLink( const OUString& rGrfName, const OUString& rFltName );
bool ImportGraphic( SvStream& rStrm );
@@ -127,8 +127,8 @@ public:
void SetGraphic(const Graphic& rGraphic, const OUString& rLink);
/// wrappers for non-const calls at GraphicObject
- void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0, const GraphicAttr* pAttr = NULL, GraphicManagerDrawFlags nFlags = GraphicManagerDrawFlags::STANDARD, OutputDevice* pFirstFrameOutDev = NULL) { maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pAttr, nFlags, pFirstFrameOutDev); }
- void StopGraphicAnimation(OutputDevice* pOut = NULL, long nExtraData = 0) { maGrfObj.StopAnimation(pOut, nExtraData); }
+ void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0, const GraphicAttr* pAttr = nullptr, GraphicManagerDrawFlags nFlags = GraphicManagerDrawFlags::STANDARD, OutputDevice* pFirstFrameOutDev = nullptr) { maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pAttr, nFlags, pFirstFrameOutDev); }
+ void StopGraphicAnimation(OutputDevice* pOut = nullptr, long nExtraData = 0) { maGrfObj.StopAnimation(pOut, nExtraData); }
virtual Size GetTwipSize() const override;
void SetTwipSize( const Size& rSz );
@@ -158,8 +158,8 @@ public:
/** Re-read in case graphic was not OK. The current one
gets replaced by the new one. */
bool ReRead( const OUString& rGrfName, const OUString& rFltName,
- const Graphic* pGraphic = 0,
- const GraphicObject* pGrfObj = 0,
+ const Graphic* pGraphic = nullptr,
+ const GraphicObject* pGrfObj = nullptr,
bool bModify = true );
private:
/// Loading of graphic immediately before displaying.
@@ -205,12 +205,12 @@ public:
// Inline methods from Node.hxx - it is only now that we know TextNode!!
inline SwGrfNode *SwNode::GetGrfNode()
{
- return ND_GRFNODE == m_nNodeType ? static_cast<SwGrfNode*>(this) : 0;
+ return ND_GRFNODE == m_nNodeType ? static_cast<SwGrfNode*>(this) : nullptr;
}
inline const SwGrfNode *SwNode::GetGrfNode() const
{
- return ND_GRFNODE == m_nNodeType ? static_cast<const SwGrfNode*>(this) : 0;
+ return ND_GRFNODE == m_nNodeType ? static_cast<const SwGrfNode*>(this) : nullptr;
}
inline bool SwGrfNode::IsLinkedFile() const
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx
index 2d15a123eafc..c885be091460 100644
--- a/sw/inc/ndhints.hxx
+++ b/sw/inc/ndhints.hxx
@@ -45,7 +45,7 @@ SwTextAttr * MakeTextAttr(
sal_Int32 const nStt,
sal_Int32 const nEnd,
CopyOrNew_t const bIsCopy = NEW,
- SwTextNode *const pTextNode = 0 );
+ SwTextNode *const pTextNode = nullptr );
SwTextAttr * MakeTextAttr(
SwDoc & rDoc,
@@ -172,7 +172,7 @@ public:
/// register a History, which receives all attribute changes (for Undo)
void Register( SwRegHistory* pHist ) { m_pHistory = pHist; }
/// deregister the currently registered History
- void DeRegister() { Register(0); }
+ void DeRegister() { Register(nullptr); }
SwRegHistory* GetHistory() const { return m_pHistory; }
/// try to insert the hint
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index 722b874389b4..3c6b23439704 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -46,7 +46,7 @@ class SW_DLLPUBLIC SwNoTextNode : public SwContentNode
protected:
SwNoTextNode( const SwNodeIndex &rWhere, const sal_uInt8 nNdType,
- SwGrfFormatColl *pGrColl, SwAttrSet* pAutoAttr = 0 );
+ SwGrfFormatColl *pGrColl, SwAttrSet* pAutoAttr = nullptr );
public:
virtual ~SwNoTextNode();
@@ -68,7 +68,7 @@ public:
void SetContour( const tools::PolyPolygon *pPoly,
bool bAutomatic = false );
const tools::PolyPolygon *HasContour() const;
- bool _HasContour() const { return pContour!=0; };
+ bool _HasContour() const { return pContour!=nullptr; };
void GetContour( tools::PolyPolygon &rPoly ) const;
void CreateContour();
@@ -93,11 +93,11 @@ public:
// Inline methods from Node.hxx - we know TextNode only here!!
inline SwNoTextNode *SwNode::GetNoTextNode()
{
- return ND_NOTXTNODE & m_nNodeType ? static_cast<SwNoTextNode*>(this) : 0;
+ return ND_NOTXTNODE & m_nNodeType ? static_cast<SwNoTextNode*>(this) : nullptr;
}
inline const SwNoTextNode *SwNode::GetNoTextNode() const
{
- return ND_NOTXTNODE & m_nNodeType ? static_cast<const SwNoTextNode*>(this) : 0;
+ return ND_NOTXTNODE & m_nNodeType ? static_cast<const SwNoTextNode*>(this) : nullptr;
}
#endif // INCLUDED_SW_INC_NDNOTXT_HXX
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index d9776327bcb9..d5c78b7ae072 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -80,13 +80,13 @@ class SW_DLLPUBLIC SwOLENode: public SwNoTextNode
SwOLENode( const SwNodeIndex &rWhere,
const svt::EmbeddedObjectRef&,
SwGrfFormatColl *pGrfColl,
- SwAttrSet* pAutoAttr = 0 );
+ SwAttrSet* pAutoAttr = nullptr );
SwOLENode( const SwNodeIndex &rWhere,
const OUString &rName,
sal_Int64 nAspect,
SwGrfFormatColl *pGrfColl,
- SwAttrSet* pAutoAttr = 0 );
+ SwAttrSet* pAutoAttr = nullptr );
SwOLENode( const SwOLENode & ) = delete;
@@ -140,12 +140,12 @@ public:
/// Inline methods from Node.hxx
inline SwOLENode *SwNode::GetOLENode()
{
- return ND_OLENODE == m_nNodeType ? static_cast<SwOLENode*>(this) : 0;
+ return ND_OLENODE == m_nNodeType ? static_cast<SwOLENode*>(this) : nullptr;
}
inline const SwOLENode *SwNode::GetOLENode() const
{
- return ND_OLENODE == m_nNodeType ? static_cast<const SwOLENode*>(this) : 0;
+ return ND_OLENODE == m_nNodeType ? static_cast<const SwOLENode*>(this) : nullptr;
}
#endif // _ INCLUDED_SW_INC_NDOLE_HXX
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index 285f3d01c14f..24a6bea2a96a 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -118,7 +118,7 @@ class SW_DLLPUBLIC SwTextNode: public SwContentNode, public ::sfx2::Metadatable
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maFillAttributes;
SAL_DLLPRIVATE SwTextNode( const SwNodeIndex &rWhere, SwTextFormatColl *pTextColl,
- const SfxItemSet* pAutoAttr = 0 );
+ const SfxItemSet* pAutoAttr = nullptr );
/// Copies the attributes at nStart to pDest.
SAL_DLLPRIVATE void CopyAttr( SwTextNode *pDest, const sal_Int32 nStart, const sal_Int32 nOldPos);
@@ -234,7 +234,7 @@ public:
/// Is in itratr.
void GetMinMaxSize( sal_uLong nIndex, sal_uLong& rMin, sal_uLong &rMax, sal_uLong &rAbs,
- OutputDevice* pOut = 0 ) const;
+ OutputDevice* pOut = nullptr ) const;
/// overriding to handle change of certain paragraph attributes
virtual bool SetAttr( const SfxPoolItem& ) override;
@@ -276,7 +276,7 @@ public:
const SwIndex &rIdx,
const sal_Int32 nLen,
const sal_uInt16 nWhich = 0,
- const SfxItemSet* pSet = 0,
+ const SfxItemSet* pSet = nullptr,
const bool bInclRefToxMark = false,
const bool bExactRange = false );
void GCAttr();
@@ -690,7 +690,7 @@ public:
const bool bAddSpaceAfterListLabelStr = false,
const bool bWithSpacesForLevel = false,
const bool bWithFootnote = true ) const;
- bool GetExpandText( SwTextNode& rDestNd, const SwIndex* pDestIdx = 0,
+ bool GetExpandText( SwTextNode& rDestNd, const SwIndex* pDestIdx = nullptr,
sal_Int32 nIdx = 0, sal_Int32 nLen = -1,
bool bWithNum = false, bool bWithFootnote = true,
bool bReplaceTabsWithSpaces = false ) const;
@@ -749,7 +749,7 @@ public:
/// change text to Upper/Lower/Hiragana/Katagana/...
void TransliterateText( utl::TransliterationWrapper& rTrans,
sal_Int32 nStart, sal_Int32 nEnd,
- SwUndoTransliterate* pUndo = 0 );
+ SwUndoTransliterate* pUndo = nullptr );
/// count words in given range - returns true if we refreshed out count
bool CountWords( SwDocStat& rStat, sal_Int32 nStart, sal_Int32 nEnd ) const;
@@ -848,12 +848,12 @@ inline SwTextFormatColl* SwTextNode::GetTextColl() const
/// Inline methods from Node.hxx
inline SwTextNode *SwNode::GetTextNode()
{
- return ND_TEXTNODE == m_nNodeType ? static_cast<SwTextNode*>(this) : 0;
+ return ND_TEXTNODE == m_nNodeType ? static_cast<SwTextNode*>(this) : nullptr;
}
inline const SwTextNode *SwNode::GetTextNode() const
{
- return ND_TEXTNODE == m_nNodeType ? static_cast<const SwTextNode*>(this) : 0;
+ return ND_TEXTNODE == m_nNodeType ? static_cast<const SwTextNode*>(this) : nullptr;
}
inline void
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 66a62506f2df..b7e973fb321a 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -257,7 +257,7 @@ public:
IDocumentListItems& getIDocumentListItems();
/// Is node in the visible area of the Shell?
- bool IsInVisibleArea( SwViewShell const * pSh = 0 ) const;
+ bool IsInVisibleArea( SwViewShell const * pSh = nullptr ) const;
/// Is node in an protected area?
bool IsInProtectSect() const;
/** Is node in something that is protected (range, frame,
@@ -267,7 +267,7 @@ public:
/** Search PageDesc with which this node is formatted. If layout is existent
search over layout, else only the hard way is left: search over the nodes
to the front!! */
- const SwPageDesc* FindPageDesc( bool bCalcLay, size_t* pPgDescNdIdx = 0 ) const;
+ const SwPageDesc* FindPageDesc( bool bCalcLay, size_t* pPgDescNdIdx = nullptr ) const;
/// If node is in a fly return the respective format.
SwFrameFormat* GetFlyFormat() const;
@@ -391,8 +391,8 @@ public:
virtual SwContentNode *JoinPrev();
/** Is it possible to join two nodes?
In pIdx the second position can be returned. */
- bool CanJoinNext( SwNodeIndex* pIdx =0 ) const;
- bool CanJoinPrev( SwNodeIndex* pIdx =0 ) const;
+ bool CanJoinNext( SwNodeIndex* pIdx =nullptr ) const;
+ bool CanJoinPrev( SwNodeIndex* pIdx =nullptr ) const;
void MakeStartIndex( SwIndex * pIdx ) { pIdx->Assign( this, 0 ); }
void MakeEndIndex( SwIndex * pIdx ) { pIdx->Assign( this, Len() ); }
@@ -402,16 +402,16 @@ public:
/// Replacement for good old GetFrm(..):
SwContentFrm *getLayoutFrm( const SwRootFrm*,
- const Point* pDocPos = 0,
- const SwPosition *pPos = 0,
+ const Point* pDocPos = nullptr,
+ const SwPosition *pPos = nullptr,
const bool bCalcFrm = true ) const;
/** @return the real size of the frame or an empty rectangle if
no layout exists. Needed for export filters. */
SwRect FindLayoutRect( const bool bPrtArea = false,
- const Point* pPoint = 0,
+ const Point* pPoint = nullptr,
const bool bCalcFrm = false ) const;
SwRect FindPageFrmRect( const bool bPrtArea = false,
- const Point* pPoint = 0,
+ const Point* pPoint = nullptr,
const bool bCalcFrm = false ) const;
/** Method creates all views of document for given node. The content
@@ -554,7 +554,7 @@ public:
On default the frames are created until the end of the range.
When another NodeIndex pEnd is passed a MakeFrms is called up to it.
Used by TableToText. */
- void MakeFrms( SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = NULL );
+ void MakeFrms( SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = nullptr );
/** Method deletes all views of document for the node. The
content frames are removed from the respective layout. */
@@ -589,43 +589,43 @@ private:
inline SwEndNode *SwNode::GetEndNode()
{
- return ND_ENDNODE == m_nNodeType ? static_cast<SwEndNode*>(this) : 0;
+ return ND_ENDNODE == m_nNodeType ? static_cast<SwEndNode*>(this) : nullptr;
}
inline const SwEndNode *SwNode::GetEndNode() const
{
- return ND_ENDNODE == m_nNodeType ? static_cast<const SwEndNode*>(this) : 0;
+ return ND_ENDNODE == m_nNodeType ? static_cast<const SwEndNode*>(this) : nullptr;
}
inline SwStartNode *SwNode::GetStartNode()
{
- return ND_STARTNODE & m_nNodeType ? static_cast<SwStartNode*>(this) : 0;
+ return ND_STARTNODE & m_nNodeType ? static_cast<SwStartNode*>(this) : nullptr;
}
inline const SwStartNode *SwNode::GetStartNode() const
{
- return ND_STARTNODE & m_nNodeType ? static_cast<const SwStartNode*>(this) : 0;
+ return ND_STARTNODE & m_nNodeType ? static_cast<const SwStartNode*>(this) : nullptr;
}
inline SwTableNode *SwNode::GetTableNode()
{
- return ND_TABLENODE == m_nNodeType ? static_cast<SwTableNode*>(this) : 0;
+ return ND_TABLENODE == m_nNodeType ? static_cast<SwTableNode*>(this) : nullptr;
}
inline const SwTableNode *SwNode::GetTableNode() const
{
- return ND_TABLENODE == m_nNodeType ? static_cast<const SwTableNode*>(this) : 0;
+ return ND_TABLENODE == m_nNodeType ? static_cast<const SwTableNode*>(this) : nullptr;
}
inline SwSectionNode *SwNode::GetSectionNode()
{
- return ND_SECTIONNODE == m_nNodeType ? static_cast<SwSectionNode*>(this) : 0;
+ return ND_SECTIONNODE == m_nNodeType ? static_cast<SwSectionNode*>(this) : nullptr;
}
inline const SwSectionNode *SwNode::GetSectionNode() const
{
- return ND_SECTIONNODE == m_nNodeType ? static_cast<const SwSectionNode*>(this) : 0;
+ return ND_SECTIONNODE == m_nNodeType ? static_cast<const SwSectionNode*>(this) : nullptr;
}
inline SwContentNode *SwNode::GetContentNode()
{
- return ND_CONTENTNODE & m_nNodeType ? static_cast<SwContentNode*>(this) : 0;
+ return ND_CONTENTNODE & m_nNodeType ? static_cast<SwContentNode*>(this) : nullptr;
}
inline const SwContentNode *SwNode::GetContentNode() const
{
- return ND_CONTENTNODE & m_nNodeType ? static_cast<const SwContentNode*>(this) : 0;
+ return ND_CONTENTNODE & m_nNodeType ? static_cast<const SwContentNode*>(this) : nullptr;
}
inline bool SwNode::IsStartNode() const
@@ -717,7 +717,7 @@ inline const SwDoc* SwNode::GetDoc() const
inline SwFormatColl* SwContentNode::GetCondFormatColl() const
{
- return m_pCondColl ? static_cast<SwFormatColl*>(m_pCondColl->GetRegisteredIn()) : 0;
+ return m_pCondColl ? static_cast<SwFormatColl*>(m_pCondColl->GetRegisteredIn()) : nullptr;
}
inline SwFormatColl& SwContentNode::GetAnyFormatColl() const
diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx
index ace92d0bcb4e..e07e7128917b 100644
--- a/sw/inc/numrule.hxx
+++ b/sw/inc/numrule.hxx
@@ -82,7 +82,7 @@ public:
void SetGrfBulletCP(sal_Unicode cP){m_cGrfBulletCP = cP;}
sal_Unicode GetGrfBulletCP() const {return m_cGrfBulletCP;}
- virtual void SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize = 0, const sal_Int16* pOrient = 0) override;
+ virtual void SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize = nullptr, const sal_Int16* pOrient = nullptr) override;
virtual void SetVertOrient(sal_Int16 eSet) override;
virtual sal_Int16 GetVertOrient() const override;
@@ -173,7 +173,7 @@ public:
const bool bInclStrings = true,
const bool bOnlyArabic = false,
const unsigned int _nRestrictToThisLevel = MAXLEVEL,
- Extremities* pExtremities = 0 ) const;
+ Extremities* pExtremities = nullptr ) const;
OUString MakeRefNumString( const SwNodeNum& rNodeNum,
const bool bInclSuperiorNumLabels = false,
const sal_uInt8 nRestrictInclToThisLevel = 0 ) const;
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index 8a6c3d555f08..01d32fb21bd1 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -164,23 +164,23 @@ class SW_DLLPUBLIC SwPaM : public sw::Ring<SwPaM>
SwPosition * m_pMark; ///< points at either m_Bound1 or m_Bound2
bool m_bIsInFrontOfLabel;
- SwPaM* MakeRegion( SwMoveFn fnMove, const SwPaM * pOrigRg = 0 );
+ SwPaM* MakeRegion( SwMoveFn fnMove, const SwPaM * pOrigRg = nullptr );
SwPaM(SwPaM const& rPaM) = delete;
public:
- explicit SwPaM( const SwPosition& rPos, SwPaM* pRing = 0 );
- SwPaM( const SwPosition& rMk, const SwPosition& rPt, SwPaM* pRing = 0 );
+ explicit SwPaM( const SwPosition& rPos, SwPaM* pRing = nullptr );
+ SwPaM( const SwPosition& rMk, const SwPosition& rPt, SwPaM* pRing = nullptr );
SwPaM( const SwNodeIndex& rMk, const SwNodeIndex& rPt,
- long nMkOffset = 0, long nPtOffset = 0, SwPaM* pRing = 0 );
+ long nMkOffset = 0, long nPtOffset = 0, SwPaM* pRing = nullptr );
SwPaM( const SwNode& rMk, const SwNode& rPt,
- long nMkOffset = 0, long nPtOffset = 0, SwPaM* pRing = 0 );
+ long nMkOffset = 0, long nPtOffset = 0, SwPaM* pRing = nullptr );
SwPaM( const SwNodeIndex& rMk, sal_Int32 nMkContent,
- const SwNodeIndex& rPt, sal_Int32 nPtContent, SwPaM* pRing = 0 );
+ const SwNodeIndex& rPt, sal_Int32 nPtContent, SwPaM* pRing = nullptr );
SwPaM( const SwNode& rMk, sal_Int32 nMkContent,
- const SwNode& rPt, sal_Int32 nPtContent, SwPaM* pRing = 0 );
- SwPaM( const SwNode& rNd, sal_Int32 nContent = 0, SwPaM* pRing = 0 );
- SwPaM( const SwNodeIndex& rNd, sal_Int32 nContent = 0, SwPaM* pRing = 0 );
+ const SwNode& rPt, sal_Int32 nPtContent, SwPaM* pRing = nullptr );
+ SwPaM( const SwNode& rNd, sal_Int32 nContent = 0, SwPaM* pRing = nullptr );
+ SwPaM( const SwNodeIndex& rNd, sal_Int32 nContent = 0, SwPaM* pRing = nullptr );
virtual ~SwPaM();
/// this takes a second parameter, which indicates the Ring that
@@ -198,13 +198,13 @@ public:
bool bSearchInNotes,
utl::TextSearch& rSText,
SwMoveFn fnMove = fnMoveForward,
- const SwPaM *pPam =0, bool bInReadOnly = false);
+ const SwPaM *pPam =nullptr, bool bInReadOnly = false);
bool Find( const SwFormat& rFormat,
SwMoveFn fnMove = fnMoveForward,
- const SwPaM *pPam =0, bool bInReadOnly = false);
+ const SwPaM *pPam =nullptr, bool bInReadOnly = false);
bool Find( const SfxPoolItem& rAttr, bool bValue = true,
SwMoveFn fnMove = fnMoveForward,
- const SwPaM *pPam =0, bool bInReadOnly = false );
+ const SwPaM *pPam =nullptr, bool bInReadOnly = false );
bool Find( const SfxItemSet& rAttr, bool bNoColls,
SwMoveFn fnMove,
const SwPaM *pPam, bool bInReadOnly, bool bMoveFirst );
@@ -293,7 +293,7 @@ public:
{ return bOne ? m_Bound1 : m_Bound2; }
/// Get number of page which contains cursor.
- sal_uInt16 GetPageNum( bool bAtPoint = true, const Point* pLayPos = 0 );
+ sal_uInt16 GetPageNum( bool bAtPoint = true, const Point* pLayPos = nullptr );
/** Is in something protected (readonly) or selection contains
something protected. */
diff --git a/sw/inc/paratr.hxx b/sw/inc/paratr.hxx
index 46c8267296c0..2fa8fbc52153 100644
--- a/sw/inc/paratr.hxx
+++ b/sw/inc/paratr.hxx
@@ -77,12 +77,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0) const override;
+ const IntlWrapper* pIntl = nullptr) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
@@ -121,12 +121,12 @@ public:
inline SwRegisterItem& operator=( const SwRegisterItem& rRegister );
/// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
inline SwRegisterItem::SwRegisterItem( const bool bRegister ) :
@@ -159,12 +159,12 @@ public:
/// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
@@ -183,12 +183,12 @@ public:
inline SwParaConnectBorderItem& operator=( const SwParaConnectBorderItem& rConnect );
/// "pure virtual methods" of SfxPoolItem
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
};
inline SwParaConnectBorderItem::SwParaConnectBorderItem( const bool bConnect ) :
diff --git a/sw/inc/postithelper.hxx b/sw/inc/postithelper.hxx
index dd3e4b45014b..554e5ebc6a43 100644
--- a/sw/inc/postithelper.hxx
+++ b/sw/inc/postithelper.hxx
@@ -57,7 +57,7 @@ struct SwLayoutInfo
sal_uInt16 mRedlineAuthor;
SwLayoutInfo()
- : mpAnchorFrm(0)
+ : mpAnchorFrm(nullptr)
, mPosition()
, mnStartNodeIdx( 0 )
, mnStartContent( -1 )
@@ -79,7 +79,7 @@ namespace SwPostItHelper
SwLayoutStatus getLayoutInfos(
SwLayoutInfo& o_rInfo,
const SwPosition& rAnchorPos,
- const SwPosition* pAnnotationStartPos = NULL );
+ const SwPosition* pAnnotationStartPos = nullptr );
long getLayoutHeight( const SwRootFrm* pRoot );
void setSidebarChanged( SwRootFrm* pRoot, bool bBrowseMode );
@@ -98,7 +98,7 @@ public:
SwSidebarItem( const bool aShow,
const bool aFocus)
- : pPostIt(0)
+ : pPostIt(nullptr)
, bShow(aShow)
, bFocus(aFocus)
, mLayoutStatus( SwPostItHelper::INVISIBLE )
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index 5a074e091a4b..adac3de94ac2 100644
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -80,8 +80,8 @@ public:
SwPrintData()
{
- m_pPrintUIOptions = NULL;
- m_pRenderData = NULL;
+ m_pPrintUIOptions = nullptr;
+ m_pRenderData = nullptr;
bPrintGraphic =
bPrintTable =
@@ -251,21 +251,21 @@ public:
SwRenderData();
~SwRenderData();
- bool HasPostItData() const { return m_pPostItShell != 0; }
+ bool HasPostItData() const { return m_pPostItShell != nullptr; }
void CreatePostItData( SwDoc *pDoc, const SwViewOption *pViewOpt, OutputDevice *pOutDev );
void DeletePostItData();
SfxObjectShellLock const& GetTempDocShell() const { return m_xTempDocShell;}
void SetTempDocShell(SfxObjectShellLock const&);
- bool IsViewOptionAdjust() const { return m_pViewOptionAdjust != 0; }
+ bool IsViewOptionAdjust() const { return m_pViewOptionAdjust != nullptr; }
bool NeedNewViewOptionAdjust( const SwViewShell& ) const;
void ViewOptionAdjustStart( SwViewShell &rSh, const SwViewOption &rViewOptions);
void ViewOptionAdjust( SwPrintData const* const pPrtOptions );
void ViewOptionAdjustStop();
void ViewOptionAdjustCrashPreventionKludge();
- bool HasSwPrtOptions() const { return m_pPrtOptions != 0; }
+ bool HasSwPrtOptions() const { return m_pPrtOptions != nullptr; }
SwPrintData const* GetSwPrtOptions() const { return m_pPrtOptions.get(); }
void MakeSwPrtOptions( SwDocShell const*const pDocShell,
SwPrintUIOptions const*const pOpt, bool const bIsPDFExport );
diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index 9aa157e0c93c..72d590928201 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -57,7 +57,7 @@ class SwRedlineExtraData_FormatColl : public SwRedlineExtraData
sal_uInt16 nPoolId;
public:
SwRedlineExtraData_FormatColl( const OUString& rColl, sal_uInt16 nPoolFormatId,
- const SfxItemSet* pSet = 0 );
+ const SfxItemSet* pSet = nullptr );
virtual ~SwRedlineExtraData_FormatColl();
virtual SwRedlineExtraData* CreateNew() const override;
virtual void Reject( SwPaM& rPam ) const override;
@@ -121,7 +121,7 @@ public:
// For sw3io: pNext/pExtraData are taken over.
SwRedlineData( RedlineType_t eT, sal_uInt16 nAut, const DateTime& rDT,
const OUString& rCmnt, SwRedlineData* pNxt,
- SwRedlineExtraData* pExtraData = 0 );
+ SwRedlineExtraData* pExtraData = nullptr );
~SwRedlineData();
@@ -200,7 +200,7 @@ public:
// For sw3io: pData is taken over!
SwRangeRedline(SwRedlineData* pData, const SwPosition& rPos, bool bVsbl,
bool bDelLP, bool bIsPD) :
- SwPaM( rPos ), pRedlineData( pData ), pContentSect( 0 ),
+ SwPaM( rPos ), pRedlineData( pData ), pContentSect( nullptr ),
bDelLastPara( bDelLP ), bIsLastParaDelete( bIsPD ), bIsVisible( bVsbl )
{}
SwRangeRedline( const SwRangeRedline& );
@@ -213,12 +213,12 @@ public:
bool IsVisible() const { return bIsVisible; }
bool IsDelLastPara() const { return bDelLastPara; }
- void SetStart( const SwPosition& rPos, SwPosition* pSttPtr = 0 )
+ void SetStart( const SwPosition& rPos, SwPosition* pSttPtr = nullptr )
{
if( !pSttPtr ) pSttPtr = Start();
*pSttPtr = rPos;
}
- void SetEnd( const SwPosition& rPos, SwPosition* pEndPtr = 0 )
+ void SetEnd( const SwPosition& rPos, SwPosition* pEndPtr = nullptr )
{
if( !pEndPtr ) pEndPtr = End();
*pEndPtr = rPos;
diff --git a/sw/inc/reffld.hxx b/sw/inc/reffld.hxx
index 4ed183749aae..010e08a82dec 100644
--- a/sw/inc/reffld.hxx
+++ b/sw/inc/reffld.hxx
@@ -76,7 +76,7 @@ public:
static SwTextNode* FindAnchor( SwDoc* pDoc, const OUString& rRefMark,
sal_uInt16 nSubType, sal_uInt16 nSeqNo,
- sal_Int32* pStt, sal_Int32* pEnd = 0 );
+ sal_Int32* pStt, sal_Int32* pEnd = nullptr );
};
class SW_DLLPUBLIC SwGetRefField : public SwField
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx
index a07dd06382a6..f3581ce9968b 100644
--- a/sw/inc/section.hxx
+++ b/sw/inc/section.hxx
@@ -116,7 +116,7 @@ public:
void SetCondition(OUString const& rNew) { m_sCondition = rNew; }
OUString GetLinkFileName() const { return m_sLinkFileName; }
- void SetLinkFileName(OUString const& rNew, OUString const* pPassWd = 0)
+ void SetLinkFileName(OUString const& rNew, OUString const* pPassWd = nullptr)
{
m_sLinkFileName = rNew;
if (pPassWd) { SetLinkFilePassword(*pPassWd); }
@@ -203,7 +203,7 @@ public:
void SetCondition(OUString const& rNew) { m_Data.SetCondition(rNew); }
OUString GetLinkFileName() const;
- void SetLinkFileName(OUString const& rNew, OUString const*const pPassWd = 0);
+ void SetLinkFileName(OUString const& rNew, OUString const*const pPassWd = nullptr);
// Password of linked file (only valid during runtime!)
OUString GetLinkFilePassword() const
{ return m_Data.GetLinkFilePassword(); }
@@ -354,7 +354,7 @@ SwSectionFormat const * SwSection::GetFormat() const
inline SwSection* SwSection::GetParent() const
{
SwSectionFormat const * pFormat = GetFormat();
- SwSection* pRet = 0;
+ SwSection* pRet = nullptr;
if( pFormat )
pRet = pFormat->GetParentSection();
return pRet;
@@ -362,7 +362,7 @@ inline SwSection* SwSection::GetParent() const
inline SwSectionFormat* SwSectionFormat::GetParent() const
{
- SwSectionFormat* pRet = 0;
+ SwSectionFormat* pRet = nullptr;
if( GetRegisteredIn() )
pRet = const_cast<SwSectionFormat*>(dynamic_cast< const SwSectionFormat* >( GetRegisteredIn() ));
return pRet;
@@ -371,7 +371,7 @@ inline SwSectionFormat* SwSectionFormat::GetParent() const
inline SwSection* SwSectionFormat::GetParentSection() const
{
SwSectionFormat* pParent = GetParent();
- SwSection* pRet = 0;
+ SwSection* pRet = nullptr;
if( pParent )
{
pRet = pParent->GetSection();
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index 9e8938eee4e9..9b8c94ea8304 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -161,7 +161,7 @@ public:
// Initial reading. Document is created only at Read(...)
// or in case it is given, into that.
// Special case for Load with Sw3Reader.
- SwReader( SfxMedium&, const OUString& rFilename, SwDoc *pDoc = 0 );
+ SwReader( SfxMedium&, const OUString& rFilename, SwDoc *pDoc = nullptr );
// Read into existing document.
// Document and position in document are taken from SwPaM.
@@ -412,10 +412,10 @@ public:
Writer();
virtual ~Writer();
- virtual sal_uLong Write( SwPaM&, SfxMedium&, const OUString* = 0 );
- sal_uLong Write( SwPaM&, SvStream&, const OUString* = 0 );
- virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString* = 0, SfxMedium* = 0 );
- virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = 0 );
+ virtual sal_uLong Write( SwPaM&, SfxMedium&, const OUString* = nullptr );
+ sal_uLong Write( SwPaM&, SvStream&, const OUString* = nullptr );
+ virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString* = nullptr, SfxMedium* = nullptr );
+ virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = nullptr );
virtual void SetupFilterOptions(SfxMedium& rMedium);
@@ -476,8 +476,8 @@ public:
virtual bool IsStgWriter() const override;
- virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString* = 0, SfxMedium* = 0 ) override;
- virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = 0 ) override;
+ virtual sal_uLong Write( SwPaM&, const css::uno::Reference < css::embed::XStorage >&, const OUString* = nullptr, SfxMedium* = nullptr ) override;
+ virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = nullptr ) override;
SotStorage& GetStorage() const { return *pStg; }
};
@@ -498,7 +498,7 @@ class SW_DLLPUBLIC SwWriter
bool bWriteAll;
public:
- sal_uLong Write( WriterRef& rxWriter, const OUString* = 0);
+ sal_uLong Write( WriterRef& rxWriter, const OUString* = nullptr);
SwWriter( SvStream&, SwCrsrShell &, bool bWriteAll = false );
SwWriter( SvStream&, SwDoc & );
@@ -523,7 +523,7 @@ struct SwReaderWriterEntry
bool bDelReader;
SwReaderWriterEntry( const FnGetReader fnReader, const FnGetWriter fnWriter, bool bDel )
- : pReader( NULL ), fnGetReader( fnReader ), fnGetWriter( fnWriter ), bDelReader( bDel )
+ : pReader( nullptr ), fnGetReader( fnReader ), fnGetWriter( fnWriter ), bDelReader( bDel )
{}
/// Get access to the reader.
diff --git a/sw/inc/splargs.hxx b/sw/inc/splargs.hxx
index f0fc06f3638e..dd1e736fe954 100644
--- a/sw/inc/splargs.hxx
+++ b/sw/inc/splargs.hxx
@@ -77,7 +77,7 @@ struct SwConversionArgs : SwArgsBase
nConvSrcLang( nLang ),
nConvTextLang( LANGUAGE_NONE ),
nConvTargetLang( LANGUAGE_NONE ),
- pTargetFont( NULL ),
+ pTargetFont( nullptr ),
bAllowImplicitChangesForNotConvertibleText( false )
{}
};
@@ -137,7 +137,7 @@ public:
}
const Point *GetCrsrPos() const
{
- return aCrsrPos.X() || aCrsrPos.Y() ? &aCrsrPos : 0;
+ return aCrsrPos.X() || aCrsrPos.Y() ? &aCrsrPos : nullptr;
}
bool IsCheck() const { return bCheck; }
void SetCheck( const bool bNew ) { bCheck = bNew; }
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 4e2064c36a57..8919596a8198 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -337,7 +337,7 @@ public:
virtual AbstractSwBreakDlg * CreateSwBreakDlg(vcl::Window *pParent, SwWrtShell &rSh) = 0;
virtual VclAbstractDialog * CreateSwChangeDBDlg(SwView& rVw) = 0;
virtual SfxAbstractTabDialog * CreateSwCharDlg(vcl::Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet,
- sal_uInt8 nDialogMode, const OUString* pFormatStr = 0) = 0;
+ sal_uInt8 nDialogMode, const OUString* pFormatStr = nullptr) = 0;
virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg(SwView& rView, bool bToTable) = 0;
virtual VclAbstractDialog * CreateSwCaptionDialog ( vcl::Window *pParent, SwView &rV,int nResId) = 0;
@@ -360,7 +360,7 @@ public:
SwView& rVw,
const SfxItemSet& rCoreSet,
sal_uInt8 nDialogMode,
- const OUString *pCollName = 0,
+ const OUString *pCollName = nullptr,
bool bDraw = false,
const OString& sDefPage = OString() ) = 0;
@@ -371,7 +371,7 @@ public:
virtual AbstractSwAutoFormatDlg * CreateSwAutoFormatDlg( vcl::Window* pParent, SwWrtShell* pShell,
bool bSetAutoFormat = true,
- const SwTableAutoFormat* pSelFormat = 0 ) = 0;
+ const SwTableAutoFormat* pSelFormat = nullptr ) = 0;
virtual SfxAbstractDialog * CreateSwBorderDlg ( vcl::Window* pParent, SfxItemSet& rSet, SwBorderModes nType, int nResId ) = 0;
virtual SfxAbstractDialog * CreateSwWrapDlg ( vcl::Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, bool bDrawMode, int nResId ) = 0;
@@ -393,7 +393,7 @@ public:
bool bNewFrm = true,
bool bFormat = false,
const OString& sDefPage = OString(),
- const OUString* pFormatStr = 0) = 0;
+ const OUString* pFormatStr = nullptr) = 0;
/// @param nSlot
/// Identifies optional Slot by which the creation of the Template (Style) dialog is triggered.
/// Currently used, if nRegion == SFX_STYLE_FAMILY_PAGE in order to activate certain dialog pane
@@ -402,7 +402,7 @@ public:
SfxStyleSheetBase& rBase,
sal_uInt16 nRegion,
const OString& sPage = OString(),
- SwWrtShell* pActShell = 0,
+ SwWrtShell* pActShell = nullptr,
bool bNew = false) = 0;
virtual AbstractGlossaryDlg* CreateGlossaryDlg(SfxViewFrame* pViewFrame,
SwGlossaryHdl* pGlosHdl,
@@ -422,7 +422,7 @@ public:
const OUString& rTableName,
sal_Int32 nCommandType,
const css::uno::Reference< css::sdbc::XConnection>& xConnection,
- css::uno::Sequence< css::uno::Any >* pSelection = 0 ) = 0;
+ css::uno::Sequence< css::uno::Any >* pSelection = nullptr ) = 0;
virtual AbstractMailMergeCreateFromDlg* CreateMailMergeCreateFromDlg(vcl::Window* pParent) = 0;
virtual AbstractMailMergeFieldConnectionsDlg* CreateMailMergeFieldConnectionsDlg(vcl::Window* pParent) = 0;
virtual VclAbstractDialog* CreateMultiTOXMarkDlg(vcl::Window* pParent, SwTOXMgr &rTOXMgr) = 0;
diff --git a/sw/inc/swatrset.hxx b/sw/inc/swatrset.hxx
index 72f01e7c335e..a0d08f2a20c2 100644
--- a/sw/inc/swatrset.hxx
+++ b/sw/inc/swatrset.hxx
@@ -184,7 +184,7 @@ public:
SwAttrSet( SwAttrPool&, const sal_uInt16* nWhichPairTable );
SwAttrSet( const SwAttrSet& );
- virtual SfxItemSet* Clone(bool bItems = true, SfxItemPool *pToPool = 0) const override;
+ virtual SfxItemSet* Clone(bool bItems = true, SfxItemPool *pToPool = nullptr) const override;
bool Put_BC( const SfxPoolItem& rAttr, SwAttrSet* pOld, SwAttrSet* pNew );
bool Put_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
@@ -192,7 +192,7 @@ public:
// Delete an item or a range.
sal_uInt16 ClearItem_BC( sal_uInt16 nWhich, SwAttrSet* pOld, SwAttrSet* pNew );
sal_uInt16 ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
- SwAttrSet* pOld = 0, SwAttrSet* pNew = 0 );
+ SwAttrSet* pOld = nullptr, SwAttrSet* pNew = nullptr );
int Intersect_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
diff --git a/sw/inc/swbaslnk.hxx b/sw/inc/swbaslnk.hxx
index 6660a2dd17e2..602c5919af06 100644
--- a/sw/inc/swbaslnk.hxx
+++ b/sw/inc/swbaslnk.hxx
@@ -37,7 +37,7 @@ protected:
public:
TYPEINFO_OVERRIDE();
- SwBaseLink( SfxLinkUpdateMode nMode, SotClipboardFormatId nFormat, SwContentNode* pNode = 0 )
+ SwBaseLink( SfxLinkUpdateMode nMode, SotClipboardFormatId nFormat, SwContentNode* pNode = nullptr )
: ::sfx2::SvBaseLink( nMode, nFormat ), pContentNode( pNode ),
bSwapIn( false ), bNoDataFlag( false ), bIgnoreDataChanged( false )
{}
@@ -53,7 +53,7 @@ public:
// For graphics only.
bool SwapIn( bool bWaitForData = false, bool bNativFormat = false );
- bool Connect() { return 0 != SvBaseLink::GetRealObject(); }
+ bool Connect() { return nullptr != SvBaseLink::GetRealObject(); }
// Only for graphics-links (for switching between DDE / Grf-link).
void SetObjType( sal_uInt16 nType ) { SvBaseLink::SetObjType( nType ); }
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index 012acef8a8db..08b217e095fc 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -94,10 +94,10 @@ public:
public:
- virtual SwCursor* Create( SwPaM* pRing = 0 ) const;
+ virtual SwCursor* Create( SwPaM* pRing = nullptr ) const;
virtual short MaxReplaceArived(); //returns RET_YES/RET_CANCEL/RET_NO
- virtual void SaveTableBoxContent( const SwPosition* pPos = 0 );
+ virtual void SaveTableBoxContent( const SwPosition* pPos = nullptr );
void FillFindPos( SwDocPositions ePos, SwPosition& rPos ) const;
SwMoveFnCollection* MakeFindRange( SwDocPositions, SwDocPositions,
@@ -113,13 +113,13 @@ public:
SwDocPositions nStart, SwDocPositions nEnde,
bool& bCancel,
FindRanges = FND_IN_BODY,
- const SwTextFormatColl* pReplFormat = 0 );
+ const SwTextFormatColl* pReplFormat = nullptr );
sal_uLong Find( const SfxItemSet& rSet, bool bNoCollections,
SwDocPositions nStart, SwDocPositions nEnde,
bool& bCancel,
FindRanges = FND_IN_BODY,
- const css::util::SearchOptions* pSearchOpt = 0,
- const SfxItemSet* rReplSet = 0 );
+ const css::util::SearchOptions* pSearchOpt = nullptr,
+ const SfxItemSet* rReplSet = nullptr );
// UI versions
bool IsStartWord( sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES ) const;
@@ -130,7 +130,7 @@ public:
bool GoEndWord();
bool GoNextWord();
bool GoPrevWord();
- bool SelectWord( SwViewShell* pViewShell, const Point* pPt = 0 );
+ bool SelectWord( SwViewShell* pViewShell, const Point* pPt = nullptr );
// API versions of above functions (will be used with a different
// WordType for the break iterator)
@@ -141,7 +141,7 @@ public:
bool GoEndWordWT( sal_Int16 nWordType );
bool GoNextWordWT( sal_Int16 nWordType );
bool GoPrevWordWT( sal_Int16 nWordType );
- bool SelectWordWT( SwViewShell* pViewShell, sal_Int16 nWordType, const Point* pPt = 0 );
+ bool SelectWordWT( SwViewShell* pViewShell, sal_Int16 nWordType, const Point* pPt = nullptr );
enum SentenceMoveType
{
@@ -242,7 +242,7 @@ struct _SwCursor_SavePos
_SwCursor_SavePos( const SwCursor& rCrsr )
: nNode( rCrsr.GetPoint()->nNode.GetIndex() ),
nContent( rCrsr.GetPoint()->nContent.GetIndex() ),
- pNext( 0 )
+ pNext( nullptr )
{}
virtual ~_SwCursor_SavePos() {}
@@ -264,7 +264,7 @@ protected:
virtual bool IsSelOvrCheck(int eFlags) override;
public:
- SwTableCursor( const SwPosition &rPos, SwPaM* pRing = 0 );
+ SwTableCursor( const SwPosition &rPos, SwPaM* pRing = nullptr );
SwTableCursor( SwTableCursor& );
virtual ~SwTableCursor();
diff --git a/sw/inc/swevent.hxx b/sw/inc/swevent.hxx
index e2ca9302d2fd..567928739b1d 100644
--- a/sw/inc/swevent.hxx
+++ b/sw/inc/swevent.hxx
@@ -88,16 +88,16 @@ struct SwCallMouseEvent
SwCallMouseEvent()
: eType( EVENT_OBJECT_NONE )
- { PTR.pFormat = 0; PTR.IMAP.pIMapObj = 0; }
+ { PTR.pFormat = nullptr; PTR.IMAP.pIMapObj = nullptr; }
void Set( SwCallEventObjectType eTyp, const SwFrameFormat* pFormat )
- { eType = eTyp; PTR.pFormat = pFormat; PTR.IMAP.pIMapObj = 0; }
+ { eType = eTyp; PTR.pFormat = pFormat; PTR.IMAP.pIMapObj = nullptr; }
void Set( const SwFrameFormat* pFormat, const IMapObject* pIMapObj )
{ eType = EVENT_OBJECT_IMAGEMAP; PTR.pFormat = pFormat; PTR.IMAP.pIMapObj = pIMapObj; }
void Set( const SwFormatINetFormat* pINetAttr )
- { eType = EVENT_OBJECT_INETATTR; PTR.pINetAttr = pINetAttr; PTR.IMAP.pIMapObj = 0; }
+ { eType = EVENT_OBJECT_INETATTR; PTR.pINetAttr = pINetAttr; PTR.IMAP.pIMapObj = nullptr; }
bool operator==( const SwCallMouseEvent& rEvent ) const
{
@@ -109,7 +109,7 @@ struct SwCallMouseEvent
{ return !( *this == rEvent ); }
void Clear()
- { eType = EVENT_OBJECT_NONE; PTR.pFormat = 0; PTR.IMAP.pIMapObj = 0; }
+ { eType = EVENT_OBJECT_NONE; PTR.pFormat = nullptr; PTR.IMAP.pIMapObj = nullptr; }
bool HasEvent() const { return EVENT_OBJECT_NONE != eType; }
};
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index a30a466f69fe..ee21c78430ef 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -221,7 +221,7 @@ public:
// It's not allowed to change the table model after the first call of one of these functions.
bool Merge( SwDoc* pDoc, const SwSelBoxes& rBoxes, const SwSelBoxes& rMerged,
- SwTableBox* pMergeBox, SwUndoTableMerge* pUndo = 0 )
+ SwTableBox* pMergeBox, SwUndoTableMerge* pUndo = nullptr )
{
#ifdef DBG_UTIL
m_bDontChangeModel = true;
@@ -253,7 +253,7 @@ public:
bool SplitCol( SwDoc* pDoc, const SwSelBoxes& rBoxes, sal_uInt16 nCnt=1 );
void FindSuperfluousRows( SwSelBoxes& rBoxes )
- { _FindSuperfluousRows( rBoxes, 0, 0 ); }
+ { _FindSuperfluousRows( rBoxes, nullptr, nullptr ); }
void CheckRowSpan( SwTableLine* &rpLine, bool bUp ) const;
SwTableSortBoxes& GetTabSortBoxes() { return m_TabSortContentBoxes; }
@@ -279,9 +279,9 @@ public:
bool bCpyNds = true, bool bCpyName = false ) const;
// Copy table in this
bool InsTable( const SwTable& rCpyTable, const SwNodeIndex&,
- SwUndoTableCpyTable* pUndo = 0 );
+ SwUndoTableCpyTable* pUndo = nullptr );
bool InsTable( const SwTable& rCpyTable, const SwSelBoxes&,
- SwUndoTableCpyTable* pUndo = 0 );
+ SwUndoTableCpyTable* pUndo = nullptr );
bool InsNewTable( const SwTable& rCpyTable, const SwSelBoxes&,
SwUndoTableCpyTable* pUndo );
// Copy headline of table (with content!) into an other one.
@@ -350,7 +350,7 @@ class SW_DLLPUBLIC SwTableLine: public SwClient // Client of FrameFormat.
public:
TYPEINFO_OVERRIDE();
- SwTableLine() : m_pUpper(0) {}
+ SwTableLine() : m_pUpper(nullptr) {}
SwTableLine( SwTableLineFormat*, sal_uInt16 nBoxes, SwTableBox *pUp );
virtual ~SwTableLine();
@@ -370,9 +370,9 @@ public:
void ChgFrameFormat( SwTableLineFormat* pNewFormat );
// Search next/previous box with content.
- SwTableBox* FindNextBox( const SwTable&, const SwTableBox* =0,
+ SwTableBox* FindNextBox( const SwTable&, const SwTableBox* =nullptr,
bool bOvrTableLns=true ) const;
- SwTableBox* FindPreviousBox( const SwTable&, const SwTableBox* =0,
+ SwTableBox* FindPreviousBox( const SwTable&, const SwTableBox* =nullptr,
bool bOvrTableLns=true ) const;
SwTwips GetTableLineHeight( bool& bLayoutAvailable ) const;
@@ -412,9 +412,9 @@ public:
SwTableBox();
- SwTableBox( SwTableBoxFormat*, sal_uInt16 nLines, SwTableLine *pUp = 0 );
- SwTableBox( SwTableBoxFormat*, const SwStartNode&, SwTableLine *pUp = 0 );
- SwTableBox( SwTableBoxFormat*, const SwNodeIndex&, SwTableLine *pUp = 0 );
+ SwTableBox( SwTableBoxFormat*, sal_uInt16 nLines, SwTableLine *pUp = nullptr );
+ SwTableBox( SwTableBoxFormat*, const SwStartNode&, SwTableLine *pUp = nullptr );
+ SwTableBox( SwTableBoxFormat*, const SwNodeIndex&, SwTableLine *pUp = nullptr );
virtual ~SwTableBox();
SwTableLines &GetTabLines() { return m_aLines; }
@@ -442,9 +442,9 @@ public:
sal_uLong GetSttIdx() const;
// Search next/previous box with content.
- SwTableBox* FindNextBox( const SwTable&, const SwTableBox* =0,
+ SwTableBox* FindNextBox( const SwTable&, const SwTableBox* =nullptr,
bool bOvrTableLns=true ) const;
- SwTableBox* FindPreviousBox( const SwTable&, const SwTableBox* =0,
+ SwTableBox* FindPreviousBox( const SwTable&, const SwTableBox* =nullptr,
bool bOvrTableLns=true ) const;
// Return name of this box. It is determined dynamically and
// is calculated from the position in the lines/boxes/table.
@@ -456,7 +456,7 @@ public:
// width or height when inserting cols or rows
Point GetCoordinates() const;
- bool IsInHeadline( const SwTable* pTable = 0 ) const;
+ bool IsInHeadline( const SwTable* pTable = nullptr ) const;
// Contains box contents, that can be formatted as a number?
bool HasNumContent( double& rNum, sal_uInt32& rFormatIndex,
diff --git a/sw/inc/swunohelper.hxx b/sw/inc/swunohelper.hxx
index a5281c7b4833..a4ad0b131c38 100644
--- a/sw/inc/swunohelper.hxx
+++ b/sw/inc/swunohelper.hxx
@@ -65,8 +65,8 @@ SW_DLLPUBLIC bool UCB_IsReadOnlyFileName( const OUString& rURL );
// !! objects must be deleted from the caller!!
bool UCB_GetFileListOfFolder( const OUString& rURL,
std::vector<OUString>& rList,
- const OUString* pExtension = 0,
- std::vector<DateTime*>* pDateTimeList = 0 );
+ const OUString* pExtension = nullptr,
+ std::vector<DateTime*>* pDateTimeList = nullptr );
// is the URL an existing file?
SW_DLLPUBLIC bool UCB_IsFile( const OUString& rURL );
diff --git a/sw/inc/tblsel.hxx b/sw/inc/tblsel.hxx
index b6c8950c14fb..524cb4ebd30f 100644
--- a/sw/inc/tblsel.hxx
+++ b/sw/inc/tblsel.hxx
@@ -104,7 +104,7 @@ bool IsFrmInTableSel( const SwRect& rUnion, const SwFrm* pCell );
// i.e. boxes are added if some overlap at the sides.
// Additionally a new box is created and filled with the relevant content.
void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
- SwTableBox** ppMergeBox, SwUndoTableMerge* pUndo = 0 );
+ SwTableBox** ppMergeBox, SwUndoTableMerge* pUndo = nullptr );
// Check if selected boxes allow for a valid merge.
sal_uInt16 CheckMergeSel( const SwPaM& rPam );
@@ -169,7 +169,7 @@ class _FndBox
public:
_FndBox( SwTableBox* pB, _FndLine* pFL ) :
- pBox(pB), pUpper(pFL), pLineBefore( 0 ), pLineBehind( 0 ) {}
+ pBox(pB), pUpper(pFL), pLineBefore( nullptr ), pLineBehind( nullptr ) {}
const FndLines_t& GetLines() const { return m_Lines; }
FndLines_t& GetLines() { return m_Lines; }
@@ -187,7 +187,7 @@ public:
const bool bBehind );
bool AreLinesToRestore( const SwTable &rTable ) const;
- void ClearLineBehind() { pLineBehind = 0; }
+ void ClearLineBehind() { pLineBehind = nullptr; }
};
class _FndLine
@@ -200,7 +200,7 @@ class _FndLine
_FndLine& operator=(_FndLine const&) = delete;
public:
- _FndLine(SwTableLine* pL, _FndBox* pFB=0) : pLine(pL), pUpper(pFB) {}
+ _FndLine(SwTableLine* pL, _FndBox* pFB=nullptr) : pLine(pL), pUpper(pFB) {}
const FndBoxes_t& GetBoxes() const { return m_Boxes; }
FndBoxes_t& GetBoxes() { return m_Boxes; }
const SwTableLine* GetLine() const { return pLine; }
@@ -218,7 +218,7 @@ struct _FndPara
_FndBox* pFndBox;
_FndPara( const SwSelBoxes& rBxs, _FndBox* pFB )
- : rBoxes(rBxs), pFndLine(0), pFndBox(pFB) {}
+ : rBoxes(rBxs), pFndLine(nullptr), pFndBox(pFB) {}
_FndPara( const _FndPara& rPara, _FndBox* pFB )
: rBoxes(rPara.rBoxes), pFndLine(rPara.pFndLine), pFndBox(pFB) {}
_FndPara( const _FndPara& rPara, _FndLine* pFL )
diff --git a/sw/inc/tgrditem.hxx b/sw/inc/tgrditem.hxx
index cad07df1059f..fa54460edec4 100644
--- a/sw/inc/tgrditem.hxx
+++ b/sw/inc/tgrditem.hxx
@@ -52,12 +52,12 @@ public:
// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
OUString &rText,
- const IntlWrapper* pIntl = 0 ) const override;
+ const IntlWrapper* pIntl = nullptr ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx
index 99d7436b3f7d..fde50c3519a7 100644
--- a/sw/inc/tox.hxx
+++ b/sw/inc/tox.hxx
@@ -94,7 +94,7 @@ public:
// "pure virtual methods" of SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const override;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
void InvalidateTOXMark();
@@ -426,7 +426,7 @@ protected:
public:
SwTOXBase( const SwTOXType* pTyp, const SwForm& rForm,
sal_uInt16 nCreaType, const OUString& rTitle );
- SwTOXBase( const SwTOXBase& rCopy, SwDoc* pDoc = 0 );
+ SwTOXBase( const SwTOXBase& rCopy, SwDoc* pDoc = nullptr );
virtual ~SwTOXBase();
virtual bool GetInfo( SfxPoolItem& rInfo ) const override;
diff --git a/sw/inc/txtannotationfld.hxx b/sw/inc/txtannotationfld.hxx
index 7f7e330b6134..62b99e4ca45f 100644
--- a/sw/inc/txtannotationfld.hxx
+++ b/sw/inc/txtannotationfld.hxx
@@ -36,7 +36,7 @@ public:
virtual ~SwTextAnnotationField();
::sw::mark::IMark* GetAnnotationMark(
- SwDoc* pDoc = NULL ) const;
+ SwDoc* pDoc = nullptr ) const;
};
#endif
diff --git a/sw/inc/txtrfmrk.hxx b/sw/inc/txtrfmrk.hxx
index eaff28f8c7cc..23d21a20e4ba 100644
--- a/sw/inc/txtrfmrk.hxx
+++ b/sw/inc/txtrfmrk.hxx
@@ -31,7 +31,7 @@ class SwTextRefMark : public SwTextAttrEnd
public:
SwTextRefMark( SwFormatRefMark& rAttr,
- sal_Int32 const nStart, sal_Int32 const*const pEnd = 0);
+ sal_Int32 const nStart, sal_Int32 const*const pEnd = nullptr);
virtual sal_Int32* GetEnd() override; // SwTextAttr
diff --git a/sw/inc/txttxmrk.hxx b/sw/inc/txttxmrk.hxx
index 40c4024f4494..6538582889fc 100644
--- a/sw/inc/txttxmrk.hxx
+++ b/sw/inc/txttxmrk.hxx
@@ -32,7 +32,7 @@ class SwTextTOXMark : public SwTextAttrEnd
public:
SwTextTOXMark( SwTOXMark& rAttr,
- sal_Int32 const nStart, sal_Int32 const*const pEnd = 0);
+ sal_Int32 const nStart, sal_Int32 const*const pEnd = nullptr);
virtual ~SwTextTOXMark();
virtual sal_Int32 *GetEnd() override; // SwTextAttr
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx
index be74d1a3c210..298c9ca69941 100644
--- a/sw/inc/undobj.hxx
+++ b/sw/inc/undobj.hxx
@@ -54,7 +54,7 @@ protected:
bool bCacheComment;
mutable OUString * pComment;
- static void RemoveIdxFromSection( SwDoc&, sal_uLong nSttIdx, sal_uLong* pEndIdx = 0 );
+ static void RemoveIdxFromSection( SwDoc&, sal_uLong nSttIdx, sal_uLong* pEndIdx = nullptr );
static void RemoveIdxFromRange( SwPaM& rPam, bool bMoveNext );
static void RemoveIdxRel( sal_uLong, const SwPosition& );
@@ -149,11 +149,11 @@ protected:
// MoveTo: moves from the NodesArray into the UndoNodesArray.
// MoveFrom: moves from the UndoNodesArray into the NodesArray.
static void MoveToUndoNds( SwPaM& rPam,
- SwNodeIndex* pNodeIdx = 0,
- sal_uLong* pEndNdIdx = 0, sal_Int32 * pEndCntIdx = 0 );
+ SwNodeIndex* pNodeIdx = nullptr,
+ sal_uLong* pEndNdIdx = nullptr, sal_Int32 * pEndCntIdx = nullptr );
static void MoveFromUndoNds( SwDoc& rDoc, sal_uLong nNodeIdx,
SwPosition& rInsPos,
- sal_uLong* pEndNdIdx = 0, sal_Int32 * pEndCntIdx = 0 );
+ sal_uLong* pEndNdIdx = nullptr, sal_Int32 * pEndCntIdx = nullptr );
// These two methods move the SPoint back/forth from PaM. With it
// a range can be spanned for Undo/Redo. (In this case the SPoint
diff --git a/sw/inc/unocrsr.hxx b/sw/inc/unocrsr.hxx
index 3cf2c2c3322f..902e75530423 100644
--- a/sw/inc/unocrsr.hxx
+++ b/sw/inc/unocrsr.hxx
@@ -39,7 +39,7 @@ private:
bool m_bSkipOverProtectSections : 1;
public:
- SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing = 0 );
+ SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing = nullptr );
virtual ~SwUnoCrsr();
protected:
diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx
index 5c59c67b9896..41f83af366ce 100644
--- a/sw/inc/unocrsrhelper.hxx
+++ b/sw/inc/unocrsrhelper.hxx
@@ -85,7 +85,7 @@ namespace SwUnoCursorHelper
, SwPaM& rPam
, css::uno::Any *pAny
, css::beans::PropertyState& eState
- , const SwTextNode* pNode = 0 );
+ , const SwTextNode* pNode = nullptr );
void GetCurPageStyle(SwPaM& rPaM, OUString &rString);
diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx
index 81ba5ec5dc66..661b9acc5917 100644
--- a/sw/inc/unodraw.hxx
+++ b/sw/inc/unodraw.hxx
@@ -158,7 +158,7 @@ class SwXShape : public SwXShapeBaseClass,
@author OD
*/
- SdrObject* _GetTopGroupObj( SvxShape* _pSvxShape = 0L );
+ SdrObject* _GetTopGroupObj( SvxShape* _pSvxShape = nullptr );
/** method to determine position according to the positioning attributes
diff --git a/sw/inc/unoparagraph.hxx b/sw/inc/unoparagraph.hxx
index d9fa41e6b5bc..9a29e8b82178 100644
--- a/sw/inc/unoparagraph.hxx
+++ b/sw/inc/unoparagraph.hxx
@@ -84,7 +84,7 @@ public:
static css::uno::Reference<css::text::XTextContent>
CreateXParagraph(SwDoc & rDoc, SwTextNode * pTextNode,
css::uno::Reference< css::text::XText>
- const& xParentText = 0,
+ const& xParentText = nullptr,
const sal_Int32 nSelStart = -1, const sal_Int32 nSelEnd = - 1);
const SwTextNode * GetTextNode() const;
@@ -279,8 +279,8 @@ struct SwXParagraphEnumeration
css::uno::Reference< css::text::XText > const & xParent,
std::shared_ptr<SwUnoCrsr> pCursor,
const CursorType eType,
- SwStartNode const*const pStartNode = 0,
- SwTable const*const pTable = 0);
+ SwStartNode const*const pStartNode = nullptr,
+ SwTable const*const pTable = nullptr);
};
#endif // INCLUDED_SW_INC_UNOPARAGRAPH_HXX
diff --git a/sw/inc/unosett.hxx b/sw/inc/unosett.hxx
index e9cf05ae6839..d19f5f170885 100644
--- a/sw/inc/unosett.hxx
+++ b/sw/inc/unosett.hxx
@@ -66,7 +66,7 @@ public:
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override;
- void Invalidate() {pDoc = 0;}
+ void Invalidate() {pDoc = nullptr;}
};
class SwXEndnoteProperties : public cppu::WeakAggImplHelper2
@@ -96,7 +96,7 @@ public:
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override;
- void Invalidate() {pDoc = 0;}
+ void Invalidate() {pDoc = nullptr;}
};
class SwXLineNumberingProperties : public cppu::WeakAggImplHelper2
@@ -126,7 +126,7 @@ public:
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override;
- void Invalidate() {pDoc = 0;}
+ void Invalidate() {pDoc = nullptr;}
};
class SwXNumberingRules : public cppu::WeakAggImplHelper5
@@ -155,7 +155,7 @@ protected:
public:
SwXNumberingRules(SwDocShell& rDocSh); // chapter numbering
- SwXNumberingRules(const SwNumRule& rRule, SwDoc* doc = NULL); // NumRule for paragraphs, numbering styles
+ SwXNumberingRules(const SwNumRule& rRule, SwDoc* doc = nullptr); // NumRule for paragraphs, numbering styles
SwXNumberingRules(SwDoc& rDoc); //create a new instance
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId();
@@ -202,7 +202,7 @@ public:
const SwNumRule* GetNumRule() {return pNumRule;}
static bool isInvalidStyle(const OUString &rName);
- void Invalidate() {pDocShell = 0;}
+ void Invalidate() {pDocShell = nullptr;}
OUString GetCreatedNumRuleName() const {return m_sCreatedNumRuleName;}
static css::uno::Sequence<css::beans::PropertyValue> GetPropertiesForNumFormat(
diff --git a/sw/inc/unotextcursor.hxx b/sw/inc/unotextcursor.hxx
index 0394b1b0ab7a..f8fa7463d2e5 100644
--- a/sw/inc/unotextcursor.hxx
+++ b/sw/inc/unotextcursor.hxx
@@ -83,7 +83,7 @@ public:
css::uno::Reference< css::text::XText > const& xParent,
const enum CursorType eType,
SwPosition const& rPos,
- SwPosition const*const pMark = 0);
+ SwPosition const*const pMark = nullptr);
SwXTextCursor(
css::uno::Reference< css::text::XText > const& xParent,
SwPaM const& rSourceCursor,
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index 438ca6e2cf2a..f8be80a8dd09 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -492,7 +492,7 @@ public:
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override;
- void Invalidate() {pxDoc = 0;}
+ void Invalidate() {pxDoc = nullptr;}
};
class SwXLinkNameAccessWrapper : public cppu::WeakImplHelper
@@ -608,7 +608,7 @@ public:
void AdjustViewOptions( SwPrintData const* const pPrtOptions );
bool checkShell( const SwViewShell& rCompare ) const
{ return &rCompare == m_pShell; }
- void DontTouchThatViewShellItSmellsFunny() { m_pShell = 0; }
+ void DontTouchThatViewShellItSmellsFunny() { m_pShell = nullptr; }
};
#endif
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index b9fa19564af3..359f2e80d8e3 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -138,10 +138,10 @@ struct SwApplyTemplate
SwApplyTemplate() :
eType(0),
nColor(0),
- m_pFormatClipboard(0),
+ m_pFormatClipboard(nullptr),
nUndo(0)
{
- aColl.pTextColl = 0;
+ aColl.pTextColl = nullptr;
}
};
@@ -261,7 +261,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
// methods for searching
// set search context
SAL_DLLPRIVATE bool SearchAndWrap(bool bApi = false);
- SAL_DLLPRIVATE bool SearchAll(sal_uInt16* pFound = 0);
+ SAL_DLLPRIVATE bool SearchAll(sal_uInt16* pFound = nullptr);
SAL_DLLPRIVATE sal_uLong FUNC_Search( const SwSearchOptions& rOptions );
SAL_DLLPRIVATE void Replace();
@@ -309,8 +309,8 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
// used for spell checking and text conversion
SAL_DLLPRIVATE void SpellStart( SvxSpellArea eSpell, bool bStartDone,
- bool bEndDone, SwConversionArgs *pConvArgs = 0 );
- SAL_DLLPRIVATE void SpellEnd( SwConversionArgs *pConvArgs = 0 );
+ bool bEndDone, SwConversionArgs *pConvArgs = nullptr );
+ SAL_DLLPRIVATE void SpellEnd( SwConversionArgs *pConvArgs = nullptr );
SAL_DLLPRIVATE void HyphStart( SvxSpellArea eSpell );
SAL_DLLPRIVATE void SpellKontext(bool bOn = true)
@@ -536,8 +536,8 @@ public:
bool AreOnlyFormsSelected() const;
bool HasDrwObj(SdrObject *pSdrObj) const;
bool HasOnlyObj(SdrObject *pSdrObj, sal_uInt32 eObjInventor) const;
- bool BeginTextEdit( SdrObject* pObj, SdrPageView* pPV=NULL,
- vcl::Window* pWin=NULL, bool bIsNewObj=false, bool bSetSelectionToStart=false );
+ bool BeginTextEdit( SdrObject* pObj, SdrPageView* pPV=nullptr,
+ vcl::Window* pWin=nullptr, bool bIsNewObj=false, bool bSetSelectionToStart=false );
void StateTabWin(SfxItemSet&);
@@ -549,7 +549,7 @@ public:
// edit links
void EditLinkDlg();
- void AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId = 0);
+ void AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId = nullptr);
void InsertCaption(const InsCaptionOpt *pOpt);
// Async call by Core
@@ -565,7 +565,7 @@ public:
inline virtual const FmFormShell *GetFormShell() const override { return m_pFormShell; }
// so that in the SubShells' DTors m_pShell can be reset if applicable
- void ResetSubShell() { m_pShell = 0; }
+ void ResetSubShell() { m_pShell = nullptr; }
virtual void WriteUserData(OUString &, bool bBrowse = false) override;
virtual void ReadUserData(const OUString &, bool bBrowse = false) override;
@@ -617,8 +617,8 @@ public:
//public fuer D&D
int InsertGraphic( const OUString &rPath, const OUString &rFilter,
- bool bLink = true, GraphicFilter *pFlt = 0,
- Graphic* pPreviewGrf = 0,
+ bool bLink = true, GraphicFilter *pFlt = nullptr,
+ Graphic* pPreviewGrf = nullptr,
bool bRule = false );
void ExecuteScan( SfxRequest& rReq );
diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx
index 42fd3e5ca5b0..5055992f36b6 100644
--- a/sw/inc/viewopt.hxx
+++ b/sw/inc/viewopt.hxx
@@ -244,7 +244,7 @@ public:
{ b ? (m_nCoreOptions |= VIEWOPT_1_POSTITS ) : ( m_nCoreOptions &= ~VIEWOPT_1_POSTITS); }
static void PaintPostIts( OutputDevice *pOut, const SwRect &rRect,
bool bIsScript );
- static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut = 0 );
+ static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut = nullptr );
inline bool IsShowHiddenChar(bool bHard = false) const
{ return !m_bReadonly && (m_nCoreOptions & VIEWOPT_1_CHAR_HIDDEN) &&
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 6e93657ee0dd..61b562b7a753 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -546,10 +546,10 @@ public:
SwAccessibleMap* GetAccessibleMap();
- SwViewShell( SwViewShell&, vcl::Window *pWin = 0, OutputDevice *pOut = 0,
+ SwViewShell( SwViewShell&, vcl::Window *pWin = nullptr, OutputDevice *pOut = nullptr,
long nFlags = 0 );
SwViewShell( SwDoc& rDoc, vcl::Window *pWin,
- const SwViewOption *pOpt = 0, OutputDevice *pOut = 0,
+ const SwViewOption *pOpt = nullptr, OutputDevice *pOut = nullptr,
long nFlags = 0 );
virtual ~SwViewShell();
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx
index 48487bcf0b20..0e2da96efe14 100644
--- a/sw/inc/viscrs.hxx
+++ b/sw/inc/viscrs.hxx
@@ -99,7 +99,7 @@ public:
// make a complete swap access to m_pCursorOverlay is needed there
void swapContent(SwSelPaintRects& rSwap);
- void Show(std::vector<OString>* pSelectionRectangles = 0);
+ void Show(std::vector<OString>* pSelectionRectangles = nullptr);
void Hide();
void Invalidate( const SwRect& rRect );
@@ -112,7 +112,7 @@ public:
// check current MapMode of the shell and set possibly the static members.
// Optional set the parameters pX, pY
static void Get1PixelInLogic( const SwViewShell& rSh,
- long* pX = 0, long* pY = 0 );
+ long* pX = nullptr, long* pY = nullptr );
};
class SwShellCrsr : public virtual SwCursor, public SwSelPaintRects
@@ -128,7 +128,7 @@ private:
public:
SwShellCrsr( const SwCrsrShell& rCrsrSh, const SwPosition &rPos );
SwShellCrsr( const SwCrsrShell& rCrsrSh, const SwPosition &rPos,
- const Point& rPtPos, SwPaM* pRing = 0 );
+ const Point& rPtPos, SwPaM* pRing = nullptr );
// note: *intentionally* links the new shell cursor into the old one's Ring
SwShellCrsr( SwShellCrsr& );
virtual ~SwShellCrsr();
@@ -152,10 +152,10 @@ public:
virtual void SetMark() override;
- virtual SwCursor* Create( SwPaM* pRing = 0 ) const override;
+ virtual SwCursor* Create( SwPaM* pRing = nullptr ) const override;
virtual short MaxReplaceArived() override; //returns RET_YES/RET_CANCEL/RET_NO
- virtual void SaveTableBoxContent( const SwPosition* pPos = 0 ) override;
+ virtual void SaveTableBoxContent( const SwPosition* pPos = nullptr ) override;
bool UpDown( bool bUp, sal_uInt16 nCnt = 1 );
@@ -192,10 +192,10 @@ public:
bool IsInside( const Point& rPt ) const;
virtual void SetMark() override;
- virtual SwCursor* Create( SwPaM* pRing = 0 ) const override;
+ virtual SwCursor* Create( SwPaM* pRing = nullptr ) const override;
virtual short MaxReplaceArived() override; //returns RET_YES/RET_CANCEL/RET_NO
- virtual void SaveTableBoxContent( const SwPosition* pPos = 0 ) override;
+ virtual void SaveTableBoxContent( const SwPosition* pPos = nullptr ) override;
// true: Cursor can be set to this position.
virtual bool IsAtValidPos( bool bPoint = true ) const override;
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 23fb6a2f03e8..4e484ea8322f 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -89,8 +89,8 @@ bool SwFiltersTest::filter(const OUString &rFilter, const OUString &rURL,
SwDocShellRef xDocShRef = new SwDocShell;
SfxMedium* pSrcMed = new SfxMedium(rURL, STREAM_STD_READ);
- const SfxFilter* pImportFilter = 0;
- SfxFilter* pExportFilter = 0;
+ const SfxFilter* pImportFilter = nullptr;
+ SfxFilter* pExportFilter = nullptr;
if (bExport)
{
SfxGetpApp()->GetFilterMatcher().GuessFilter(*pSrcMed, &pImportFilter, SfxFilterFlags::IMPORT, SfxFilterFlags::NONE);
diff --git a/sw/qa/core/test_ToxTextGenerator.cxx b/sw/qa/core/test_ToxTextGenerator.cxx
index 5ce9098ccfa9..2a565ee05a88 100644
--- a/sw/qa/core/test_ToxTextGenerator.cxx
+++ b/sw/qa/core/test_ToxTextGenerator.cxx
@@ -48,7 +48,7 @@ public:
struct MockedSortTab : public SwTOXSortTabBase {
MockedSortTab()
- : SwTOXSortTabBase(TOX_SORT_INDEX,0,0,0) {;}
+ : SwTOXSortTabBase(TOX_SORT_INDEX,nullptr,nullptr,nullptr) {;}
virtual TextAndReading GetText_Impl() const override {
return TextAndReading();
@@ -86,7 +86,7 @@ void
ToxTextGeneratorTest::EmptyStringIsReturnedAsNumStringIfNoTextMarkIsSet()
{
MockedSortTab sortTab;
- sortTab.pTextMark = NULL;
+ sortTab.pTextMark = nullptr;
OUString expected("");
OUString actual = ToxTextGenerator::GetNumStringOfFirstNode(sortTab, false, 0);
@@ -153,13 +153,13 @@ ToxTextGeneratorTest::ChapterNumberWithoutTextIsGeneratedForNoprepstTitle()
token.nChapterFormat = CF_NUM_NOPREPST_TITLE;
OUString expected("1");
- OUString actual = ttg.GenerateTextForChapterToken(token, NULL, NULL);
+ OUString actual = ttg.GenerateTextForChapterToken(token, nullptr, nullptr);
CPPUNIT_ASSERT_EQUAL(expected, actual);
// we cannot mock the pre- and suffix generation in the chapterfield. We just test that sNumber and
// sTitle are used and hope that the pre- and suffix addition works.
token.nChapterFormat = CF_NUMBER;
- expected = ttg.GenerateTextForChapterToken(token, NULL, NULL);
+ expected = ttg.GenerateTextForChapterToken(token, nullptr, nullptr);
CPPUNIT_ASSERT_EQUAL(expected, actual);
}
@@ -179,13 +179,13 @@ ToxTextGeneratorTest::ChapterNumberWithTitleIsGeneratedForNumberNoPrepst()
token.nChapterFormat = CF_NUMBER_NOPREPST;
OUString expected("5 myTitle");
- OUString actual = ttg.GenerateTextForChapterToken(token, NULL, NULL);
+ OUString actual = ttg.GenerateTextForChapterToken(token, nullptr, nullptr);
CPPUNIT_ASSERT_EQUAL(expected, actual);
// we cannot mock the pre- and suffix generation in the chapterfield. We just test that sNumber and
// sTitle are used and hope that the pre- and suffix addition works.
token.nChapterFormat = CF_NUM_TITLE;
- expected = ttg.GenerateTextForChapterToken(token, NULL, NULL);
+ expected = ttg.GenerateTextForChapterToken(token, nullptr, nullptr);
CPPUNIT_ASSERT_EQUAL(expected, actual);
}
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index bb76e6cf8f54..206fe93146d1 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -74,7 +74,7 @@ class SwDocTest : public test::BootstrapFixture
{
public:
SwDocTest()
- : m_pDoc(NULL)
+ : m_pDoc(nullptr)
{
}
@@ -571,7 +571,7 @@ void SwDocTest::testSwScanner()
{
SwScanner aScanner(*pTextNode,
OUString("Hello World"),
- 0, ModelToViewHelper(), i18n::WordType::DICTIONARY_WORD, 0,
+ nullptr, ModelToViewHelper(), i18n::WordType::DICTIONARY_WORD, 0,
RTL_CONSTASCII_LENGTH("Hello World"));
bool bFirstOk = aScanner.NextWord();
@@ -926,7 +926,7 @@ void SwDocTest::testMergePortionsDeleteNotSorted()
SwPaM aPaM(aIdx);
m_pDoc->getIDocumentContentOperations().InsertString(aPaM, " AABBCC");
- SwCharFormat *const pCharFormat(m_pDoc->MakeCharFormat("foo", 0));
+ SwCharFormat *const pCharFormat(m_pDoc->MakeCharFormat("foo", nullptr));
SwFormatCharFormat const charFormat(pCharFormat);
SwFormatINetFormat const inetFormat("http://example.com", "");
@@ -973,8 +973,8 @@ void SwDocTest::testGraphicAnchorDeletion()
SwFormatAnchor aAnchor(FLY_AS_CHAR);
aAnchor.SetAnchor(aPaM.GetPoint());
aFlySet.Put(aAnchor);
- SwFlyFrameFormat *pFrame = m_pDoc->getIDocumentContentOperations().Insert(aPaM, OUString(), OUString(), NULL, &aFlySet, NULL, NULL);
- CPPUNIT_ASSERT_MESSAGE("Expected frame", pFrame != NULL);
+ SwFlyFrameFormat *pFrame = m_pDoc->getIDocumentContentOperations().Insert(aPaM, OUString(), OUString(), nullptr, &aFlySet, nullptr, nullptr);
+ CPPUNIT_ASSERT_MESSAGE("Expected frame", pFrame != nullptr);
CPPUNIT_ASSERT_MESSAGE("Should be 1 graphic", m_pDoc->GetFlyCount(FLYCNTTYPE_GRF) == 1);
@@ -1067,7 +1067,7 @@ void SwDocTest::randomTest()
for( int i = 0; i < 2000; i++ )
{
SwPaM aPam(m_pDoc->GetNodes());
- SwCursor aCrs(getRandomPosition(m_pDoc, i/20), 0, false);
+ SwCursor aCrs(getRandomPosition(m_pDoc, i/20), nullptr, false);
aCrs.SetMark();
switch (getRand (i < 50 ? 3 : 6)) {
@@ -1596,7 +1596,7 @@ void SwDocTest::test64kPageDescs()
size_t nPos;
SwPageDesc *pDesc = m_pDoc->FindPageDesc( aChanged, &nPos );
- CPPUNIT_ASSERT( pDesc != NULL );
+ CPPUNIT_ASSERT( pDesc != nullptr );
CPPUNIT_ASSERT( nPos == nPageDescCount );
// check if we didn't mess up PageDesc at pos 0
@@ -1608,12 +1608,12 @@ void SwDocTest::test64kPageDescs()
m_pDoc->DelPageDesc( aChanged, nPos );
pDesc = m_pDoc->FindPageDesc( aChanged, &nPos );
// not there anymore
- CPPUNIT_ASSERT( pDesc == NULL );
+ CPPUNIT_ASSERT( pDesc == nullptr );
CPPUNIT_ASSERT( nPos == SIZE_MAX );
// check if PageDesc at pos 0 is still there
pDesc = m_pDoc->FindPageDesc( aZeroName, &nPos );
- CPPUNIT_ASSERT( pDesc != NULL );
+ CPPUNIT_ASSERT( pDesc != nullptr );
CPPUNIT_ASSERT( nPos == 0 );
}
@@ -1634,7 +1634,7 @@ void SwDocTest::setUp()
void SwDocTest::tearDown()
{
- m_pDoc = 0; // deleted by DoClose()
+ m_pDoc = nullptr; // deleted by DoClose()
m_xDocShRef->DoClose();
m_xDocShRef.Clear();
diff --git a/sw/qa/extras/globalfilter/globalfilter.cxx b/sw/qa/extras/globalfilter/globalfilter.cxx
index a33329a8e890..1871c61ba052 100644
--- a/sw/qa/extras/globalfilter/globalfilter.cxx
+++ b/sw/qa/extras/globalfilter/globalfilter.cxx
@@ -666,15 +666,15 @@ void Test::testSkipImages()
// during DOC and DOCX import, using the "SkipImages" FilterOptions.
const char* aFilterNames[][2] = {
- { "/sw/qa/extras/globalfilter/data/skipimages.doc", NULL },
+ { "/sw/qa/extras/globalfilter/data/skipimages.doc", nullptr },
{ "/sw/qa/extras/globalfilter/data/skipimages.doc", "SkipImages" },
- { "/sw/qa/extras/globalfilter/data/skipimages.docx", NULL },
+ { "/sw/qa/extras/globalfilter/data/skipimages.docx", nullptr },
{ "/sw/qa/extras/globalfilter/data/skipimages.docx", "SkipImages" }
};
for( size_t nFilter = 0; nFilter < SAL_N_ELEMENTS(aFilterNames); ++nFilter )
{
- bool bSkipImages = aFilterNames[nFilter][1] != NULL;
+ bool bSkipImages = aFilterNames[nFilter][1] != nullptr;
OString sFailedMessage = OString("Failed on filter: ") + aFilterNames[nFilter][0];
if (mxComponent.is())
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index 8ae58fe37824..09b3a95a429a 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -154,7 +154,7 @@ public:
}
SwModelTestBase(const char* pTestDocumentPath = "", const char* pFilter = "")
- : mpXmlBuffer(0)
+ : mpXmlBuffer(nullptr)
, mpTestDocumentPath(pTestDocumentPath)
, mpFilter(pFilter)
, mnStartTime(0)
@@ -297,7 +297,7 @@ private:
// create the xml writer
mpXmlBuffer = xmlBufferCreate();
xmlTextWriterPtr pXmlWriter = xmlNewTextWriterMemory(mpXmlBuffer, 0);
- xmlTextWriterStartDocument(pXmlWriter, NULL, NULL, NULL);
+ xmlTextWriterStartDocument(pXmlWriter, nullptr, nullptr, nullptr);
// create the dump
SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
@@ -317,7 +317,7 @@ protected:
if (mpXmlBuffer)
{
xmlBufferFree(mpXmlBuffer);
- mpXmlBuffer = 0;
+ mpXmlBuffer = nullptr;
}
}
@@ -654,7 +654,7 @@ protected:
xmlDocPtr parseExport(const OUString& rStreamName = OUString("word/document.xml"))
{
if (!mbExported)
- return 0;
+ return nullptr;
return parseExportInternal( maTempFile.GetURL(), rStreamName );
}
diff --git a/sw/qa/extras/mailmerge/mailmerge.cxx b/sw/qa/extras/mailmerge/mailmerge.cxx
index 6f95565e7d9b..992ddd5ddeb0 100644
--- a/sw/qa/extras/mailmerge/mailmerge.cxx
+++ b/sw/qa/extras/mailmerge/mailmerge.cxx
@@ -92,7 +92,7 @@ public:
DBuriMap::const_iterator pos = aDBuriMap.find( aURI );
if (pos == aDBuriMap.end())
{
- aDBName = SwDBManager::LoadAndRegisterDataSource( aURI, NULL, &aWorkDir );
+ aDBName = SwDBManager::LoadAndRegisterDataSource( aURI, nullptr, &aWorkDir );
aDBuriMap.insert( std::pair< OUString, OUString >( aURI, aDBName ) );
std::cout << "New datasource name: '" << aDBName << "'" << std::endl;
}
@@ -170,7 +170,7 @@ public:
xmlDocPtr parseMailMergeExport(int number, const OUString& rStreamName = OUString("word/document.xml"))
{
if (mnCurOutputType != text::MailMergeType::FILE)
- return 0;
+ return nullptr;
OUString name = mailMergeOutputPrefix + OUString::number( number ) + ".odt";
return parseExportInternal( mailMergeOutputURL + "/" + name, rStreamName );
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
index 0b82bcf3654d..cfa1ddb4637e 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
@@ -700,7 +700,7 @@ DECLARE_OOXMLEXPORT_TEST(testAbsolutePositionOffsetValue,"fdo78432.docx")
for(sal_Int32 index = 0; index<6; ++index)
{
- CPPUNIT_ASSERT(pXmlObjs[index]->nodesetval != 0);
+ CPPUNIT_ASSERT(pXmlObjs[index]->nodesetval != nullptr);
xmlNodePtr pXmlNode = pXmlObjs[index]->nodesetval->nodeTab[0];
OUString contents = OUString::createFromAscii(reinterpret_cast<const char*>((pXmlNode->children[0]).content));
CPPUNIT_ASSERT( contents.toInt64() <= IntMax );
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index f0b495d37c5b..b9b3e93b6add 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -248,7 +248,7 @@ public:
CPPUNIT_TEST_SUITE_END();
private:
- SwDoc* createDoc(const char* pName = 0);
+ SwDoc* createDoc(const char* pName = nullptr);
};
SwDoc* SwUiWriterTest::createDoc(const char* pName)
@@ -483,7 +483,7 @@ void SwUiWriterTest::testImportRTF()
SvMemoryStream aStream(const_cast<sal_Char*>(aData.getStr()), aData.getLength(), StreamMode::READ);
SwReader aReader(aStream, OUString(), OUString(), *pWrtShell->GetCrsr());
Reader* pRTFReader = SwReaderWriter::GetReader(READER_WRITER_RTF);
- CPPUNIT_ASSERT(pRTFReader != 0);
+ CPPUNIT_ASSERT(pRTFReader != nullptr);
CPPUNIT_ASSERT_EQUAL(sal_uLong(0), aReader.Read(*pRTFReader));
sal_uLong nIndex = pWrtShell->GetCrsr()->GetNode().GetIndex();
@@ -719,7 +719,7 @@ void SwUiWriterTest::testChineseConversionBlank()
SwPaM aPaM(aIdx);
// When
- SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_CHINESE_SIMPLIFIED, NULL,
+ SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_CHINESE_SIMPLIFIED, nullptr,
i18n::TextConversionOption::CHARACTER_BY_CHARACTER, false,
true, false, false );
aWrap.Convert();
@@ -743,7 +743,7 @@ void SwUiWriterTest::testChineseConversionNonChineseText()
pDoc->getIDocumentContentOperations().InsertString(aPaM, NON_CHINESE_CONTENT);
// When
- SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_CHINESE_SIMPLIFIED, NULL,
+ SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_CHINESE_SIMPLIFIED, nullptr,
i18n::TextConversionOption::CHARACTER_BY_CHARACTER, false,
true, false, false );
aWrap.Convert();
@@ -767,7 +767,7 @@ void SwUiWriterTest::testChineseConversionTraditionalToSimplified()
pDoc->getIDocumentContentOperations().InsertString(aPaM, CHINESE_TRADITIONAL_CONTENT);
// When
- SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_CHINESE_SIMPLIFIED, NULL,
+ SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_CHINESE_SIMPLIFIED, nullptr,
i18n::TextConversionOption::CHARACTER_BY_CHARACTER, false,
true, false, false );
aWrap.Convert();
@@ -791,7 +791,7 @@ void SwUiWriterTest::testChineseConversionSimplifiedToTraditional()
pDoc->getIDocumentContentOperations().InsertString(aPaM, CHINESE_SIMPLIFIED_CONTENT);
// When
- SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_SIMPLIFIED, LANGUAGE_CHINESE_TRADITIONAL, NULL,
+ SwHHCWrapper aWrap( pView, xContext, LANGUAGE_CHINESE_SIMPLIFIED, LANGUAGE_CHINESE_TRADITIONAL, nullptr,
i18n::TextConversionOption::CHARACTER_BY_CHARACTER, false,
true, false, false );
aWrap.Convert();
@@ -2546,14 +2546,14 @@ void SwUiWriterTest::testShapeAnchorUndo()
Rectangle aOrigLogicRect(pObject->GetLogicRect());
sw::UndoManager& rUndoManager = pDoc->GetUndoManager();
- rUndoManager.StartUndo(UNDO_START, NULL);
+ rUndoManager.StartUndo(UNDO_START, nullptr);
pWrtShell->SelectObj(Point(), 0, pObject);
pWrtShell->GetDrawView()->MoveMarkedObj(Size(100, 100));
pWrtShell->ChgAnchor(0, true);
- rUndoManager.EndUndo(UNDO_END, NULL);
+ rUndoManager.EndUndo(UNDO_END, nullptr);
CPPUNIT_ASSERT(aOrigLogicRect != pObject->GetLogicRect());
@@ -2679,7 +2679,7 @@ void SwUiWriterTest::testTdf87922()
// Create an SwDrawTextInfo.
SwDoc* pDoc = createDoc("tdf87922.odt");
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
- SwScriptInfo* pScriptInfo = 0;
+ SwScriptInfo* pScriptInfo = nullptr;
// Get access to the single paragraph in the document.
SwNodeIndex aNodeIndex(pDoc->GetNodes().GetEndOfContent(), -1);
const OUString& rText = aNodeIndex.GetNode().GetTextNode()->GetText();
diff --git a/sw/source/core/SwNumberTree/SwNodeNum.cxx b/sw/source/core/SwNumberTree/SwNodeNum.cxx
index 14f16ff4946a..5b885a6c3a1a 100644
--- a/sw/source/core/SwNumberTree/SwNodeNum.cxx
+++ b/sw/source/core/SwNumberTree/SwNodeNum.cxx
@@ -28,13 +28,13 @@
SwNodeNum::SwNodeNum( SwTextNode* pTextNode )
: SwNumberTreeNode(),
mpTextNode( pTextNode ),
- mpNumRule( 0 )
+ mpNumRule( nullptr )
{
}
SwNodeNum::SwNodeNum( SwNumRule* pNumRule )
: SwNumberTreeNode(),
- mpTextNode( 0 ),
+ mpTextNode( nullptr ),
mpNumRule( pNumRule )
{
}
@@ -118,7 +118,7 @@ void SwNodeNum::PostRemove()
{
GetNumRule()->RemoveTextNode( *(GetTextNode()) );
}
- mpNumRule = 0;
+ mpNumRule = nullptr;
}
}
@@ -228,9 +228,9 @@ bool SwNodeNum::LessThan(const SwNumberTreeNode & rNode) const
bool bResult = false;
const SwNodeNum & rTmpNode = static_cast<const SwNodeNum &>(rNode);
- if (mpTextNode == NULL && rTmpNode.mpTextNode != NULL)
+ if (mpTextNode == nullptr && rTmpNode.mpTextNode != nullptr)
bResult = true;
- else if (mpTextNode != NULL && rTmpNode.mpTextNode != NULL)
+ else if (mpTextNode != nullptr && rTmpNode.mpTextNode != nullptr)
{
// #i83479# - refactoring
// simplify comparison by comparing the indexes of the text nodes
@@ -366,7 +366,7 @@ void SwNodeNum::_UnregisterMeAndChildrenDueToRootDelete( SwNodeNum& rNodeNum )
// #i81002#
const SwNodeNum* SwNodeNum::GetPrecedingNodeNumOf( const SwTextNode& rTextNode ) const
{
- const SwNodeNum* pPrecedingNodeNum( 0 );
+ const SwNodeNum* pPrecedingNodeNum( nullptr );
// #i83479#
SwNodeNum aNodeNumForTextNode( const_cast<SwTextNode*>(&rTextNode) );
diff --git a/sw/source/core/SwNumberTree/SwNumberTree.cxx b/sw/source/core/SwNumberTree/SwNumberTree.cxx
index 80151ff79fb2..459cf5425718 100644
--- a/sw/source/core/SwNumberTree/SwNumberTree.cxx
+++ b/sw/source/core/SwNumberTree/SwNumberTree.cxx
@@ -27,7 +27,7 @@ using std::find;
SwNumberTreeNode::SwNumberTreeNode()
: mChildren(),
- mpParent( 0 ),
+ mpParent( nullptr ),
mnNumber( 0 ),
mbContinueingPreviousSubTree( false ),
mbPhantom( false ),
@@ -53,7 +53,7 @@ SwNumberTreeNode::~SwNumberTreeNode()
}
}
- OSL_ENSURE( IsPhantom() || mpParent == NULL, ": I'm not supposed to have a parent.");
+ OSL_ENSURE( IsPhantom() || mpParent == nullptr, ": I'm not supposed to have a parent.");
mpParent = reinterpret_cast<SwNumberTreeNode *>(0xdeadbeef);
@@ -62,7 +62,7 @@ SwNumberTreeNode::~SwNumberTreeNode()
SwNumberTreeNode * SwNumberTreeNode::CreatePhantom()
{
- SwNumberTreeNode * pNew = NULL;
+ SwNumberTreeNode * pNew = nullptr;
if (! mChildren.empty() &&
(*mChildren.begin())->IsPhantom())
@@ -83,7 +83,7 @@ SwNumberTreeNode * SwNumberTreeNode::CreatePhantom()
OSL_FAIL("insert of phantom failed!");
delete pNew;
- pNew = NULL;
+ pNew = nullptr;
}
}
@@ -404,7 +404,7 @@ void SwNumberTreeNode::MoveChildren(SwNumberTreeNode * pDest)
if (pMyFirst->IsPhantom())
{
- SwNumberTreeNode * pDestLast = NULL;
+ SwNumberTreeNode * pDestLast = nullptr;
if (pDest->mChildren.empty())
pDestLast = pDest->CreatePhantom();
@@ -471,7 +471,7 @@ void SwNumberTreeNode::AddChild( SwNumberTreeNode * pChild,
return;
}
- if ( pChild->GetParent() != NULL || pChild->GetChildCount() > 0 )
+ if ( pChild->GetParent() != nullptr || pChild->GetChildCount() > 0 )
{
OSL_FAIL("only orphans allowed.");
return;
@@ -616,7 +616,7 @@ void SwNumberTreeNode::RemoveChild(SwNumberTreeNode * pChild)
{
SwNumberTreeNode * pRemove = *aRemoveIt;
- pRemove->mpParent = NULL;
+ pRemove->mpParent = nullptr;
tSwNumberTreeChildren::const_iterator aItPred = mChildren.end();
@@ -965,9 +965,9 @@ bool SwNumberTreeNodeLessThan(const SwNumberTreeNode * pA,
{
bool bResult = false;
- if (pA == NULL && pB != NULL)
+ if (pA == nullptr && pB != nullptr)
bResult = true;
- else if (pA != NULL && pB != NULL)
+ else if (pA != nullptr && pB != nullptr)
bResult = pA->LessThan(*pB);
return bResult;
@@ -975,7 +975,7 @@ bool SwNumberTreeNodeLessThan(const SwNumberTreeNode * pA,
SwNumberTreeNode * SwNumberTreeNode::GetLastDescendant() const
{
- SwNumberTreeNode * pResult = NULL;
+ SwNumberTreeNode * pResult = nullptr;
tSwNumberTreeChildren::const_reverse_iterator aIt = mChildren.rbegin();
if (aIt != mChildren.rend())
@@ -996,7 +996,7 @@ bool SwNumberTreeNode::LessThan(const SwNumberTreeNode & rTreeNode) const
SwNumberTreeNode * SwNumberTreeNode::GetPred(bool bSibling) const
{
- SwNumberTreeNode * pResult = NULL;
+ SwNumberTreeNode * pResult = nullptr;
if (mpParent)
{
@@ -1007,7 +1007,7 @@ SwNumberTreeNode * SwNumberTreeNode::GetPred(bool bSibling) const
{
// #i64311#
// root node is no valid predecessor
- pResult = mpParent->GetParent() ? mpParent : NULL;
+ pResult = mpParent->GetParent() ? mpParent : nullptr;
}
else
{
@@ -1184,7 +1184,7 @@ void SwNumberTreeNode::NotifyInvalidChildren()
void SwNumberTreeNode::NotifyInvalidSiblings()
{
- if (mpParent != NULL)
+ if (mpParent != nullptr)
mpParent->NotifyInvalidChildren();
}
@@ -1192,7 +1192,7 @@ void SwNumberTreeNode::NotifyInvalidSiblings()
const SwNumberTreeNode* SwNumberTreeNode::GetPrecedingNodeOf(
const SwNumberTreeNode& rNode ) const
{
- const SwNumberTreeNode* pPrecedingNode( 0 );
+ const SwNumberTreeNode* pPrecedingNode( nullptr );
if ( GetChildCount() > 0 )
{
@@ -1205,7 +1205,7 @@ const SwNumberTreeNode* SwNumberTreeNode::GetPrecedingNodeOf(
}
}
- if ( pPrecedingNode == 0 && GetRoot() )
+ if ( pPrecedingNode == nullptr && GetRoot() )
{
// <this> node has no children or the given node precedes all its children
// and the <this> node isn't the root node.
diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index 4d27552442e8..f10e16acd7dc 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -81,7 +81,7 @@ uno::Reference< XAccessible > SwAccessibleContext::GetWeakParent() const
vcl::Window *SwAccessibleContext::GetWindow()
{
- vcl::Window *pWin = 0;
+ vcl::Window *pWin = nullptr;
if( GetMap() )
{
@@ -100,12 +100,12 @@ vcl::Window *SwAccessibleContext::GetWindow()
SwCrsrShell* SwAccessibleContext::GetCrsrShell()
{
SwCrsrShell* pCrsrShell;
- SwViewShell* pViewShell = GetMap() ? GetMap()->GetShell() : 0;
+ SwViewShell* pViewShell = GetMap() ? GetMap()->GetShell() : nullptr;
OSL_ENSURE( pViewShell, "no view shell" );
if( pViewShell && dynamic_cast<const SwCrsrShell*>( pViewShell) != nullptr )
pCrsrShell = static_cast<SwCrsrShell*>( pViewShell );
else
- pCrsrShell = NULL;
+ pCrsrShell = nullptr;
return pCrsrShell;
}
@@ -114,12 +114,12 @@ const SwCrsrShell* SwAccessibleContext::GetCrsrShell() const
{
// just like non-const GetCrsrShell
const SwCrsrShell* pCrsrShell;
- const SwViewShell* pViewShell = GetMap() ? GetMap()->GetShell() : 0;
+ const SwViewShell* pViewShell = GetMap() ? GetMap()->GetShell() : nullptr;
OSL_ENSURE( pViewShell, "no view shell" );
if( pViewShell && dynamic_cast<const SwCrsrShell*>( pViewShell) != nullptr )
pCrsrShell = static_cast<const SwCrsrShell*>( pViewShell );
else
- pCrsrShell = NULL;
+ pCrsrShell = nullptr;
return pCrsrShell;
}
@@ -609,7 +609,7 @@ uno::Reference< XAccessible> SAL_CALL SwAccessibleContext::getAccessibleParent()
CHECK_FOR_DEFUNC( XAccessibleContext )
const SwFrm *pUpper = GetParent();
- OSL_ENSURE( pUpper != 0 || m_isDisposing, "no upper found" );
+ OSL_ENSURE( pUpper != nullptr || m_isDisposing, "no upper found" );
uno::Reference< XAccessible > xAcc;
if( pUpper )
@@ -634,7 +634,7 @@ sal_Int32 SAL_CALL SwAccessibleContext::getAccessibleIndexInParent()
CHECK_FOR_DEFUNC( XAccessibleContext )
const SwFrm *pUpper = GetParent();
- OSL_ENSURE( pUpper != 0 || m_isDisposing, "no upper found" );
+ OSL_ENSURE( pUpper != nullptr || m_isDisposing, "no upper found" );
sal_Int32 nIndex = -1;
if( pUpper )
@@ -919,7 +919,7 @@ void SAL_CALL SwAccessibleContext::grabFocus()
}
else
{
- const SwContentFrm *pCFrm = 0;
+ const SwContentFrm *pCFrm = nullptr;
if( GetFrm()->IsContentFrm() )
pCFrm = static_cast< const SwContentFrm * >( GetFrm() );
else if( GetFrm()->IsLayoutFrm() )
@@ -997,7 +997,7 @@ void SwAccessibleContext::DisposeShape( const SdrObject *pObj,
void SwAccessibleContext::ScrolledInShape( const SdrObject* ,
::accessibility::AccessibleShape *pAccImpl )
{
- if(NULL == pAccImpl)
+ if(nullptr == pAccImpl)
{
return ;
}
@@ -1336,14 +1336,14 @@ bool SwAccessibleContext::Select( SwPaM *pPaM, SdrObject *pObj,
SwFEShell* pFEShell = dynamic_cast<const SwFEShell*>( pCrsrShell) != nullptr
? static_cast<SwFEShell*>( pCrsrShell )
- : 0;
+ : nullptr;
// Get rid of activated OLE object
if( pFEShell )
pFEShell->FinishOLEObj();
SwWrtShell* pWrtShell = dynamic_cast<const SwWrtShell*>( pCrsrShell) != nullptr
? static_cast<SwWrtShell*>( pCrsrShell )
- : 0;
+ : nullptr;
bool bRet = false;
if( pObj )
@@ -1436,7 +1436,7 @@ bool SwAccessibleContext::HasAdditionalAccessibleChildren()
/** #i88070# - get additional accessible child by index */
vcl::Window* SwAccessibleContext::GetAdditionalAccessibleChild( const sal_Int32 nIndex )
{
- vcl::Window* pAdditionalAccessibleChild( 0 );
+ vcl::Window* pAdditionalAccessibleChild( nullptr );
if ( GetFrm()->IsTextFrm() )
{
diff --git a/sw/source/core/access/acccontext.hxx b/sw/source/core/access/acccontext.hxx
index e895bf346930..e52daa569fed 100644
--- a/sw/source/core/access/acccontext.hxx
+++ b/sw/source/core/access/acccontext.hxx
@@ -362,11 +362,11 @@ public:
bool Select( SwPaM *pPaM, SdrObject *pObj, bool bAdd );
inline bool Select( SwPaM& rPaM )
{
- return Select( &rPaM, 0, false );
+ return Select( &rPaM, nullptr, false );
}
inline bool Select( SdrObject *pObj, bool bAdd )
{
- return Select( 0, pObj, bAdd );
+ return Select( nullptr, pObj, bAdd );
}
//This method is used to updated the selected state and fire the selected state changed event.
@@ -374,8 +374,8 @@ public:
bool IsSeletedInDoc() { return m_isSelectedInDoc; }
static OUString GetResource( sal_uInt16 nResId,
- const OUString *pArg1 = 0,
- const OUString *pArg2 = 0 );
+ const OUString *pArg1 = nullptr,
+ const OUString *pArg2 = nullptr );
};
// some heavily used exception support
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx
index 07265493a0eb..08271f25bf16 100644
--- a/sw/source/core/access/accdoc.cxx
+++ b/sw/source/core/access/accdoc.cxx
@@ -74,7 +74,7 @@ SwAccessibleDocumentBase::SwAccessibleDocumentBase ( SwAccessibleMap *_pMap ) :
SwAccessibleContext( _pMap, AccessibleRole::DOCUMENT_TEXT,
_pMap->GetShell()->GetLayout() ),
mxParent( _pMap->GetShell()->GetWin()->GetAccessibleParentWindow()->GetAccessible() ),
- mpChildWin( 0 )
+ mpChildWin( nullptr )
{
}
@@ -129,7 +129,7 @@ void SwAccessibleDocumentBase::RemoveChild( vcl::Window *pWin )
aEvent.OldValue <<= mpChildWin->GetAccessible();
FireAccessibleEvent( aEvent );
- mpChildWin = 0;
+ mpChildWin = nullptr;
}
}
@@ -208,7 +208,7 @@ OUString SAL_CALL SwAccessibleDocumentBase::getAccessibleName()
SolarMutexGuard g;
OUString sAccName = GetResource( STR_ACCESS_DOC_WORDPROCESSING );
- SwDoc *pDoc = GetMap() ? GetShell()->GetDoc() : 0;
+ SwDoc *pDoc = GetMap() ? GetShell()->GetDoc() : nullptr;
if ( pDoc )
{
OUString sFileName = pDoc->getDocAccTitle();
@@ -282,7 +282,7 @@ css::awt::Point SAL_CALL SwAccessibleDocumentBase::getLocationOnScreen()
CHECK_FOR_WINDOW( XAccessibleComponent, pWin )
- Point aPixPos( pWin->GetWindowExtentsRelative( 0 ).TopLeft() );
+ Point aPixPos( pWin->GetWindowExtentsRelative( nullptr ).TopLeft() );
awt::Point aLoc( aPixPos.getX(), aPixPos.getY() );
return aLoc;
@@ -297,7 +297,7 @@ css::awt::Size SAL_CALL SwAccessibleDocumentBase::getSize()
CHECK_FOR_WINDOW( XAccessibleComponent, pWin )
- Size aPixSize( pWin->GetWindowExtentsRelative( 0 ).GetSize() );
+ Size aPixSize( pWin->GetWindowExtentsRelative( nullptr ).GetSize() );
awt::Size aSize( aPixSize.Width(), aPixSize.Height() );
return aSize;
@@ -313,7 +313,7 @@ sal_Bool SAL_CALL SwAccessibleDocumentBase::containsPoint(
CHECK_FOR_WINDOW( XAccessibleComponent, pWin )
- Rectangle aPixBounds( pWin->GetWindowExtentsRelative( 0 ) );
+ Rectangle aPixBounds( pWin->GetWindowExtentsRelative( nullptr ) );
aPixBounds.Move(-aPixBounds.Left(), -aPixBounds.Top());
Point aPixPoint( aPoint.X, aPoint.Y );
@@ -375,7 +375,7 @@ SwAccessibleDocument::SwAccessibleDocument ( SwAccessibleMap* pInitMap ) :
SwAccessibleDocument::~SwAccessibleDocument()
{
- vcl::Window *pWin = GetMap() ? GetMap()->GetShell()->GetWin() : 0;
+ vcl::Window *pWin = GetMap() ? GetMap()->GetShell()->GetWin() : nullptr;
if( pWin )
pWin->RemoveChildEventListener( LINK( this, SwAccessibleDocument, WindowChildEventListener ));
}
@@ -384,7 +384,7 @@ void SwAccessibleDocument::Dispose( bool bRecursive )
{
OSL_ENSURE( GetFrm() && GetMap(), "already disposed" );
- vcl::Window *pWin = GetMap() ? GetMap()->GetShell()->GetWin() : 0;
+ vcl::Window *pWin = GetMap() ? GetMap()->GetShell()->GetWin() : nullptr;
if( pWin )
pWin->RemoveChildEventListener( LINK( this, SwAccessibleDocument, WindowChildEventListener ));
SwAccessibleContext::Dispose( bRecursive );
@@ -555,7 +555,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
SolarMutexGuard g;
uno::Any anyAtrribute;
- SwDoc *pDoc = GetMap() ? GetShell()->GetDoc() : 0;
+ SwDoc *pDoc = GetMap() ? GetShell()->GetDoc() : nullptr;
if (!pDoc)
return anyAtrribute;
@@ -565,7 +565,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
SwFEShell* pFEShell = dynamic_cast<const SwFEShell*>( pCrsrShell) != nullptr
? static_cast<SwFEShell*>( pCrsrShell )
- : 0;
+ : nullptr;
OUString sAttrName;
OUString sValue;
sal_uInt16 nPage, nLogPage;
@@ -590,8 +590,8 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
SwContentFrm* pCurrFrm = pCrsrShell->GetCurrFrm();
SwPageFrm* pCurrPage=static_cast<SwFrm*>(pCurrFrm)->FindPageFrm();
sal_uLong nLineNum = 0;
- SwTextFrm* pTextFrm = NULL;
- SwTextFrm* pCurrTextFrm = NULL;
+ SwTextFrm* pTextFrm = nullptr;
+ SwTextFrm* pCurrTextFrm = nullptr;
pTextFrm = static_cast< SwTextFrm* >(static_cast< SwPageFrm* > (pCurrPage)->ContainsContent());
if (pCurrFrm->IsInFly())//such as, graphic,chart
{
@@ -612,7 +612,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
while ( pFrm && !pFrm->IsHeaderFrm() && !pFrm->IsFooterFrm() )
pFrm = pFrm->GetUpper();
if ( pFrm )
- pCurrTextFrm = NULL;
+ pCurrTextFrm = nullptr;
//check shape
if(pCrsrShell->Imp()->GetDrawView())
{
@@ -623,7 +623,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
SwFrameFormat* pFormat = static_cast<SwDrawContact*>(pObj->GetUserCall())->GetFormat();
const SwFormatAnchor& rAnchor = pFormat->GetAnchor();
if( FLY_AS_CHAR != rAnchor.GetAnchorId() )
- pCurrTextFrm = NULL;
+ pCurrTextFrm = nullptr;
}
}
//calculate line number
@@ -651,7 +651,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
{
if (pCurrTextFrm->IsTextFrm())
{
- const SwPosition* pPoint = NULL;
+ const SwPosition* pPoint = nullptr;
if(pCurrTextFrm->IsInFly())
{
SwFlyFrm *pFlyFrm = pCurrTextFrm->FindFlyFrm();
@@ -690,7 +690,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
sValue += sAttrName;
int nCurrCol = 1;
- if(pCurrCol!=NULL)
+ if(pCurrCol!=nullptr)
{
//SwLayoutFrm* pParent = pCurrCol->GetUpper();
SwFrm* pCurrPageCol=static_cast<SwFrm*>(pCurrFrm)->FindColFrm();
@@ -701,7 +701,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
SwLayoutFrm* pParent = pCurrPageCol->GetUpper();
- if(pParent!=NULL)
+ if(pParent!=nullptr)
{
SwFrm* pCol = pParent->Lower();
while(pCol&&(pCol!=pCurrPageCol))
@@ -725,7 +725,7 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
sValue += ";";
SwSectionFrm* pCurrSctFrm=static_cast<SwFrm*>(pCurrFrm)->FindSctFrm();
- if(pCurrSctFrm!=NULL && pCurrSctFrm->GetSection()!=NULL )
+ if(pCurrSctFrm!=nullptr && pCurrSctFrm->GetSection()!=nullptr )
{
sAttrName = "section-name:";
@@ -747,10 +747,10 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
nCurrCol = 1;
- if(pCurrCol!=NULL)
+ if(pCurrCol!=nullptr)
{
SwLayoutFrm* pParent = pCurrCol->GetUpper();
- if(pParent!=NULL)
+ if(pParent!=nullptr)
{
SwFrm* pCol = pParent->Lower();
while(pCol&&(pCol!=pCurrCol))
@@ -862,7 +862,7 @@ css::uno::Sequence< css::uno::Any >
if ( pCrsrShell )
{
SwPaM *_pStartCrsr = pCrsrShell->GetCrsr(), *__pStartCrsr = _pStartCrsr;
- SwContentNode* pPrevNode = NULL;
+ SwContentNode* pPrevNode = nullptr;
std::vector<SwFrm*> vFrmList;
do
{
@@ -873,7 +873,7 @@ css::uno::Sequence< css::uno::Any >
{
continue;
}
- SwFrm* pFrm = pContentNode ? pContentNode->getLayoutFrm( pCrsrShell->GetLayout() ) : NULL;
+ SwFrm* pFrm = pContentNode ? pContentNode->getLayoutFrm( pCrsrShell->GetLayout() ) : nullptr;
if ( pFrm )
{
vFrmList.push_back( pFrm );
diff --git a/sw/source/core/access/accframe.hxx b/sw/source/core/access/accframe.hxx
index f4219d7211a5..91462027f665 100644
--- a/sw/source/core/access/accframe.hxx
+++ b/sw/source/core/access/accframe.hxx
@@ -93,7 +93,7 @@ protected:
inline void ClearFrm()
{
- mpFrm = 0;
+ mpFrm = nullptr;
}
SwAccessibleFrame( const SwRect& rVisArea,
@@ -117,7 +117,7 @@ protected:
// Return the bounding box of the frame clipped to the vis area. If
// no frame is specified, use this' frame.
SwRect GetBounds( const SwAccessibleMap& rAccMap,
- const SwFrm *pFrm = 0 );
+ const SwFrm *pFrm = nullptr );
// Return the upper that has a context attached. This might be
// another one than the immediate upper.
diff --git a/sw/source/core/access/accframebase.cxx b/sw/source/core/access/accframebase.cxx
index 95dd95541f94..f895714fd41c 100644
--- a/sw/source/core/access/accframebase.cxx
+++ b/sw/source/core/access/accframebase.cxx
@@ -276,12 +276,12 @@ SwPaM* SwAccessibleFrameBase::GetCrsr()
{
// get the cursor shell; if we don't have any, we don't have a
// cursor/selection either
- SwPaM* pCrsr = NULL;
+ SwPaM* pCrsr = nullptr;
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL && !pCrsrShell->IsTableMode() )
+ if( pCrsrShell != nullptr && !pCrsrShell->IsTableMode() )
{
SwFEShell *pFESh = dynamic_cast<const SwFEShell*>( pCrsrShell) != nullptr
- ? static_cast< SwFEShell * >( pCrsrShell ) : 0;
+ ? static_cast< SwFEShell * >( pCrsrShell ) : nullptr;
if( !pFESh ||
!(pFESh->IsFrmSelected() || pFESh->IsObjSelected() > 0) )
{
@@ -315,7 +315,7 @@ bool SwAccessibleFrameBase::GetSelectedState( )
if( pPos->nNode.GetNode().GetTextNode() )
{
SwPaM* pCrsr = GetCrsr();
- if( pCrsr != NULL )
+ if( pCrsr != nullptr )
{
const SwTextNode* pNode = pPos->nNode.GetNode().GetTextNode();
sal_uLong nHere = pNode->GetIndex();
@@ -363,7 +363,7 @@ bool SwAccessibleFrameBase::GetSelectedState( )
SwFlyFrm* SwAccessibleFrameBase::getFlyFrm() const
{
- SwFlyFrm* pFlyFrm = NULL;
+ SwFlyFrm* pFlyFrm = nullptr;
const SwFrm* pFrm = GetFrm();
assert(pFrm);
diff --git a/sw/source/core/access/accfrmobj.cxx b/sw/source/core/access/accfrmobj.cxx
index 0ccc5b73bcfd..a449247cd103 100644
--- a/sw/source/core/access/accfrmobj.cxx
+++ b/sw/source/core/access/accfrmobj.cxx
@@ -40,31 +40,31 @@
namespace sw { namespace access {
SwAccessibleChild::SwAccessibleChild()
- : mpFrm( 0 )
- , mpDrawObj( 0 )
- , mpWindow( 0 )
+ : mpFrm( nullptr )
+ , mpDrawObj( nullptr )
+ , mpWindow( nullptr )
{}
SwAccessibleChild::SwAccessibleChild( const SdrObject* pDrawObj )
- : mpFrm( 0 )
- , mpDrawObj( 0 )
- , mpWindow( 0 )
+ : mpFrm( nullptr )
+ , mpDrawObj( nullptr )
+ , mpWindow( nullptr )
{
Init( pDrawObj );
}
SwAccessibleChild::SwAccessibleChild( const SwFrm* pFrm )
- : mpFrm( 0 )
- , mpDrawObj( 0 )
- , mpWindow( 0 )
+ : mpFrm( nullptr )
+ , mpDrawObj( nullptr )
+ , mpWindow( nullptr )
{
Init( pFrm );
}
SwAccessibleChild::SwAccessibleChild( vcl::Window* pWindow )
- : mpFrm( 0 )
- , mpDrawObj( 0 )
- , mpWindow( 0 )
+ : mpFrm( nullptr )
+ , mpDrawObj( nullptr )
+ , mpWindow( nullptr )
{
Init( pWindow );
}
@@ -72,9 +72,9 @@ SwAccessibleChild::SwAccessibleChild( vcl::Window* pWindow )
SwAccessibleChild::SwAccessibleChild( const SwFrm* pFrm,
const SdrObject* pDrawObj,
vcl::Window* pWindow )
- : mpFrm( 0 )
- , mpDrawObj( 0 )
- , mpWindow( 0 )
+ : mpFrm( nullptr )
+ , mpDrawObj( nullptr )
+ , mpWindow( nullptr )
{
if ( pFrm )
{
@@ -100,8 +100,8 @@ void SwAccessibleChild::Init( const SdrObject* pDrawObj )
mpDrawObj = pDrawObj;
mpFrm = mpDrawObj && dynamic_cast<const SwVirtFlyDrawObj*>( mpDrawObj) != nullptr
? static_cast < const SwVirtFlyDrawObj * >( mpDrawObj )->GetFlyFrm()
- : 0;
- mpWindow = 0;
+ : nullptr;
+ mpWindow = nullptr;
}
void SwAccessibleChild::Init( const SwFrm* pFrm )
@@ -109,15 +109,15 @@ void SwAccessibleChild::Init( const SwFrm* pFrm )
mpFrm = pFrm;
mpDrawObj = mpFrm && mpFrm->IsFlyFrm()
? static_cast < const SwFlyFrm * >( mpFrm )->GetVirtDrawObj()
- : 0;
- mpWindow = 0;
+ : nullptr;
+ mpWindow = nullptr;
}
void SwAccessibleChild::Init( vcl::Window* pWindow )
{
mpWindow = pWindow;
- mpFrm = 0;
- mpDrawObj = 0;
+ mpFrm = nullptr;
+ mpDrawObj = nullptr;
}
bool SwAccessibleChild::IsAccessible( bool bPagePreview ) const
@@ -128,7 +128,7 @@ bool SwAccessibleChild::IsAccessible( bool bPagePreview ) const
{
bRet = mpFrm->IsAccessibleFrm() &&
( !mpFrm->IsCellFrm() ||
- static_cast<const SwCellFrm *>( mpFrm )->GetTabBox()->GetSttNd() != 0 ) &&
+ static_cast<const SwCellFrm *>( mpFrm )->GetTabBox()->GetSttNd() != nullptr ) &&
!mpFrm->IsInCoveredCell() &&
( bPagePreview ||
!mpFrm->IsPageFrm() );
@@ -210,8 +210,8 @@ bool SwAccessibleChild::operator==( const SwAccessibleChild& r ) const
bool SwAccessibleChild::IsValid() const
{
- return mpFrm != 0 ||
- mpDrawObj != 0 ||
+ return mpFrm != nullptr ||
+ mpDrawObj != nullptr ||
mpWindow != nullptr;
}
@@ -314,7 +314,7 @@ bool SwAccessibleChild::AlwaysIncludeAsChild() const
const SwFrm* SwAccessibleChild::GetParent( const bool bInPagePreview ) const
{
- const SwFrm* pParent( 0 );
+ const SwFrm* pParent( nullptr );
if ( mpFrm )
{
diff --git a/sw/source/core/access/accfrmobjslist.cxx b/sw/source/core/access/accfrmobjslist.cxx
index 348eabc7bca1..5c3cb557d0a1 100644
--- a/sw/source/core/access/accfrmobjslist.cxx
+++ b/sw/source/core/access/accfrmobjslist.cxx
@@ -56,7 +56,7 @@ SwAccessibleChildSList_const_iterator::SwAccessibleChildSList_const_iterator(
{
aCurr = (nNextObj < pObjs->size())
? (*pObjs)[nNextObj++]->GetDrawObj()
- : static_cast< const SdrObject *>( 0 );
+ : static_cast< const SdrObject *>( nullptr );
}
}
if ( !aCurr.IsValid() )
@@ -110,7 +110,7 @@ SwAccessibleChildSList_const_iterator& SwAccessibleChildSList_const_iterator::ne
const SwSortedObjs *pObjs = rPgFrm.GetSortedObjs();
aCurr = ( pObjs && nNextObj < pObjs->size() )
? (*pObjs)[nNextObj++]->GetDrawObj()
- : static_cast< const SdrObject *>( 0 );
+ : static_cast< const SdrObject *>( nullptr );
}
else if( rFrm.IsTextFrm() )
{
@@ -118,12 +118,12 @@ SwAccessibleChildSList_const_iterator& SwAccessibleChildSList_const_iterator::ne
const size_t nObjsCount = pObjs ? pObjs->size() : 0;
aCurr = ( pObjs && nNextObj < nObjsCount )
? (*pObjs)[nNextObj++]->GetDrawObj()
- : static_cast< const SdrObject *>( 0 );
+ : static_cast< const SdrObject *>( nullptr );
while( aCurr.IsValid() && !aCurr.IsBoundAsChar() )
{
aCurr = ( nNextObj < nObjsCount )
? (*pObjs)[nNextObj++]->GetDrawObj()
- : static_cast< const SdrObject *>( 0 );
+ : static_cast< const SdrObject *>( nullptr );
}
if ( !aCurr.IsValid() )
{
diff --git a/sw/source/core/access/acchyperlink.cxx b/sw/source/core/access/acchyperlink.cxx
index 8ccd616bbe66..668cfc9c00aa 100644
--- a/sw/source/core/access/acchyperlink.cxx
+++ b/sw/source/core/access/acchyperlink.cxx
@@ -46,7 +46,7 @@ SwAccessibleHyperlink::SwAccessibleHyperlink( size_t nHPos,
const SwTextAttr *SwAccessibleHyperlink::GetTextAttr() const
{
- const SwTextAttr *pTextAttr = 0;
+ const SwTextAttr *pTextAttr = nullptr;
if( xPara.is() && xPara->GetMap() )
{
const SwTextNode *pTextNd = xPara->GetTextNode();
@@ -250,7 +250,7 @@ sal_Bool SAL_CALL SwAccessibleHyperlink::isValid( )
void SwAccessibleHyperlink::Invalidate()
{
SolarMutexGuard aGuard;
- xPara = 0;
+ xPara = nullptr;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 87f9dbd5e2ec..b771417b3156 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -1191,7 +1191,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection()
{
int pIndex = pPos->nContent.GetIndex();
bool bMarked = false;
- if( pCrsr != NULL )
+ if( pCrsr != nullptr )
{
const SwTextNode* pNode = pPos->nNode.GetNode().GetTextNode();
sal_uLong nHere = pNode->GetIndex();
@@ -1326,7 +1326,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection()
//Checked for Paras.
bool bMarkChanged = false;
SwAccessibleContextMap_Impl mapTemp;
- if( pCrsr != NULL )
+ if( pCrsr != nullptr )
{
for(SwPaM& rTmpCrsr : pCrsr->GetRingContainer())
{
@@ -1336,7 +1336,7 @@ void SwAccessibleMap::InvalidateShapeInParaSelection()
SwNodeIndex nEndIndex( rTmpCrsr.End()->nNode );
while(nStartIndex <= nEndIndex)
{
- SwFrm *pFrm = NULL;
+ SwFrm *pFrm = nullptr;
if(nStartIndex.GetNode().IsContentNode())
{
SwContentNode* pCNd = static_cast<SwContentNode*>(&(nStartIndex.GetNode()));
@@ -1559,7 +1559,7 @@ void SwAccessibleMap::DoInvalidateShapeSelection(bool bInvalidateFocusMode /*=fa
if (pAccShape)
{
SdrObject *pObj = GetSdrObjectFromXShape(pAccShape->GetXShape());
- SwFrameFormat *pFrameFormat = pObj ? FindFrameFormat( pObj ) : NULL;
+ SwFrameFormat *pFrameFormat = pObj ? FindFrameFormat( pObj ) : nullptr;
if (pFrameFormat)
{
const SwFormatAnchor& pAnchor = pFrameFormat->GetAnchor();
@@ -1663,7 +1663,7 @@ SwAccessibleMap::SwAccessibleMap( SwViewShell *pSh ) :
mpPreview( nullptr ),
mnPara( 1 ),
mbShapeSelected( false ),
- mpSeletedFrmMap(NULL)
+ mpSeletedFrmMap(nullptr)
{
pSh->GetLayout()->AddAccessibleShell();
}
@@ -1698,7 +1698,7 @@ SwAccessibleMap::~SwAccessibleMap()
if( xTmp.is() )
{
SwAccessibleContext *pTmp = static_cast< SwAccessibleContext * >( xTmp.get() );
- pTmp->SetMap(NULL);
+ pTmp->SetMap(nullptr);
}
++aIter;
}
@@ -1752,7 +1752,7 @@ SwAccessibleMap::~SwAccessibleMap()
}
delete mpPreview;
- mpPreview = NULL;
+ mpPreview = nullptr;
{
osl::MutexGuard aGuard( maEventMutex );
@@ -1859,7 +1859,7 @@ uno::Reference<XAccessible> SwAccessibleMap::GetDocumentPreview(
const Size& _rPreviewWinSize )
{
// create & update preview data object
- if( mpPreview == NULL )
+ if( mpPreview == nullptr )
mpPreview = new SwAccPreviewData();
mpPreview->Update( *this, _rPreviewPages, _rScale, _pSelectedPageFrm, _rPreviewWinSize );
@@ -2387,7 +2387,7 @@ void SwAccessibleMap::InvalidatePosOrSize( const SwFrm *pFrm,
{
::rtl::Reference< SwAccessibleContext > xAccImpl;
::rtl::Reference< SwAccessibleContext > xParentAccImpl;
- const SwFrm *pParent =NULL;
+ const SwFrm *pParent =nullptr;
{
osl::MutexGuard aGuard( maMutex );
@@ -2688,17 +2688,17 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrm *pFrm )
{
const SwFEShell *pFESh = static_cast< const SwFEShell * >( pVSh );
const SdrMarkList *pMarkList = pFESh->GetMarkList();
- if (pMarkList != NULL && pMarkList->GetMarkCount() == 1)
+ if (pMarkList != nullptr && pMarkList->GetMarkCount() == 1)
{
SdrObject *pObj = pMarkList->GetMark( 0 )->GetMarkedSdrObj();
- ::rtl::Reference < ::accessibility::AccessibleShape > pAccShapeImpl = GetContextImpl(pObj,NULL,false);
+ ::rtl::Reference < ::accessibility::AccessibleShape > pAccShapeImpl = GetContextImpl(pObj,nullptr,false);
if (!pAccShapeImpl.is())
{
while (pObj && pObj->GetUpGroup())
{
pObj = pObj->GetUpGroup();
}
- if (pObj != NULL)
+ if (pObj != nullptr)
{
const SwFrm *pParent = SwAccessibleFrame::GetParent( SwAccessibleChild(pObj), GetShell()->IsPreview() );
if( pParent )
@@ -3017,7 +3017,7 @@ void SwAccessibleMap::UpdatePreview( const std::vector<PreviewPage*>& _rPreviewP
const Size& _rPreviewWinSize )
{
assert(GetShell()->IsPreview() && "no preview?");
- assert(mpPreview != NULL && "no preview data?");
+ assert(mpPreview != nullptr && "no preview data?");
mpPreview->Update( *this, _rPreviewPages, _rScale, _pSelectedPageFrm, _rPreviewWinSize );
@@ -3054,7 +3054,7 @@ void SwAccessibleMap::UpdatePreview( const std::vector<PreviewPage*>& _rPreviewP
void SwAccessibleMap::InvalidatePreviewSelection( sal_uInt16 nSelPage )
{
OSL_ENSURE( GetShell()->IsPreview(), "no preview?" );
- OSL_ENSURE( mpPreview != NULL, "no preview data?" );
+ OSL_ENSURE( mpPreview != nullptr, "no preview data?" );
mpPreview->InvalidateSelection( GetShell()->GetLayout()->GetPageByPageNum( nSelPage ) );
@@ -3256,14 +3256,14 @@ bool SwAccessibleMap::ReplaceChild (
++aIter;
}
}
- return NULL;
+ return nullptr;
}
css::uno::Reference< XAccessible >
SwAccessibleMap::GetAccessibleCaption (const css::uno::Reference< css::drawing::XShape >&)
throw (css::uno::RuntimeException)
{
- return NULL;
+ return nullptr;
}
Point SwAccessibleMap::PixelToCore( const Point& rPoint ) const
@@ -3341,7 +3341,7 @@ void SwAccessibleMap::GetMapMode( const Point& _rPoint,
MapMode aMapMode = GetShell()->GetWin()->GetMapMode();
if( GetShell()->IsPreview() )
{
- OSL_ENSURE( mpPreview != NULL, "need preview data" );
+ OSL_ENSURE( mpPreview != nullptr, "need preview data" );
mpPreview->AdjustMapMode( aMapMode, _rPoint );
}
@@ -3351,9 +3351,9 @@ void SwAccessibleMap::GetMapMode( const Point& _rPoint,
Size SwAccessibleMap::GetPreviewPageSize( sal_uInt16 _nPreviewPageNum ) const
{
OSL_ENSURE( mpVSh->IsPreview(), "no page preview accessible." );
- OSL_ENSURE( mpVSh->IsPreview() && ( mpPreview != NULL ),
+ OSL_ENSURE( mpVSh->IsPreview() && ( mpPreview != nullptr ),
"missing accessible preview data at page preview" );
- if ( mpVSh->IsPreview() && ( mpPreview != NULL ) )
+ if ( mpVSh->IsPreview() && ( mpPreview != nullptr ) )
{
return mpVSh->PagePreviewLayout()->GetPreviewPageSizeByPageNum( _nPreviewPageNum );
}
@@ -3561,7 +3561,7 @@ void SwAccessibleMap::InvalidateTextSelectionOfAllParas()
const SwRect& SwAccessibleMap::GetVisArea() const
{
- OSL_ENSURE( !GetShell()->IsPreview() || (mpPreview != NULL),
+ OSL_ENSURE( !GetShell()->IsPreview() || (mpPreview != nullptr),
"preview without preview data?" );
return GetShell()->IsPreview()
diff --git a/sw/source/core/access/accnotextframe.cxx b/sw/source/core/access/accnotextframe.cxx
index b0199a102c27..5bb25d3048ce 100644
--- a/sw/source/core/access/accnotextframe.cxx
+++ b/sw/source/core/access/accnotextframe.cxx
@@ -43,14 +43,14 @@ using utl::AccessibleRelationSetHelper;
const SwNoTextNode *SwAccessibleNoTextFrame::GetNoTextNode() const
{
- const SwNoTextNode *pNd = 0;
+ const SwNoTextNode *pNd = nullptr;
const SwFlyFrm *pFlyFrm = static_cast< const SwFlyFrm *>( GetFrm() );
if( pFlyFrm->Lower() && pFlyFrm->Lower()->IsNoTextFrm() )
{
const SwContentFrm *pCntFrm =
static_cast<const SwContentFrm *>( pFlyFrm->Lower() );
const SwContentNode* pSwContentNode = pCntFrm->GetNode();
- if(pSwContentNode != NULL)
+ if(pSwContentNode != nullptr)
{
pNd = pSwContentNode->GetNoTextNode();
}
@@ -343,7 +343,7 @@ uno::Reference< XAccessibleHyperlink > SAL_CALL
return alink;
}
- return NULL;
+ return nullptr;
}
sal_Int32 SAL_CALL SwAccessibleNoTextFrame::getHyperLinkIndex( sal_Int32 )
diff --git a/sw/source/core/access/accnotexthyperlink.cxx b/sw/source/core/access/accnotexthyperlink.cxx
index e6c149e1ae6c..ddea63954254 100644
--- a/sw/source/core/access/accnotexthyperlink.cxx
+++ b/sw/source/core/access/accnotexthyperlink.cxx
@@ -51,7 +51,7 @@ sal_Int32 SAL_CALL SwAccessibleNoTextHyperlink::getAccessibleActionCount()
SwFormatURL aURL( GetFormat()->GetURL() );
ImageMap* pMap = aURL.GetMap();
- if( pMap != NULL )
+ if( pMap != nullptr )
{
return pMap->GetIMapObjectCount();
}
@@ -74,7 +74,7 @@ sal_Bool SAL_CALL SwAccessibleNoTextHyperlink::doAccessibleAction( sal_Int32 nIn
bool bRet = false;
SwFormatURL aURL( GetFormat()->GetURL() );
ImageMap* pMap = aURL.GetMap();
- if( pMap != NULL )
+ if( pMap != nullptr )
{
IMapObject* pMapObj = pMap->GetIMapObject(nIndex);
if (!pMapObj->GetURL().isEmpty())
@@ -115,7 +115,7 @@ OUString SAL_CALL SwAccessibleNoTextHyperlink::getAccessibleActionDescription(
SwFormatURL aURL( GetFormat()->GetURL() );
ImageMap* pMap = aURL.GetMap();
- if( pMap != NULL )
+ if( pMap != nullptr )
{
IMapObject* pMapObj = pMap->GetIMapObject(nIndex);
if (!pMapObj->GetDesc().isEmpty())
@@ -143,7 +143,7 @@ Reference< XAccessibleKeyBinding > SAL_CALL
bool bIsValid = false;
SwFormatURL aURL( GetFormat()->GetURL() );
ImageMap* pMap = aURL.GetMap();
- if( pMap != NULL )
+ if( pMap != nullptr )
{
IMapObject* pMapObj = pMap->GetIMapObject(nIndex);
if (!pMapObj->GetURL().isEmpty())
@@ -200,7 +200,7 @@ Any SAL_CALL SwAccessibleNoTextHyperlink::getAccessibleActionObject(
SwFormatURL aURL( GetFormat()->GetURL() );
OUString retText;
ImageMap* pMap = aURL.GetMap();
- if( pMap != NULL )
+ if( pMap != nullptr )
{
IMapObject* pMapObj = pMap->GetIMapObject(nIndex);
if (!pMapObj->GetURL().isEmpty())
diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx
index 55752ae89031..32e4a9083e81 100644
--- a/sw/source/core/access/accpage.cxx
+++ b/sw/source/core/access/accpage.cxx
@@ -115,8 +115,8 @@ SwAccessiblePage::SwAccessiblePage( SwAccessibleMap* pInitMap,
: SwAccessibleContext( pInitMap, AccessibleRole::PANEL, pFrame )
, bIsSelected( false )
{
- OSL_ENSURE( pFrame != NULL, "need frame" );
- OSL_ENSURE( pInitMap != NULL, "need map" );
+ OSL_ENSURE( pFrame != nullptr, "need frame" );
+ OSL_ENSURE( pInitMap != nullptr, "need map" );
OSL_ENSURE( pFrame->IsPageFrm(), "need page frame" );
SolarMutexGuard aGuard;
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index 5ab1d0d6de78..7d0934c2001a 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -125,7 +125,7 @@ const SwTextNode* SwAccessibleParagraph::GetTextNode() const
OSL_ENSURE( pFrm->IsTextFrm(), "The text frame has mutated!" );
const SwTextNode* pNode = static_cast<const SwTextFrm*>(pFrm)->GetTextNode();
- OSL_ENSURE( pNode != NULL, "A text frame without a text node." );
+ OSL_ENSURE( pNode != nullptr, "A text frame without a text node." );
return pNode;
}
@@ -148,7 +148,7 @@ sal_Int32 SwAccessibleParagraph::GetCaretPos()
// #i27301# - consider adjusted method signature
SwPaM* pCaret = GetCursor( false ); // caret is first PaM in PaM-ring
- if( pCaret != NULL )
+ if( pCaret != nullptr )
{
const SwTextNode* pNode = GetTextNode();
@@ -205,7 +205,7 @@ bool SwAccessibleParagraph::GetSelection(
// get the selection, and test whether it affects our text node
SwPaM* pCrsr = GetCursor( true ); // #i27301# - consider adjusted method signature
- if( pCrsr != NULL )
+ if( pCrsr != nullptr )
{
// get SwPosition for my node
const SwTextNode* pNode = GetTextNode();
@@ -324,15 +324,15 @@ SwPaM* SwAccessibleParagraph::GetCursor( const bool _bForSelection )
{
// get the cursor shell; if we don't have any, we don't have a
// cursor/selection either
- SwPaM* pCrsr = NULL;
+ SwPaM* pCrsr = nullptr;
SwCrsrShell* pCrsrShell = SwAccessibleParagraph::GetCrsrShell();
// #i27301# - if cursor is retrieved for selection, the cursors for
// a table selection has to be returned.
- if ( pCrsrShell != NULL &&
+ if ( pCrsrShell != nullptr &&
( _bForSelection || !pCrsrShell->IsTableMode() ) )
{
SwFEShell *pFESh = dynamic_cast<const SwFEShell*>( pCrsrShell) != nullptr
- ? static_cast< SwFEShell * >( pCrsrShell ) : 0;
+ ? static_cast< SwFEShell * >( pCrsrShell ) : nullptr;
if( !pFESh ||
!(pFESh->IsFrmSelected() || pFESh->IsObjSelected() > 0) )
{
@@ -370,7 +370,7 @@ void SwAccessibleParagraph::GetStates(
// FOCUSED (simulates node index of cursor)
SwPaM* pCaret = GetCursor( false ); // #i27301# - consider adjusted method signature
const SwTextNode* pTextNd = GetTextNode();
- if( pCaret != 0 && pTextNd != 0 &&
+ if( pCaret != nullptr && pTextNd != nullptr &&
pTextNd->GetIndex() == pCaret->GetPoint()->nNode.GetIndex() &&
nOldCaretPos != -1)
{
@@ -536,8 +536,8 @@ SwAccessibleParagraph::SwAccessibleParagraph(
: SwClient( const_cast<SwTextNode*>(rTextFrm.GetTextNode()) ) // #i108125#
, SwAccessibleContext( &rInitMap, AccessibleRole::PARAGRAPH, &rTextFrm )
, sDesc()
- , pPortionData( NULL )
- , pHyperTextData( NULL )
+ , pPortionData( nullptr )
+ , pHyperTextData( nullptr )
, nOldCaretPos( -1 )
, bIsHeading( false )
//Get the real heading level, Heading1 ~ Heading10
@@ -578,7 +578,7 @@ void SwAccessibleParagraph::UpdatePortionData()
throw( uno::RuntimeException )
{
// obtain the text frame
- OSL_ENSURE( GetFrm() != NULL, "The text frame has vanished!" );
+ OSL_ENSURE( GetFrm() != nullptr, "The text frame has vanished!" );
OSL_ENSURE( GetFrm()->IsTextFrm(), "The text frame has mutated!" );
const SwTextFrm* pFrm = static_cast<const SwTextFrm*>( GetFrm() );
@@ -588,37 +588,37 @@ void SwAccessibleParagraph::UpdatePortionData()
pFrm->GetTextNode(), GetMap()->GetShell()->GetViewOptions() );
pFrm->VisitPortions( *pPortionData );
- OSL_ENSURE( pPortionData != NULL, "UpdatePortionData() failed" );
+ OSL_ENSURE( pPortionData != nullptr, "UpdatePortionData() failed" );
}
void SwAccessibleParagraph::ClearPortionData()
{
delete pPortionData;
- pPortionData = NULL;
+ pPortionData = nullptr;
delete pHyperTextData;
- pHyperTextData = 0;
+ pHyperTextData = nullptr;
}
void SwAccessibleParagraph::ExecuteAtViewShell( sal_uInt16 nSlot )
{
- OSL_ENSURE( GetMap() != NULL, "no map?" );
+ OSL_ENSURE( GetMap() != nullptr, "no map?" );
SwViewShell* pViewShell = GetMap()->GetShell();
- OSL_ENSURE( pViewShell != NULL, "View shell expected!" );
+ OSL_ENSURE( pViewShell != nullptr, "View shell expected!" );
SfxViewShell* pSfxShell = pViewShell->GetSfxViewShell();
- OSL_ENSURE( pSfxShell != NULL, "SfxViewShell shell expected!" );
+ OSL_ENSURE( pSfxShell != nullptr, "SfxViewShell shell expected!" );
if( !pSfxShell )
return;
SfxViewFrame *pFrame = pSfxShell->GetViewFrame();
- OSL_ENSURE( pFrame != NULL, "View frame expected!" );
+ OSL_ENSURE( pFrame != nullptr, "View frame expected!" );
if( !pFrame )
return;
SfxDispatcher *pDispatcher = pFrame->GetDispatcher();
- OSL_ENSURE( pDispatcher != NULL, "Dispatcher expected!" );
+ OSL_ENSURE( pDispatcher != nullptr, "Dispatcher expected!" );
if( !pDispatcher )
return;
@@ -686,7 +686,7 @@ SwTOXSortTabBase* SwAccessibleParagraph::GetTOXSortTabBase()
const SwTOXBaseSection *pTOXBaseSect = static_cast<const SwTOXBaseSection *>(pSect);
if( pSect->GetType() == TOX_CONTENT_SECTION )
{
- SwTOXSortTabBase* pSortBase = 0;
+ SwTOXSortTabBase* pSortBase = nullptr;
size_t nSize = pTOXBaseSect->GetTOXSortTabBases().size();
for(size_t nIndex = 0; nIndex<nSize; nIndex++ )
@@ -703,13 +703,13 @@ SwTOXSortTabBase* SwAccessibleParagraph::GetTOXSortTabBase()
}
}
}
- return NULL;
+ return nullptr;
}
//the function is to check whether the position is in a redline range.
const SwRangeRedline* SwAccessibleParagraph::GetRedlineAtIndex( sal_Int32 )
{
- const SwRangeRedline* pRedline = NULL;
+ const SwRangeRedline* pRedline = nullptr;
SwPaM* pCrSr = GetCursor( true );
if ( pCrSr )
{
@@ -720,7 +720,7 @@ const SwRangeRedline* SwAccessibleParagraph::GetRedlineAtIndex( sal_Int32 )
const SwDoc* pDoc = pNode->GetDoc();
if ( pDoc )
{
- pRedline = pDoc->getIDocumentRedlineAccess().GetRedline( *pStart, NULL );
+ pRedline = pDoc->getIDocumentRedlineAccess().GetRedline( *pStart, nullptr );
}
}
}
@@ -751,7 +751,7 @@ bool SwAccessibleParagraph::GetWordBoundary(
bool bRet = false;
// now ask the Break-Iterator for the word
- OSL_ENSURE( g_pBreakIt != NULL, "We always need a break." );
+ OSL_ENSURE( g_pBreakIt != nullptr, "We always need a break." );
OSL_ENSURE( g_pBreakIt->GetBreakIter().is(), "No break-iterator." );
if( g_pBreakIt->GetBreakIter().is() )
{
@@ -838,7 +838,7 @@ bool SwAccessibleParagraph::GetGlyphBoundary(
// ask the Break-Iterator for the glyph by moving one cell
// forward, and then one cell back
- OSL_ENSURE( g_pBreakIt != NULL, "We always need a break." );
+ OSL_ENSURE( g_pBreakIt != nullptr, "We always need a break." );
OSL_ENSURE( g_pBreakIt->GetBreakIter().is(), "No break-iterator." );
if( g_pBreakIt->GetBreakIter().is() )
{
@@ -1008,8 +1008,8 @@ void SAL_CALL SwAccessibleParagraph::grabFocus()
const SwTextFrm *pTextFrm = static_cast<const SwTextFrm*>( GetFrm() );
const SwTextNode* pTextNd = pTextFrm->GetTextNode();
- if( pCrsrSh != 0 && pTextNd != 0 &&
- ( pCrsr == 0 ||
+ if( pCrsrSh != nullptr && pTextNd != nullptr &&
+ ( pCrsr == nullptr ||
pCrsr->GetPoint()->nNode.GetIndex() != pTextNd->GetIndex() ||
!pTextFrm->IsInside( pCrsr->GetPoint()->nContent.GetIndex()) ) )
{
@@ -1027,7 +1027,7 @@ void SAL_CALL SwAccessibleParagraph::grabFocus()
// ->#i13955#
vcl::Window * pWindow = GetWindow();
- if (pWindow != NULL)
+ if (pWindow != nullptr)
pWindow->GrabFocus();
// <-#i13955#
}
@@ -1037,8 +1037,8 @@ static bool lcl_GetBackgroundColor( Color & rColor,
const SwFrm* pFrm,
SwCrsrShell* pCrsrSh )
{
- const SvxBrushItem* pBackgrdBrush = 0;
- const Color* pSectionTOXColor = 0;
+ const SvxBrushItem* pBackgrdBrush = nullptr;
+ const Color* pSectionTOXColor = nullptr;
SwRect aDummyRect;
//UUUU
@@ -1125,9 +1125,9 @@ uno::Sequence< OUString > SAL_CALL SwAccessibleParagraph::getSupportedServiceNam
uno::Sequence< OUString > getAttributeNames()
{
- static uno::Sequence< OUString >* pNames = NULL;
+ static uno::Sequence< OUString >* pNames = nullptr;
- if( pNames == NULL )
+ if( pNames == nullptr )
{
// Add the font name to attribute list
uno::Sequence< OUString >* pSeq = new uno::Sequence< OUString >( 13 );
@@ -1158,9 +1158,9 @@ uno::Sequence< OUString > getAttributeNames()
uno::Sequence< OUString > getSupplementalAttributeNames()
{
- static uno::Sequence< OUString >* pNames = NULL;
+ static uno::Sequence< OUString >* pNames = nullptr;
- if( pNames == NULL )
+ if( pNames == nullptr )
{
uno::Sequence< OUString >* pSeq = new uno::Sequence< OUString >( 9 );
@@ -1318,7 +1318,7 @@ sal_Bool SAL_CALL SwAccessibleParagraph::setCaretPosition( sal_Int32 nIndex )
// get cursor shell
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL )
+ if( pCrsrShell != nullptr )
{
// create pam for selection
SwTextNode* pNode = const_cast<SwTextNode*>( GetTextNode() );
@@ -1433,7 +1433,7 @@ OUString SwAccessibleParagraph::GetFieldTypeNameAtIndex(sal_Int32 nIndex)
{
OUString strTypeName;
SwFieldMgr aMgr;
- SwTextField* pTextField = NULL;
+ SwTextField* pTextField = nullptr;
SwTextNode* pTextNd = const_cast<SwTextNode*>( GetTextNode() );
SwIndex fldIndex( pTextNd, nIndex );
sal_Int32 nFieldIndex = GetPortionData().GetFieldIndex(nIndex);
@@ -1955,7 +1955,7 @@ void SwAccessibleParagraph::_getRunAttributesImpl(
tAccParaPropValMap& rRunAttrSeq )
{
// create PaM for character at position <nIndex>
- SwPaM* pPaM( 0 );
+ SwPaM* pPaM( nullptr );
{
const SwTextNode* pTextNode( GetTextNode() );
SwPosition* pStartPos = new SwPosition( *pTextNode );
@@ -2013,7 +2013,7 @@ void SwAccessibleParagraph::_getRunAttributesImpl(
PropertyEntryVector_t::const_iterator aPropIt = aPropertyEntries.begin();
while ( aPropIt != aPropertyEntries.end() )
{
- const SfxPoolItem* pItem( 0 );
+ const SfxPoolItem* pItem( nullptr );
// #i82637# - Found character attributes, whose value equals the value of
// the corresponding default character attributes, are excluded.
if ( aSet.GetItemState( aPropIt->nWID, true, &pItem ) == SfxItemState::SET )
@@ -2289,10 +2289,10 @@ void SwAccessibleParagraph::_correctValues( const sal_Int32 nIndex,
{
//misspelled word
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL && pCrsrShell->GetViewOptions() && pCrsrShell->GetViewOptions()->IsOnlineSpell())
+ if( pCrsrShell != nullptr && pCrsrShell->GetViewOptions() && pCrsrShell->GetViewOptions()->IsOnlineSpell())
{
const SwWrongList* pWrongList = pTextNode->GetWrong();
- if( NULL != pWrongList )
+ if( nullptr != pWrongList )
{
sal_Int32 nBegin = nIndex;
sal_Int32 nLen = 1;
@@ -2310,10 +2310,10 @@ void SwAccessibleParagraph::_correctValues( const sal_Int32 nIndex,
{
//misspelled word
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL && pCrsrShell->GetViewOptions() && pCrsrShell->GetViewOptions()->IsOnlineSpell())
+ if( pCrsrShell != nullptr && pCrsrShell->GetViewOptions() && pCrsrShell->GetViewOptions()->IsOnlineSpell())
{
const SwWrongList* pWrongList = pTextNode->GetWrong();
- if( NULL != pWrongList )
+ if( nullptr != pWrongList )
{
sal_Int32 nBegin = nIndex;
sal_Int32 nLen = 1;
@@ -2499,7 +2499,7 @@ sal_Int32 SwAccessibleParagraph::getIndexAtPoint( const awt::Point& rPoint )
}
// ask core for position
- OSL_ENSURE( GetFrm() != NULL, "The text frame has vanished!" );
+ OSL_ENSURE( GetFrm() != nullptr, "The text frame has vanished!" );
OSL_ENSURE( GetFrm()->IsTextFrm(), "The text frame has mutated!" );
const SwTextFrm* pFrm = static_cast<const SwTextFrm*>( GetFrm() );
SwCrsrMoveState aMoveState;
@@ -2591,7 +2591,7 @@ sal_Bool SwAccessibleParagraph::setSelection( sal_Int32 nStartIndex, sal_Int32 n
// get cursor shell
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL )
+ if( pCrsrShell != nullptr )
{
// create pam for selection
SwTextNode* pNode = const_cast<SwTextNode*>( GetTextNode() );
@@ -3108,7 +3108,7 @@ SwHyperlinkIter_Impl::SwHyperlinkIter_Impl( const SwTextFrm *pTextFrm ) :
const SwTextAttr *SwHyperlinkIter_Impl::next()
{
- const SwTextAttr *pAttr = 0;
+ const SwTextAttr *pAttr = nullptr;
if( pHints )
{
while( !pAttr && nPos < pHints->Count() )
@@ -3320,7 +3320,7 @@ sal_Int32 SAL_CALL SwAccessibleParagraph::getSelectedPortionCount( )
sal_Int32 nSeleted = 0;
SwPaM* pCrsr = GetCursor( true );
- if( pCrsr != NULL )
+ if( pCrsr != nullptr )
{
// get SwPosition for my node
const SwTextNode* pNode = GetTextNode();
@@ -3393,7 +3393,7 @@ sal_Bool SAL_CALL SwAccessibleParagraph::removeSelection( sal_Int32 selectionInd
// get the selection, and test whether it affects our text node
SwPaM* pCrsr = GetCursor( true );
- if( pCrsr != NULL )
+ if( pCrsr != nullptr )
{
bool bRet = false;
@@ -3488,7 +3488,7 @@ sal_Int32 SAL_CALL SwAccessibleParagraph::addSelection( sal_Int32, sal_Int32 sta
// get cursor shell
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL )
+ if( pCrsrShell != nullptr )
{
// create pam for selection
pCrsrShell->StartAction();
@@ -3640,7 +3640,7 @@ sal_Int32 SAL_CALL SwAccessibleParagraph::getNumberOfLineWithCaret()
if ( nCaretPos == aLineBound.startPos )
{
SwCrsrShell* pCrsrShell = SwAccessibleParagraph::GetCrsrShell();
- if ( pCrsrShell != 0 )
+ if ( pCrsrShell != nullptr )
{
const awt::Rectangle aCharRect = getCharacterBounds( nCaretPos );
@@ -3693,7 +3693,7 @@ bool SwAccessibleParagraph::GetSelectionAtIndex(
// get the selection, and test whether it affects our text node
SwPaM* pCrsr = GetCursor( true );
- if( pCrsr != NULL )
+ if( pCrsr != nullptr )
{
// get SwPosition for my node
const SwTextNode* pNode = GetTextNode();
diff --git a/sw/source/core/access/accpara.hxx b/sw/source/core/access/accpara.hxx
index d9831f320fc2..2433e03ad6a1 100644
--- a/sw/source/core/access/accpara.hxx
+++ b/sw/source/core/access/accpara.hxx
@@ -192,7 +192,7 @@ protected:
SwAccessiblePortionData& GetPortionData()
throw( css::uno::RuntimeException )
{
- if( pPortionData == NULL )
+ if( pPortionData == nullptr )
UpdatePortionData();
return *pPortionData;
}
diff --git a/sw/source/core/access/accportions.cxx b/sw/source/core/access/accportions.cxx
index 8f55cb079b52..1fb823cf96cd 100644
--- a/sw/source/core/access/accportions.cxx
+++ b/sw/source/core/access/accportions.cxx
@@ -80,12 +80,12 @@ SwAccessiblePortionData::SwAccessiblePortionData(
aFieldPosition(),
aAttrFieldType(),
aPortionAttrs(),
- pSentences( 0 ),
+ pSentences( nullptr ),
nBeforePortions( 0 ),
bFinished( false ),
bLastIsSpecial( false )
{
- OSL_ENSURE( pTextNode != NULL, "Text node is needed!" );
+ OSL_ENSURE( pTextNode != nullptr, "Text node is needed!" );
// reserve some space to reduce memory allocations
aLineBreaks.reserve( 5 );
@@ -484,9 +484,9 @@ void SwAccessiblePortionData::GetSentenceBoundary(
OSL_ENSURE( nPos >= 0, "illegal position; check before" );
OSL_ENSURE( nPos < sAccessibleString.getLength(), "illegal position" );
- if( pSentences == NULL )
+ if( pSentences == nullptr )
{
- OSL_ENSURE( g_pBreakIt != NULL, "We always need a break." );
+ OSL_ENSURE( g_pBreakIt != nullptr, "We always need a break." );
OSL_ENSURE( g_pBreakIt->GetBreakIter().is(), "No break-iterator." );
if( g_pBreakIt->GetBreakIter().is() )
{
@@ -536,7 +536,7 @@ void SwAccessiblePortionData::GetAttributeBoundary(
Boundary& rBound,
sal_Int32 nPos) const
{
- OSL_ENSURE( pTextNode != NULL, "Need SwTextNode!" );
+ OSL_ENSURE( pTextNode != nullptr, "Need SwTextNode!" );
// attribute boundaries can only occur on portion boundaries
FillBoundary( rBound, aAccessiblePositions,
@@ -642,10 +642,10 @@ sal_Int32 SwAccessiblePortionData::FillSpecialPos(
"text portion expected" );
nModelPos += nPos - aAccessiblePositions[ nPortionNo ];
- rpPos = NULL;
+ rpPos = nullptr;
}
}
- if( rpPos != NULL )
+ if( rpPos != nullptr )
{
OSL_ENSURE( rpPos == &rPos, "Yes!" );
OSL_ENSURE( nRefPos <= nPos, "wrong reference" );
diff --git a/sw/source/core/access/accportions.hxx b/sw/source/core/access/accportions.hxx
index 8a48c4d77cd4..5f631e14170e 100644
--- a/sw/source/core/access/accportions.hxx
+++ b/sw/source/core/access/accportions.hxx
@@ -93,12 +93,12 @@ class SwAccessiblePortionData : public SwPortionHandler
public:
SwAccessiblePortionData( const SwTextNode* pTextNd,
- const SwViewOption* pViewOpt = NULL );
+ const SwViewOption* pViewOpt = nullptr );
virtual ~SwAccessiblePortionData();
// SwPortionHandler methods
virtual void Text(sal_Int32 nLength, sal_uInt16 nType, sal_Int32 nHeight = 0, sal_Int32 nWidth = 0) override;
- virtual void Special(sal_Int32 nLength, const OUString& rText, sal_uInt16 nType, sal_Int32 nHeight = 0, sal_Int32 nWidth = 0, const SwFont* pFont = 0) override;
+ virtual void Special(sal_Int32 nLength, const OUString& rText, sal_uInt16 nType, sal_Int32 nHeight = 0, sal_Int32 nWidth = 0, const SwFont* pFont = nullptr) override;
virtual void LineBreak(sal_Int32 nWidth) override;
virtual void Skip(sal_Int32 nLength) override;
virtual void Finish() override;
diff --git a/sw/source/core/access/accselectionhelper.cxx b/sw/source/core/access/accselectionhelper.cxx
index aa068d8507c7..07f17d27fc64 100644
--- a/sw/source/core/access/accselectionhelper.cxx
+++ b/sw/source/core/access/accselectionhelper.cxx
@@ -55,9 +55,9 @@ SwAccessibleSelectionHelper::~SwAccessibleSelectionHelper()
SwFEShell* SwAccessibleSelectionHelper::GetFEShell()
{
- OSL_ENSURE( m_rContext.GetMap() != NULL, "no map?" );
+ OSL_ENSURE( m_rContext.GetMap() != nullptr, "no map?" );
SwViewShell* pViewShell = m_rContext.GetMap()->GetShell();
- OSL_ENSURE( pViewShell != NULL,
+ OSL_ENSURE( pViewShell != nullptr,
"No view shell? Then what are you looking at?" );
SwFEShell* pFEShell = dynamic_cast<SwFEShell*>( pViewShell );
@@ -93,11 +93,11 @@ void SwAccessibleSelectionHelper::selectAccessibleChild(
// we can only select fly frames, so we ignore (should: return
// false) all other attempts at child selection
SwFEShell* pFEShell = GetFEShell();
- if( pFEShell != NULL )
+ if( pFEShell != nullptr )
{
const SdrObject *pObj = aChild.GetDrawObject();
if( pObj )
- m_rContext.Select( const_cast< SdrObject *>( pObj ), 0==aChild.GetSwFrm());
+ m_rContext.Select( const_cast< SdrObject *>( pObj ), nullptr==aChild.GetSwFrm());
}
// no frame shell, or no frame, or no fly frame -> can't select
}
@@ -155,7 +155,7 @@ bool SwAccessibleSelectionHelper::isAccessibleChildSelected(
const SwFEShell* pFEShell = GetFEShell();
if( pFEShell )
{
- if ( aChild.GetSwFrm() != 0 )
+ if ( aChild.GetSwFrm() != nullptr )
{
bRet = (pFEShell->GetSelectedFlyFrm() == aChild.GetSwFrm());
}
@@ -195,9 +195,9 @@ void SwAccessibleSelectionHelper::selectAllAccessibleChildren( )
const SwAccessibleChild& rChild = *aIter;
const SdrObject* pObj = rChild.GetDrawObject();
const SwFrm* pFrm = rChild.GetSwFrm();
- if( pObj && !(pFrm != 0 && pFEShell->IsObjSelected()) )
+ if( pObj && !(pFrm != nullptr && pFEShell->IsObjSelected()) )
{
- m_rContext.Select( const_cast< SdrObject *>( pObj ), 0==pFrm );
+ m_rContext.Select( const_cast< SdrObject *>( pObj ), nullptr==pFrm );
if( pFrm )
break;
}
@@ -215,7 +215,7 @@ sal_Int32 SwAccessibleSelectionHelper::getSelectedAccessibleChildCount( )
// Only one frame can be selected at a time, and we only frames
// for selectable children.
const SwFEShell* pFEShell = GetFEShell();
- if( pFEShell != 0 )
+ if( pFEShell != nullptr )
{
const SwFlyFrm* pFlyFrm = pFEShell->GetSelectedFlyFrm();
if( pFlyFrm )
@@ -282,7 +282,7 @@ Reference<XAccessible> SwAccessibleSelectionHelper::getSelectedAccessibleChild(
// be 0, and a selection must exist, otherwise we have to throw an
// lang::IndexOutOfBoundsException
SwFEShell* pFEShell = GetFEShell();
- if( 0 == pFEShell )
+ if( nullptr == pFEShell )
throwIndexOutOfBoundsException();
SwAccessibleChild aChild;
@@ -341,7 +341,7 @@ Reference<XAccessible> SwAccessibleSelectionHelper::getSelectedAccessibleChild(
if( !aChild.IsValid() )
throwIndexOutOfBoundsException();
- OSL_ENSURE( m_rContext.GetMap() != NULL, "We need the map." );
+ OSL_ENSURE( m_rContext.GetMap() != nullptr, "We need the map." );
Reference< XAccessible > xChild;
if( aChild.GetSwFrm() )
{
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx
index 0c7adac6518c..f94a05537659 100644
--- a/sw/source/core/access/acctable.cxx
+++ b/sw/source/core/access/acctable.cxx
@@ -468,7 +468,7 @@ const SwFrm *SwAccessibleTableData_Impl::GetCellAtPos(
{
Point aPos( mpTabFrm->Frm().Pos() );
aPos.Move( nLeft, nTop );
- const SwFrm *pRet = 0;
+ const SwFrm *pRet = nullptr;
FindCell( aPos, mpTabFrm, bExact, pRet );
return pRet;
@@ -660,9 +660,9 @@ void SwAccAllTableSelHander_Impl::Unselect( sal_Int32 nRowOrCol,
const SwSelBoxes *SwAccessibleTable::GetSelBoxes() const
{
- const SwSelBoxes *pSelBoxes = 0;
+ const SwSelBoxes *pSelBoxes = nullptr;
const SwCrsrShell *pCSh = GetCrsrShell();
- if( (pCSh != NULL) && pCSh->IsTableMode() )
+ if( (pCSh != nullptr) && pCSh->IsTableMode() )
{
pSelBoxes = &pCSh->GetTableCrsr()->GetSelectedBoxes();
}
@@ -692,14 +692,14 @@ const SwTableBox* SwAccessibleTable::GetTableBox( sal_Int32 nChildIndex ) const
OSL_ENSURE( nChildIndex >= 0, "Illegal child index." );
OSL_ENSURE( nChildIndex < const_cast<SwAccessibleTable*>(this)->getAccessibleChildCount(), "Illegal child index." ); // #i77106#
- const SwTableBox* pBox = NULL;
+ const SwTableBox* pBox = nullptr;
// get table box for 'our' table cell
SwAccessibleChild aCell( GetChild( *(const_cast<SwAccessibleMap*>(GetMap())), nChildIndex ) );
if( aCell.GetSwFrm() )
{
const SwFrm* pChildFrm = aCell.GetSwFrm();
- if( (pChildFrm != NULL) && pChildFrm->IsCellFrm() )
+ if( (pChildFrm != nullptr) && pChildFrm->IsCellFrm() )
{
const SwCellFrm* pCellFrm =
static_cast<const SwCellFrm*>( pChildFrm );
@@ -707,7 +707,7 @@ const SwTableBox* SwAccessibleTable::GetTableBox( sal_Int32 nChildIndex ) const
}
}
- OSL_ENSURE( pBox != NULL, "We need the table box." );
+ OSL_ENSURE( pBox != nullptr, "We need the table box." );
return pBox;
}
@@ -718,7 +718,7 @@ bool SwAccessibleTable::IsChildSelected( sal_Int32 nChildIndex ) const
if( pSelBoxes )
{
const SwTableBox* pBox = GetTableBox( nChildIndex );
- OSL_ENSURE( pBox != NULL, "We need the table box." );
+ OSL_ENSURE( pBox != nullptr, "We need the table box." );
bRet = pSelBoxes->find( const_cast<SwTableBox*>( pBox ) ) != pSelBoxes->end();
}
@@ -766,7 +766,7 @@ SwAccessibleTable::SwAccessibleTable(
SwAccessibleMap* pInitMap,
const SwTabFrm* pTabFrm ) :
SwAccessibleContext( pInitMap, AccessibleRole::TABLE, pTabFrm ),
- mpTableData( 0 )
+ mpTableData( nullptr )
{
SolarMutexGuard aGuard;
@@ -908,7 +908,7 @@ void SwAccessibleTable::UpdateTableData()
void SwAccessibleTable::ClearTableData()
{
delete mpTableData;
- mpTableData = 0;
+ mpTableData = nullptr;
}
OUString SAL_CALL SwAccessibleTable::getAccessibleDescription()
@@ -1497,10 +1497,10 @@ void SAL_CALL SwAccessibleTable::selectAccessibleChild(
// preliminaries: get 'our' table box, and get the cursor shell
const SwTableBox* pBox = GetTableBox( nChildIndex );
- OSL_ENSURE( pBox != NULL, "We need the table box." );
+ OSL_ENSURE( pBox != nullptr, "We need the table box." );
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell == NULL )
+ if( pCrsrShell == nullptr )
return;
// assure, that child, identified by the given index, isn't already selected.
@@ -1516,21 +1516,21 @@ void SAL_CALL SwAccessibleTable::selectAccessibleChild(
// if we have a selection in a table, check if it's in the
// same table that we're trying to select in
const SwTableNode* pSelectedTable = pCrsrShell->IsCrsrInTable();
- if( pSelectedTable != NULL )
+ if( pSelectedTable != nullptr )
{
// get top-most table line
const SwTableLine* pUpper = pBox->GetUpper();
- while( pUpper->GetUpper() != NULL )
+ while( pUpper->GetUpper() != nullptr )
pUpper = pUpper->GetUpper()->GetUpper();
sal_uInt16 nPos =
pSelectedTable->GetTable().GetTabLines().GetPos( pUpper );
if( nPos == USHRT_MAX )
- pSelectedTable = NULL;
+ pSelectedTable = nullptr;
}
// create the new selection
const SwStartNode* pStartNode = pBox->GetSttNd();
- if( pSelectedTable == NULL || !pCrsrShell->GetTableCrs() )
+ if( pSelectedTable == nullptr || !pCrsrShell->GetTableCrs() )
{
pCrsrShell->StartAction();
// Set cursor into current cell. This deletes any table cursor.
@@ -1586,7 +1586,7 @@ void SAL_CALL SwAccessibleTable::clearAccessibleSelection( )
CHECK_FOR_DEFUNC( XAccessibleTable );
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL )
+ if( pCrsrShell != nullptr )
{
pCrsrShell->StartAction();
pCrsrShell->ClearMark();
@@ -1671,7 +1671,7 @@ void SAL_CALL SwAccessibleTable::deselectAccessibleChild(
return;
const SwTableBox* pBox = GetTableBox( nChildIndex );
- OSL_ENSURE( pBox != NULL, "We need the table box." );
+ OSL_ENSURE( pBox != nullptr, "We need the table box." );
// If we unselect point, then set cursor to mark. If we clear another
// selected box, then set cursor to point.
@@ -1823,7 +1823,7 @@ sal_Bool SAL_CALL SwAccessibleTable::unselectRow( sal_Int32 row )
if( isAccessibleSelected( row , 0 ) && isAccessibleSelected( row , getAccessibleColumnCount()-1 ) )
{
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL )
+ if( pCrsrShell != nullptr )
{
pCrsrShell->StartAction();
pCrsrShell->ClearMark();
@@ -1844,7 +1844,7 @@ sal_Bool SAL_CALL SwAccessibleTable::unselectColumn( sal_Int32 column )
if( isAccessibleSelected( 0 , column ) && isAccessibleSelected( getAccessibleRowCount()-1,column))
{
SwCrsrShell* pCrsrShell = GetCrsrShell();
- if( pCrsrShell != NULL )
+ if( pCrsrShell != nullptr )
{
pCrsrShell->StartAction();
pCrsrShell->ClearMark();
diff --git a/sw/source/core/access/acctable.hxx b/sw/source/core/access/acctable.hxx
index 4da22af9a5a8..b2f3800b44c1 100644
--- a/sw/source/core/access/acctable.hxx
+++ b/sw/source/core/access/acctable.hxx
@@ -81,7 +81,7 @@ protected:
inline SwAccessibleTableData_Impl& GetTableData();
// Is table data evailable?
- bool HasTableData() const { return (mpTableData != 0); }
+ bool HasTableData() const { return (mpTableData != nullptr); }
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
diff --git a/sw/source/core/access/acctextframe.cxx b/sw/source/core/access/acctextframe.cxx
index d5026b986858..ae2bc97feb5f 100644
--- a/sw/source/core/access/acctextframe.cxx
+++ b/sw/source/core/access/acctextframe.cxx
@@ -307,7 +307,7 @@ uno::Sequence< sal_Int8 > SAL_CALL SwAccessibleTextFrame::getImplementationId()
SwFlyFrm* SwAccessibleTextFrame::getFlyFrm() const
{
- SwFlyFrm* pFlyFrm = NULL;
+ SwFlyFrm* pFlyFrm = nullptr;
const SwFrm* pFrm = GetFrm();
assert(pFrm);
@@ -339,12 +339,12 @@ uno::Reference<XAccessibleRelationSet> SAL_CALL SwAccessibleTextFrame::getAccess
assert(pFlyFrm);
const SwFlyFrm* pPrevFrm = pFlyFrm->GetPrevLink();
- if( pPrevFrm != NULL )
+ if( pPrevFrm != nullptr )
pHelper->AddRelation( makeRelation(
AccessibleRelationType::CONTENT_FLOWS_FROM, pPrevFrm ) );
const SwFlyFrm* pNextFrm = pFlyFrm->GetNextLink();
- if( pNextFrm != NULL )
+ if( pNextFrm != nullptr )
pHelper->AddRelation( makeRelation(
AccessibleRelationType::CONTENT_FLOWS_TO, pNextFrm ) );
diff --git a/sw/source/core/access/parachangetrackinginfo.cxx b/sw/source/core/access/parachangetrackinginfo.cxx
index cbe8d70160ab..3ab9b8a5d593 100644
--- a/sw/source/core/access/parachangetrackinginfo.cxx
+++ b/sw/source/core/access/parachangetrackinginfo.cxx
@@ -96,7 +96,7 @@ namespace {
continue;
}
- SwWrongList* pMarkupList( 0 );
+ SwWrongList* pMarkupList( nullptr );
switch ( pActRedline->GetType() )
{
case nsRedlineType_t::REDLINE_INSERT:
@@ -127,7 +127,7 @@ namespace {
const sal_Int32 nTextFrmChangeTrackEnd =
std::min(nTextNodeChangeTrackEnd, nTextFrmTextEndPos);
- pMarkupList->Insert( OUString(), 0,
+ pMarkupList->Insert( OUString(), nullptr,
nTextFrmChangeTrackStart,
nTextFrmChangeTrackEnd - nTextFrmChangeTrackStart,
pMarkupList->Count() );
@@ -138,9 +138,9 @@ namespace {
SwParaChangeTrackingInfo::SwParaChangeTrackingInfo( const SwTextFrm& rTextFrm )
: mrTextFrm( rTextFrm )
- , mpChangeTrackInsertionTextMarkupList( 0 )
- , mpChangeTrackDeletionTextMarkupList( 0 )
- , mpChangeTrackFormatChangeTextMarkupList( 0 )
+ , mpChangeTrackInsertionTextMarkupList( nullptr )
+ , mpChangeTrackDeletionTextMarkupList( nullptr )
+ , mpChangeTrackFormatChangeTextMarkupList( nullptr )
{
}
@@ -152,24 +152,24 @@ SwParaChangeTrackingInfo::~SwParaChangeTrackingInfo()
void SwParaChangeTrackingInfo::reset()
{
delete mpChangeTrackInsertionTextMarkupList;
- mpChangeTrackInsertionTextMarkupList = 0;
+ mpChangeTrackInsertionTextMarkupList = nullptr;
delete mpChangeTrackDeletionTextMarkupList;
- mpChangeTrackDeletionTextMarkupList = 0;
+ mpChangeTrackDeletionTextMarkupList = nullptr;
delete mpChangeTrackFormatChangeTextMarkupList;
- mpChangeTrackFormatChangeTextMarkupList = 0;
+ mpChangeTrackFormatChangeTextMarkupList = nullptr;
}
const SwWrongList* SwParaChangeTrackingInfo::getChangeTrackingTextMarkupList( const sal_Int32 nTextMarkupType )
{
- SwWrongList* pChangeTrackingTextMarkupList = 0;
+ SwWrongList* pChangeTrackingTextMarkupList = nullptr;
- if ( mpChangeTrackInsertionTextMarkupList == 0 )
+ if ( mpChangeTrackInsertionTextMarkupList == nullptr )
{
- OSL_ENSURE( mpChangeTrackDeletionTextMarkupList == 0,
+ OSL_ENSURE( mpChangeTrackDeletionTextMarkupList == nullptr,
"<SwParaChangeTrackingInfo::getChangeTrackingTextMarkupList(..) - <mpChangeTrackDeletionTextMarkupList> expected to be NULL." );
- OSL_ENSURE( mpChangeTrackFormatChangeTextMarkupList == 0,
+ OSL_ENSURE( mpChangeTrackFormatChangeTextMarkupList == nullptr,
"<SwParaChangeTrackingInfo::getChangeTrackingTextMarkupList(..) - <mpChangeTrackFormatChangeTextMarkupList> expected to be NULL." );
initChangeTrackTextMarkupLists( mrTextFrm,
mpChangeTrackInsertionTextMarkupList,
diff --git a/sw/source/core/access/textmarkuphelper.cxx b/sw/source/core/access/textmarkuphelper.cxx
index 750be3b52341..5f7ae087243b 100644
--- a/sw/source/core/access/textmarkuphelper.cxx
+++ b/sw/source/core/access/textmarkuphelper.cxx
@@ -38,7 +38,7 @@ namespace {
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException)
{
- const SwWrongList* pTextMarkupList( 0 );
+ const SwWrongList* pTextMarkupList( nullptr );
switch ( nTextMarkupType )
{
case text::TextMarkupType::SPELLCHECK:
@@ -49,13 +49,13 @@ namespace {
case text::TextMarkupType::PROOFREADING:
{
// support not implemented yet
- pTextMarkupList = 0;
+ pTextMarkupList = nullptr;
}
break;
case text::TextMarkupType::SMARTTAG:
{
// support not implemented yet
- pTextMarkupList = 0;
+ pTextMarkupList = nullptr;
}
break;
default:
@@ -74,7 +74,7 @@ SwTextMarkupHelper::SwTextMarkupHelper( const SwAccessiblePortionData& rPortionD
: mrPortionData( rPortionData )
// #i108125#
, mpTextNode( &rTextNode )
- , mpTextMarkupList( 0 )
+ , mpTextMarkupList( nullptr )
{
}
@@ -82,7 +82,7 @@ SwTextMarkupHelper::SwTextMarkupHelper( const SwAccessiblePortionData& rPortionD
SwTextMarkupHelper::SwTextMarkupHelper( const SwAccessiblePortionData& rPortionData,
const SwWrongList& rTextMarkupList )
: mrPortionData( rPortionData )
- , mpTextNode( 0 )
+ , mpTextNode( nullptr )
, mpTextMarkupList( &rTextMarkupList )
{
}
diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx
index 177f66a2c25e..9df9a1c520d3 100644
--- a/sw/source/core/attr/cellatr.cxx
+++ b/sw/source/core/attr/cellatr.cxx
@@ -51,7 +51,7 @@ SfxPoolItem* SwTableBoxNumFormat::Clone( SfxItemPool* ) const
SwTableBoxFormula::SwTableBoxFormula( const OUString& rFormula )
: SfxPoolItem( RES_BOXATR_FORMULA ),
SwTableFormula( rFormula ),
- pDefinedIn( 0 )
+ pDefinedIn( nullptr )
{
}
@@ -79,7 +79,7 @@ SfxPoolItem* SwTableBoxFormula::Clone( SfxItemPool* ) const
*/
const SwNode* SwTableBoxFormula::GetNodeOfFormula() const
{
- const SwNode* pRet = 0;
+ const SwNode* pRet = nullptr;
if( pDefinedIn )
{
SwTableBox* pBox = SwIterator<SwTableBox,SwModify>( *pDefinedIn ).First();
@@ -91,7 +91,7 @@ const SwNode* SwTableBoxFormula::GetNodeOfFormula() const
SwTableBox* SwTableBoxFormula::GetTableBox()
{
- SwTableBox* pBox = 0;
+ SwTableBox* pBox = nullptr;
if( pDefinedIn )
pBox = SwIterator<SwTableBox,SwModify>( *pDefinedIn ).First();
return pBox;
@@ -116,7 +116,7 @@ void SwTableBoxFormula::ChangeState( const SfxPoolItem* pItem )
const SwTableNode* pTableNd;
const SwNode* pNd = GetNodeOfFormula();
if( pNd && &pNd->GetNodes() == &pNd->GetDoc()->GetNodes() &&
- 0 != ( pTableNd = pNd->FindTableNode() ))
+ nullptr != ( pTableNd = pNd->FindTableNode() ))
{
switch( pUpdateField->m_eFlags )
{
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index ad99ba98ef58..580b2c623ecd 100644
--- a/sw/source/core/attr/format.cxx
+++ b/sw/source/core/attr/format.cxx
@@ -140,7 +140,7 @@ SwFormat &SwFormat::operator=(const SwFormat& rFormat)
}
else
{
- m_aSet.SetParent( 0 );
+ m_aSet.SetParent( nullptr );
}
}
m_bAutoFormat = rFormat.m_bAutoFormat;
@@ -281,7 +281,7 @@ void SwFormat::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValu
{
// otherwise de-register at least from dying one
DerivedFrom()->Remove( this );
- m_aSet.SetParent( 0 );
+ m_aSet.SetParent( nullptr );
}
}
}
@@ -311,7 +311,7 @@ void SwFormat::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValu
static_cast<const SwFormatChg*>(pNewValue)->pChangedFormat == GetRegisteredIn() )
{
// attach Set to new parent
- m_aSet.SetParent( DerivedFrom() ? &DerivedFrom()->m_aSet : 0 );
+ m_aSet.SetParent( DerivedFrom() ? &DerivedFrom()->m_aSet : nullptr );
}
break;
case RES_RESET_FMTWRITTEN:
@@ -351,7 +351,7 @@ bool SwFormat::SetDerivedFrom(SwFormat *pDerFrom)
if ( pDerFrom )
{
const SwFormat* pFormat = pDerFrom;
- while ( pFormat != 0 )
+ while ( pFormat != nullptr )
{
if ( pFormat == this )
return false;
@@ -443,7 +443,7 @@ SfxItemState SwFormat::GetItemState( sal_uInt16 nWhich, bool bSrchInParent, cons
// if not, reset pointer and return SfxItemState::DEFAULT to signal that
// the item is not set
if( ppItem )
- *ppItem = NULL;
+ *ppItem = nullptr;
return SfxItemState::DEFAULT;
}
@@ -472,7 +472,7 @@ SfxItemState SwFormat::GetBackgroundState(SvxBrushItem &rItem, bool bSrchInParen
return SfxItemState::DEFAULT;
}
- const SfxPoolItem* pItem = 0;
+ const SfxPoolItem* pItem = nullptr;
SfxItemState eRet = m_aSet.GetItemState(RES_BACKGROUND, bSrchInParent, &pItem);
if (pItem)
rItem = *static_cast<const SvxBrushItem*>(pItem);
@@ -537,7 +537,7 @@ bool SwFormat::SetFormatAttr( const SfxPoolItem& rAttr )
(RES_GRFFMTCOLL == nFormatWhich ||
RES_TXTFMTCOLL == nFormatWhich ) ) )
{
- if( ( bRet = (0 != m_aSet.Put( rAttr ))) )
+ if( ( bRet = (nullptr != m_aSet.Put( rAttr ))) )
m_aSet.SetModifyAtAttr( this );
// #i71574#
if ( nFormatWhich == RES_TXTFMTCOLL && rAttr.Which() == RES_PARATR_NUMRULE )
@@ -593,7 +593,7 @@ bool SwFormat::SetFormatAttr( const SfxItemSet& rSet )
if (supportsFullDrawingLayerFillAttributeSet())
{
- const SfxPoolItem* pSource = 0;
+ const SfxPoolItem* pSource = nullptr;
if(SfxItemState::SET == aTempSet.GetItemState(RES_BACKGROUND, false, &pSource))
{
diff --git a/sw/source/core/attr/hints.cxx b/sw/source/core/attr/hints.cxx
index 47d25a70e3ea..04176ba1e703 100644
--- a/sw/source/core/attr/hints.cxx
+++ b/sw/source/core/attr/hints.cxx
@@ -63,16 +63,16 @@ SwDocPosUpdate::SwDocPosUpdate( const SwTwips nDcPos )
SwTableFormulaUpdate::SwTableFormulaUpdate( const SwTable* pNewTable )
: SwMsgPoolItem( RES_TABLEFML_UPDATE ),
- m_pTable( pNewTable ), m_pHistory( 0 ), m_nSplitLine( USHRT_MAX ),
+ m_pTable( pNewTable ), m_pHistory( nullptr ), m_nSplitLine( USHRT_MAX ),
m_eFlags( TBL_CALC )
{
- m_aData.pDelTable = 0;
+ m_aData.pDelTable = nullptr;
m_bModified = m_bBehindSplitLine = false;
OSL_ENSURE( m_pTable, "No Table pointer" );
}
SwAutoFormatGetDocNode::SwAutoFormatGetDocNode( const SwNodes* pNds )
- : SwMsgPoolItem( RES_AUTOFMT_DOCNODE ), pContentNode( 0 ), pNodes( pNds )
+ : SwMsgPoolItem( RES_AUTOFMT_DOCNODE ), pContentNode( nullptr ), pNodes( pNds )
{
}
@@ -120,7 +120,7 @@ bool SwMsgPoolItem::operator==( const SfxPoolItem& ) const
SfxPoolItem* SwMsgPoolItem::Clone( SfxItemPool* ) const
{
OSL_FAIL( "SwMsgPoolItem knows no Clone" );
- return 0;
+ return nullptr;
}
#if OSL_DEBUG_LEVEL > 0
@@ -145,12 +145,12 @@ SwCondCollCondChg::SwCondCollCondChg( SwFormat *pFormat )
}
SwVirtPageNumInfo::SwVirtPageNumInfo( const SwPageFrm *pPg ) :
- SwMsgPoolItem( RES_VIRTPAGENUM_INFO ), m_pPage( 0 ), m_pOrigPage( pPg ), m_pFrm( 0 )
+ SwMsgPoolItem( RES_VIRTPAGENUM_INFO ), m_pPage( nullptr ), m_pOrigPage( pPg ), m_pFrm( nullptr )
{
}
SwFindNearestNode::SwFindNearestNode( const SwNode& rNd )
- : SwMsgPoolItem( RES_FINDNEARESTNODE ), m_pNode( &rNd ), m_pFound( 0 )
+ : SwMsgPoolItem( RES_FINDNEARESTNODE ), m_pNode( &rNd ), m_pFound( nullptr )
{
}
@@ -213,7 +213,7 @@ sal_uInt16 GetWhichOfScript( sal_uInt16 nWhich, sal_uInt16 nScript )
break;
default:
- pM = 0;
+ pM = nullptr;
}
sal_uInt16 nRet;
diff --git a/sw/source/core/attr/swatrset.cxx b/sw/source/core/attr/swatrset.cxx
index d2f906fcc885..2f88ebf0bed3 100644
--- a/sw/source/core/attr/swatrset.cxx
+++ b/sw/source/core/attr/swatrset.cxx
@@ -136,8 +136,8 @@ void SwAttrPool::removeAndDeleteSecondaryPools()
// first delete the items, then break the linking
pSdrPool->Delete();
- SetSecondaryPool(0);
- pSdrPool->SetSecondaryPool(0);
+ SetSecondaryPool(nullptr);
+ pSdrPool->SetSecondaryPool(nullptr);
// final cleanup of secondary pool(s)
SfxItemPool::Free(pSdrPool);
@@ -145,17 +145,17 @@ void SwAttrPool::removeAndDeleteSecondaryPools()
}
SwAttrSet::SwAttrSet( SwAttrPool& rPool, sal_uInt16 nWh1, sal_uInt16 nWh2 )
- : SfxItemSet( rPool, nWh1, nWh2 ), m_pOldSet( 0 ), m_pNewSet( 0 )
+ : SfxItemSet( rPool, nWh1, nWh2 ), m_pOldSet( nullptr ), m_pNewSet( nullptr )
{
}
SwAttrSet::SwAttrSet( SwAttrPool& rPool, const sal_uInt16* nWhichPairTable )
- : SfxItemSet( rPool, nWhichPairTable ), m_pOldSet( 0 ), m_pNewSet( 0 )
+ : SfxItemSet( rPool, nWhichPairTable ), m_pOldSet( nullptr ), m_pNewSet( nullptr )
{
}
SwAttrSet::SwAttrSet( const SwAttrSet& rSet )
- : SfxItemSet( rSet ), m_pOldSet( 0 ), m_pNewSet( 0 )
+ : SfxItemSet( rSet ), m_pOldSet( nullptr ), m_pNewSet( nullptr )
{
}
@@ -164,7 +164,7 @@ SfxItemSet* SwAttrSet::Clone( bool bItems, SfxItemPool *pToPool ) const
if ( pToPool && pToPool != GetPool() )
{
SwAttrPool* pAttrPool = dynamic_cast< SwAttrPool* >(pToPool);
- SfxItemSet* pTmpSet = 0;
+ SfxItemSet* pTmpSet = nullptr;
if ( !pAttrPool )
pTmpSet = SfxItemSet::Clone( bItems, pToPool );
else
@@ -196,8 +196,8 @@ bool SwAttrSet::Put_BC( const SfxPoolItem& rAttr,
{
m_pNewSet = pNew;
m_pOldSet = pOld;
- bool bRet = 0 != SfxItemSet::Put( rAttr );
- m_pOldSet = m_pNewSet = 0;
+ bool bRet = nullptr != SfxItemSet::Put( rAttr );
+ m_pOldSet = m_pNewSet = nullptr;
return bRet;
}
@@ -207,7 +207,7 @@ bool SwAttrSet::Put_BC( const SfxItemSet& rSet,
m_pNewSet = pNew;
m_pOldSet = pOld;
bool bRet = SfxItemSet::Put( rSet );
- m_pOldSet = m_pNewSet = 0;
+ m_pOldSet = m_pNewSet = nullptr;
return bRet;
}
@@ -217,7 +217,7 @@ sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich,
m_pNewSet = pNew;
m_pOldSet = pOld;
sal_uInt16 nRet = SfxItemSet::ClearItem( nWhich );
- m_pOldSet = m_pNewSet = 0;
+ m_pOldSet = m_pNewSet = nullptr;
return nRet;
}
@@ -230,7 +230,7 @@ sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
sal_uInt16 nRet = 0;
for( ; nWhich1 <= nWhich2; ++nWhich1 )
nRet = nRet + SfxItemSet::ClearItem( nWhich1 );
- m_pOldSet = m_pNewSet = 0;
+ m_pOldSet = m_pNewSet = nullptr;
return nRet;
}
@@ -240,7 +240,7 @@ int SwAttrSet::Intersect_BC( const SfxItemSet& rSet,
m_pNewSet = pNew;
m_pOldSet = pOld;
SfxItemSet::Intersect( rSet );
- m_pOldSet = m_pNewSet = 0;
+ m_pOldSet = m_pNewSet = nullptr;
return pNew ? pNew->Count() : ( pOld ? pOld->Count() : 0 );
}
@@ -279,7 +279,7 @@ bool SwAttrSet::SetModifyAtAttr( const SwModify* pModify )
// If CharFormat is set and it is set in different attribute pools then
// the CharFormat has to be copied.
SwCharFormat* pCharFormat;
- if( 0 != ( pCharFormat = const_cast<SwFormatDrop*>(static_cast<const SwFormatDrop*>(pItem))->GetCharFormat() )
+ if( nullptr != ( pCharFormat = const_cast<SwFormatDrop*>(static_cast<const SwFormatDrop*>(pItem))->GetCharFormat() )
&& GetPool() != pCharFormat->GetAttrSet().GetPool() )
{
pCharFormat = GetDoc()->CopyCharFormat( *pCharFormat );
@@ -310,7 +310,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
if( Count() )
{
// #i92811#
- SfxStringItem* pNewListIdItem( 0 );
+ SfxStringItem* pNewListIdItem( nullptr );
const SfxPoolItem* pItem;
const SwDoc *pSrcDoc = GetDoc();
@@ -371,7 +371,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
}
// check again, if list exist, because <SwDoc::MakeNumRule(..)>
// could have also created it.
- if ( pNewListIdItem == 0 &&
+ if ( pNewListIdItem == nullptr &&
!pDstDoc->getIDocumentListsAccess().getListByName( sListId ) )
{
// copy list
@@ -385,7 +385,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
const SwPageDesc* pPgDesc;
if( pSrcDoc != pDstDoc && SfxItemState::SET == GetItemState(
RES_PAGEDESC, false, &pItem ) &&
- 0 != ( pPgDesc = static_cast<const SwFormatPageDesc*>(pItem)->GetPageDesc()) )
+ nullptr != ( pPgDesc = static_cast<const SwFormatPageDesc*>(pItem)->GetPageDesc()) )
{
if( !tmpSet )
tmpSet.reset( new SfxItemSet( *this ));
@@ -402,7 +402,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
}
if( pSrcDoc != pDstDoc && SfxItemState::SET == GetItemState( RES_ANCHOR, false, &pItem )
- && static_cast< const SwFormatAnchor* >( pItem )->GetContentAnchor() != NULL )
+ && static_cast< const SwFormatAnchor* >( pItem )->GetContentAnchor() != nullptr )
{
if( !tmpSet )
tmpSet.reset( new SfxItemSet( *this ));
@@ -416,7 +416,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
if( pCNd )
{
// #i92811#
- if ( pNewListIdItem != 0 )
+ if ( pNewListIdItem != nullptr )
{
tmpSet->Put( *pNewListIdItem );
}
@@ -430,7 +430,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
else if( pCNd )
{
// #i92811#
- if ( pNewListIdItem != 0 )
+ if ( pNewListIdItem != nullptr )
{
SfxItemSet aTmpSet( *this );
aTmpSet.Put( *pNewListIdItem );
@@ -448,7 +448,7 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
// #i92811#
delete pNewListIdItem;
- pNewListIdItem = 0;
+ pNewListIdItem = nullptr;
}
}
#if OSL_DEBUG_LEVEL > 0
diff --git a/sw/source/core/bastyp/SwSmartTagMgr.cxx b/sw/source/core/bastyp/SwSmartTagMgr.cxx
index 0f7c767ab3f2..ae43d6c62e6d 100644
--- a/sw/source/core/bastyp/SwSmartTagMgr.cxx
+++ b/sw/source/core/bastyp/SwSmartTagMgr.cxx
@@ -27,7 +27,7 @@
using namespace com::sun::star;
using namespace com::sun::star::uno;
-SwSmartTagMgr* SwSmartTagMgr::mpTheSwSmartTagMgr = 0;
+SwSmartTagMgr* SwSmartTagMgr::mpTheSwSmartTagMgr = nullptr;
SwSmartTagMgr& SwSmartTagMgr::Get()
{
diff --git a/sw/source/core/bastyp/bparr.cxx b/sw/source/core/bastyp/bparr.cxx
index 605315663701..5612103f1c1c 100644
--- a/sw/source/core/bastyp/bparr.cxx
+++ b/sw/source/core/bastyp/bparr.cxx
@@ -406,7 +406,7 @@ sal_uInt16 BigPtrArray::Compress( short nMax )
// represents the "old" and <qq> the "new" array.
BlockInfo** pp = ppInf, **qq = pp;
BlockInfo* p;
- BlockInfo* pLast(0); // last empty block
+ BlockInfo* pLast(nullptr); // last empty block
sal_uInt16 nLast = 0; // missing elements
sal_uInt16 nBlkdel = 0; // number of deleted blocks
sal_uInt16 nFirstChgPos = USHRT_MAX; // at which position was the 1st change?
@@ -454,7 +454,7 @@ sal_uInt16 BigPtrArray::Compress( short nMax )
{
// than remove
delete[] p->pData;
- delete p, p = 0;
+ delete p, p = nullptr;
++nBlkdel;
}
else
diff --git a/sw/source/core/bastyp/breakit.cxx b/sw/source/core/bastyp/breakit.cxx
index 83285a49e847..9314a01ac4fc 100644
--- a/sw/source/core/bastyp/breakit.cxx
+++ b/sw/source/core/bastyp/breakit.cxx
@@ -34,7 +34,7 @@
using namespace com::sun::star;
-SwBreakIt* g_pBreakIt = 0;
+SwBreakIt* g_pBreakIt = nullptr;
void SwBreakIt::_Create( const uno::Reference<uno::XComponentContext> & rxContext )
{
@@ -43,7 +43,7 @@ void SwBreakIt::_Create( const uno::Reference<uno::XComponentContext> & rxContex
void SwBreakIt::_Delete()
{
- delete g_pBreakIt, g_pBreakIt = 0;
+ delete g_pBreakIt, g_pBreakIt = nullptr;
}
SwBreakIt * SwBreakIt::Get()
@@ -53,8 +53,8 @@ SwBreakIt * SwBreakIt::Get()
SwBreakIt::SwBreakIt( const uno::Reference<uno::XComponentContext> & rxContext )
: m_xContext( rxContext ),
- m_pLanguageTag( NULL ),
- m_pForbidden( NULL ),
+ m_pLanguageTag( nullptr ),
+ m_pForbidden( nullptr ),
aForbiddenLang( LANGUAGE_DONTKNOW )
{
OSL_ENSURE( m_xContext.is(), "SwBreakIt: no MultiServiceFactory" );
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx
index 1f4dc62ce64f..1317ec2bb204 100644
--- a/sw/source/core/bastyp/calc.cxx
+++ b/sw/source/core/bastyp/calc.cxx
@@ -205,7 +205,7 @@ SwHash* Find( const OUString& rStr, SwHash* const * ppTable,
return pEntry;
}
}
- return 0;
+ return nullptr;
}
inline LanguageType GetDocAppScriptLang( SwDoc& rDoc )
@@ -230,7 +230,7 @@ static double lcl_ConvertToDateValue( SwDoc& rDoc, sal_Int32 nDate )
}
SwCalc::SwCalc( SwDoc& rD )
- : aErrExpr( OUString(), SwSbxValue(), 0 )
+ : aErrExpr( OUString(), SwSbxValue(), nullptr )
, nCommandPos(0)
, rDoc( rD )
, pLclData( m_aSysLocale.GetLocaleDataPtr() )
@@ -333,7 +333,7 @@ SwCalc::SwCalc( SwDoc& rD )
for( n = 0; n < 25; ++n )
{
sTmpStr = OUString::createFromAscii(sNTypeTab[n]);
- VarTable[ aHashValue[ n ] ] = new SwCalcExp( sTmpStr, nVal, 0 );
+ VarTable[ aHashValue[ n ] ] = new SwCalcExp( sTmpStr, nVal, nullptr );
}
static_cast<SwCalcExp*>(VarTable[ aHashValue[ 0 ] ])->nValue.PutBool( false );
@@ -358,7 +358,7 @@ SwCalc::SwCalc( SwDoc& rD )
nVal.PutString( rUserOptions.GetToken( aAdrToken[ 11 ] ));
sTmpStr = OUString::createFromAscii(sNTypeTab[25]);
- VarTable[ aHashValue[ 25 ] ]->pNext = new SwCalcExp( sTmpStr, nVal, 0 );
+ VarTable[ aHashValue[ 25 ] ]->pNext = new SwCalcExp( sTmpStr, nVal, nullptr );
} // SwCalc::SwCalc
@@ -544,7 +544,7 @@ SwCalcExp* SwCalc::VarLook( const OUString& rStr, bool bIns )
}
sal_uLong nTmpRec = 0;
- if( 0 != ( pFnd = Find( sDBNum, VarTable, TBLSZ ) ) )
+ if( nullptr != ( pFnd = Find( sDBNum, VarTable, TBLSZ ) ) )
nTmpRec = static_cast<SwCalcExp*>(pFnd)->nValue.GetULong();
OUString sResult;
@@ -572,7 +572,7 @@ SwCalcExp* SwCalc::VarLook( const OUString& rStr, bool bIns )
return &aErrExpr;
}
- SwCalcExp* pNewExp = new SwCalcExp( aStr, SwSbxValue(), 0 );
+ SwCalcExp* pNewExp = new SwCalcExp( aStr, SwSbxValue(), nullptr );
pNewExp->pNext = VarTable[ ii ];
VarTable[ ii ] = pNewExp;
@@ -617,7 +617,7 @@ void SwCalc::VarChange( const OUString& rStr, const SwSbxValue& rValue )
if( !pFnd )
{
- pFnd = new SwCalcExp( aStr, SwSbxValue( rValue ), 0 );
+ pFnd = new SwCalcExp( aStr, SwSbxValue( rValue ), nullptr );
pFnd->pNext = VarTable[ nPos ];
VarTable[ nPos ] = pFnd;
}
@@ -1257,7 +1257,7 @@ SwSbxValue SwCalc::Prim()
{
SwSbxValue nErg;
- pfCalc pFnc = 0;
+ pfCalc pFnc = nullptr;
bool bChkTrig = false, bChkPow = false;
@@ -1569,7 +1569,7 @@ bool SwCalc::IsValidVarName( const OUString& rStr, OUString* pValidName )
SwHash::SwHash(const OUString& rStr)
: aStr(rStr)
- , pNext(0)
+ , pNext(nullptr)
{
}
diff --git a/sw/source/core/bastyp/index.cxx b/sw/source/core/bastyp/index.cxx
index c79005b4611c..dac9ba9c2769 100644
--- a/sw/source/core/bastyp/index.cxx
+++ b/sw/source/core/bastyp/index.cxx
@@ -27,18 +27,18 @@
SwIndex::SwIndex(SwIndexReg *const pReg, sal_Int32 const nIdx)
: m_nIndex( nIdx )
, m_pIndexReg( pReg )
- , m_pNext( 0 )
- , m_pPrev( 0 )
- , m_pMark( 0 )
+ , m_pNext( nullptr )
+ , m_pPrev( nullptr )
+ , m_pMark( nullptr )
{
Init(m_nIndex);
}
SwIndex::SwIndex( const SwIndex& rIdx, short nDiff )
: m_pIndexReg( rIdx.m_pIndexReg )
- , m_pNext( 0 )
- , m_pPrev( 0 )
- , m_pMark( 0 )
+ , m_pNext( nullptr )
+ , m_pPrev( nullptr )
+ , m_pMark( nullptr )
{
ChgValue( rIdx, rIdx.m_nIndex + nDiff );
}
@@ -46,9 +46,9 @@ SwIndex::SwIndex( const SwIndex& rIdx, short nDiff )
SwIndex::SwIndex( const SwIndex& rIdx )
: m_nIndex( rIdx.m_nIndex )
, m_pIndexReg( rIdx.m_pIndexReg )
- , m_pNext( 0 )
- , m_pPrev( 0 )
- , m_pMark( 0 )
+ , m_pNext( nullptr )
+ , m_pPrev( nullptr )
+ , m_pMark( nullptr )
{
ChgValue( rIdx, rIdx.m_nIndex );
}
@@ -88,7 +88,7 @@ SwIndex& SwIndex::ChgValue( const SwIndex& rIdx, sal_Int32 nNewValue )
if (rIdx.m_nIndex > nNewValue) // move forwards
{
SwIndex* pPrv;
- while ((0 != (pPrv = pFnd->m_pPrev)) && (pPrv->m_nIndex > nNewValue))
+ while ((nullptr != (pPrv = pFnd->m_pPrev)) && (pPrv->m_nIndex > nNewValue))
pFnd = pPrv;
if( pFnd != this )
@@ -108,7 +108,7 @@ SwIndex& SwIndex::ChgValue( const SwIndex& rIdx, sal_Int32 nNewValue )
else if (rIdx.m_nIndex < nNewValue)
{
SwIndex* pNxt;
- while ((0 != (pNxt = pFnd->m_pNext)) && (pNxt->m_nIndex < nNewValue))
+ while ((nullptr != (pNxt = pFnd->m_pNext)) && (pNxt->m_nIndex < nNewValue))
pFnd = pNxt;
if( pFnd != this )
@@ -184,7 +184,7 @@ SwIndex& SwIndex::operator=( const SwIndex& rIdx )
{
Remove();
m_pIndexReg = rIdx.m_pIndexReg;
- m_pNext = m_pPrev = 0;
+ m_pNext = m_pPrev = nullptr;
bEqual = false;
}
else
@@ -201,7 +201,7 @@ SwIndex& SwIndex::Assign( SwIndexReg* pArr, sal_Int32 nIdx )
{
Remove();
m_pIndexReg = pArr;
- m_pNext = m_pPrev = 0;
+ m_pNext = m_pPrev = nullptr;
Init(nIdx);
}
else if (m_nIndex != nIdx)
@@ -217,7 +217,7 @@ void SwIndex::SetMark(const sw::mark::IMark* pMark)
}
SwIndexReg::SwIndexReg()
- : m_pFirst( 0 ), m_pLast( 0 )
+ : m_pFirst( nullptr ), m_pLast( nullptr )
{
}
@@ -288,7 +288,7 @@ void SwIndexReg::MoveTo( SwIndexReg& rArr )
pIdx->Assign( &rArr, pIdx->GetIndex() );
pIdx = pNext;
}
- m_pFirst = 0, m_pLast = 0;
+ m_pFirst = nullptr, m_pLast = nullptr;
}
}
diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx
index c5e5cb9eaa35..35c59bffc556 100644
--- a/sw/source/core/bastyp/init.cxx
+++ b/sw/source/core/bastyp/init.cxx
@@ -433,24 +433,24 @@ SfxItemInfo aSlotTab[] =
{ 0, SfxItemPoolFlags::POOLABLE } // RES_UNKNOWNATR_CONTAINER
};
-sal_uInt16* SwAttrPool::pVersionMap1 = 0;
-sal_uInt16* SwAttrPool::pVersionMap2 = 0;
-sal_uInt16* SwAttrPool::pVersionMap3 = 0;
-sal_uInt16* SwAttrPool::pVersionMap4 = 0;
+sal_uInt16* SwAttrPool::pVersionMap1 = nullptr;
+sal_uInt16* SwAttrPool::pVersionMap2 = nullptr;
+sal_uInt16* SwAttrPool::pVersionMap3 = nullptr;
+sal_uInt16* SwAttrPool::pVersionMap4 = nullptr;
// #i18732#
-sal_uInt16* SwAttrPool::pVersionMap5 = 0;
-sal_uInt16* SwAttrPool::pVersionMap6 = 0;
-sal_uInt16* SwAttrPool::pVersionMap7 = 0;
+sal_uInt16* SwAttrPool::pVersionMap5 = nullptr;
+sal_uInt16* SwAttrPool::pVersionMap6 = nullptr;
+sal_uInt16* SwAttrPool::pVersionMap7 = nullptr;
-std::vector<SvGlobalName*> *pGlobalOLEExcludeList = 0;
+std::vector<SvGlobalName*> *pGlobalOLEExcludeList = nullptr;
-SwAutoCompleteWord* SwDoc::mpACmpltWords = 0;
+SwAutoCompleteWord* SwDoc::mpACmpltWords = nullptr;
-SwCheckIt* pCheckIt = 0;
-CharClass* pAppCharClass = 0;
+SwCheckIt* pCheckIt = nullptr;
+CharClass* pAppCharClass = nullptr;
-CollatorWrapper* pCollator = 0,
- *pCaseCollator = 0;
+CollatorWrapper* pCollator = nullptr,
+ *pCaseCollator = nullptr;
salhelper::SingletonRef<SwCalendarWrapper>* s_getCalendarWrapper()
{
@@ -525,13 +525,13 @@ void _InitCore()
aAttrTab[ RES_TXTATR_METAFIELD - POOLATTR_BEGIN ] = SwFormatMeta::CreatePoolDefault(RES_TXTATR_METAFIELD);
aAttrTab[ RES_TXTATR_AUTOFMT- POOLATTR_BEGIN ] = new SwFormatAutoFormat;
aAttrTab[ RES_TXTATR_INETFMT - POOLATTR_BEGIN ] = new SwFormatINetFormat( OUString(), OUString() );
- aAttrTab[ RES_TXTATR_CHARFMT- POOLATTR_BEGIN ] = new SwFormatCharFormat( 0 );
+ aAttrTab[ RES_TXTATR_CHARFMT- POOLATTR_BEGIN ] = new SwFormatCharFormat( nullptr );
aAttrTab[ RES_TXTATR_CJK_RUBY - POOLATTR_BEGIN ] = new SwFormatRuby( OUString() );
aAttrTab[ RES_TXTATR_UNKNOWN_CONTAINER - POOLATTR_BEGIN ] = new SvXMLAttrContainerItem( RES_TXTATR_UNKNOWN_CONTAINER );
aAttrTab[ RES_TXTATR_INPUTFIELD - POOLATTR_BEGIN ] = new SwFormatField( RES_TXTATR_INPUTFIELD );
aAttrTab[ RES_TXTATR_FIELD- POOLATTR_BEGIN ] = new SwFormatField( RES_TXTATR_FIELD );
- aAttrTab[ RES_TXTATR_FLYCNT - POOLATTR_BEGIN ] = new SwFormatFlyCnt( 0 );
+ aAttrTab[ RES_TXTATR_FLYCNT - POOLATTR_BEGIN ] = new SwFormatFlyCnt( nullptr );
aAttrTab[ RES_TXTATR_FTN - POOLATTR_BEGIN ] = new SwFormatFootnote;
aAttrTab[ RES_TXTATR_ANNOTATION - POOLATTR_BEGIN ] = new SwFormatField( RES_TXTATR_ANNOTATION );
@@ -731,7 +731,7 @@ void _InitCore()
SwAttrPool::pVersionMap7[ i-1 ] = i + 4;
SwBreakIt::_Create( ::comphelper::getProcessComponentContext() );
- pCheckIt = NULL;
+ pCheckIt = nullptr;
_FrmInit();
_TextInit();
@@ -822,7 +822,7 @@ void _FinitCore()
for( sal_uInt16 n = 0; n < POOLATTR_END - POOLATTR_BEGIN; n++ )
{
SfxPoolItem* pHt;
- if( 0 != ( pHt = aAttrTab[n] ))
+ if( nullptr != ( pHt = aAttrTab[n] ))
delete pHt;
}
diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx
index 51817326ead7..c6216cd771ed 100644
--- a/sw/source/core/bastyp/swcache.cxx
+++ b/sw/source/core/bastyp/swcache.cxx
@@ -74,9 +74,9 @@ SwCache::SwCache( const sal_uInt16 nInitSize
#endif
) :
m_aCacheObjects(),
- pRealFirst( 0 ),
- pFirst( 0 ),
- pLast( 0 ),
+ pRealFirst( nullptr ),
+ pFirst( nullptr ),
+ pLast( nullptr ),
nCurMax( nInitSize )
#ifdef DBG_UTIL
, m_aName( rNm )
@@ -127,7 +127,7 @@ void SwCache::Flush( const sal_uInt8 )
{
INCREMENT( m_nFlushCnt );
SwCacheObj *pObj = pRealFirst;
- pRealFirst = pFirst = pLast = 0;
+ pRealFirst = pFirst = pLast = nullptr;
SwCacheObj *pTmp;
while ( pObj )
{
@@ -139,7 +139,7 @@ void SwCache::Flush( const sal_uInt8 )
{
pRealFirst = pFirst = pLast = pObj;
pTmp = pObj->GetNext();
- pObj->SetNext( 0 ); pObj->SetPrev( 0 );
+ pObj->SetNext( nullptr ); pObj->SetPrev( nullptr );
pObj = pTmp;
}
else
@@ -147,7 +147,7 @@ void SwCache::Flush( const sal_uInt8 )
pObj->SetPrev( pLast );
pLast = pObj;
pTmp = pObj->GetNext();
- pObj->SetNext( 0 );
+ pObj->SetNext( nullptr );
pObj = pTmp;
}
}
@@ -157,7 +157,7 @@ void SwCache::Flush( const sal_uInt8 )
pTmp = pObj;
pObj = pTmp->GetNext();
aFreePositions.push_back( pTmp->GetCachePos() );
- m_aCacheObjects[pTmp->GetCachePos()] = NULL;
+ m_aCacheObjects[pTmp->GetCachePos()] = nullptr;
delete pTmp;
INCREMENT( m_nFlushedObjects );
}
@@ -189,7 +189,7 @@ void SwCache::ToTop( SwCacheObj *pObj )
{
OSL_ENSURE( pObj->GetPrev(), "Last but no Prev." );
pLast = pObj->GetPrev();
- pLast->SetNext( 0 );
+ pLast->SetNext( nullptr );
}
else
{
@@ -204,7 +204,7 @@ void SwCache::ToTop( SwCacheObj *pObj )
{
pRealFirst->SetPrev( pObj );
pObj->SetNext( pRealFirst );
- pObj->SetPrev( 0 );
+ pObj->SetPrev( nullptr );
pRealFirst = pFirst = pObj;
CHECK;
}
@@ -218,7 +218,7 @@ void SwCache::ToTop( SwCacheObj *pObj )
pObj->SetPrev( pFirst->GetPrev() );
}
else
- pObj->SetPrev( 0 );
+ pObj->SetPrev( nullptr );
pFirst->SetPrev( pObj );
pObj->SetNext( pFirst );
pFirst = pObj;
@@ -230,10 +230,10 @@ SwCacheObj *SwCache::Get( const void *pOwner, const sal_uInt16 nIndex,
const bool bToTop )
{
SwCacheObj *pRet;
- if ( 0 != (pRet = (nIndex < m_aCacheObjects.size()) ? m_aCacheObjects[ nIndex ] : 0) )
+ if ( nullptr != (pRet = (nIndex < m_aCacheObjects.size()) ? m_aCacheObjects[ nIndex ] : nullptr) )
{
if ( !pRet->IsOwner( pOwner ) )
- pRet = 0;
+ pRet = nullptr;
else if ( bToTop && pRet != pFirst )
ToTop( pRet );
}
@@ -294,7 +294,7 @@ void SwCache::DeleteObj( SwCacheObj *pObj )
pObj->GetNext()->SetPrev( pObj->GetPrev() );
aFreePositions.push_back( pObj->GetCachePos() );
- m_aCacheObjects[pObj->GetCachePos()] = NULL;
+ m_aCacheObjects[pObj->GetCachePos()] = nullptr;
delete pObj;
CHECK;
@@ -325,7 +325,7 @@ void SwCache::Delete( const void *pOwner )
{
INCREMENT( m_nDelete );
SwCacheObj *pObj;
- if ( 0 != (pObj = Get( pOwner, false )) )
+ if ( nullptr != (pObj = Get( pOwner, false )) )
DeleteObj( pObj );
}
@@ -369,7 +369,7 @@ bool SwCache::Insert( SwCacheObj *pNew )
if ( pObj == pLast )
{ OSL_ENSURE( pObj->GetPrev(), "Last but no Prev" );
pLast = pObj->GetPrev();
- pLast->SetNext( 0 );
+ pLast->SetNext( nullptr );
}
else
{
@@ -422,8 +422,8 @@ void SwCache::SetLRUOfst( const sal_uInt16 nOfst )
}
SwCacheObj::SwCacheObj( const void *pOwn ) :
- m_pNext( 0 ),
- m_pPrev( 0 ),
+ m_pNext( nullptr ),
+ m_pPrev( nullptr ),
m_nCachePos( USHRT_MAX ),
m_nLock( 0 ),
m_pOwner( pOwn )
@@ -462,7 +462,7 @@ void SwCacheAccess::_Get()
if ( !rCache.Insert( pObj ) )
{
delete pObj;
- pObj = 0;
+ pObj = nullptr;
}
else
{
@@ -472,7 +472,7 @@ void SwCacheAccess::_Get()
bool SwCacheAccess::IsAvailable() const
{
- return pObj != 0;
+ return pObj != nullptr;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/crsr/BlockCursor.cxx b/sw/source/core/crsr/BlockCursor.cxx
index dea4bf83911c..e8a21ccdb74c 100644
--- a/sw/source/core/crsr/BlockCursor.cxx
+++ b/sw/source/core/crsr/BlockCursor.cxx
@@ -61,8 +61,8 @@ void SwBlockCursor::clearPoints()
{
delete pStartPt;
delete pEndPt;
- pStartPt = 0;
- pEndPt = 0;
+ pStartPt = nullptr;
+ pEndPt = nullptr;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/crsr/BlockCursor.hxx b/sw/source/core/crsr/BlockCursor.hxx
index 17c781b78b12..a68b1117cc51 100644
--- a/sw/source/core/crsr/BlockCursor.hxx
+++ b/sw/source/core/crsr/BlockCursor.hxx
@@ -42,7 +42,7 @@ class SwBlockCursor
public:
SwBlockCursor( const SwCrsrShell& rCrsrSh, const SwPosition &rPos ) :
- aCursor( rCrsrSh, rPos ), pStartPt(0), pEndPt(0) {}
+ aCursor( rCrsrSh, rPos ), pStartPt(nullptr), pEndPt(nullptr) {}
/** Access to the shell cursor
@return SwShellCrsr& which represents the start and end position of the
diff --git a/sw/source/core/crsr/annotationmark.cxx b/sw/source/core/crsr/annotationmark.cxx
index 0a308ecf69d2..c2ad1f4e7f02 100644
--- a/sw/source/core/crsr/annotationmark.cxx
+++ b/sw/source/core/crsr/annotationmark.cxx
@@ -55,13 +55,13 @@ namespace sw { namespace mark
SwTextField* pTextField = pTextNode ?
pTextNode->GetFieldTextAttrAt(
- GetMarkEnd().nContent.GetIndex()-1, true ) : NULL;
- OSL_ENSURE( pTextField != NULL, "<AnnotationMark::InitDoc(..)> - missing text attribute for annotation field!" );
- if ( pTextField != NULL )
+ GetMarkEnd().nContent.GetIndex()-1, true ) : nullptr;
+ OSL_ENSURE( pTextField != nullptr, "<AnnotationMark::InitDoc(..)> - missing text attribute for annotation field!" );
+ if ( pTextField != nullptr )
{
const SwPostItField* pPostItField = dynamic_cast< const SwPostItField* >(pTextField->GetFormatField().GetField());
- OSL_ENSURE( pPostItField != NULL, "<AnnotationMark::InitDoc(..)> - annotation field missing!" );
- if ( pPostItField != NULL )
+ OSL_ENSURE( pPostItField != nullptr, "<AnnotationMark::InitDoc(..)> - annotation field missing!" );
+ if ( pPostItField != nullptr )
{
// use the annotation mark's name as the annotation name, if
// - the annotation field has an empty annotation name or
@@ -84,22 +84,22 @@ namespace sw { namespace mark
const SwFormatField* AnnotationMark::GetAnnotationFormatField() const
{
SwDoc* pDoc = GetMarkPos().GetDoc();
- if ( pDoc == NULL )
+ if ( pDoc == nullptr )
{
OSL_ENSURE( false, "<AnnotationMark::GetAnnotationFormatField()> - missing document at annotation mark" );
- return NULL;
+ return nullptr;
}
- SwFormatField* pAnnotationFormatField = NULL;
+ SwFormatField* pAnnotationFormatField = nullptr;
SwFieldType* pType = pDoc->getIDocumentFieldsAccess().GetFieldType( RES_POSTITFLD, OUString(), false );
SwIterator<SwFormatField,SwFieldType> aIter( *pType );
- for( SwFormatField* pFormatField = aIter.First(); pFormatField != NULL; pFormatField = aIter.Next() )
+ for( SwFormatField* pFormatField = aIter.First(); pFormatField != nullptr; pFormatField = aIter.Next() )
{
if ( pFormatField->IsFieldInDoc() )
{
const SwPostItField* pPostItField = dynamic_cast< const SwPostItField* >(pFormatField->GetField());
- if (pPostItField != NULL && pPostItField->GetName() == GetName())
+ if (pPostItField != nullptr && pPostItField->GetName() == GetName())
{
pAnnotationFormatField = pFormatField;
break;
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 6984040ba906..d4947963a2a1 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -46,15 +46,15 @@ namespace
{
// make sure the position has 1) the proper node, and 2) a proper index
SwTextNode* pTextNode = rPos.nNode.GetNode().GetTextNode();
- if(pTextNode == NULL && rPos.nContent.GetIndex() > 0)
+ if(pTextNode == nullptr && rPos.nContent.GetIndex() > 0)
{
SAL_INFO(
"sw.core",
"illegal position: " << rPos.nContent.GetIndex()
<< " without proper TextNode");
- rPos.nContent.Assign(NULL, 0);
+ rPos.nContent.Assign(nullptr, 0);
}
- else if(pTextNode != NULL && rPos.nContent.GetIndex() > pTextNode->Len())
+ else if(pTextNode != nullptr && rPos.nContent.GetIndex() > pTextNode->Len())
{
SAL_INFO(
"sw.core",
@@ -69,7 +69,7 @@ namespace
const sal_Unicode aStartMark,
const sal_Unicode aEndMark)
{
- io_pDoc->GetIDocumentUndoRedo().StartUndo(UNDO_UI_REPLACE, NULL);
+ io_pDoc->GetIDocumentUndoRedo().StartUndo(UNDO_UI_REPLACE, nullptr);
SwPosition rStart = pField->GetMarkStart();
SwTextNode const*const pStartTextNode = rStart.nNode.GetNode().GetTextNode();
@@ -95,7 +95,7 @@ namespace
++rEnd.nContent;
}
- io_pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_UI_REPLACE, NULL);
+ io_pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_UI_REPLACE, nullptr);
};
static void lcl_RemoveFieldMarks(Fieldmark* const pField,
@@ -103,7 +103,7 @@ namespace
const sal_Unicode aStartMark,
const sal_Unicode aEndMark)
{
- io_pDoc->GetIDocumentUndoRedo().StartUndo(UNDO_UI_REPLACE, NULL);
+ io_pDoc->GetIDocumentUndoRedo().StartUndo(UNDO_UI_REPLACE, nullptr);
const SwPosition& rStart = pField->GetMarkStart();
SwTextNode const*const pStartTextNode = rStart.nNode.GetNode().GetTextNode();
@@ -130,7 +130,7 @@ namespace
io_pDoc->getIDocumentContentOperations().DeleteRange(aEnd);
}
- io_pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_UI_REPLACE, NULL);
+ io_pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_UI_REPLACE, nullptr);
};
}
@@ -138,7 +138,7 @@ namespace sw { namespace mark
{
MarkBase::MarkBase(const SwPaM& aPaM,
const OUString& rName)
- : SwModify(0)
+ : SwModify(nullptr)
, m_pPos1(new SwPosition(*(aPaM.GetPoint())))
, m_aName(rName)
{
@@ -199,7 +199,7 @@ namespace sw { namespace mark
OUString MarkBase::GenerateNewName(const OUString& rPrefix)
{
- static bool bHack = (getenv("LIBO_ONEWAY_STABLE_ODF_EXPORT") != NULL);
+ static bool bHack = (getenv("LIBO_ONEWAY_STABLE_ODF_EXPORT") != nullptr);
if (bHack)
{
@@ -229,7 +229,7 @@ namespace sw { namespace mark
NotifyClients(pOld, pNew);
if (pOld && (RES_REMOVE_UNO_OBJECT == pOld->Which()))
{ // invalidate cached uno object
- SetXBookmark(uno::Reference<text::XTextContent>(0));
+ SetXBookmark(uno::Reference<text::XTextContent>(nullptr));
}
}
@@ -244,7 +244,7 @@ namespace sw { namespace mark
DdeBookmark::DdeBookmark(const SwPaM& aPaM)
: MarkBase(aPaM, MarkBase::GenerateNewName("__DdeLink__"))
- , m_aRefObj(NULL)
+ , m_aRefObj(nullptr)
{ }
void DdeBookmark::SetRefObject(SwServerObject* pObj)
diff --git a/sw/source/core/crsr/callnk.cxx b/sw/source/core/crsr/callnk.cxx
index 3833c26031b7..f24c6fb9f3a5 100644
--- a/sw/source/core/crsr/callnk.cxx
+++ b/sw/source/core/crsr/callnk.cxx
@@ -96,7 +96,7 @@ static void lcl_notifyRow(const SwContentNode* pNode, SwCrsrShell& rShell)
if (pContent->GetType() == FRM_TAB)
{
SwFormatFrmSize pSize = pLine->GetFrameFormat()->GetFrmSize();
- pRow->ModifyNotification(NULL, &pSize);
+ pRow->ModifyNotification(nullptr, &pSize);
return;
}
}
@@ -118,8 +118,8 @@ SwCallLink::~SwCallLink()
lcl_notifyRow(pCNd, rShell);
const SwDoc *pDoc=rShell.GetDoc();
- const SwContentNode *pNode = NULL;
- if ( ( pDoc != NULL && nNode < pDoc->GetNodes( ).Count( ) ) )
+ const SwContentNode *pNode = nullptr;
+ if ( ( pDoc != nullptr && nNode < pDoc->GetNodes( ).Count( ) ) )
{
pNode = pDoc->GetNodes()[nNode]->GetContentNode();
}
@@ -212,8 +212,8 @@ SwCallLink::~SwCallLink()
const SwFrm* pFrm;
const SwFlyFrm *pFlyFrm;
- if( !rShell.ActionPend() && 0 != ( pFrm = pCNd->getLayoutFrm(rShell.GetLayout(), 0, 0, false) ) &&
- 0 != ( pFlyFrm = pFrm->FindFlyFrm() ) && !rShell.IsTableMode() )
+ if( !rShell.ActionPend() && nullptr != ( pFrm = pCNd->getLayoutFrm(rShell.GetLayout(), nullptr, nullptr, false) ) &&
+ nullptr != ( pFlyFrm = pFrm->FindFlyFrm() ) && !rShell.IsTableMode() )
{
const SwNodeIndex* pIndex = pFlyFrm->GetFormat()->GetContent().GetContentIdx();
OSL_ENSURE( pIndex, "Fly without Content" );
@@ -231,12 +231,12 @@ SwCallLink::~SwCallLink()
long SwCallLink::getLayoutFrm( const SwRootFrm* pRoot, SwTextNode& rNd, sal_Int32 nCntPos, bool bCalcFrm )
{
- SwTextFrm* pFrm = static_cast<SwTextFrm*>(rNd.getLayoutFrm(pRoot,0,0,bCalcFrm));
+ SwTextFrm* pFrm = static_cast<SwTextFrm*>(rNd.getLayoutFrm(pRoot,nullptr,nullptr,bCalcFrm));
SwTextFrm* pNext;
if ( pFrm && !pFrm->IsHiddenNow() )
{
if( pFrm->HasFollow() )
- while( 0 != ( pNext = pFrm->GetFollow() ) &&
+ while( nullptr != ( pNext = pFrm->GetFollow() ) &&
nCntPos >= pNext->GetOfst() )
pFrm = pNext;
diff --git a/sw/source/core/crsr/crbm.cxx b/sw/source/core/crsr/crbm.cxx
index 3fa891436a16..8b55c24d62e9 100644
--- a/sw/source/core/crsr/crbm.cxx
+++ b/sw/source/core/crsr/crbm.cxx
@@ -232,7 +232,7 @@ bool SwCrsrShell::IsFormProtected()
bool SwCrsrShell::GotoFieldmark(::sw::mark::IFieldmark const * const pMark)
{
- if(pMark==NULL) return false;
+ if(pMark==nullptr) return false;
// watch Crsr-Moves
CrsrStateHelper aCrsrSt(*this);
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 8e5a44e02999..7ba3d9fab95e 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -86,7 +86,7 @@ void CheckRange( SwCursor* pCurCrsr )
const SwPosition *pStt = pCurCrsr->Start(),
*pEnd = pCurCrsr->GetPoint() == pStt ? pCurCrsr->GetMark() : pCurCrsr->GetPoint();
- SwPaM *pTmpDel = 0,
+ SwPaM *pTmpDel = nullptr,
*pTmp = pCurCrsr->GetNext();
// Search the complete ring
@@ -109,7 +109,7 @@ void CheckRange( SwCursor* pCurCrsr )
// range. Take note that Point does not belong to the range anymore.
pTmp = pTmp->GetNext();
delete pTmpDel; // Remove old range
- pTmpDel = 0;
+ pTmpDel = nullptr;
}
}
@@ -193,8 +193,8 @@ SwPaM* SwCrsrShell::GetCrsr( bool bMakeTableCrsr ) const
const SwContentNode* pCNd;
if( m_pTableCrsr->GetPoint()->nNode.GetIndex() &&
m_pTableCrsr->GetMark()->nNode.GetIndex() &&
- 0 != ( pCNd = m_pTableCrsr->GetContentNode() ) && pCNd->getLayoutFrm( GetLayout() ) &&
- 0 != ( pCNd = m_pTableCrsr->GetContentNode(false) ) && pCNd->getLayoutFrm( GetLayout() ) )
+ nullptr != ( pCNd = m_pTableCrsr->GetContentNode() ) && pCNd->getLayoutFrm( GetLayout() ) &&
+ nullptr != ( pCNd = m_pTableCrsr->GetContentNode(false) ) && pCNd->getLayoutFrm( GetLayout() ) )
{
SwShellTableCrsr* pTC = m_pTableCrsr;
GetLayout()->MakeTableCrsrs( *pTC );
@@ -345,7 +345,7 @@ bool SwCrsrShell::LeftRight( bool bLeft, sal_uInt16 nCnt, sal_uInt16 nMode,
bool bRet = false;
// #i27615# Handle cursor in front of label.
- const SwTextNode* pTextNd = 0;
+ const SwTextNode* pTextNd = nullptr;
if( m_pBlockCrsr )
m_pBlockCrsr->clearPoints();
@@ -362,7 +362,7 @@ bool SwCrsrShell::LeftRight( bool bLeft, sal_uInt16 nCnt, sal_uInt16 nMode,
// to the left will simply set the bInFrontOfLabel flag:
else if ( bLeft && 0 == pShellCrsr->GetPoint()->nContent.GetIndex() &&
!pShellCrsr->IsInFrontOfLabel() && !pShellCrsr->HasMark() &&
- 0 != ( pTextNd = pShellCrsr->GetNode().GetTextNode() ) &&
+ nullptr != ( pTextNd = pShellCrsr->GetNode().GetTextNode() ) &&
pTextNd->HasVisibleNumberingOrBullet() )
{
SetInFrontOfLabel( true );
@@ -477,17 +477,17 @@ bool SwCrsrShell::bColumnChange()
{
SwFrm* pCurrFrm = GetCurrFrm(false);
- if (pCurrFrm == NULL)
+ if (pCurrFrm == nullptr)
{
return false;
}
SwFrm* pCurrCol=static_cast<SwFrm*>(pCurrFrm)->FindColFrm();
- while(pCurrCol== NULL && pCurrFrm!=NULL )
+ while(pCurrCol== nullptr && pCurrFrm!=nullptr )
{
SwLayoutFrm* pParent = pCurrFrm->GetUpper();
- if(pParent!=NULL)
+ if(pParent!=nullptr)
{
pCurrCol=static_cast<SwFrm*>(pParent)->FindColFrm();
pCurrFrm = static_cast<SwFrm*>(pParent);
@@ -666,7 +666,7 @@ bool SwCrsrShell::isInHiddenTextFrm(SwShellCrsr* pShellCrsr)
{
SwContentNode *pCNode = pShellCrsr->GetContentNode();
SwContentFrm *pFrm = pCNode ?
- pCNode->getLayoutFrm( GetLayout(), &pShellCrsr->GetPtPos(), pShellCrsr->GetPoint(), false ) : 0;
+ pCNode->getLayoutFrm( GetLayout(), &pShellCrsr->GetPtPos(), pShellCrsr->GetPoint(), false ) : nullptr;
return !pFrm || (pFrm->IsTextFrm() && static_cast<SwTextFrm*>(pFrm)->IsHiddenNow());
}
@@ -709,12 +709,12 @@ bool SwCrsrShell::MoveSection( SwWhichSection fnWhichSect,
static SwFrm* lcl_IsInHeaderFooter( const SwNodeIndex& rIdx, Point& rPt )
{
- SwFrm* pFrm = 0;
+ SwFrm* pFrm = nullptr;
SwContentNode* pCNd = rIdx.GetNode().GetContentNode();
if( pCNd )
{
- SwContentFrm *pCntFrm = pCNd->getLayoutFrm( pCNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentLayout(), &rPt, 0, false );
- pFrm = pCntFrm ? pCntFrm->GetUpper() : NULL;
+ SwContentFrm *pCntFrm = pCNd->getLayoutFrm( pCNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentLayout(), &rPt, nullptr, false );
+ pFrm = pCntFrm ? pCntFrm->GetUpper() : nullptr;
while( pFrm && !pFrm->IsHeaderFrm() && !pFrm->IsFooterFrm() )
pFrm = pFrm->IsFlyFrm() ? static_cast<SwFlyFrm*>(pFrm)->AnchorFrm()
: pFrm->GetUpper();
@@ -728,7 +728,7 @@ bool SwCrsrShell::IsInHeaderFooter( bool* pbInHeader ) const
SwFrm* pFrm = ::lcl_IsInHeaderFooter( m_pCurCrsr->GetPoint()->nNode, aPt );
if( pFrm && pbInHeader )
*pbInHeader = pFrm->IsHeaderFrm();
- return 0 != pFrm;
+ return nullptr != pFrm;
}
int SwCrsrShell::SetCrsr( const Point &rLPt, bool bOnlyText, bool bBlock )
@@ -798,9 +798,9 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, bool bOnlyText, bool bBlock )
{
// in the same frame?
SwFrm* pOld = static_cast<SwContentNode&>(aPos.nNode.GetNode()).getLayoutFrm(
- GetLayout(), &m_aCharRect.Pos(), 0, false );
+ GetLayout(), &m_aCharRect.Pos(), nullptr, false );
SwFrm* pNew = static_cast<SwContentNode&>(aPos.nNode.GetNode()).getLayoutFrm(
- GetLayout(), &aPt, 0, false );
+ GetLayout(), &aPt, nullptr, false );
if( pNew == pOld )
return bRet;
}
@@ -868,7 +868,7 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, bool bOnlyText, bool bBlock )
void SwCrsrShell::TableCrsrToCursor()
{
OSL_ENSURE( m_pTableCrsr, "TableCrsrToCursor: Why?" );
- delete m_pTableCrsr, m_pTableCrsr = 0;
+ delete m_pTableCrsr, m_pTableCrsr = nullptr;
}
void SwCrsrShell::BlockCrsrToCrsr()
@@ -884,7 +884,7 @@ void SwCrsrShell::BlockCrsrToCrsr()
else
m_pCurCrsr->DeleteMark();
}
- delete m_pBlockCrsr, m_pBlockCrsr = 0;
+ delete m_pBlockCrsr, m_pBlockCrsr = nullptr;
}
void SwCrsrShell::CrsrToBlockCrsr()
@@ -923,7 +923,7 @@ void SwCrsrShell::ClearMark()
*m_pCurCrsr->GetPoint() = *m_pTableCrsr->GetPoint();
m_pCurCrsr->GetPtPos() = m_pTableCrsr->GetPtPos();
- delete m_pTableCrsr, m_pTableCrsr = 0;
+ delete m_pTableCrsr, m_pTableCrsr = nullptr;
m_pCurCrsr->SwSelPaintRects::Show();
}
else
@@ -1015,7 +1015,7 @@ void SwCrsrShell::KillPams()
*m_pCurCrsr->GetPoint() = *m_pTableCrsr->GetPoint();
m_pCurCrsr->GetPtPos() = m_pTableCrsr->GetPtPos();
delete m_pTableCrsr;
- m_pTableCrsr = 0;
+ m_pTableCrsr = nullptr;
}
else if( m_pBlockCrsr )
{
@@ -1033,7 +1033,7 @@ void SwCrsrShell::KillPams()
int SwCrsrShell::CompareCursor( CrsrCompareType eType ) const
{
int nRet = 0;
- const SwPosition *pFirst = 0, *pSecond = 0;
+ const SwPosition *pFirst = nullptr, *pSecond = nullptr;
const SwPaM *pCur = GetCrsr(), *pStk = m_pCrsrStk;
// cursor on stack is needed if we compare against stack
if( pStk || ( eType == CurrPtCurrMk ) )
@@ -1142,10 +1142,10 @@ void SwCrsrShell::GetPageNum( sal_uInt16 &rnPhyNum, sal_uInt16 &rnVirtNum,
SET_CURR_SHELL( this );
// page number: first visible page or the one at the cursor
const SwContentFrm* pCFrm;
- const SwPageFrm *pPg = 0;
+ const SwPageFrm *pPg = nullptr;
- if( !bAtCrsrPos || 0 == (pCFrm = GetCurrFrm( bCalcFrm )) ||
- 0 == (pPg = pCFrm->FindPageFrm()) )
+ if( !bAtCrsrPos || nullptr == (pCFrm = GetCurrFrm( bCalcFrm )) ||
+ nullptr == (pPg = pCFrm->FindPageFrm()) )
{
pPg = Imp()->GetFirstVisPage(GetOut());
while( pPg && pPg->IsEmptyPage() )
@@ -1343,7 +1343,7 @@ void SwCrsrShell::UpdateCrsrPos()
&aTmpState );
pShellCrsr->DeleteMark();
}
- IGrammarContact *pGrammarContact = GetDoc() ? GetDoc()->getGrammarContact() : 0;
+ IGrammarContact *pGrammarContact = GetDoc() ? GetDoc()->getGrammarContact() : nullptr;
if( pGrammarContact )
pGrammarContact->updateCursorPosition( *m_pCurCrsr->GetPoint() );
--mnStartAction;
@@ -1361,7 +1361,7 @@ static bool lcl_CheckHiddenSection( SwNodeIndex& rIdx )
SwNodeIndex aTmp( *pSectNd );
const SwNode* pFrmNd =
rIdx.GetNodes().FindPrvNxtFrmNode( aTmp, pSectNd->EndOfSectionNode() );
- bOk = pFrmNd != NULL;
+ bOk = pFrmNd != nullptr;
SAL_WARN_IF(!bOk, "sw", "found no Node with Frames");
rIdx = aTmp;
}
@@ -1379,7 +1379,7 @@ static void lcl_CheckHiddenPara( SwPosition& rPos )
if ( pContent && pContent->IsTextNode() )
pTextNd = pContent->GetTextNode();
else
- pTextNd = 0;
+ pTextNd = nullptr;
}
if ( pTextNd )
@@ -1464,7 +1464,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
// --> Make code robust. The table cursor may point
// to a table in a currently inactive header.
- SwTabFrm *pTab = pTableFrm ? pTableFrm->FindTabFrm() : 0;
+ SwTabFrm *pTab = pTableFrm ? pTableFrm->FindTabFrm() : nullptr;
if ( pTab && pTab->GetTable()->GetRowsToRepeat() > 0 )
{
@@ -1494,7 +1494,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
// No table cursor in repeated headlines:
if ( bInRepeatedHeadline )
{
- pTableFrm = 0;
+ pTableFrm = nullptr;
SwPosSection fnPosSect = *pPos < *pITmpCrsr->GetMark()
? fnSectionStart
@@ -1596,7 +1596,7 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, bool bIdleEnd )
m_pCurCrsr->DeleteMark();
*m_pCurCrsr->GetPoint() = *m_pTableCrsr->GetPoint();
m_pCurCrsr->GetPtPos() = m_pTableCrsr->GetPtPos();
- delete m_pTableCrsr, m_pTableCrsr = 0;
+ delete m_pTableCrsr, m_pTableCrsr = nullptr;
}
m_pVisCrsr->Hide(); // always hide visible Cursor
@@ -2007,10 +2007,10 @@ bool SwCrsrShell::Pop( bool bOldCrsr )
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
// are there any left?
- if( 0 == m_pCrsrStk )
+ if( nullptr == m_pCrsrStk )
return false;
- SwShellCrsr *pTmp = 0, *pOldStk = m_pCrsrStk;
+ SwShellCrsr *pTmp = nullptr, *pOldStk = m_pCrsrStk;
// the successor becomes the current one
if( m_pCrsrStk->GetNext() != m_pCrsrStk )
@@ -2064,7 +2064,7 @@ bool SwCrsrShell::Pop( bool bOldCrsr )
void SwCrsrShell::Combine()
{
// any others left?
- if( 0 == m_pCrsrStk )
+ if( nullptr == m_pCrsrStk )
return;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
@@ -2078,14 +2078,14 @@ void SwCrsrShell::Combine()
*m_pCrsrStk->GetPoint() = *m_pCurCrsr->GetPoint();
m_pCrsrStk->GetPtPos() = m_pCurCrsr->GetPtPos();
- SwShellCrsr * pTmp = 0;
+ SwShellCrsr * pTmp = nullptr;
if( m_pCrsrStk->GetNext() != m_pCrsrStk )
{
pTmp = dynamic_cast<SwShellCrsr*>(m_pCrsrStk->GetNext());
}
delete m_pCurCrsr;
m_pCurCrsr = m_pCrsrStk;
- m_pCrsrStk->MoveTo(0); // remove from ring
+ m_pCrsrStk->MoveTo(nullptr); // remove from ring
m_pCrsrStk = pTmp;
if( !m_pCurCrsr->IsInProtectTable( true ) &&
!m_pCurCrsr->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
@@ -2186,7 +2186,7 @@ void SwCrsrShell::ShGetFcs( bool bUpdate )
SwContentFrm *SwCrsrShell::GetCurrFrm( const bool bCalcFrm ) const
{
SET_CURR_SHELL( static_cast<SwViewShell*>(const_cast<SwCrsrShell *>(this)) );
- SwContentFrm *pRet = 0;
+ SwContentFrm *pRet = nullptr;
SwContentNode *pNd = m_pCurCrsr->GetContentNode();
if ( pNd )
{
@@ -2495,7 +2495,7 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing )
const SwPosition *pStt = pDelRg->Start(),
*pEnd = pDelRg->GetPoint() == pStt ? pDelRg->GetMark() : pDelRg->GetPoint();
- SwPaM *pTmpDel = 0, *pTmp = *ppDelRing;
+ SwPaM *pTmpDel = nullptr, *pTmp = *ppDelRing;
// search over the whole ring
bool bGoNext;
@@ -2540,14 +2540,14 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing )
if( bDelete )
{
if (pTmp == pTmpDel)
- pTmp = 0;
+ pTmp = nullptr;
delete pTmpDel; // invalidate old area
}
else
{
pTmpDel->DeleteMark();
}
- pTmpDel = 0;
+ pTmpDel = nullptr;
}
if( bGoNext && pTmp )
pTmp = pTmp->GetNext();
@@ -2621,12 +2621,12 @@ void SwCrsrShell::ParkCrsr( const SwNodeIndex &rIdx )
*/
SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, vcl::Window *pInitWin )
: SwViewShell( rShell, pInitWin )
- , SwModify( 0 )
- , m_pCrsrStk( 0 )
- , m_pBlockCrsr( 0 )
- , m_pTableCrsr( 0 )
- , m_pBoxIdx( 0 )
- , m_pBoxPtr( 0 )
+ , SwModify( nullptr )
+ , m_pCrsrStk( nullptr )
+ , m_pBlockCrsr( nullptr )
+ , m_pTableCrsr( nullptr )
+ , m_pBoxIdx( nullptr )
+ , m_pBoxPtr( nullptr )
, m_nUpDownX(0)
, m_nLeftFrmPos(0)
, m_nAktNode(0)
@@ -2638,7 +2638,7 @@ SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, vcl::Window *pInitWin )
, m_eMvState( MV_NONE )
, m_sMarkedListId()
, m_nMarkedListLevel( 0 )
- , m_oldColFrm(0)
+ , m_oldColFrm(nullptr)
{
SET_CURR_SHELL( this );
// only keep the position of the current cursor of the copy shell
@@ -2663,12 +2663,12 @@ SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, vcl::Window *pInitWin )
SwCrsrShell::SwCrsrShell( SwDoc& rDoc, vcl::Window *pInitWin,
const SwViewOption *pInitOpt )
: SwViewShell( rDoc, pInitWin, pInitOpt )
- , SwModify( 0 )
- , m_pCrsrStk( 0 )
- , m_pBlockCrsr( 0 )
- , m_pTableCrsr( 0 )
- , m_pBoxIdx( 0 )
- , m_pBoxPtr( 0 )
+ , SwModify( nullptr )
+ , m_pCrsrStk( nullptr )
+ , m_pBlockCrsr( nullptr )
+ , m_pTableCrsr( nullptr )
+ , m_pBoxIdx( nullptr )
+ , m_pBoxPtr( nullptr )
, m_nUpDownX(0)
, m_nLeftFrmPos(0)
, m_nAktNode(0)
@@ -2680,7 +2680,7 @@ SwCrsrShell::SwCrsrShell( SwDoc& rDoc, vcl::Window *pInitWin,
, m_eMvState( MV_NONE ) // state for crsr-travelling - GetCrsrOfst
, m_sMarkedListId()
, m_nMarkedListLevel( 0 )
- , m_oldColFrm(0)
+ , m_oldColFrm(nullptr)
{
SET_CURR_SHELL( this );
// create initial cursor and set it to first content position
@@ -2835,7 +2835,7 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
SwContentNode* pCNd = rNdIdx.GetNode().GetContentNode();
const SwContentFrm * pFrm;
- if( pCNd && 0 != (pFrm = pCNd->getLayoutFrm( GetLayout(), 0, m_pCurCrsr->GetPoint(), false)) &&
+ if( pCNd && nullptr != (pFrm = pCNd->getLayoutFrm( GetLayout(), nullptr, m_pCurCrsr->GetPoint(), false)) &&
!IsReadOnlyAvailable() && pFrm->IsProtected() &&
nNdIdx < rNds.GetEndOfExtras().GetIndex() )
{
@@ -2846,7 +2846,7 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
aPam.GetPoint()->nNode = *pCNd->EndOfSectionNode();
bool bFirst = false;
- if( 0 == (pCNd = ::GetNode( aPam, bFirst, fnMoveForward )))
+ if( nullptr == (pCNd = ::GetNode( aPam, bFirst, fnMoveForward )))
{
aPam.GetMark()->nNode = *rNds.GetEndOfPostIts().StartOfSectionNode();
pCNd = ::GetNode( aPam, bFirst, fnMoveBackward );
@@ -2874,7 +2874,7 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
// (unless cursor in protected areas is OK.)
const SwTableNode* pTableNode = rNdIdx.GetNode().FindTableNode();
if( !IsReadOnlyAvailable() &&
- pTableNode != NULL && rNdIdx.GetNode().IsProtect() )
+ pTableNode != nullptr && rNdIdx.GetNode().IsProtect() )
{
// we're in a table, and we're in a protected area, so we're
// probably in a protected cell.
@@ -2923,7 +2923,7 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
else
pCNd = SwNodes::GoPrevSection( &rNdIdx,
true, !IsReadOnlyAvailable() );
- if ( pCNd == 0) break;
+ if ( pCNd == nullptr) break;
// moved inside a table -> check if it is protected
if( pCNd->FindTableNode() )
{
@@ -2953,7 +2953,7 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
if( bOk && rNdIdx.GetIndex() < rNds.GetEndOfExtras().GetIndex() )
{
// also check for Fly - might be protected as well
- if( 0 == (pFrm = pCNd->getLayoutFrm( GetLayout(), 0, 0, false)) ||
+ if( nullptr == (pFrm = pCNd->getLayoutFrm( GetLayout(), nullptr, nullptr, false)) ||
( !IsReadOnlyAvailable() && pFrm->IsProtected() ) ||
( bOnlyText && pCNd->IsNoTextNode() ) )
{
@@ -2982,7 +2982,7 @@ bool SwCrsrShell::FindValidContentNode( bool bOnlyText )
{
pCNd = rNdIdx.GetNode().GetContentNode();
// if cursor in hidden frame, always move it
- if( !pCNd || !pCNd->getLayoutFrm( GetLayout(), 0, 0, false) )
+ if( !pCNd || !pCNd->getLayoutFrm( GetLayout(), nullptr, nullptr, false) )
{
SwCrsrMoveState aTmpState( MV_NONE );
aTmpState.m_bSetInReadOnly = IsReadOnlyAvailable();
@@ -3012,7 +3012,7 @@ bool SwCrsrShell::IsCrsrReadonly() const
}
// edit in readonly sections
else if ( pFrm && pFrm->IsInSct() &&
- 0 != ( pSection = pFrm->FindSctFrm()->GetSection() ) &&
+ nullptr != ( pSection = pFrm->FindSctFrm()->GetSection() ) &&
pSection->IsEditInReadonlyFlag() )
{
return false;
@@ -3052,7 +3052,7 @@ bool SwCrsrShell::HasReadonlySel(bool bAnnotationMode) const
// If protected area is to be ignored, then selections are never read-only.
if ((IsReadOnlyAvailable() || GetViewOptions()->IsFormView()) && !GetViewOptions()->IsIgnoreProtectedArea())
{
- if ( m_pTableCrsr != NULL )
+ if ( m_pTableCrsr != nullptr )
{
bRet = m_pTableCrsr->HasReadOnlyBoxSel()
|| m_pTableCrsr->HasReadonlySel( GetViewOptions()->IsFormView() );
@@ -3161,7 +3161,7 @@ sal_uLong SwCrsrShell::Find( const SearchOptions& rSearchOpt,
{
if( m_pTableCrsr )
GetCrsr();
- delete m_pTableCrsr, m_pTableCrsr = 0;
+ delete m_pTableCrsr, m_pTableCrsr = nullptr;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
sal_uLong nRet = m_pCurCrsr->Find( rSearchOpt, bSearchInNotes, eStart, eEnd,
bCancel, eRng, bReplace );
@@ -3178,7 +3178,7 @@ sal_uLong SwCrsrShell::Find( const SwTextFormatColl& rFormatColl,
{
if( m_pTableCrsr )
GetCrsr();
- delete m_pTableCrsr, m_pTableCrsr = 0;
+ delete m_pTableCrsr, m_pTableCrsr = nullptr;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
sal_uLong nRet = m_pCurCrsr->Find( rFormatColl, eStart, eEnd, bCancel, eRng,
pReplFormat );
@@ -3197,7 +3197,7 @@ sal_uLong SwCrsrShell::Find( const SfxItemSet& rSet,
{
if( m_pTableCrsr )
GetCrsr();
- delete m_pTableCrsr, m_pTableCrsr = 0;
+ delete m_pTableCrsr, m_pTableCrsr = nullptr;
SwCallLink aLk( *this ); // watch Crsr-Moves; call Link if needed
sal_uLong nRet = m_pCurCrsr->Find( rSet, bNoCollections, eStart, eEnd,
bCancel, eRng, pSearchOpt, rReplSet );
@@ -3252,7 +3252,7 @@ static const SwStartNode* lcl_NodeContext( const SwNode& rNode )
*/
bool sw_PosOk(const SwPosition & aPos)
{
- return NULL != aPos.nNode.GetNode().GetContentNode() &&
+ return nullptr != aPos.nNode.GetNode().GetContentNode() &&
aPos.nContent.GetIdxReg();
}
@@ -3301,9 +3301,9 @@ void SwCrsrShell::ClearUpCrsrs()
const SwNode* pStart = lcl_NodeContext( pStartCrsr->GetPoint()->nNode.GetNode() );
SwNodeIndex aIdx( pStartCrsr->GetPoint()->nNode );
SwNode * pNode = SwNodes::GoPrevious(&aIdx);
- if( pNode == NULL || lcl_NodeContext( *pNode ) != pStart )
+ if( pNode == nullptr || lcl_NodeContext( *pNode ) != pStart )
aNodes.GoNext( &aIdx );
- if( pNode == NULL || lcl_NodeContext( *pNode ) != pStart )
+ if( pNode == nullptr || lcl_NodeContext( *pNode ) != pStart )
{
// If the start entry of the ring is invalid replace it with a
// cursor pointing to the beginning of the first content node in the
@@ -3311,7 +3311,7 @@ void SwCrsrShell::ClearUpCrsrs()
aIdx = (*(aNodes.GetEndOfContent().StartOfSectionNode()));
pNode = aNodes.GoNext( &aIdx );
}
- bool bFound = (pNode != NULL);
+ bool bFound = (pNode != nullptr);
OSL_ENSURE(bFound, "no content node found");
@@ -3326,7 +3326,7 @@ void SwCrsrShell::ClearUpCrsrs()
// If at least one of the cursors in the ring have been deleted or replaced,
// remove the table cursor.
- if (m_pTableCrsr != NULL && bChanged)
+ if (m_pTableCrsr != nullptr && bChanged)
TableCrsrToCursor();
}
@@ -3469,8 +3469,8 @@ void SwCrsrShell::GetSmartTagTerm( const Point& rPt, SwRect& rSelectRect,
const SwWrongList *pSmartTagList;
if( GetLayout()->GetCrsrOfst( &aPos, aPt, &eTmpState ) &&
- 0 != (pNode = aPos.nNode.GetNode().GetTextNode()) &&
- 0 != (pSmartTagList = pNode->GetSmartTags()) &&
+ nullptr != (pNode = aPos.nNode.GetNode().GetTextNode()) &&
+ nullptr != (pSmartTagList = pNode->GetSmartTags()) &&
!pNode->IsInProtectSect() )
{
sal_Int32 nCurrent = aPos.nContent.GetIndex();
@@ -3509,7 +3509,7 @@ void SwCrsrShell::GetSmartTagTerm( const Point& rPt, SwRect& rSelectRect,
sal_Int32 nLeft = 0;
while (pChar && *pChar++ == CH_TXTATR_INWORD)
++nLeft;
- pChar = aText.getLength() ? aText.getStr() + aText.getLength() - 1 : 0;
+ pChar = aText.getLength() ? aText.getStr() + aText.getLength() - 1 : nullptr;
sal_Int32 nRight = 0;
while (pChar && *pChar-- == CH_TXTATR_INWORD)
++nRight;
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 7158630c303d..a7f1d341cd93 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -145,9 +145,9 @@ bool SwCrsrShell::GotoHeaderText()
if( !pTmpCrsr->IsSelOvr() )
UpdateCrsr();
else
- pFrm = 0;
+ pFrm = nullptr;
}
- return 0 != pFrm;
+ return nullptr != pFrm;
}
/// jump from content to footer
@@ -177,21 +177,21 @@ bool SwCrsrShell::GotoFooterText()
if( !pTmpCrsr->IsSelOvr() )
UpdateCrsr();
else
- pFrm = 0;
+ pFrm = nullptr;
}
else
- pFrm = 0;
+ pFrm = nullptr;
}
else
- pFrm = 0;
- return 0 != pFrm;
+ pFrm = nullptr;
+ return nullptr != pFrm;
}
bool SwCrsrShell::SetCrsrInHdFt( size_t nDescNo, bool bInHeader )
{
bool bRet = false;
SwDoc *pMyDoc = GetDoc();
- const SwPageDesc* pDesc = NULL;
+ const SwPageDesc* pDesc = nullptr;
SET_CURR_SHELL( this );
@@ -210,7 +210,7 @@ bool SwCrsrShell::SetCrsrInHdFt( size_t nDescNo, bool bInHeader )
if( pDesc )
{
// check if the attribute exists
- const SwFormatContent* pCnt = 0;
+ const SwFormatContent* pCnt = nullptr;
if( bInHeader )
{
// mirrored pages? ignore for now
@@ -234,7 +234,7 @@ bool SwCrsrShell::SetCrsrInHdFt( size_t nDescNo, bool bInHeader )
Point aPt( m_pCurCrsr->GetPtPos() );
- if( pCNd && 0 != pCNd->getLayoutFrm( GetLayout(), &aPt, 0, false ) )
+ if( pCNd && nullptr != pCNd->getLayoutFrm( GetLayout(), &aPt, nullptr, false ) )
{
// then we can set the cursor in here
SwCallLink aLk( *this ); // watch Crsr-Moves
@@ -262,7 +262,7 @@ bool SwCrsrShell::GotoNextTOXBase( const OUString* pName )
bool bRet = false;
const SwSectionFormats& rFormats = GetDoc()->GetSections();
- SwContentNode* pFnd = 0;
+ SwContentNode* pFnd = nullptr;
for( SwSectionFormats::size_type n = rFormats.size(); n; )
{
const SwSection* pSect = rFormats[ --n ]->GetSection();
@@ -313,7 +313,7 @@ bool SwCrsrShell::GotoPrevTOXBase( const OUString* pName )
bool bRet = false;
const SwSectionFormats& rFormats = GetDoc()->GetSections();
- SwContentNode* pFnd = 0;
+ SwContentNode* pFnd = nullptr;
for( SwSectionFormats::size_type n = rFormats.size(); n; )
{
const SwSection* pSect = rFormats[ --n ]->GetSection();
@@ -378,8 +378,8 @@ bool SwCrsrShell::GotoTOXMarkBase()
{
const SwSectionNode* pSectNd;
if( dynamic_cast<const SwTOXBaseSection*>( pTOX) != nullptr &&
- 0 != ( pSectFormat = static_cast<SwTOXBaseSection*>(pTOX)->GetFormat() ) &&
- 0 != ( pSectNd = pSectFormat->GetSectionNode() ))
+ nullptr != ( pSectFormat = static_cast<SwTOXBaseSection*>(pTOX)->GetFormat() ) &&
+ nullptr != ( pSectNd = pSectFormat->GetSectionNode() ))
{
SwNodeIndex aIdx( *pSectNd, 1 );
SwContentNode* pCNd = aIdx.GetNode().GetContentNode();
@@ -388,7 +388,7 @@ bool SwCrsrShell::GotoTOXMarkBase()
const SwContentFrm* pCFrm;
if( pCNd &&
pCNd->EndOfSectionIndex() < pSectNd->EndOfSectionIndex() &&
- 0 != ( pCFrm = pCNd->getLayoutFrm( GetLayout() ) ) &&
+ nullptr != ( pCFrm = pCNd->getLayoutFrm( GetLayout() ) ) &&
( IsReadOnlyAvailable() || !pCFrm->IsProtected() ))
{
SwCallLink aLk( *this ); // watch Crsr-Moves
@@ -445,9 +445,9 @@ bool SwCrsrShell::GotoNxtPrvTableFormula( bool bNext, bool bOnlyErrors )
{
const SwTableBox* pTBox;
const SfxPoolItem* pItem;
- if( 0 != (pItem = GetDoc()->GetAttrPool().GetItem2(
+ if( nullptr != (pItem = GetDoc()->GetAttrPool().GetItem2(
RES_BOXATR_FORMULA, n ) ) &&
- 0 != (pTBox = static_cast<const SwTableBoxFormula*>(pItem)->GetTableBox() ) &&
+ nullptr != (pTBox = static_cast<const SwTableBoxFormula*>(pItem)->GetTableBox() ) &&
pTBox->GetSttNd() &&
pTBox->GetSttNd()->GetNodes().IsDocNodes() &&
( !bOnlyErrors ||
@@ -456,7 +456,7 @@ bool SwCrsrShell::GotoNxtPrvTableFormula( bool bNext, bool bOnlyErrors )
const SwContentFrm* pCFrm;
SwNodeIndex aIdx( *pTBox->GetSttNd() );
const SwContentNode* pCNd = GetDoc()->GetNodes().GoNext( &aIdx );
- if( pCNd && 0 != ( pCFrm = pCNd->getLayoutFrm( GetLayout(), &aPt, 0, false ) ) &&
+ if( pCNd && nullptr != ( pCFrm = pCNd->getLayoutFrm( GetLayout(), &aPt, nullptr, false ) ) &&
(IsReadOnlyAvailable() || !pCFrm->IsProtected() ))
{
_SetGetExpField aCmp( *pTBox );
@@ -520,15 +520,15 @@ bool SwCrsrShell::GotoNxtPrvTOXMark( bool bNext )
const SfxPoolItem* pItem;
const SwContentFrm* pCFrm;
- if( 0 != (pItem = GetDoc()->GetAttrPool().GetItem2(
+ if( nullptr != (pItem = GetDoc()->GetAttrPool().GetItem2(
RES_TXTATR_TOXMARK, n ) ) &&
- 0 != (pTextTOX = static_cast<const SwTOXMark*>(pItem)->GetTextTOXMark() ) &&
+ nullptr != (pTextTOX = static_cast<const SwTOXMark*>(pItem)->GetTextTOXMark() ) &&
( pTextNd = &pTextTOX->GetTextNode())->GetNodes().IsDocNodes() &&
- 0 != ( pCFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt, 0, false )) &&
+ nullptr != ( pCFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt, nullptr, false )) &&
( IsReadOnlyAvailable() || !pCFrm->IsProtected() ))
{
SwNodeIndex aNdIndex( *pTextNd ); // UNIX needs this object
- _SetGetExpField aCmp( aNdIndex, *pTextTOX, 0 );
+ _SetGetExpField aCmp( aNdIndex, *pTextTOX, nullptr );
aCmp.SetBodyPos( *pCFrm );
if( bNext ? ( aCurGEF < aCmp && aCmp < aFndGEF )
@@ -589,19 +589,19 @@ void lcl_MakeFieldLst(
{
// always search the 1. frame
Point aPt;
- SwTextField* pTextField = NULL;
+ SwTextField* pTextField = nullptr;
SwIterator<SwFormatField,SwFieldType> aIter(rFieldType);
for( SwFormatField* pFormatField = aIter.First(); pFormatField; pFormatField = aIter.Next() )
{
pTextField = pFormatField->GetTextField();
- if ( pTextField != NULL
+ if ( pTextField != nullptr
&& ( !bChkInpFlag
|| static_cast<const SwSetExpField*>(pTextField->GetFormatField().GetField())->GetInputFlag() ) )
{
const SwTextNode& rTextNode = pTextField->GetTextNode();
const SwContentFrm* pCFrm =
- rTextNode.getLayoutFrm( rTextNode.GetDoc()->getIDocumentLayoutAccess().GetCurrentLayout(), &aPt, 0, false );
- if ( pCFrm != NULL
+ rTextNode.getLayoutFrm( rTextNode.GetDoc()->getIDocumentLayoutAccess().GetCurrentLayout(), &aPt, nullptr, false );
+ if ( pCFrm != nullptr
&& ( bInReadOnly || !pCFrm->IsProtected() ) )
{
_SetGetExpField* pNew = new _SetGetExpField( SwNodeIndex( rTextNode ), pTextField );
@@ -707,7 +707,7 @@ bool SwCrsrShell::MoveFieldType(
OSL_ENSURE( pTNd, "No ContentNode" );
SwTextField * pTextField = pTNd->GetFieldTextAttrAt( rPos.nContent.GetIndex(), true );
- const bool bDelField = ( pTextField == NULL );
+ const bool bDelField = ( pTextField == nullptr );
sal_Int32 nContentOffset = -1;
if( bDelField )
@@ -807,10 +807,10 @@ SwTextField * SwCrsrShell::GetTextFieldAtPos(
const SwPosition* pPos,
const bool bIncludeInputFieldAtStart )
{
- SwTextField* pTextField = NULL;
+ SwTextField* pTextField = nullptr;
SwTextNode * const pNode = pPos->nNode.GetNode().GetTextNode();
- if ( pNode != NULL )
+ if ( pNode != nullptr )
{
pTextField = pNode->GetFieldTextAttrAt( pPos->nContent.GetIndex(), bIncludeInputFieldAtStart );
}
@@ -822,14 +822,14 @@ SwField* SwCrsrShell::GetFieldAtCrsr(
const SwPaM* pCrsr,
const bool bIncludeInputFieldAtStart )
{
- SwField* pFieldAtCrsr = NULL;
+ SwField* pFieldAtCrsr = nullptr;
SwTextField* pTextField = GetTextFieldAtPos( pCrsr->Start(), bIncludeInputFieldAtStart );
- if ( pTextField != NULL
+ if ( pTextField != nullptr
&& pCrsr->Start()->nNode == pCrsr->End()->nNode )
{
const sal_Int32 nTextFieldLength =
- pTextField->End() != NULL
+ pTextField->End() != nullptr
? *(pTextField->End()) - pTextField->GetStart()
: 1;
if ( ( pCrsr->End()->nContent.GetIndex() - pCrsr->Start()->nContent.GetIndex() ) <= nTextFieldLength )
@@ -847,16 +847,16 @@ SwField* SwCrsrShell::GetCurField( const bool bIncludeInputFieldAtStart ) const
if ( pCrsr->IsMultiSelection() )
{
// multi selection not handled.
- return NULL;
+ return nullptr;
}
SwField* pCurField = GetFieldAtCrsr( pCrsr, bIncludeInputFieldAtStart );;
- if ( pCurField != NULL
+ if ( pCurField != nullptr
&& RES_TABLEFLD == pCurField->GetTyp()->Which() )
{
// TabellenFormel ? wandel internen in externen Namen um
const SwTableNode* pTableNd = IsCrsrInTable();
- static_cast<SwTableField*>(pCurField)->PtrToBoxNm( pTableNd ? &pTableNd->GetTable() : 0 );
+ static_cast<SwTableField*>(pCurField)->PtrToBoxNm( pTableNd ? &pTableNd->GetTable() : nullptr );
}
return pCurField;
@@ -874,7 +874,7 @@ bool SwCrsrShell::CrsrInsideInputField() const
bool SwCrsrShell::PosInsideInputField( const SwPosition& rPos )
{
- return dynamic_cast<const SwTextInputField*>(GetTextFieldAtPos( &rPos, false )) != NULL;
+ return dynamic_cast<const SwTextInputField*>(GetTextFieldAtPos( &rPos, false )) != nullptr;
}
bool SwCrsrShell::DocPtInsideInputField( const Point& rDocPt ) const
@@ -891,7 +891,7 @@ bool SwCrsrShell::DocPtInsideInputField( const Point& rDocPt ) const
sal_Int32 SwCrsrShell::StartOfInputFieldAtPos( const SwPosition& rPos )
{
const SwTextInputField* pTextInputField = dynamic_cast<const SwTextInputField*>(GetTextFieldAtPos( &rPos, true ));
- if ( pTextInputField == NULL )
+ if ( pTextInputField == nullptr )
{
OSL_ENSURE( false, "<SwEditShell::StartOfInputFieldAtPos(..)> - no Input Field at given position" );
return 0;
@@ -902,7 +902,7 @@ sal_Int32 SwCrsrShell::StartOfInputFieldAtPos( const SwPosition& rPos )
sal_Int32 SwCrsrShell::EndOfInputFieldAtPos( const SwPosition& rPos )
{
const SwTextInputField* pTextInputField = dynamic_cast<const SwTextInputField*>(GetTextFieldAtPos( &rPos, true ));
- if ( pTextInputField == NULL )
+ if ( pTextInputField == nullptr )
{
OSL_ENSURE( false, "<SwEditShell::EndOfInputFieldAtPos(..)> - no Input Field at given position" );
return 0;
@@ -1110,7 +1110,7 @@ bool SwCrsrShell::GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType,
bool SwCrsrShell::IsPageAtPos( const Point &rPt ) const
{
if( GetLayout() )
- return 0 != GetLayout()->GetPageAtPos( rPt );
+ return nullptr != GetLayout()->GetPageAtPos( rPt );
return false;
}
@@ -1128,7 +1128,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
SwPosition aPos( *m_pCurCrsr->GetPoint() );
SwTextNode* pTextNd;
- SwContentFrm *pFrm(0);
+ SwContentFrm *pFrm(nullptr);
SwTextAttr* pTextAttr;
SwCrsrMoveState aTmpState;
aTmpState.m_bFieldInfo = true;
@@ -1138,7 +1138,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
SwSpecialPos aSpecialPos;
aTmpState.m_pSpecialPos = ( SwContentAtPos::SW_SMARTTAG & rContentAtPos.eContentAtPos ) ?
- &aSpecialPos : 0;
+ &aSpecialPos : nullptr;
const bool bCrsrFoundExact = GetLayout()->GetCrsrOfst( &aPos, aPt, &aTmpState );
pTextNd = aPos.nNode.GetNode().GetTextNode();
@@ -1213,7 +1213,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
{
rContentAtPos.eContentAtPos = SwContentAtPos::SW_SMARTTAG;
- if( pFieldRect && 0 != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
+ if( pFieldRect && nullptr != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
pFrm->GetCharRect( *pFieldRect, aPos, &aTmpState );
}
}
@@ -1224,18 +1224,18 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
&& !aTmpState.m_bFootnoteNoInfo )
{
pTextAttr = pTextNd->GetFieldTextAttrAt( aPos.nContent.GetIndex() );
- const SwField* pField = pTextAttr != NULL
+ const SwField* pField = pTextAttr != nullptr
? pTextAttr->GetFormatField().GetField()
- : 0;
+ : nullptr;
if ( SwContentAtPos::SW_CLICKFIELD & rContentAtPos.eContentAtPos
&& pField && !pField->HasClickHdl() )
{
- pField = 0;
+ pField = nullptr;
}
if ( pField )
{
- if( pFieldRect && 0 != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
+ if( pFieldRect && nullptr != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
pFrm->GetCharRect( *pFieldRect, aPos, &aTmpState );
if( bSetCrsr )
@@ -1250,7 +1250,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
// only placeholder is not possible
if( SwContentAtPos::SW_FIELD & rContentAtPos.eContentAtPos
|| RES_JUMPEDITFLD == pField->Which() )
- pField = 0;
+ pField = nullptr;
}
else
UpdateCrsr();
@@ -1301,7 +1301,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( bRet )
rContentAtPos.eContentAtPos = SwContentAtPos::SW_FTN;
}
- else if ( 0 != ( pTextAttr = pTextNd->GetTextAttrForCharAt(
+ else if ( nullptr != ( pTextAttr = pTextNd->GetTextAttrForCharAt(
aPos.nContent.GetIndex(), RES_TXTATR_FTN )) )
{
bRet = true;
@@ -1333,7 +1333,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
rContentAtPos.pFndTextAttr = pTextAttr;
rContentAtPos.aFnd.pAttr = &pTextAttr->GetAttr();
- if( pFieldRect && 0 != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
+ if( pFieldRect && nullptr != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
pFrm->GetCharRect( *pFieldRect, aPos, &aTmpState );
}
}
@@ -1343,7 +1343,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
&& ( SwContentAtPos::SW_TOXMARK | SwContentAtPos::SW_REFMARK ) & rContentAtPos.eContentAtPos
&& !aTmpState.m_bFootnoteNoInfo )
{
- pTextAttr = 0;
+ pTextAttr = nullptr;
if( SwContentAtPos::SW_TOXMARK & rContentAtPos.eContentAtPos )
{
::std::vector<SwTextAttr *> const marks(
@@ -1399,7 +1399,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
rContentAtPos.pFndTextAttr = pTextAttr;
rContentAtPos.aFnd.pAttr = &pTextAttr->GetAttr();
- if( pFieldRect && 0 != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
+ if( pFieldRect && nullptr != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
pFrm->GetCharRect( *pFieldRect, aPos, &aTmpState );
}
}
@@ -1437,7 +1437,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
rContentAtPos.eContentAtPos = SwContentAtPos::SW_INETATTR;
rContentAtPos.pFndTextAttr = pTextAttr;
- if( pFieldRect && 0 != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
+ if( pFieldRect && nullptr != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
pFrm->GetCharRect( *pFieldRect, aPos, &aTmpState );
}
}
@@ -1445,15 +1445,15 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( !bRet && SwContentAtPos::SW_REDLINE & rContentAtPos.eContentAtPos )
{
- const SwRangeRedline* pRedl = GetDoc()->getIDocumentRedlineAccess().GetRedline(aPos, NULL);
+ const SwRangeRedline* pRedl = GetDoc()->getIDocumentRedlineAccess().GetRedline(aPos, nullptr);
if( pRedl )
{
rContentAtPos.aFnd.pRedl = pRedl;
rContentAtPos.eContentAtPos = SwContentAtPos::SW_REDLINE;
- rContentAtPos.pFndTextAttr = 0;
+ rContentAtPos.pFndTextAttr = nullptr;
bRet = true;
- if( pFieldRect && 0 != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
+ if( pFieldRect && nullptr != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt ) ) )
pFrm->GetCharRect( *pFieldRect, aPos, &aTmpState );
}
}
@@ -1470,8 +1470,8 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
const SwTableBox* pBox;
const SwStartNode* pSttNd = pTextNd->FindTableBoxStartNode();
const SfxPoolItem* pItem;
- if( pSttNd && 0 != ( pTableNd = pTextNd->FindTableNode()) &&
- 0 != ( pBox = pTableNd->GetTable().GetTableBox(
+ if( pSttNd && nullptr != ( pTableNd = pTextNd->FindTableNode()) &&
+ nullptr != ( pBox = pTableNd->GetTable().GetTableBox(
pSttNd->GetIndex() )) &&
#ifdef DBG_UTIL
( SfxItemState::SET == pBox->GetFrameFormat()->GetItemState(
@@ -1496,7 +1496,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( aTmpState.m_bPosCorr )
{
if( pF && !pF->Frm().IsInside( aPt ))
- pF = 0;
+ pF = nullptr;
}
else if( !pF )
pF = pFrm;
@@ -1533,7 +1533,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
*pFieldRect = pF->Prt();
*pFieldRect += pF->Frm().Pos();
}
- rContentAtPos.pFndTextAttr = 0;
+ rContentAtPos.pFndTextAttr = nullptr;
rContentAtPos.aFnd.pAttr = pItem;
}
}
@@ -1555,7 +1555,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( nAttrStart > n ) // over the section
break;
- if( 0 != pHt->End() && (
+ if( nullptr != pHt->End() && (
( nAttrStart < n &&
( pHt->DontExpand() ? n < *pHt->End()
: n <= *pHt->End() )) ||
@@ -1627,7 +1627,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
if( !bRet )
{
rContentAtPos.eContentAtPos = SwContentAtPos::SW_NOTHING;
- rContentAtPos.aFnd.pField = 0;
+ rContentAtPos.aFnd.pField = nullptr;
}
return bRet;
}
@@ -1635,7 +1635,7 @@ bool SwCrsrShell::GetContentAtPos( const Point& rPt,
// #i90516#
const SwPostItField* SwCrsrShell::GetPostItFieldAtCursor() const
{
- const SwPostItField* pPostItField = 0;
+ const SwPostItField* pPostItField = nullptr;
if ( !IsTableMode() )
{
@@ -1644,7 +1644,7 @@ const SwPostItField* SwCrsrShell::GetPostItFieldAtCursor() const
if ( pTextNd )
{
SwTextAttr* pTextAttr = pTextNd->GetFieldTextAttrAt( pCursorPos->nContent.GetIndex() );
- const SwField* pField = pTextAttr != NULL ? pTextAttr->GetFormatField().GetField() : 0;
+ const SwField* pField = pTextAttr != nullptr ? pTextAttr->GetFormatField().GetField() : nullptr;
if ( pField && pField->Which()== RES_POSTITFLD )
{
pPostItField = static_cast<const SwPostItField*>(pField);
@@ -1658,7 +1658,7 @@ const SwPostItField* SwCrsrShell::GetPostItFieldAtCursor() const
/// is the node in a protected section?
bool SwContentAtPos::IsInProtectSect() const
{
- const SwTextNode* pNd = 0;
+ const SwTextNode* pNd = nullptr;
if( pFndTextAttr )
{
switch( eContentAtPos )
@@ -1683,14 +1683,14 @@ bool SwContentAtPos::IsInProtectSect() const
const SwContentFrm* pFrm;
return pNd && ( pNd->IsInProtectSect() ||
- ( 0 != ( pFrm = pNd->getLayoutFrm( pNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentLayout(), 0, 0, false)) &&
+ ( nullptr != ( pFrm = pNd->getLayoutFrm( pNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentLayout(), nullptr, nullptr, false)) &&
pFrm->IsProtected() ));
}
bool SwContentAtPos::IsInRTLText()const
{
bool bRet = false;
- const SwTextNode* pNd = 0;
+ const SwTextNode* pNd = nullptr;
if (pFndTextAttr && (eContentAtPos == SW_FTN))
{
const SwTextFootnote* pTextFootnote = static_cast<const SwTextFootnote*>(pFndTextAttr);
@@ -1762,7 +1762,7 @@ bool SwCrsrShell::SelectTextAttr( sal_uInt16 nWhich,
? pTextNd->GetTextAttrAt(rPos.nContent.GetIndex(),
static_cast<RES_TXTATR>(nWhich),
(bExpand) ? SwTextNode::EXPAND : SwTextNode::DEFAULT)
- : 0;
+ : nullptr;
}
if( pTextAttr )
@@ -1858,14 +1858,14 @@ bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
pCNd && pCNd->Len() )
nUndoId = UNDO_EMPTY;
- GetDoc()->GetIDocumentUndoRedo().StartUndo( nUndoId, NULL );
+ GetDoc()->GetIDocumentUndoRedo().StartUndo( nUndoId, nullptr );
- SwTextFormatColl* pNextFormat = 0;
- SwTextNode* pTNd = pCNd ? pCNd->GetTextNode() : NULL;
+ SwTextFormatColl* pNextFormat = nullptr;
+ SwTextNode* pTNd = pCNd ? pCNd->GetTextNode() : nullptr;
if( pTNd )
pNextFormat = &pTNd->GetTextColl()->GetNextTextFormatColl();
- const SwSectionNode* pSectNd = pCNd ? pCNd->FindSectionNode() : NULL;
+ const SwSectionNode* pSectNd = pCNd ? pCNd->FindSectionNode() : nullptr;
if( pSectNd && aFPos.nParaCnt )
{
SwNodeIndex aEnd( aPos.nNode, 1 );
@@ -1899,7 +1899,7 @@ bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
switch( aFPos.eMode )
{
case FILL_INDENT:
- if( 0 != (pCNd = aPos.nNode.GetNode().GetContentNode() ))
+ if( nullptr != (pCNd = aPos.nNode.GetNode().GetContentNode() ))
{
SfxItemSet aSet( GetDoc()->GetAttrPool(),
RES_LR_SPACE, RES_LR_SPACE,
@@ -1955,7 +1955,7 @@ bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
break;
}
- GetDoc()->GetIDocumentUndoRedo().EndUndo( nUndoId, NULL );
+ GetDoc()->GetIDocumentUndoRedo().EndUndo( nUndoId, nullptr );
EndAction();
bRet = true;
@@ -1966,7 +1966,7 @@ bool SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode )
const SwRangeRedline* SwCrsrShell::SelNextRedline()
{
- const SwRangeRedline* pFnd = 0;
+ const SwRangeRedline* pFnd = nullptr;
if( !IsTableMode() )
{
SET_CURR_SHELL( this );
@@ -1977,14 +1977,14 @@ const SwRangeRedline* SwCrsrShell::SelNextRedline()
if( pFnd && !m_pCurCrsr->IsInProtectTable() && !m_pCurCrsr->IsSelOvr() )
UpdateCrsr( SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
else
- pFnd = 0;
+ pFnd = nullptr;
}
return pFnd;
}
const SwRangeRedline* SwCrsrShell::SelPrevRedline()
{
- const SwRangeRedline* pFnd = 0;
+ const SwRangeRedline* pFnd = nullptr;
if( !IsTableMode() )
{
SET_CURR_SHELL( this );
@@ -1995,14 +1995,14 @@ const SwRangeRedline* SwCrsrShell::SelPrevRedline()
if( pFnd && !m_pCurCrsr->IsInProtectTable() && !m_pCurCrsr->IsSelOvr() )
UpdateCrsr( SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY);
else
- pFnd = 0;
+ pFnd = nullptr;
}
return pFnd;
}
const SwRangeRedline* SwCrsrShell::_GotoRedline( sal_uInt16 nArrPos, bool bSelect )
{
- const SwRangeRedline* pFnd = 0;
+ const SwRangeRedline* pFnd = nullptr;
SwCallLink aLk( *this ); // watch Crsr-Moves
SwCrsrSaveState aSaveState( *m_pCurCrsr );
@@ -2014,13 +2014,13 @@ const SwRangeRedline* SwCrsrShell::_GotoRedline( sal_uInt16 nArrPos, bool bSelec
SwContentNode* pCNd;
SwNodeIndex* pIdx = &m_pCurCrsr->GetPoint()->nNode;
if( !pIdx->GetNode().IsContentNode() &&
- 0 != ( pCNd = GetDoc()->GetNodes().GoNextSection( pIdx,
+ nullptr != ( pCNd = GetDoc()->GetNodes().GoNextSection( pIdx,
true, IsReadOnlyAvailable() )) )
{
if( *pIdx <= pFnd->End()->nNode )
m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, 0 );
else
- pFnd = 0;
+ pFnd = nullptr;
}
if( pFnd && bSelect )
@@ -2037,13 +2037,13 @@ const SwRangeRedline* SwCrsrShell::_GotoRedline( sal_uInt16 nArrPos, bool bSelec
pIdx = &m_pCurCrsr->GetPoint()->nNode;
if( !pIdx->GetNode().IsContentNode() &&
- 0 != ( pCNd = SwNodes::GoPrevSection( pIdx,
+ nullptr != ( pCNd = SwNodes::GoPrevSection( pIdx,
true, IsReadOnlyAvailable() )) )
{
if( *pIdx >= m_pCurCrsr->GetMark()->nNode )
m_pCurCrsr->GetPoint()->nContent.Assign( pCNd, pCNd->Len() );
else
- pFnd = 0;
+ pFnd = nullptr;
}
}
@@ -2060,7 +2060,7 @@ const SwRangeRedline* SwCrsrShell::_GotoRedline( sal_uInt16 nArrPos, bool bSelec
| SwCrsrShell::READONLY );
else
{
- pFnd = 0;
+ pFnd = nullptr;
if( bSelect )
m_pCurCrsr->DeleteMark();
}
@@ -2070,7 +2070,7 @@ const SwRangeRedline* SwCrsrShell::_GotoRedline( sal_uInt16 nArrPos, bool bSelec
const SwRangeRedline* SwCrsrShell::GotoRedline( sal_uInt16 nArrPos, bool bSelect )
{
- const SwRangeRedline* pFnd = 0;
+ const SwRangeRedline* pFnd = nullptr;
if( !IsTableMode() )
{
SET_CURR_SHELL( this );
@@ -2191,7 +2191,7 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
{
const SwContentNode* pCNd = aCurPos.GetNodeFromContent()->GetContentNode();
SwContentFrm* pFrm;
- if( pCNd && 0 != ( pFrm = pCNd->getLayoutFrm( GetLayout(), &aPt )) )
+ if( pCNd && nullptr != ( pFrm = pCNd->getLayoutFrm( GetLayout(), &aPt )) )
aCurPos.SetBodyPos( *pFrm );
}
@@ -2204,7 +2204,7 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
SwIterator<SwTextINetFormat,SwCharFormat> aIter(*(*pFormats)[--n]);
for( SwTextINetFormat* pFnd = aIter.First(); pFnd; pFnd = aIter.Next() )
- if( 0 != ( pTextNd = pFnd->GetpTextNode()) &&
+ if( nullptr != ( pTextNd = pFnd->GetpTextNode()) &&
pTextNd->GetNodes().IsDocNodes() )
{
SwTextINetFormat& rAttr = *pFnd;
@@ -2212,7 +2212,7 @@ bool SwCrsrShell::SelectNxtPrvHyperlink( bool bNext )
_SetGetExpField aPos( aTmpPos.nNode, rAttr );
SwContentFrm* pFrm;
if( pTextNd->GetIndex() < nBodySttNdIdx &&
- 0 != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt )) )
+ nullptr != ( pFrm = pTextNd->getLayoutFrm( GetLayout(), &aPt )) )
aPos.SetBodyPos( *pFrm );
if( bNext
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index 855c3dc350f9..68a8b56b4c32 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -100,7 +100,7 @@ const SwTextAttr* GetFrwrdTextHint( const SwpHints& rHtsArr, sal_uInt16& rPos,
if( pTextHt->GetStart() >= nContentPos )
return pTextHt; // valid text attribute
}
- return 0; // invalid text attribute
+ return nullptr; // invalid text attribute
}
const SwTextAttr* GetBkwrdTextHint( const SwpHints& rHtsArr, sal_uInt16& rPos,
@@ -113,7 +113,7 @@ const SwTextAttr* GetBkwrdTextHint( const SwpHints& rHtsArr, sal_uInt16& rPos,
if( pTextHt->GetStart() < nContentPos )
return pTextHt; // valid text attribute
}
- return 0; // invalid text attribute
+ return nullptr; // invalid text attribute
}
static void lcl_SetAttrPam( SwPaM& rPam, sal_Int32 nStart, const sal_Int32* pEnd,
@@ -161,12 +161,12 @@ static bool lcl_Search( const SwTextNode& rTextNd, SwPaM& rPam,
if ( !rTextNd.HasHints() )
return false;
- const SwTextAttr *pTextHt = 0;
+ const SwTextAttr *pTextHt = nullptr;
bool bForward = fnMove == fnMoveForward;
sal_uInt16 nPos = bForward ? 0 : rTextNd.GetSwpHints().Count();
sal_Int32 nContentPos = rPam.GetPoint()->nContent.GetIndex();
- while( 0 != ( pTextHt=(*fnMove->fnGetHint)(rTextNd.GetSwpHints(),nPos,nContentPos)))
+ while( nullptr != ( pTextHt=(*fnMove->fnGetHint)(rTextNd.GetSwpHints(),nPos,nContentPos)))
if( pTextHt->Which() == rCmpItem.Which() &&
( !bValue || CmpAttr( pTextHt->GetAttr(), rCmpItem )))
{
@@ -346,14 +346,14 @@ bool SwAttrCheckArr::SetAttrFwd( const SwTextAttr& rAttr )
const SfxPoolItem* pItem;
// here we explicitly also search in character templates
sal_uInt16 nWhch = rAttr.Which();
- SfxWhichIter* pIter = NULL;
- const SfxPoolItem* pTmpItem = NULL;
- const SfxItemSet* pSet = NULL;
+ SfxWhichIter* pIter = nullptr;
+ const SfxPoolItem* pTmpItem = nullptr;
+ const SfxItemSet* pSet = nullptr;
if( RES_TXTATR_CHARFMT == nWhch || RES_TXTATR_AUTOFMT == nWhch )
{
if( bNoColls && RES_TXTATR_CHARFMT == nWhch )
return Found();
- pTmpItem = NULL;
+ pTmpItem = nullptr;
pSet = CharFormat::GetItemSet( rAttr.GetAttr() );
if ( pSet )
{
@@ -363,7 +363,7 @@ bool SwAttrCheckArr::SetAttrFwd( const SwTextAttr& rAttr )
SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )
nWhch = pIter->NextWhich();
if( !nWhch )
- pTmpItem = NULL;
+ pTmpItem = nullptr;
}
}
else
@@ -499,9 +499,9 @@ bool SwAttrCheckArr::SetAttrBwd( const SwTextAttr& rAttr )
const SfxPoolItem* pItem;
// here we explicitly also search in character templates
sal_uInt16 nWhch = rAttr.Which();
- SfxWhichIter* pIter = NULL;
- const SfxPoolItem* pTmpItem = NULL;
- const SfxItemSet* pSet = NULL;
+ SfxWhichIter* pIter = nullptr;
+ const SfxPoolItem* pTmpItem = nullptr;
+ const SfxItemSet* pSet = nullptr;
if( RES_TXTATR_CHARFMT == nWhch || RES_TXTATR_AUTOFMT == nWhch )
{
if( bNoColls && RES_TXTATR_CHARFMT == nWhch )
@@ -516,7 +516,7 @@ bool SwAttrCheckArr::SetAttrBwd( const SwTextAttr& rAttr )
SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )
nWhch = pIter->NextWhich();
if( !nWhch )
- pTmpItem = NULL;
+ pTmpItem = nullptr;
}
}
else
@@ -910,7 +910,7 @@ bool SwPaM::Find( const SfxPoolItem& rAttr, bool bValue, SwMoveFn fnMove,
pPam->GetPoint()->nContent.Assign( pNd, bSrchForward ? 0 : pNd->Len() );
}
- while( 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ) )
+ while( nullptr != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ) )
{
if( bCharAttr )
{
@@ -998,7 +998,7 @@ bool SwPaM::Find( const SfxItemSet& rSet, bool bNoColls, SwMoveFn fnMove,
pPam->GetPoint()->nContent.Assign( pNd, bSrchForward ? 0 : pNd->Len() );
}
- while( 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ) )
+ while( nullptr != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ) )
{
if( aCmpArr.Count() )
{
@@ -1064,7 +1064,7 @@ struct SwFindParaAttr : public SwFindParas
const SearchOptions* pOpt, const SfxItemSet* pRSet,
SwCursor& rCrsr )
: bValue( bNoCollection ), pSet( &rSet ), pReplSet( pRSet ),
- pSearchOpt( pOpt ), rCursor( rCrsr ),pSText( 0 ) {}
+ pSearchOpt( pOpt ), rCursor( rCrsr ),pSText( nullptr ) {}
virtual ~SwFindParaAttr() { delete pSText; }
@@ -1154,7 +1154,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion,
}
std::unique_ptr<OUString> pRepl( (bRegExp) ?
- ReplaceBackReferences( *pSearchOpt, pCrsr ) : 0 );
+ ReplaceBackReferences( *pSearchOpt, pCrsr ) : nullptr );
rCursor.GetDoc()->getIDocumentContentOperations().ReplaceRange( *pCrsr,
(pRepl.get()) ? *pRepl : pSearchOpt->replaceString,
bRegExp );
@@ -1235,7 +1235,7 @@ sal_uLong SwCursor::Find( const SfxItemSet& rSet, bool bNoCollections,
bool const bStartUndo = pDoc->GetIDocumentUndoRedo().DoesUndo() && bReplace;
if (bStartUndo)
{
- pDoc->GetIDocumentUndoRedo().StartUndo( UNDO_REPLACE, NULL );
+ pDoc->GetIDocumentUndoRedo().StartUndo( UNDO_REPLACE, nullptr );
}
SwFindParaAttr aSwFindParaAttr( rSet, bNoCollections, pSearchOpt,
@@ -1248,7 +1248,7 @@ sal_uLong SwCursor::Find( const SfxItemSet& rSet, bool bNoCollections,
if (bStartUndo)
{
- pDoc->GetIDocumentUndoRedo().EndUndo( UNDO_REPLACE, NULL );
+ pDoc->GetIDocumentUndoRedo().EndUndo( UNDO_REPLACE, nullptr );
}
return nRet;
diff --git a/sw/source/core/crsr/findcoll.cxx b/sw/source/core/crsr/findcoll.cxx
index 19ab4f0da861..d99e98cb8942 100644
--- a/sw/source/core/crsr/findcoll.cxx
+++ b/sw/source/core/crsr/findcoll.cxx
@@ -60,7 +60,7 @@ int SwFindParaFormatColl::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pReg
bool SwFindParaFormatColl::IsReplaceMode() const
{
- return 0 != pReplColl;
+ return nullptr != pReplColl;
}
/// search for Format-Collections
@@ -96,7 +96,7 @@ sal_uLong SwCursor::Find( const SwTextFormatColl& rFormatColl, SwDocPositions nS
if (bStartUndo)
{
- pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_END, 0);
+ pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_END, nullptr);
}
return nRet;
}
diff --git a/sw/source/core/crsr/findfmt.cxx b/sw/source/core/crsr/findfmt.cxx
index 42713d526319..467622f60234 100644
--- a/sw/source/core/crsr/findfmt.cxx
+++ b/sw/source/core/crsr/findfmt.cxx
@@ -43,7 +43,7 @@ bool SwPaM::Find( const SwFormat& rFormat, SwMoveFn fnMove,
bool bFirst = true;
SwContentNode* pNode;
- while( 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly )))
+ while( nullptr != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly )))
{
if ( pNode->GetFormatColl() == &rFormat )
{
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx
index 33a28d1e82d0..7981954ad28b 100644
--- a/sw/source/core/crsr/findtxt.cxx
+++ b/sw/source/core/crsr/findtxt.cxx
@@ -245,7 +245,7 @@ bool SwPaM::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes , utl::Te
const bool bChkParaEnd = bRegSearch && rSearchOpt.searchString == "$";
// LanguageType eLastLang = 0;
- while( 0 != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ))
+ while( nullptr != ( pNode = ::GetNode( *pPam, bFirst, fnMove, bInReadOnly ) ))
{
if( pNode->IsTextNode() )
{
@@ -298,8 +298,8 @@ bool SwPaM::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes , utl::Te
}
SwDocShell *const pDocShell = pNode->GetDoc()->GetDocShell();
- SwWrtShell *const pWrtShell = (pDocShell) ? pDocShell->GetWrtShell() : 0;
- SwPostItMgr *const pPostItMgr = (pWrtShell) ? pWrtShell->GetPostItMgr() : 0;
+ SwWrtShell *const pWrtShell = (pDocShell) ? pDocShell->GetWrtShell() : nullptr;
+ SwPostItMgr *const pPostItMgr = (pWrtShell) ? pWrtShell->GetPostItMgr() : nullptr;
SvxSearchItem aSearchItem(SID_SEARCH_ITEM);
aSearchItem.SetSearchOptions(rSearchOpt);
@@ -318,7 +318,7 @@ bool SwPaM::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes , utl::Te
{
const SwPosition* pPosition = pFrameFormat->GetAnchor().GetContentAnchor();
if (!pPosition || pPosition->nNode.GetIndex() != pNode->GetIndex())
- pObject = 0;
+ pObject = nullptr;
}
}
@@ -398,7 +398,7 @@ bool SwPaM::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes , utl::Te
}
else
{
- pPostItMgr->SetActiveSidebarWin(0);
+ pPostItMgr->SetActiveSidebarWin(nullptr);
}
}
@@ -506,7 +506,7 @@ bool SwPaM::DoSearch( const SearchOptions& rSearchOpt, utl::TextSearch& rSText,
sCleanStr = lcl_CleanStr(*pNode->GetTextNode(), nEnd, nStart,
aFltArr, bRemoveSoftHyphens);
- SwScriptIterator* pScriptIter = 0;
+ SwScriptIterator* pScriptIter = nullptr;
sal_uInt16 nSearchScript = 0;
sal_uInt16 nCurrScript = 0;
@@ -549,7 +549,7 @@ bool SwPaM::DoSearch( const SearchOptions& rSearchOpt, utl::TextSearch& rSText,
sal_Int32 nProxyStart = nStart;
sal_Int32 nProxyEnd = nEnd;
if( nSearchScript == nCurrScript &&
- (rSText.*fnMove->fnSearch)( sCleanStr, &nProxyStart, &nProxyEnd, 0 ) &&
+ (rSText.*fnMove->fnSearch)( sCleanStr, &nProxyStart, &nProxyEnd, nullptr ) &&
!(bZeroMatch = (nProxyStart == nProxyEnd)))
{
nStart = nProxyStart;
@@ -669,7 +669,7 @@ int SwFindParaText::Find( SwPaM* pCrsr, SwMoveFn fnMove,
}
std::unique_ptr<OUString> pRepl( (bRegExp)
- ? ReplaceBackReferences( m_rSearchOpt, pCrsr ) : 0 );
+ ? ReplaceBackReferences( m_rSearchOpt, pCrsr ) : nullptr );
bool const bReplaced =
m_rCursor.GetDoc()->getIDocumentContentOperations().ReplaceRange(
*pCrsr,
@@ -719,7 +719,7 @@ sal_uLong SwCursor::Find( const SearchOptions& rSearchOpt, bool bSearchInNotes,
bool const bStartUndo = pDoc->GetIDocumentUndoRedo().DoesUndo() && bReplace;
if (bStartUndo)
{
- pDoc->GetIDocumentUndoRedo().StartUndo( UNDO_REPLACE, NULL );
+ pDoc->GetIDocumentUndoRedo().StartUndo( UNDO_REPLACE, nullptr );
}
bool bSearchSel = 0 != (rSearchOpt.searchFlag & SearchFlags::REG_NOT_BEGINOFLINE);
@@ -742,7 +742,7 @@ sa