diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:23:52 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:23:52 +0200 |
commit | ed41260b25bbb72c3afc173c3950e4db6586aae5 (patch) | |
tree | a1e1f6e9e7c7152281500b4f2885db86de114299 /sw/source/core/crsr | |
parent | cce335a211fc31158cc2c257c03fa602dd89e19f (diff) |
recreated tag OOO_BUILD_3_2_98_1 which had these commits:
commit f4e134e37cd1c6bcdf821aea38aa549c9ea1c46b (tag: refs/tags/OOO_BUILD_3_2_98_1)
Author: Petr Mladek <pmladek@walk.suse.cz>
Date: Wed Sep 15 19:03:29 2010 +0200
Release ooo-build-3.2.98.1, tag OOO_BUILD_3_2_98_1 (3.3-alpha1)
commit 11ab1028c5e354ac40ee58ace0dc84989eae8a27
Author: Jiao Jianhua <jjiao@novell.com>
Date: Tue Sep 14 17:14:11 2010 +0200
sw-default-cjk-fontsize.diff: default CJK font fontsize as 10.5pt
i#72010
sw/source/ui/config/fontcfg.cxx | 5 ++++-
sw/source/ui/inc/fontcfg.hxx | 1 +
2 files changed, 5 insertions(+), 1 deletions(-)
commit 216f84e4b0933612276690a7f69f264e9ded5c71
Author: Florian Reuter <freuter@novell.com>
Date: Tue Sep 14 17:11:44 2010 +0200
sw-graphic-save-problem.diff:
n240770
sw/source/core/graphic/ndgrf.cxx | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
commit 9ec22325aba338803a96a373db97f3f4e2bc2b12
Author: Michel Loiseleur <mloiseleur@linagora.com>
Date: Tue Sep 14 17:04:28 2010 +0200
sw-html-insert-unknown-tags.diff: paste html text between 2 unknown tags
i#59064
sw/source/filter/html/swhtml.cxx | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
commit 4b3a488ecb4e6810735825973bb9433249a19fb6
Author: Cédric Bosdonnat <cedricbosdo@openoffice.org>
Date: Tue Sep 14 16:54:36 2010 +0200
sw-paste-table.diff: Refresh the cell formatting after pasting in it
n#564789
sw/source/filter/basflt/shellio.cxx | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
commit d4ad757a11eb662f853ea78fefd6d11ea1df2119
Author: Fong Lin <pflin@novell.com>
Date: Tue Sep 14 16:42:39 2010 +0200
sw-changes-format-fix.diff: show insertion change first
n#545815
sw/source/core/doc/docredln.cxx | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
commit 33370870cc133b7cb7f470f752526cdd4a4339ab
Author: Fong Lin <pflin@novell.com>
Date: Tue Sep 14 16:39:57 2010 +0200
sw-ww8-import-list-fix.diff:fix bullet indent issue
n#547308
sw/source/filter/ww8/ww8par6.cxx | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
commit 0589e7f8eb08119cee8ff1a186bfbb887d3838e4
Author: Fong Lin <pflin@novell.com>
Date: Tue Sep 14 16:35:20 2010 +0200
sw-ww8-textframe-background-fix.diff
n#547308
sw/source/filter/ww8/ww8graf.cxx | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
commit b7551ace7e57ba3a4dbacf5d8906000600a43467
Author: Amelia Wang <amwang@novell.com>
Date: Tue Sep 14 16:23:16 2010 +0200
sw-insert-pagebreak-in-numbered-paragraph.diff
n#396648
sw/inc/doc.hxx | 1 +
sw/source/core/docnode/ndtbl.cxx | 43 ++++++++++++++++++++++++++++++++++++++
sw/source/ui/wrtsh/wrtsh1.cxx | 2 +
3 files changed, 46 insertions(+), 0 deletions(-)
commit edbd32ded9f6dddb75ebb57d03a10ac10d0fa107
Author: Amelia Wang <amwang@novell.com>
Date: Tue Sep 14 16:20:45 2010 +0200
sw-outline-numbering-broken-fix.diff: outline numbering fix in master docs
i#96092, n#445536
sw/source/core/docnode/ndcopy.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 7dd2e230f9de2676be07d094a837a0167e275194
Author: Florian Reuter <freuter@novell.com>
Date: Tue Sep 14 16:12:59 2010 +0200
sw-import-html-controls.diff:
n#485609
sw/source/filter/ww8/ww8par.hxx | 2 ++
sw/source/filter/ww8/ww8par3.cxx | 8 ++++++++
sw/source/filter/ww8/ww8par5.cxx | 2 +-
3 files changed, 11 insertions(+), 1 deletions(-)
commit 8208802eed76b29302c132dd0a0608cc71dd396f
Author: Cédric Bosdonnat <cedricbosdo@openoffice.org>
Date: Tue Sep 14 16:00:07 2010 +0200
field-patch-lock.diff: enhanced fields lock fix
sw/source/core/crsr/pam.cxx | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
commit 7bd9bc8377047629a69450bf7d4c7dee67af517b
Author: Cédric Bosdonnat <cedricbosdo@openoffice.org>
Date: Tue Sep 14 15:58:16 2010 +0200
field-patch-uno-fix.diff: enhanced fields UNO fix
sw/source/core/unocore/unocoll.cxx | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
commit d19c7c96ee03fccc41fb5a74128304bd432eac81
Author: Florian Reuter <freuter@novell.com>
Date: Tue Sep 14 15:00:33 2010 +0200
sw-table-join-fix-i99267.diff:
n#417814
sw/source/core/layout/tabfrm.cxx | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
commit 47472e8e70c1ae3dc55a5b00ef69eaa85f651a7f
Author: Florian Reuter <freuter@novell.com>
Date: Tue Sep 14 14:40:15 2010 +0200
sw-collapse-empty-table-par-like-html.diff:
n#376690
sw/inc/IDocumentSettingAccess.hxx | 1 +
sw/inc/doc.hxx | 1 +
sw/inc/ndtxt.hxx | 2 +
sw/source/core/crsr/callnk.cxx | 50 ++++++++++++++++++++++++++++++
sw/source/core/doc/doc.cxx | 4 ++
sw/source/core/doc/docnew.cxx | 1 +
sw/source/core/inc/frame.hxx | 4 ++
sw/source/core/layout/calcmove.cxx | 43 +++++++++++++++++++++++++
sw/source/core/layout/findfrm.cxx | 9 +++++
sw/source/core/text/frmpaint.cxx | 34 +++++++++++---------
sw/source/core/text/porrst.cxx | 16 +++++++++
sw/source/filter/ww8/ww8par.cxx | 1 +
sw/source/filter/ww8/ww8par2.cxx | 14 --------
sw/source/ui/uno/SwXDocumentSettings.cxx | 16 +++++++++-
14 files changed, 166 insertions(+), 30 deletions(-)
commit 440bab6daea191ddf18b019fb88600b82e11a0ed
Author: Florian Reuter <freuter@novell.com>
Date: Tue Sep 14 14:36:01 2010 +0200
sw-invert-border-spacing.diff:
n#391591
sw/inc/IDocumentSettingAccess.hxx | 1 +
sw/inc/doc.hxx | 1 +
sw/source/core/doc/doc.cxx | 4 ++++
sw/source/core/doc/docnew.cxx | 1 +
sw/source/core/layout/frmtool.cxx | 9 +++++++--
sw/source/core/layout/paintfrm.cxx | 2 +-
sw/source/filter/rtf/swparrtf.cxx | 2 +-
sw/source/filter/ww8/ww8par.cxx | 2 ++
sw/source/filter/ww8/ww8par6.cxx | 17 +++++++++++++----
sw/source/ui/uno/SwXDocumentSettings.cxx | 18 +++++++++++++++---
10 files changed, 46 insertions(+), 11 deletions(-)
commit 70597695b23b5c45dfc735a7afd175f034428195
Author: Florian Reuter <freuter@novell.com>
Date: Tue Sep 14 14:32:01 2010 +0200
sw-allow-negative-spacing.diff: correctly display linespacing < 100%
n#364534
sw/source/core/text/itrform2.cxx | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
commit 998c642599c9196e2249fe35cf1450711fdd5d75
Author: Florian Reuter <freuter@novell.com>
Date: Tue Sep 14 14:28:15 2010 +0200
sw-section-import-fix.diff: Additional paragraph imported from ww8
n#364533
sw/source/filter/ww8/ww8par.cxx | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
commit 70561fdb1c47bc0bcfdbb97ffed28fe13ab556f8
Author: Cédric Bosdonnat <cedricbosdo@openoffice.org>
Date: Tue Sep 14 14:16:21 2010 +0200
g++44-debug.diff: Fixed some imports for debug more
sw/source/core/text/inftxt.cxx | 4 ++++
sw/source/filter/ww8/WW8Sttbf.cxx | 4 ++++
sw/source/filter/ww8/wrtww8gr.cxx | 4 ++++
3 files changed, 12 insertions(+), 0 deletions(-)
commit 10c10ffa04a952c81e0a85e0606b46e2433705c3
Author: Thorsten Behrens <tbehrens@novell.com>
Date: Tue Sep 14 13:12:33 2010 +0200
win32-vs2005-compat.diff: Fix build with Visual Studio 2005
sw/source/filter/ww8/wrtw8nds.cxx | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit 985b180a2fae4ffeaac83ead0a71e1e128db0f79
Author: Octavio Alvarez <alvarezp@alvarezp.ods.org>
Date: Mon Sep 13 17:30:41 2010 +0200
sw-preserve-char-style-on-reset-format.diff:Perserve character style on links
i#47893
sw/source/ui/shells/textsh1.cxx | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
commit 46c042512344d9e714ea716efc8f707ede5e179b
Author: Octavio Alvarez <alvarezp@alvarezp.ods.org>
Date: Mon Sep 13 17:26:19 2010 +0200
sw-show-Remove-Hyperlink-even-with-selection.diff:
sw/source/ui/shells/textsh1.cxx | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
commit 1ccbb5d782056eeaf0c50333eed49ded73acfc5f
Author: Cédric Bosdonnat <cedricbosdo@openoffice.org>
Date: Mon Sep 13 17:15:50 2010 +0200
sw-rtf-num-fix.diff:Fixes for RTF numbering export
n#569266
sw/source/filter/rtf/rtfatr.cxx | 12 +++---
sw/source/filter/rtf/rtfnum.cxx | 78 ++++++++++++--------------------------
2 files changed, 31 insertions(+), 59 deletions(-)
commit 934cea09a95d7d638d09f881629579c568a30621
Author: Amelia Wang <amwang@novell.com>
Date: Mon Sep 13 14:46:36 2010 +0200
cjk-character-units-in-pggrid-fix.diff: add a new character unit
sw/source/ui/inc/pggrid.hxx | 1 +
sw/source/ui/misc/pggrid.cxx | 42 ++++++++++++++++++++++++++----------------
2 files changed, 27 insertions(+), 16 deletions(-)
commit dae07c66db3014b7f0eefada5e4ff8af8556e768
Author: Amelia Wang <amwang@novell.com>
Date: Mon Sep 13 14:45:00 2010 +0200
cjk-character-units-fix-376788.diff: add a new character unit
i#376788
sw/source/ui/app/swmodul1.cxx | 14 ++++++++++----
sw/source/ui/config/optload.cxx | 8 +++++---
sw/source/ui/misc/pggrid.cxx | 4 ++--
sw/source/ui/uiview/view.cxx | 36 ++++++++++++++++++++++++++++++------
4 files changed, 47 insertions(+), 15 deletions(-)
commit 6321ca557a2a188a3a3f8f6eeb2881f8e7eacce8
Author: Amelia Wang <amwang@novell.com>
Date: Mon Sep 13 14:43:46 2010 +0200
cjk-character-units-fix.diff: add a new unit 'character unit'
i#356101
sw/source/ui/app/appopt.cxx | 1 +
sw/source/ui/app/swmodul1.cxx | 6 ++++--
sw/source/ui/config/optload.cxx | 3 +++
sw/source/ui/config/optload.src | 3 +--
sw/source/ui/config/usrpref.cxx | 3 ++-
sw/source/ui/misc/pggrid.cxx | 6 +++---
sw/source/ui/uiview/view.cxx | 6 ++++--
7 files changed, 18 insertions(+), 10 deletions(-)
commit 723b3fc153061b39604a032d578409d7f22d708f
Author: Amelia Wang <amwang@novell.com>
Date: Mon Sep 13 14:42:44 2010 +0200
cjk-character-units-rulers-sync-with-pggrid-fix.diff:
sw/source/ui/inc/pggrid.hxx | 2 ++
sw/source/ui/misc/pggrid.cxx | 24 ++++++++++++++++++++----
2 files changed, 22 insertions(+), 4 deletions(-)
commit baf4316376191dce3a3d070a07e745e0286b7bac
Author: Amelia Wang <amwang@novell.com>
Date: Mon Sep 13 14:40:57 2010 +0200
cjk-character-units-ui.diff: add a new unit 'character unit'
sw/source/ui/config/optload.cxx | 6 ++++++
sw/source/ui/config/optload.hrc | 1 +
sw/source/ui/config/optload.src | 12 ++++++++++++
sw/source/ui/config/optpage.cxx | 23 +++++++++++++++++------
sw/source/ui/inc/optload.hxx | 1 +
sw/source/ui/inc/pggrid.hxx | 2 ++
sw/source/ui/misc/pggrid.cxx | 3 +++
sw/source/ui/misc/pggrid.hrc | 2 ++
sw/source/ui/misc/pggrid.src | 12 ++++++++++++
9 files changed, 56 insertions(+), 6 deletions(-)
commit 4cd64c0c68b4c81406d0075ac9d846014538840b
Author: Amelia Wang <amwang@novell.com>
Date: Mon Sep 13 14:37:51 2010 +0200
cjk-character-units-imp.diff: add a new unit 'character unit'
sw/inc/swmodule.hxx | 2 +
sw/source/ui/app/appopt.cxx | 10 +++++++
sw/source/ui/app/swmodul1.cxx | 57 +++++++++++++++++++++++++++++++++++++++
sw/source/ui/config/optload.cxx | 17 +++++++++++
sw/source/ui/config/usrpref.cxx | 11 +++++---
sw/source/ui/inc/pggrid.hxx | 2 +-
sw/source/ui/inc/uitool.hxx | 3 ++
sw/source/ui/inc/usrpref.hxx | 12 ++++++++
sw/source/ui/misc/pggrid.cxx | 32 ++++++++++++++++++---
sw/source/ui/shells/textsh1.cxx | 4 +++
sw/source/ui/uiview/view.cxx | 17 ++++++++++-
sw/source/ui/utlui/uitool.cxx | 13 +++++++++
12 files changed, 168 insertions(+), 12 deletions(-)
commit 825b1706ab0a71d86812cbb95ac056e78f6a5864
Author: Jiao Jianhua <jjiao@novell.com>
Date: Mon Sep 13 14:07:35 2010 +0200
plus-minus-sw-navigator2.diff: Folding for each heading in Navigator
i#64886, n#129410i
sw/source/ui/inc/conttree.hxx | 5 +++
sw/source/ui/utlui/content.cxx | 74 +++++++++++++++++++++++++++++++++++++--
2 files changed, 75 insertions(+), 4 deletions(-)
commit c2b6b1ab7a949fb80fd98f506486d45a1166fbc5
Author: Jiao Jianhua <jjiao@novell.com>
Date: Mon Sep 13 14:06:16 2010 +0200
plus-minus-sw-navigator.diff: folding for each heading in Navigator
i#64886, n#129410
sw/source/ui/utlui/content.cxx | 134 +++++++++++++++++++++++++++++++---------
1 files changed, 105 insertions(+), 29 deletions(-)
commit 290f7aba51f626e259764487fec8795ef6b4043a
Merge: d3ae4c6 4937fcb
Author: Jan Holesovsky <kendy@suse.cz>
Date: Wed Sep 8 11:34:21 2010 +0200
Merge commit 'ooo/OOO330_m7'
commit d3ae4c683dda23722661cad8b5992586d2883bd0
Merge: e0b0ca3 17b62cb
Author: Jan Holesovsky <kendy@suse.cz>
Date: Tue Sep 7 09:33:10 2010 +0200
Merge commit 'ooo/OOO330_m6'
commit 4937fcb1c4fa15194c01a79c57523d9a9333c710 (tag: refs/tags/ooo/OOO330_m7)
Merge: 17b62cb 3274d37
Author: Kurt Zenker <kz@openoffice.org>
Date: Fri Sep 3 14:39:55 2010 +0200
CWS-TOOLING: integrate CWS fs33a
commit 17b62cb5acad25dc82a95a40d545e6af6a185f55 (tag: refs/tags/ooo/OOO330_m6)
Author: obo <obo@openoffice.org>
Date: Fri Aug 27 13:02:34 2010 +0200
masterfix OOO330: #i10000# new exception file unovwr.cxx
sw/source/core/undo/makefile.mk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
commit a3019ec68acb22c8f590ee104fd6e7aad20c4778
Merge: aa24f45 631d42d
Author: Ivo Hinkelmann <ihi@openoffice.org>
Date: Wed Aug 25 14:19:19 2010 +0200
CWS-TOOLING: integrate CWS sw33bf08
commit 631d42da043d690b931e3750176a3a295b376c7e
Author: Thomas Lange [tl] <tl@openoffice.org>
Date: Tue Aug 17 16:46:36 2010 +0200
cws sw33bf08: #i113584#, #i113587# transliteration fixed
sw/inc/undobj.hxx | 6 +-
sw/source/core/doc/docedt.cxx | 33 +++--
sw/source/core/txtnode/txtedt.cxx | 271 ++++++++++++++++++++++++++++++++-----
sw/source/core/undo/unovwr.cxx | 136 +++++++++----------
4 files changed, 326 insertions(+), 120 deletions(-)
commit 3274d37826fc2613aa5061a985d1aab476e3a6fc
Author: Frank Schoenheit [fs] <frank.schoenheit@oracle.com>
Date: Fri Aug 13 23:34:21 2010 +0200
fs33a: make compile in non-pro build (removed seemingly dead assertion)
sw/source/ui/lingu/olmenu.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
commit 013feef7fc5add0b3468b2c3d11bea8d4f830174
Merge: db3cc71 aa24f45
Author: Frank Schoenheit [fs] <frank.schoenheit@oracle.com>
Date: Fri Aug 13 12:04:35 2010 +0200
fs33a: merge after pulling OOO330.m4's change sets
commit db3cc711f90a781bc8cd82a90d872f6e281ae205
Merge: e1a0f88 80200b9
Author: Frank Schoenheit [fs] <frank.schoenheit@oracle.com>
Date: Tue Aug 10 14:53:21 2010 +0200
merging in latest changes from OOO330(m3)
Notes
split repo tag: writer_OOO_BUILD_3_2_98_1
Diffstat (limited to 'sw/source/core/crsr')
24 files changed, 452 insertions, 396 deletions
diff --git a/sw/source/core/crsr/BlockCursor.cxx b/sw/source/core/crsr/BlockCursor.cxx index 589549c0ade8..bbf8544a2f62 100644 --- a/sw/source/core/crsr/BlockCursor.cxx +++ b/sw/source/core/crsr/BlockCursor.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sw/source/core/crsr/BlockCursor.hxx b/sw/source/core/crsr/BlockCursor.hxx index a3acb0bac187..5d3fa06bebf4 100644 --- a/sw/source/core/crsr/BlockCursor.hxx +++ b/sw/source/core/crsr/BlockCursor.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,4 +33,4 @@ struct SwPosition; IBlockCursor *createBlockCursor(const SwCrsrShell& rCrsrSh, const SwPosition &rPos); -#endif //_BLOCKURSOR_HXX +#endif //_BLOCKURSOR_HXX diff --git a/sw/source/core/crsr/IBlockCursor.hxx b/sw/source/core/crsr/IBlockCursor.hxx index 99b5cf3b734a..da565f8b2014 100644 --- a/sw/source/core/crsr/IBlockCursor.hxx +++ b/sw/source/core/crsr/IBlockCursor.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,7 +34,7 @@ class Point; /** Access to the block cursor A block cursor contains a SwShellCrsr and additional information about - the rectangle which has been created by pressing the mouse button and + the rectangle which has been created by pressing the mouse button and moving the mouse. This interface provides access to the SwShellCrsr and to start and end point of the mouse movement. @@ -50,7 +50,7 @@ class Point; virtual SwShellCrsr& getShellCrsr() = 0; /** Defines the starting vertex of the block selection - + @param rPt rPt should contain the document coordinates of the mouse cursor when the block selection starts (MouseButtonDown) @@ -58,7 +58,7 @@ class Point; virtual void setStartPoint( const Point &rPt ) = 0; /** Defines the ending vertex of the block selection - + @param rPt rPt should contain the document coordinates of the mouse cursor when the block selection has started and the mouse has been moved (MouseMove) diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index 11060352b6c3..5bca4c82e51a 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sw/source/core/crsr/callnk.cxx b/sw/source/core/crsr/callnk.cxx index bf06a19d83b0..f72be56c8b74 100644 --- a/sw/source/core/crsr/callnk.cxx +++ b/sw/source/core/crsr/callnk.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,10 +43,15 @@ #include <doc.hxx> #include <frmfmt.hxx> #include <txtfrm.hxx> +#include <tabfrm.hxx> +#include <rowfrm.hxx> +#include <fmtfsize.hxx> #include <ndtxt.hxx> #include <flyfrm.hxx> #include <breakit.hxx> +#include<vcl/window.hxx> + SwCallLink::SwCallLink( SwCrsrShell & rSh, ULONG nAktNode, xub_StrLen nAktCntnt, BYTE nAktNdTyp, long nLRPos, bool bAktSelection ) @@ -87,7 +92,7 @@ SwCallLink::SwCallLink( SwCrsrShell & rSh ) SwCallLink::~SwCallLink() { - if( !nNdTyp || !rShell.bCallChgLnk ) // siehe ctor + if( !nNdTyp || !rShell.bCallChgLnk ) // siehe ctor return ; // wird ueber Nodes getravellt, Formate ueberpruefen und im neuen @@ -97,6 +102,51 @@ SwCallLink::~SwCallLink() if( !pCNd ) return; + bool bUpdatedTable = false; + SwFrm *myFrm=pCNd->GetFrm(); + if (myFrm!=NULL) + { + // We need to emulated a change of the row height in order + // to have the complete row redrawn + SwRowFrm* pRow = myFrm->FindRowFrm( ); + if ( pRow ) + { + const SwTableLine* pLine = pRow->GetTabLine( ); + SwFmtFrmSize pSize = pLine->GetFrmFmt( )->GetFrmSize( ); + pRow->Modify( NULL, &pSize ); + + bUpdatedTable = true; + } + } + + const SwDoc *pDoc=rShell.GetDoc(); + const SwCntntNode *pNode = NULL; + if ( ( pDoc != NULL && nNode < pDoc->GetNodes( ).Count( ) ) ) + { + pNode = pDoc->GetNodes()[nNode]->GetCntntNode(); + } + if ( pNode != NULL ) + { + SwFrm *myFrm2=pNode->GetFrm(); + if (myFrm2!=NULL) + { + // We need to emulated a change of the row height in order + // to have the complete row redrawn + SwRowFrm* pRow = myFrm2->FindRowFrm(); + if ( pRow ) + { + const SwTableLine* pLine = pRow->GetTabLine( ); + SwFmtFrmSize pSize = pLine->GetFrmFmt( )->GetFrmSize( ); + pRow->Modify( NULL, &pSize ); + + bUpdatedTable = true; + } + } + } + + if ( bUpdatedTable ) + rShell.GetWin( )->Invalidate( 0 ); + xub_StrLen nCmp, nAktCntnt = pCurCrsr->GetPoint()->nContent.GetIndex(); USHORT nNdWhich = pCNd->GetNodeType(); ULONG nAktNode = pCurCrsr->GetPoint()->nNode.GetIndex(); @@ -126,8 +176,8 @@ SwCallLink::~SwCallLink() // und sich nicht der Frame geaendert hat (Spalten!) if( nLeftFrmPos == SwCallLink::GetFrm( (SwTxtNode&)*pCNd, nAktCntnt, !rShell.ActionPend() ) && - (( nCmp = nCntnt ) + 1 == nAktCntnt || // Right - nCntnt -1 == ( nCmp = nAktCntnt )) ) // Left + (( nCmp = nCntnt ) + 1 == nAktCntnt || // Right + nCntnt -1 == ( nCmp = nAktCntnt )) ) // Left { if( nCmp == nAktCntnt && pCurCrsr->HasMark() ) // left & Sele ++nCmp; diff --git a/sw/source/core/crsr/callnk.hxx b/sw/source/core/crsr/callnk.hxx index f85e0c5db123..782025242881 100644 --- a/sw/source/core/crsr/callnk.hxx +++ b/sw/source/core/crsr/callnk.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,4 +53,4 @@ public: -#endif // _CALLNK_HXX +#endif // _CALLNK_HXX diff --git a/sw/source/core/crsr/crbm.cxx b/sw/source/core/crsr/crbm.cxx index 0ef82902ff08..888a139ada2a 100644 --- a/sw/source/core/crsr/crbm.cxx +++ b/sw/source/core/crsr/crbm.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -62,7 +62,7 @@ namespace } } - // returns true if the Cursor had been rolled back + // returns true if the Cursor had been rolled back bool RollbackIfIllegal() { if(m_pCrsr->IsSelOvr(nsSwCursorSelOverFlags::SELOVER_CHECKNODESSECTION @@ -156,7 +156,7 @@ bool SwCrsrShell::GoNextBookmark() back_inserter(vCandidates), &lcl_IsInvisibleBookmark); - // watch Crsr-Moves + // watch Crsr-Moves CrsrStateHelper aCrsrSt(*this); IDocumentMarkAccess::const_iterator_t ppMark = vCandidates.begin(); for(; ppMark!=vCandidates.end(); ++ppMark) @@ -195,7 +195,7 @@ bool SwCrsrShell::GoPrevBookmark() vCandidates.end(), &lcl_ReverseMarkOrderingByEnd); - // watch Crsr-Moves + // watch Crsr-Moves CrsrStateHelper aCrsrSt(*this); IDocumentMarkAccess::const_iterator_t ppMark = vCandidates.begin(); for(; ppMark!=vCandidates.end(); ++ppMark) diff --git a/sw/source/core/crsr/crossrefbookmark.cxx b/sw/source/core/crsr/crossrefbookmark.cxx index dc083801ee8e..6299f9c14f84 100644 --- a/sw/source/core/crsr/crossrefbookmark.cxx +++ b/sw/source/core/crsr/crossrefbookmark.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 9cf698a3a709..63a1021b924c 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -60,7 +60,7 @@ #include <scriptinfo.hxx> #include <globdoc.hxx> #include <pamtyp.hxx> -#include <mdiexp.hxx> // ...Percent() +#include <mdiexp.hxx> // ...Percent() #include <fmteiro.hxx> #include <wrong.hxx> // SMARTTAGS #include <unotextrange.hxx> // SMARTTAGS @@ -149,7 +149,7 @@ SwPaM * SwCrsrShell::CreateCrsr() pCurCrsr->DeleteMark(); UpdateCrsr( SwCrsrShell::SCROLLWIN ); -// return pCurCrsr; +// return pCurCrsr; return pNew; } @@ -264,11 +264,11 @@ if( GetWin() ) GetDoc()->UpdateNumRule(); // Task: 76923: dont show the cursor in the ViewShell::EndAction() - call. - // Only the UpdateCrsr shows the cursor. + // Only the UpdateCrsr shows the cursor. BOOL bSavSVCrsrVis = bSVCrsrVis; bSVCrsrVis = FALSE; - ViewShell::EndAction( bIdleEnd ); //der ViewShell den Vortritt lassen + ViewShell::EndAction( bIdleEnd ); //der ViewShell den Vortritt lassen bSVCrsrVis = bSavSVCrsrVis; @@ -283,9 +283,9 @@ if( GetWin() ) if( !BasicActionPend() ) { //JP 12.01.98: Bug #46496# - es muss innerhalb einer BasicAction - // der Cursor geupdatet werden; um z.B. den - // TabellenCursor zu erzeugen. Im UpdateCrsr wird - // das jetzt beruecksichtigt! + // der Cursor geupdatet werden; um z.B. den + // TabellenCursor zu erzeugen. Im UpdateCrsr wird + // das jetzt beruecksichtigt! UpdateCrsr( SwCrsrShell::CHKRANGE, bIdleEnd ); { @@ -298,7 +298,7 @@ if( GetWin() ) if( bCallChgLnk && bChgCallFlag && aChgLnk.IsSet() ) { aChgLnk.Call( this ); - bChgCallFlag = FALSE; // Flag zuruecksetzen + bChgCallFlag = FALSE; // Flag zuruecksetzen } } return; @@ -307,7 +307,7 @@ if( GetWin() ) USHORT nParm = SwCrsrShell::CHKRANGE; if ( !bIdleEnd ) nParm |= SwCrsrShell::SCROLLWIN; - UpdateCrsr( nParm, bIdleEnd ); // Cursor-Aenderungen anzeigen + UpdateCrsr( nParm, bIdleEnd ); // Cursor-Aenderungen anzeigen { SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, @@ -324,7 +324,7 @@ if( GetWin() ) if( bCallChgLnk && bChgCallFlag && aChgLnk.IsSet() ) { aChgLnk.Call( this ); - bChgCallFlag = FALSE; // Flag zuruecksetzen + bChgCallFlag = FALSE; // Flag zuruecksetzen } } @@ -481,7 +481,7 @@ BOOL SwCrsrShell::UpDown( BOOL bUp, USHORT nCnt ) if( bRet ) { - eMvState = MV_UPDOWN; // Status fuers Crsr-Travelling - GetCrsrOfst + eMvState = MV_UPDOWN; // Status fuers Crsr-Travelling - GetCrsrOfst if( !ActionPend() ) { CrsrFlag eUpdtMode = SwCrsrShell::SCROLLWIN; @@ -499,7 +499,7 @@ BOOL SwCrsrShell::LRMargin( BOOL bLeft, BOOL bAPI) { SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen SET_CURR_SHELL( this ); - eMvState = MV_LEFTMARGIN; // Status fuers Crsr-Travelling - GetCrsrOfst + eMvState = MV_LEFTMARGIN; // Status fuers Crsr-Travelling - GetCrsrOfst const BOOL bTableMode = IsTableMode(); SwShellCrsr* pTmpCrsr = getShellCrsr( true ); @@ -546,7 +546,7 @@ BOOL SwCrsrShell::SttEndDoc( BOOL bStt ) if( bRet ) { if( bStt ) - pTmpCrsr->GetPtPos().Y() = 0; // expl. 0 setzen (TabellenHeader) + pTmpCrsr->GetPtPos().Y() = 0; // expl. 0 setzen (TabellenHeader) if( pBlockCrsr ) { pBlockCrsr->clearPoints(); @@ -773,12 +773,12 @@ int SwCrsrShell::SetCrsr( const Point &rLPt, BOOL bOnlyText, bool bBlock ) { // es gibt keinen gueltigen Inhalt -> Cursor verstecken pVisCrsr->Hide(); // sichtbaren Cursor immer verstecken - eMvState = MV_NONE; // Status fuers Crsr-Travelling + eMvState = MV_NONE; // Status fuers Crsr-Travelling bAllProtect = TRUE; if( GetDoc()->GetDocShell() ) { GetDoc()->GetDocShell()->SetReadOnlyUI( TRUE ); - CallChgLnk(); // UI bescheid sagen! + CallChgLnk(); // UI bescheid sagen! } } } @@ -840,8 +840,8 @@ void SwCrsrShell::ClearMark() if( pCurCrsr->HasMark() ) { // falls doch nicht alle Indizies richtig verschoben werden - // (z.B.: Kopf-/Fusszeile loeschen) den Content-Anteil vom - // Mark aufs Nodes-Array setzen + // (z.B.: Kopf-/Fusszeile loeschen) den Content-Anteil vom + // Mark aufs Nodes-Array setzen SwPosition& rPos = *pCurCrsr->GetMark(); rPos.nNode.Assign( pDoc->GetNodes(), 0 ); rPos.nContent.Assign( 0, 0 ); @@ -858,8 +858,8 @@ void SwCrsrShell::ClearMark() if( !pCurCrsr->HasMark() ) return; // falls doch nicht alle Indizies richtig verschoben werden - // (z.B.: Kopf-/Fusszeile loeschen) den Content-Anteil vom - // Mark aufs Nodes-Array setzen + // (z.B.: Kopf-/Fusszeile loeschen) den Content-Anteil vom + // Mark aufs Nodes-Array setzen SwPosition& rPos = *pCurCrsr->GetMark(); rPos.nNode.Assign( pDoc->GetNodes(), 0 ); rPos.nContent.Assign( 0, 0 ); @@ -915,8 +915,8 @@ BOOL SwCrsrShell::ChgCurrPam( const Point & rPt, if( pCmp->HasMark() && *pCmp->Start() <= aPtPos && *pCmp->End() > aPtPos ) { - if( bTstOnly || pCurCrsr == pCmp ) // ist der aktuelle. - return TRUE; // return ohne Update + if( bTstOnly || pCurCrsr == pCmp ) // ist der aktuelle. + return TRUE; // return ohne Update pCurCrsr = pCmp; UpdateCrsr(); // Cursor steht schon richtig @@ -1171,7 +1171,7 @@ void SwCrsrShell::Paint( const Rectangle &rRect) BOOL bVis = FALSE; // ist Cursor sichtbar, dann verstecke den SV-Cursor - if( pVisCrsr->IsVisible() && !aRect.IsOver( aCharRect ) ) //JP 18.06.97: ??? + if( pVisCrsr->IsVisible() && !aRect.IsOver( aCharRect ) ) //JP 18.06.97: ??? { bVis = TRUE; pVisCrsr->Hide(); @@ -1183,7 +1183,7 @@ void SwCrsrShell::Paint( const Rectangle &rRect) if( bHasFocus && !bBasicHideCrsr ) { SwShellCrsr* pAktCrsr = pTblCrsr ? pTblCrsr : pCurCrsr; -// pAktCrsr->Invalidate( aRect ); +// pAktCrsr->Invalidate( aRect ); if( !ActionPend() ) { // damit nicht rechts/unten die Raender abgeschnitten werden @@ -1267,7 +1267,7 @@ void SwCrsrShell::UpdateCrsrPos() } // JP 30.04.99: Bug 65475 - falls Point/Mark in versteckten Bereichen -// stehen, so mussen diese daraus verschoben werden +// stehen, so mussen diese daraus verschoben werden static void lcl_CheckHiddenSection( SwNodeIndex& rIdx ) { const SwSectionNode* pSectNd = rIdx.GetNode().FindSectionNode(); @@ -1331,10 +1331,10 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) // erfrage den Count fuer die Start-/End-Actions und ob die Shell // ueberhaupt den Focus hat -// if( ActionPend() /*|| !bHasFocus*/ ) +// if( ActionPend() /*|| !bHasFocus*/ ) //JP 12.01.98: Bug #46496# - es muss innerhalb einer BasicAction der - // Cursor geupdatet werden; um z.B. den TabellenCursor zu - // erzeugen. Im EndAction wird jetzt das UpdateCrsr gerufen! + // Cursor geupdatet werden; um z.B. den TabellenCursor zu + // erzeugen. Im EndAction wird jetzt das UpdateCrsr gerufen! if( ActionPend() && BasicActionPend() ) { if ( eFlags & SwCrsrShell::READONLY ) @@ -1352,8 +1352,8 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) eFlags |= SwCrsrShell::READONLY; } - if( eFlags & SwCrsrShell::CHKRANGE ) // alle Cursor-Bewegungen auf - CheckRange( pCurCrsr ); // ueberlappende Bereiche testen + if( eFlags & SwCrsrShell::CHKRANGE ) // alle Cursor-Bewegungen auf + CheckRange( pCurCrsr ); // ueberlappende Bereiche testen if( !bIdleEnd ) CheckTblBoxCntnt(); @@ -1373,7 +1373,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) SwPosition* pPos = pITmpCrsr->GetPoint(); // JP 30.04.99: Bug 65475 - falls Point/Mark in versteckten Bereichen - // stehen, so mussen diese daraus verschoben werden + // stehen, so mussen diese daraus verschoben werden lcl_CheckHiddenSection( pPos->nNode ); lcl_CheckHiddenSection( pITmpCrsr->GetMark()->nNode ); @@ -1505,7 +1505,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) -aCharRect.Width() : aCharRect.Height(); pVisCrsr->Show(); // wieder anzeigen } - eMvState = MV_NONE; // Status fuers Crsr-Travelling - GetCrsrOfst + eMvState = MV_NONE; // Status fuers Crsr-Travelling - GetCrsrOfst if( pTblFrm && Imp()->IsAccessible() ) Imp()->InvalidateAccessibleCursorPosition( pTblFrm ); return; @@ -1545,12 +1545,12 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) bChgState = FALSE; else { - eMvState = MV_NONE; // Status fuers Crsr-Travelling + eMvState = MV_NONE; // Status fuers Crsr-Travelling bAllProtect = TRUE; if( GetDoc()->GetDocShell() ) { GetDoc()->GetDocShell()->SetReadOnlyUI( TRUE ); - CallChgLnk(); // UI bescheid sagen! + CallChgLnk(); // UI bescheid sagen! } return; } @@ -1564,7 +1564,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) GetDoc()->GetDocShell()->IsReadOnlyUI() ) { GetDoc()->GetDocShell()->SetReadOnlyUI( FALSE ); - CallChgLnk(); // UI bescheid sagen! + CallChgLnk(); // UI bescheid sagen! } } } @@ -1654,7 +1654,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) if( GetDoc()->GetDocShell() ) { GetDoc()->GetDocShell()->SetReadOnlyUI( TRUE ); - CallChgLnk(); // UI bescheid sagen! + CallChgLnk(); // UI bescheid sagen! } return; } @@ -1668,7 +1668,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) GetDoc()->GetDocShell()->IsReadOnlyUI() ) { GetDoc()->GetDocShell()->SetReadOnlyUI( FALSE ); - CallChgLnk(); // UI bescheid sagen! + CallChgLnk(); // UI bescheid sagen! } bAllProtect = FALSE; bAgainst = TRUE; // nochmal den richigen Frm suchen @@ -1698,7 +1698,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) rPt = aCharRect.Center(); pFrm->GetCrsrOfst( pShellCrsr->GetPoint(), rPt, &aTmpState ); } -// ALIGNRECT( aCharRect ); +// ALIGNRECT( aCharRect ); if( !pShellCrsr->HasMark() ) aCrsrHeight = aTmpState.aRealHeight; @@ -1733,7 +1733,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) pShellCrsr->GetPtPos().X() = aCharRect.Left(); pShellCrsr->GetPtPos().Y() = aCharRect.Top(); - if( !(eFlags & SwCrsrShell::UPDOWN )) // alte Pos. von Up/Down loeschen + if( !(eFlags & SwCrsrShell::UPDOWN )) // alte Pos. von Up/Down loeschen { pFrm->Calc(); nUpDownX = pFrm->IsVertical() ? @@ -1747,8 +1747,8 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) !IsCrsrReadonly() || GetViewOptions()->IsSelectionInReadonly()) ) { //JP 30.04.99: damit das EndAction, beim evtuellen Scrollen, den - // SV-Crsr nicht wieder sichtbar macht, wird hier das Flag - // gesichert und zurueckgesetzt. + // SV-Crsr nicht wieder sichtbar macht, wird hier das Flag + // gesichert und zurueckgesetzt. BOOL bSav = bSVCrsrVis; bSVCrsrVis = FALSE; MakeSelVisible(); bSVCrsrVis = bSav; @@ -1778,7 +1778,7 @@ void SwCrsrShell::UpdateCrsr( USHORT eFlags, BOOL bIdleEnd ) } } - eMvState = MV_NONE; // Status fuers Crsr-Travelling - GetCrsrOfst + eMvState = MV_NONE; // Status fuers Crsr-Travelling - GetCrsrOfst if( pFrm && Imp()->IsAccessible() ) Imp()->InvalidateAccessibleCursorPosition( pFrm ); @@ -2187,12 +2187,12 @@ void SwCrsrShell::CallChgLnk() // innerhalb von Start-/End-Action kein Call, sondern nur merken, // das sich etwas geaendert hat. Wird bei EndAction beachtet. if( BasicActionPend() ) - bChgCallFlag = TRUE; // das Change merken + bChgCallFlag = TRUE; // das Change merken else if( aChgLnk.IsSet() ) { if( bCallChgLnk ) aChgLnk.Call( this ); - bChgCallFlag = FALSE; // Flag zuruecksetzen + bChgCallFlag = FALSE; // Flag zuruecksetzen } } @@ -2236,7 +2236,7 @@ String SwCrsrShell::GetText() const // hole vom Start/Ende der akt. SSelection das nte Zeichen sal_Unicode SwCrsrShell::GetChar( BOOL bEnd, long nOffset ) { - if( IsTableMode() ) // im TabelleMode nicht moeglich + if( IsTableMode() ) // im TabelleMode nicht moeglich return 0; const SwPosition* pPos = !pCurCrsr->HasMark() ? pCurCrsr->GetPoint() @@ -2261,7 +2261,7 @@ sal_Unicode SwCrsrShell::GetChar( BOOL bEnd, long nOffset ) BOOL SwCrsrShell::ExtendSelection( BOOL bEnd, xub_StrLen nCount ) { if( !pCurCrsr->HasMark() || IsTableMode() ) - return FALSE; // keine Selektion + return FALSE; // keine Selektion SwPosition* pPos = bEnd ? pCurCrsr->End() : pCurCrsr->Start(); SwTxtNode* pTxtNd = pPos->nNode.GetNode().GetTxtNode(); @@ -2273,14 +2273,14 @@ BOOL SwCrsrShell::ExtendSelection( BOOL bEnd, xub_StrLen nCount ) if( ( nPos + nCount ) <= pTxtNd->GetTxt().Len() ) nPos = nPos + nCount; else - return FALSE; // nicht mehr moeglich + return FALSE; // nicht mehr moeglich } else if( nPos >= nCount ) nPos = nPos - nCount; else - return FALSE; // nicht mehr moeglich + return FALSE; // nicht mehr moeglich - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, pPos->nContent = nPos; UpdateCrsr(); @@ -2321,9 +2321,9 @@ BOOL SwCrsrShell::SetVisCrsr( const Point &rPt ) SwRect aTmp( aCharRect ); pFrm->GetCharRect( aCharRect, aPos, &aTmpState ); -// ALIGNRECT( aCharRect ); +// ALIGNRECT( aCharRect ); - if( aTmp == aCharRect && // BUG 10137: bleibt der Cursor auf der + if( aTmp == aCharRect && // BUG 10137: bleibt der Cursor auf der pVisCrsr->IsVisible() ) // Position nicht hidden & showen return TRUE; @@ -2335,8 +2335,8 @@ BOOL SwCrsrShell::SetVisCrsr( const Point &rPt ) } // Bug 29584: bei Rahmenselektion ist der Cursor versteckt, aber den - // D&D-Cursor will man trotzdem haben -// if( bSVCrsrVis ) + // D&D-Cursor will man trotzdem haben +// if( bSVCrsrVis ) { if( aTmpState.bRealHeight ) aCrsrHeight = aTmpState.aRealHeight; @@ -2429,12 +2429,12 @@ BOOL SwCrsrShell::ParkTblCrsr() } /*********************************************************************** -#* Class : SwCrsrShell -#* Methode : ParkCrsr -#* Beschreibung: Vernichtet Selektionen und zus. Crsr aller Shell der -#* verbleibende Crsr der Shell wird geparkt. -#* Datum : MA 05. Nov. 92 -#* Update : JP 19.09.97 +#* Class : SwCrsrShell +#* Methode : ParkCrsr +#* Beschreibung: Vernichtet Selektionen und zus. Crsr aller Shell der +#* verbleibende Crsr der Shell wird geparkt. +#* Datum : MA 05. Nov. 92 +#* Update : JP 19.09.97 #***********************************************************************/ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing ) @@ -2467,7 +2467,7 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing ) pTmpDel = pTmp; bGoNext = TRUE; - if( pTmpDel ) // ist der Pam im Bereich ?? loesche ihn + if( pTmpDel ) // ist der Pam im Bereich ?? loesche ihn { BOOL bDelete = TRUE; if( *ppDelRing == pTmpDel ) @@ -2481,11 +2481,11 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing ) } } else - bDelete = FALSE; // StackCrsr nie loeschen !! + bDelete = FALSE; // StackCrsr nie loeschen !! } if( bDelete ) - delete pTmpDel; // hebe alten Bereich auf + delete pTmpDel; // hebe alten Bereich auf else { pTmpDel->GetPoint()->nContent.Assign( 0, 0 ); @@ -2495,10 +2495,10 @@ void SwCrsrShell::_ParkPams( SwPaM* pDelRg, SwShellCrsr** ppDelRing ) } pTmpDel = 0; } - else if( !pTmp->HasMark() ) // sorge auf jedenfall dafuer, das - { // nicht benutzte Indizies beachtet werden! - pTmp->SetMark(); // SPoint liegt nicht im Bereich, - pTmp->DeleteMark(); // aber vielleicht GetMark, also setzen + else if( !pTmp->HasMark() ) // sorge auf jedenfall dafuer, das + { // nicht benutzte Indizies beachtet werden! + pTmp->SetMark(); // SPoint liegt nicht im Bereich, + pTmp->DeleteMark(); // aber vielleicht GetMark, also setzen } if( bGoNext ) pTmp = (SwPaM*)pTmp->GetNext(); @@ -2519,7 +2519,7 @@ void SwCrsrShell::ParkCrsr( const SwNodeIndex &rIdx ) // den Crsr auf dem Tabellen-Node (ausserhalb der Tabelle) pNew->GetPoint()->nNode = *pNode->StartOfSectionNode(); } - else // also auf dem StartNode selbst. + else // also auf dem StartNode selbst. // Dann immer ueber seinen EndNode den StartNode erfragen !!! // (StartOfSection vom StartNode ist der Parent !) pNew->GetPoint()->nNode = *pNode->EndOfSectionNode()->StartOfSectionNode(); @@ -2588,7 +2588,7 @@ SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, Window *pInitWin ) bCallChgLnk = bHasFocus = bSVCrsrVis = bAutoUpdateCells = TRUE; bSetCrsrInReadOnly = TRUE; pVisCrsr = new SwVisCrsr( this ); -// UpdateCrsr( 0 ); +// UpdateCrsr( 0 ); // OD 11.02.2003 #100556# mbMacroExecAllowed = rShell.IsMacroExecAllowed(); } @@ -2632,7 +2632,7 @@ SwCrsrShell::SwCrsrShell( SwDoc& rDoc, Window *pInitWin, bSetCrsrInReadOnly = TRUE; pVisCrsr = new SwVisCrsr( this ); -// UpdateCrsr( 0 ); +// UpdateCrsr( 0 ); // OD 11.02.2003 #100556# mbMacroExecAllowed = true; } @@ -2668,8 +2668,8 @@ SwCrsrShell::~SwCrsrShell() } // JP 27.07.98: Bug 54025 - ggfs. den HTML-Parser, der als Client in - // der CursorShell haengt keine Chance geben, sich an den - // TextNode zu haengen. + // der CursorShell haengt keine Chance geben, sich an den + // TextNode zu haengen. if( GetRegisteredIn() ) pRegisteredIn->Remove( this ); } @@ -2746,7 +2746,7 @@ void SwCrsrShell::MakeSelVisible() // suche eine gueltige ContentPosition (nicht geschuetzt/nicht versteckt) BOOL SwCrsrShell::FindValidCntntNode( BOOL bOnlyText ) { - if( pTblCrsr ) // was soll ich jetzt machen ?? + if( pTblCrsr ) // was soll ich jetzt machen ?? { ASSERT( !this, "TabellenSelection nicht aufgehoben!" ); return FALSE; @@ -2758,12 +2758,12 @@ BOOL SwCrsrShell::FindValidCntntNode( BOOL bOnlyText ) return TRUE; // dann raus da! - if( pCurCrsr->HasMark() ) + if( pCurCrsr->HasMark() ) ClearMark(); // als erstes mal auf Rahmen abpruefen SwNodeIndex& rNdIdx = pCurCrsr->GetPoint()->nNode; - ULONG nNdIdx = rNdIdx.GetIndex(); // sichern + ULONG nNdIdx = rNdIdx.GetIndex(); // sichern SwNodes& rNds = pDoc->GetNodes(); SwCntntNode* pCNd = rNdIdx.GetNode().GetCntntNode(); const SwCntntFrm * pFrm; @@ -2785,9 +2785,9 @@ BOOL SwCrsrShell::FindValidCntntNode( BOOL bOnlyText ) pCNd = ::GetNode( aPam, bFirst, fnMoveBackward, FALSE ); } - if( !pCNd ) // sollte nie passieren !!! + if( !pCNd ) // sollte nie passieren !!! { - rNdIdx = nNdIdx; // alten Node zurueck + rNdIdx = nNdIdx; // alten Node zurueck return FALSE; } *pCurCrsr->GetPoint() = *aPam.GetPoint(); @@ -2860,7 +2860,7 @@ BOOL SwCrsrShell::FindValidCntntNode( BOOL bOnlyText ) { SwCallLink aTmp( *this ); SwCrsrSaveState aSaveState( *pCurCrsr ); - aTmp.nNdTyp = 0; // im DTOR nichts machen! + aTmp.nNdTyp = 0; // im DTOR nichts machen! if( !pCurCrsr->IsInProtectTable( TRUE, TRUE ) ) { const SwSectionNode* pSNd = pCNd->FindSectionNode(); @@ -2869,15 +2869,15 @@ BOOL SwCrsrShell::FindValidCntntNode( BOOL bOnlyText ) pSNd->GetSection().IsProtectFlag() )) { bOk = TRUE; - break; // eine nicht geschuetzte Zelle gef. + break; // eine nicht geschuetzte Zelle gef. } - continue; // dann weiter suchen + continue; // dann weiter suchen } } else { bOk = TRUE; - break; // eine nicht geschuetzte Zelle gef. + break; // eine nicht geschuetzte Zelle gef. } } @@ -2906,7 +2906,7 @@ BOOL SwCrsrShell::FindValidCntntNode( BOOL bOnlyText ) if( bOk ) { pCNd = rNdIdx.GetNode().GetCntntNode(); -// USHORT nCntnt = Min( pCNd->Len(), pCurCrsr->GetPoint()->nContent.GetIndex() ); +// USHORT nCntnt = Min( pCNd->Len(), pCurCrsr->GetPoint()->nContent.GetIndex() ); xub_StrLen nCntnt = rNdIdx.GetIndex() < nNdIdx ? pCNd->Len() : 0; pCurCrsr->GetPoint()->nContent.Assign( pCNd, nCntnt ); } diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx index c11092c5fd9d..fce9273ef346 100644 --- a/sw/source/core/crsr/crstrvl.cxx +++ b/sw/source/core/crsr/crstrvl.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,7 +43,7 @@ #include <pam.hxx> #include <ndtxt.hxx> #include <fldbas.hxx> -#include <swtable.hxx> // SwTxtFld +#include <swtable.hxx> // SwTxtFld #include <docary.hxx> #include <txtfld.hxx> #include <fmtfld.hxx> @@ -315,8 +315,8 @@ BOOL SwCrsrShell::GotoNextTOXBase( const String* pName ) pCurCrsr->GetPoint()->nNode < pSectNd->GetIndex() && ( !pFnd || pFnd->GetIndex() > pSectNd->GetIndex() ) && // JP 10.12.96: solange wir nur 3 Typen kennen und UI-seitig keine anderen -// einstellbar sind, muss ueber den Titel gesucht werden! -// ( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTypeName() ) && +// einstellbar sind, muss ueber den Titel gesucht werden! +// ( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTypeName() ) && ( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTOXName() ) ) { @@ -365,8 +365,8 @@ BOOL SwCrsrShell::GotoPrevTOXBase( const String* pName ) pCurCrsr->GetPoint()->nNode > pSectNd->EndOfSectionIndex() && ( !pFnd || pFnd->GetIndex() < pSectNd->GetIndex() ) && // JP 10.12.96: solange wir nur 3 Typen kennen und UI-seitig keine anderen -// einstellbar sind, muss ueber den Titel gesucht werden! -// ( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTypeName() ) && +// einstellbar sind, muss ueber den Titel gesucht werden! +// ( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTypeName() ) && ( !pName || *pName == ((SwTOXBaseSection*)pSect)->GetTOXName() ) ) { @@ -566,7 +566,7 @@ BOOL SwCrsrShell::GotoNxtPrvTOXMark( BOOL bNext ) 0 != ( pCFrm = pTxtNd->GetFrm( &aPt, 0, FALSE )) && ( IsReadOnlyAvailable() || !pCFrm->IsProtected() )) { - SwNodeIndex aNdIndex( *pTxtNd ); // UNIX benoetigt dieses Obj. + SwNodeIndex aNdIndex( *pTxtNd ); // UNIX benoetigt dieses Obj. _SetGetExpFld aCmp( aNdIndex, *pTxtTOX, 0 ); aCmp.SetBodyPos( *pCFrm ); @@ -700,9 +700,9 @@ BOOL SwCrsrShell::MoveFldType( const SwFieldType* pFldType, BOOL bNext, SwCursor* pCrsr = getShellCrsr( true ); { // JP 19.08.98: es muss immer ueber das Feld gesucht werden, damit - // auch immer das richtige gefunden wird, wenn welche in - // Rahmen stehen, die in einem Absatz verankert sind, - // in dem ein Feld steht - siehe auch Bug 55247 + // auch immer das richtige gefunden wird, wenn welche in + // Rahmen stehen, die in einem Absatz verankert sind, + // in dem ein Feld steht - siehe auch Bug 55247 const SwPosition& rPos = *pCrsr->GetPoint(); SwTxtNode* pTNd = rPos.nNode.GetNode().GetTxtNode(); @@ -737,15 +737,15 @@ BOOL SwCrsrShell::MoveFldType( const SwFieldType* pFldType, BOOL bNext, delete pTxtFld; } - if( bFound ) // stehe auf einem ? + if( bFound ) // stehe auf einem ? { if( bNext ) { if( ++nPos >= aSrtLst.Count() ) - return FALSE; // schon am Ende + return FALSE; // schon am Ende } else if( !nPos-- ) - return FALSE; // weiter nach vorne geht nicht + return FALSE; // weiter nach vorne geht nicht } else if( bNext ? nPos >= aSrtLst.Count() : !nPos--) return FALSE; @@ -826,7 +826,7 @@ BOOL SwCrsrShell::GotoOutline( const String& rName ) -BOOL SwCrsrShell::GotoNextOutline() // naechster Node mit Outline-Num. +BOOL SwCrsrShell::GotoNextOutline() // naechster Node mit Outline-Num. { SwCursor* pCrsr = getShellCrsr( true ); const SwNodes& rNds = GetDoc()->GetNodes(); @@ -854,7 +854,7 @@ BOOL SwCrsrShell::GotoNextOutline() // naechster Node mit Outline-Num. } -BOOL SwCrsrShell::GotoPrevOutline() // vorheriger Node mit Outline-Num. +BOOL SwCrsrShell::GotoPrevOutline() // vorheriger Node mit Outline-Num. { SwCursor* pCrsr = getShellCrsr( true ); const SwNodes& rNds = GetDoc()->GetNodes(); @@ -866,7 +866,7 @@ BOOL SwCrsrShell::GotoPrevOutline() // vorheriger Node mit Outline-Num. BOOL bRet = FALSE; if( nPos ) { - --nPos; // davor + --nPos; // davor pNd = rNds.GetOutLineNds()[ nPos ]; if( pNd->GetIndex() > pCrsr->GetPoint()->nNode.GetIndex() ) @@ -896,9 +896,9 @@ USHORT SwCrsrShell::GetOutlinePos( BYTE nLevel ) SwNode* pNd = pCrsr->GetNode(); USHORT nPos; if( rNds.GetOutLineNds().Seek_Entry( pNd, &nPos )) - nPos++; // steht auf der Position, fuers while zum Naechsten + nPos++; // steht auf der Position, fuers while zum Naechsten - while( nPos-- ) // immer den davor testen ! + while( nPos-- ) // immer den davor testen ! { pNd = rNds.GetOutLineNds()[ nPos ]; @@ -907,7 +907,7 @@ USHORT SwCrsrShell::GetOutlinePos( BYTE nLevel ) return nPos; } - return USHRT_MAX; // davor keiner mehr also Ende + return USHRT_MAX; // davor keiner mehr also Ende } @@ -916,13 +916,13 @@ BOOL SwCrsrShell::MakeOutlineSel( USHORT nSttPos, USHORT nEndPos, { const SwNodes& rNds = GetDoc()->GetNodes(); const SwOutlineNodes& rOutlNds = rNds.GetOutLineNds(); - if( !rOutlNds.Count() ) // wie jetzt ??? + if( !rOutlNds.Count() ) // wie jetzt ??? return FALSE; SET_CURR_SHELL( this ); SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen - if( nSttPos > nEndPos ) // sollte jemand das vertauscht haben? + if( nSttPos > nEndPos ) // sollte jemand das vertauscht haben? { ASSERT( !this, "Start- > Ende-Position im Array" ); USHORT nTmp = nSttPos; @@ -943,14 +943,14 @@ BOOL SwCrsrShell::MakeOutlineSel( USHORT nSttPos, USHORT nEndPos, //BYTE nNxtLevel = pEndNd->GetTxtNode()->GetTxtColl()->GetOutlineLevel();//#outline level,zhaojianwei const int nNxtLevel = pEndNd->GetTxtNode()->GetAttrOutlineLevel()-1;//<-end,zhaojianwei if( nNxtLevel <= nLevel ) - break; // EndPos steht jetzt auf dem naechsten + break; // EndPos steht jetzt auf dem naechsten } } // ohne Childs, dann aber zumindest auf den naechsten else if( ++nEndPos < rOutlNds.Count() ) pEndNd = rOutlNds[ nEndPos ]; - if( nEndPos == rOutlNds.Count() ) // kein Ende gefunden + if( nEndPos == rOutlNds.Count() ) // kein Ende gefunden pEndNd = &rNds.GetEndOfContent(); KillPams(); @@ -962,7 +962,7 @@ BOOL SwCrsrShell::MakeOutlineSel( USHORT nSttPos, USHORT nEndPos, pCurCrsr->GetPoint()->nContent.Assign( pSttNd->GetCntntNode(), 0 ); pCurCrsr->SetMark(); pCurCrsr->GetPoint()->nNode = *pEndNd; - pCurCrsr->Move( fnMoveBackward, fnGoNode ); // ans Ende vom Vorgaenger + pCurCrsr->Move( fnMoveBackward, fnGoNode ); // ans Ende vom Vorgaenger // und schon ist alles selektiert BOOL bRet = !pCurCrsr->IsSelOvr(); @@ -1103,14 +1103,14 @@ BOOL SwCrsrShell::GetContentAtPos( const Point& rPt, } if( bRet ) { -// rCntntAtPos.sStr = pTxtNd->GetExpandTxt( -// *pTxtAttr->GetStart(), -// *pTxtAttr->GetEnd() - *pTxtAttr->GetStart(), -// FALSE ); +// rCntntAtPos.sStr = pTxtNd->GetExpandTxt( +// *pTxtAttr->GetStart(), +// *pTxtAttr->GetEnd() - *pTxtAttr->GetStart(), +// FALSE ); -// rCntntAtPos.aFnd.pAttr = &pTxtAttr->GetAttr(); +// rCntntAtPos.aFnd.pAttr = &pTxtAttr->GetAttr(); rCntntAtPos.eCntntAtPos = SwContentAtPos::SW_SMARTTAG; -// rCntntAtPos.pFndTxtAttr = pTxtAttr; +// rCntntAtPos.pFndTxtAttr = pTxtAttr; if( pFldRect && 0 != ( pFrm = pTxtNd->GetFrm( &aPt ) ) ) pFrm->GetCharRect( *pFldRect, aPos, &aTmpState ); @@ -1158,7 +1158,7 @@ BOOL SwCrsrShell::GetContentAtPos( const Point& rPt, // erzeuge aus der internen (fuer CORE) // die externe (fuer UI) Formel const SwTableNode* pTblNd = pTxtNd->FindTableNode(); - if( pTblNd ) // steht in einer Tabelle + if( pTblNd ) // steht in einer Tabelle ((SwTblField*)pFld)->PtrToBoxNm( &pTblNd->GetTable() ); } } @@ -1373,7 +1373,7 @@ BOOL SwCrsrShell::GetContentAtPos( const Point& rPt, pSttNd->GetIndex() )) && #ifdef DBG_UTIL ( SFX_ITEM_SET == pBox->GetFrmFmt()->GetItemState( - RES_BOXATR_FORMULA, FALSE, &pItem ) || + RES_BOXATR_FORMULA, FALSE, &pItem ) || SFX_ITEM_SET == pBox->GetFrmFmt()->GetItemState( RES_BOXATR_VALUE, FALSE, &pItem )) #else @@ -1400,7 +1400,7 @@ BOOL SwCrsrShell::GetContentAtPos( const Point& rPt, else if( !pF ) pF = pFrm; - if( pF ) // nur dann ist es gueltig!! + if( pF ) // nur dann ist es gueltig!! { // erzeuge aus der internen (fuer CORE) // die externe (fuer UI) Formel @@ -1451,7 +1451,7 @@ BOOL SwCrsrShell::GetContentAtPos( const Point& rPt, { const SwTxtAttr* pHt = pTxtNd->GetSwpHints()[i]; xub_StrLen nAttrStart = *pHt->GetStart(); - if( nAttrStart > n ) // ueber den Bereich hinaus + if( nAttrStart > n ) // ueber den Bereich hinaus break; if( 0 != pHt->GetEnd() && ( @@ -1784,7 +1784,7 @@ BOOL SwCrsrShell::SetShadowCrsrPos( const Point& rPt, SwFillMode eFillMode ) *pCurCrsr->GetPoint() = aPos; GetDoc()->SetTxtFmtColl( *pCurCrsr, pNextFmt, false ); //JP 04.11.97: erstmal keine Folgevorlage der - // Folgevorlage beachten + // Folgevorlage beachten // pNextFmt = pNextFmt->GetNextTxtFmtColl(); } if( n < aFPos.nColumnCnt ) @@ -2014,7 +2014,7 @@ const SwRedline* SwCrsrShell::GotoRedline( USHORT nArrPos, BOOL bSelect ) switch( ::ComparePosition( *pCStt, *pCEnd, *pNStt, *pNEnd )) { - case POS_INSIDE: // Pos1 liegt vollstaendig in Pos2 + case POS_INSIDE: // Pos1 liegt vollstaendig in Pos2 if( !pCur->HasMark() ) { pCur->SetMark(); @@ -2025,16 +2025,16 @@ const SwRedline* SwCrsrShell::GotoRedline( USHORT nArrPos, BOOL bSelect ) *pCEnd = *pNEnd; break; - case POS_OUTSIDE: // Pos2 liegt vollstaendig in Pos1 - case POS_EQUAL: // Pos1 ist genauso gross wie Pos2 + case POS_OUTSIDE: // Pos2 liegt vollstaendig in Pos1 + case POS_EQUAL: // Pos1 ist genauso gross wie Pos2 break; - case POS_OVERLAP_BEFORE: // Pos1 ueberlappt Pos2 am Anfang + case POS_OVERLAP_BEFORE: // Pos1 ueberlappt Pos2 am Anfang if( !pCur->HasMark() ) pCur->SetMark(); *pCEnd = *pNEnd; break; - case POS_OVERLAP_BEHIND: // Pos1 ueberlappt Pos2 am Ende + case POS_OVERLAP_BEHIND: // Pos1 ueberlappt Pos2 am Ende if( !pCur->HasMark() ) { pCur->SetMark(); @@ -2200,7 +2200,7 @@ BOOL SwCrsrShell::SelectNxtPrvHyperlink( BOOL bNext ) MakeSelVisible(); bRet = TRUE; } - else // then is it a fly + else // then is it a fly { SwFlyFrm* pFly = pFndFmt->GetFrm(&aPt, FALSE ); if( pFly ) diff --git a/sw/source/core/crsr/crstrvl1.cxx b/sw/source/core/crsr/crstrvl1.cxx index 53790c2ac28f..45feaf02f2b6 100644 --- a/sw/source/core/crsr/crstrvl1.cxx +++ b/sw/source/core/crsr/crstrvl1.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx index be581b17735d..3f394e1b685a 100644 --- a/sw/source/core/crsr/findattr.cxx +++ b/sw/source/core/crsr/findattr.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -90,9 +90,9 @@ const SwTxtAttr* GetFrwrdTxtHint( const SwpHints& rHtsArr, USHORT& rPos, const SwTxtAttr *pTxtHt = rHtsArr.GetStart( rPos++ ); // der Start vom Attribut muss innerhalb des Bereiches liegen !! if( *pTxtHt->GetStart() >= nCntntPos ) - return pTxtHt; // gueltiges TextAttribut + return pTxtHt; // gueltiges TextAttribut } - return 0; // kein gueltiges TextAttribut + return 0; // kein gueltiges TextAttribut } @@ -105,9 +105,9 @@ const SwTxtAttr* GetBkwrdTxtHint( const SwpHints& rHtsArr, USHORT& rPos, const SwTxtAttr *pTxtHt = rHtsArr.GetStart( --rPos ); // der Start vom Attribut muss innerhalb des Bereiches liegen !! if( *pTxtHt->GetStart() < nCntntPos ) - return pTxtHt; // gueltiges TextAttribut + return pTxtHt; // gueltiges TextAttribut } - return 0; // kein gueltiges TextAttribut + return 0; // kein gueltiges TextAttribut } @@ -123,7 +123,7 @@ void lcl_SetAttrPam( SwPaM & rPam, xub_StrLen nStart, const xub_StrLen* pEnde, SwCntntNode* pCNd = rPam.GetCntntNode(); rPam.GetPoint()->nContent.Assign( pCNd, nStart ); - rPam.SetMark(); // Point == GetMark + rPam.SetMark(); // Point == GetMark // Point zeigt auf das Ende vom SuchBereich oder Ende vom Attribut if( pEnde ) @@ -194,8 +194,8 @@ public: void SetNewSet( const SwTxtNode& rTxtNd, const SwPaM& rPam ); // wieviele Attribute ueberhaupt ?? - USHORT Count() const { return aCmpSet.Count(); } - int Found() const { return nFound == aCmpSet.Count(); } + USHORT Count() const { return aCmpSet.Count(); } + int Found() const { return nFound == aCmpSet.Count(); } int CheckStack(); xub_StrLen Start() const; @@ -263,8 +263,8 @@ void SwAttrCheckArr::SetNewSet( const SwTxtNode& rTxtNd, const SwPaM& rPam ) return ; const SfxItemSet& rSet = rTxtNd.GetSwAttrSet(); -// if( !rSet.Count() ) -// return; +// if( !rSet.Count() ) +// return; SfxItemIter aIter( aCmpSet ); const SfxPoolItem* pItem = aIter.GetCurItem(); @@ -278,7 +278,7 @@ void SwAttrCheckArr::SetNewSet( const SwTxtNode& rTxtNd, const SwPaM& rPam ) { nWhich = aCmpSet.GetWhichByPos( aIter.GetCurPos() ); if( RES_TXTATR_END <= nWhich ) - break; // Ende der TextAttribute + break; // Ende der TextAttribute if( SFX_ITEM_SET == rSet.GetItemState( nWhich, !bNoColls, &pFndItem ) && !CmpAttr( *pFndItem, rSet.GetPool()->GetDefaultItem( nWhich ) )) @@ -291,11 +291,11 @@ void SwAttrCheckArr::SetNewSet( const SwTxtNode& rTxtNd, const SwPaM& rPam ) else { if( RES_TXTATR_END <= (nWhich = pItem->Which() )) - break; // Ende der TextAttribute + break; // Ende der TextAttribute //JP 27.02.95: wenn nach defaults gesucht wird, dann muss man bis zum Pool -// runter -// if( SFX_ITEM_SET == rSet.GetItemState( nWhich, !bNoColls, &pFndItem ) +// runter +// if( SFX_ITEM_SET == rSet.GetItemState( nWhich, !bNoColls, &pFndItem ) // && *pFndItem == *pItem ) if( CmpAttr( rSet.Get( nWhich, !bNoColls ), *pItem ) ) { @@ -362,7 +362,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr ) ++n, ++pArrPtr ) if( pArrPtr->nWhich && pArrPtr->nEnd <= aTmp.nStt ) { - pArrPtr->nWhich = 0; // geloescht + pArrPtr->nWhich = 0; // geloescht nFound--; } @@ -378,7 +378,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr ) if( pArrPtr->nEnd <= aTmp.nStt ) { - pArrPtr->nWhich = 0; // geloescht + pArrPtr->nWhich = 0; // geloescht if( !--nStackCnt ) break; } @@ -386,7 +386,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr ) { if( ( pCmp = &pFndArr[ n ])->nWhich ) { - if( pCmp->nEnd < pArrPtr->nEnd ) // erweitern + if( pCmp->nEnd < pArrPtr->nEnd ) // erweitern pCmp->nEnd = pArrPtr->nEnd; } else @@ -411,10 +411,10 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr ) // suche das Attribut und erweiter es gegebenenfalls if( !( pCmp = &pFndArr[ nWhch - nArrStart ])->nWhich ) { - *pCmp = aTmp; // nicht gefunden, eintragen + *pCmp = aTmp; // nicht gefunden, eintragen nFound++; } - else if( pCmp->nEnd < aTmp.nEnd ) // erweitern ? + else if( pCmp->nEnd < aTmp.nEnd ) // erweitern ? pCmp->nEnd = aTmp.nEnd; bContinue = TRUE; @@ -439,7 +439,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr ) // --------- // JP 22.08.96: nur Ende manipulieren reicht nicht. Bug 30547 - // pCmp->nStt = aTmp.nEnd; + // pCmp->nStt = aTmp.nEnd; if( aTmp.nStt <= pCmp->nStt ) pCmp->nStt = aTmp.nEnd; else @@ -519,7 +519,7 @@ int SwAttrCheckArr::SetAttrBwd( const SwTxtAttr& rAttr ) for( pArrPtr = pFndArr, n = 0; n < nArrLen; ++n, ++pArrPtr ) if( pArrPtr->nWhich && pArrPtr->nStt >= aTmp.nEnd ) { - pArrPtr->nWhich = 0; // geloescht + pArrPtr->nWhich = 0; // geloescht nFound--; } @@ -535,7 +535,7 @@ int SwAttrCheckArr::SetAttrBwd( const SwTxtAttr& rAttr ) if( pArrPtr->nStt >= aTmp.nEnd ) { - pArrPtr->nWhich = 0; // geloescht + pArrPtr->nWhich = 0; // geloescht if( !--nStackCnt ) break; } @@ -543,7 +543,7 @@ int SwAttrCheckArr::SetAttrBwd( const SwTxtAttr& rAttr ) { if( ( pCmp = &pFndArr[ n ])->nWhich ) { - if( pCmp->nStt > pArrPtr->nStt ) // erweitern + if( pCmp->nStt > pArrPtr->nStt ) // erweitern pCmp->nStt = pArrPtr->nStt; } else @@ -567,10 +567,10 @@ int SwAttrCheckArr::SetAttrBwd( const SwTxtAttr& rAttr ) // suche das Attribut und erweiter es gegebenenfalls if( !( pCmp = &pFndArr[ nWhch - nArrStart ])->nWhich ) { - *pCmp = aTmp; // nicht gefunden, eintragen + *pCmp = aTmp; // nicht gefunden, eintragen nFound++; } - else if( pCmp->nStt > aTmp.nStt ) // erweitern ? + else if( pCmp->nStt > aTmp.nStt ) // erweitern ? pCmp->nStt = aTmp.nStt; bContinue = TRUE; @@ -595,7 +595,7 @@ int SwAttrCheckArr::SetAttrBwd( const SwTxtAttr& rAttr ) // --------- // JP 22.08.96: nur Ende manipulieren reicht nicht. Bug 30547 -// pCmp->nEnd = aTmp.nStt; +// pCmp->nEnd = aTmp.nStt; if( aTmp.nEnd <= pCmp->nEnd ) pCmp->nEnd = aTmp.nStt; else @@ -664,7 +664,7 @@ int SwAttrCheckArr::CheckStack() if( bForward ? pArrPtr->nEnd <= nSttPos : pArrPtr->nStt >= nEndPos ) { - pArrPtr->nWhich = 0; // geloescht + pArrPtr->nWhich = 0; // geloescht if( !--nStackCnt ) return nFound == aCmpSet.Count(); } @@ -865,9 +865,9 @@ int lcl_Search( const SwCntntNode& rCNd, const SfxItemSet& rCmpSet, BOOL bNoColl { nWhich = pItem->Which(); //JP 27.02.95: wenn nach defaults gesucht wird, dann muss man bis zum Pool -// runter -// if( SFX_ITEM_SET != rNdSet.GetItemState( nWhich, !bNoColls, &pNdItem ) -// || *pNdItem != *pItem ) +// runter +// if( SFX_ITEM_SET != rNdSet.GetItemState( nWhich, !bNoColls, &pNdItem ) +// || *pNdItem != *pItem ) if( !CmpAttr( rNdSet.Get( nWhich, !bNoColls ), *pItem )) return FALSE; } @@ -876,7 +876,7 @@ int lcl_Search( const SwCntntNode& rCNd, const SfxItemSet& rCmpSet, BOOL bNoColl break; pItem = aIter.NextItem(); } - return TRUE; // wurde gefunden + return TRUE; // wurde gefunden } @@ -938,7 +938,7 @@ BOOL SwPaM::Find( const SfxPoolItem& rAttr, BOOL bValue, SwMoveFn fnMove, { const SwFmt* pTmpFmt = pNode->GetFmtColl(); if( aFmtArr.Count() && aFmtArr.Seek_Entry( pTmpFmt )) - continue; // die Collection wurde schon mal befragt + continue; // die Collection wurde schon mal befragt aFmtArr.Insert( pTmpFmt ); } @@ -946,7 +946,7 @@ BOOL SwPaM::Find( const SfxPoolItem& rAttr, BOOL bValue, SwMoveFn fnMove, TRUE, &pItem ) && ( !bValue || *pItem == rAttr ) ) { // FORWARD: Point an das Ende, GetMark zum Anfanf vom Node - // BACKWARD: Point zum Anfang, GetMark an das Ende vom Node + // BACKWARD: Point zum Anfang, GetMark an das Ende vom Node // und immer nach der Logik: inkl. Start, exkl. End !!! *GetPoint() = *pPam->GetPoint(); SetMark(); @@ -982,7 +982,7 @@ BOOL SwPaM::Find( const SfxItemSet& rSet, BOOL bNoColls, SwMoveFn fnMove, SwAttrCheckArr aCmpArr( rSet, bSrchForward, bNoColls ); SfxItemSet aOtherSet( GetDoc()->GetAttrPool(), RES_PARATR_BEGIN, RES_GRFATR_END-1 ); - aOtherSet.Put( rSet, FALSE ); // alle Invalid-Items erhalten! + aOtherSet.Put( rSet, FALSE ); // alle Invalid-Items erhalten! FnSearchAttr fnSearch = bSrchForward ? (&::lcl_SearchForward) @@ -990,7 +990,7 @@ BOOL SwPaM::Find( const SfxItemSet& rSet, BOOL bNoColls, SwMoveFn fnMove, // Wenn am Anfang/Ende, aus dem Node moven // Wenn am Anfang/Ende, aus dem Node moven - if( bMoveFirst && + if( bMoveFirst && ( bSrchForward ? pPam->GetPoint()->nContent.GetIndex() == pPam->GetCntntNode()->Len() : !pPam->GetPoint()->nContent.GetIndex() ) ) @@ -1024,7 +1024,7 @@ BOOL SwPaM::Find( const SfxItemSet& rSet, BOOL bNoColls, SwMoveFn fnMove, bFound = TRUE; break; } - continue; // TextAttribute + continue; // TextAttribute } if( !aOtherSet.Count() ) @@ -1036,14 +1036,14 @@ BOOL SwPaM::Find( const SfxItemSet& rSet, BOOL bNoColls, SwMoveFn fnMove, { const SwFmt* pTmpFmt = pNode->GetFmtColl(); if( aFmtArr.Count() && aFmtArr.Seek_Entry( pTmpFmt )) - continue; // die Collection wurde schon mal befragt + continue; // die Collection wurde schon mal befragt aFmtArr.Insert( pTmpFmt ); } if( lcl_Search( *pNode, aOtherSet, bNoColls )) { // FORWARD: Point an das Ende, GetMark zum Anfanf vom Node - // BACKWARD: Point zum Anfang, GetMark an das Ende vom Node + // BACKWARD: Point zum Anfang, GetMark an das Ende vom Node // und immer nach der Logik: inkl. Start, exkl. End !!! *GetPoint() = *pPam->GetPoint(); SetMark(); @@ -1089,7 +1089,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion, BOOL bInReadOnly ) { // String ersetzen ?? (nur wenn Text angegeben oder nicht attributiert - // gesucht wird) + // gesucht wird) BOOL bReplaceTxt = pSearchOpt && ( pSearchOpt->replaceString.getLength() || !pSet->Count() ); BOOL bReplaceAttr = pReplSet && pReplSet->Count(); @@ -1105,17 +1105,17 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion, while( TRUE ) { - if( pSet->Count() ) // gibts ueberhaupt Attributierung? + if( pSet->Count() ) // gibts ueberhaupt Attributierung? { // zuerst die Attributierung if( !aSrchPam.Find( *pSet, bValue, fnMove, &aRegion, bInReadOnly, bMoveFirst ) ) //JP 17.11.95: was ist mit Attributen in leeren Absaetzen !! -// || *pCrsr->GetMark() == *pCrsr->GetPoint() ) // kein Bereich ?? +// || *pCrsr->GetMark() == *pCrsr->GetPoint() ) // kein Bereich ?? return FIND_NOT_FOUND; bMoveFirst = TRUE; if( !pSearchOpt ) - break; // ok, nur Attribute, also gefunden + break; // ok, nur Attribute, also gefunden pTextRegion = &aSrchPam; } @@ -1142,18 +1142,18 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion, // Bug 24665: suche im richtigen Bereich weiter (pTextRegion!) if( aSrchPam.Find( *pSearchOpt, bSearchInNotes, *pSTxt, fnMove, pTextRegion, bInReadOnly ) && *aSrchPam.GetMark() != *aSrchPam.GetPoint() ) // gefunden ? - break; // also raus + break; // also raus else if( !pSet->Count() ) - return FIND_NOT_FOUND; // nur Text und nicht gefunden + return FIND_NOT_FOUND; // nur Text und nicht gefunden /* // --> FME 2007-4-12 #i74765 # Why should we move the position? Moving the position results in bugs when there are two adjacent portions which both have the requested attributes set. I suspect this should be only be an optimization. Therefore I boldly remove it now! - + // JP: und wieder neu aufsetzen, aber eine Position weiter //JP 04.11.97: Bug 44897 - aber den Mark wieder aufheben, damit - // weiterbewegt werden kann! + // weiterbewegt werden kann! { BOOL bCheckRegion = TRUE; SwPosition* pPos = aSrchPam.GetPoint(); @@ -1174,7 +1174,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion, bCheckRegion = FALSE; } if( !bCheckRegion || *aRegion.GetPoint() <= *pPos ) - return FIND_NOT_FOUND; // nicht gefunden + return FIND_NOT_FOUND; // nicht gefunden }*/ *aRegion.GetMark() = *aSrchPam.GetPoint(); } @@ -1229,7 +1229,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion, pCrsr->GetDoc()->Insert( *pCrsr, *pReplSet, 0 ); #else //JP 13.07.95: alle gesuchten Attribute werden, wenn nicht im - // ReplaceSet angegeben, auf Default zurueck gesetzt + // ReplaceSet angegeben, auf Default zurueck gesetzt if( !pSet->Count() ) { diff --git a/sw/source/core/crsr/findcoll.cxx b/sw/source/core/crsr/findcoll.cxx index 4bb594ceb4ca..d56c887df029 100644 --- a/sw/source/core/crsr/findcoll.cxx +++ b/sw/source/core/crsr/findcoll.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sw/source/core/crsr/findfmt.cxx b/sw/source/core/crsr/findfmt.cxx index bf3492ae0a65..e93235b95933 100644 --- a/sw/source/core/crsr/findfmt.cxx +++ b/sw/source/core/crsr/findfmt.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -66,14 +66,14 @@ BOOL SwPaM::Find( const SwFmt& rFmt, SwMoveFn fnMove, // jedenfall um einen SwCntntNode !! // FORWARD: SPoint an das Ende, GetMark zum Anfanf vom Node - // BACKWARD: SPoint zum Anfang, GetMark an das Ende vom Node + // BACKWARD: SPoint zum Anfang, GetMark an das Ende vom Node // und immer nach der Logik: inkl. Start, exkl. End !!! *GetPoint() = *pPam->GetPoint(); SetMark(); pNode->MakeEndIndex( &GetPoint()->nContent ); GetMark()->nContent = 0; - if( !bSrchForward ) // rueckwaerts Suche? - Exchange(); // SPoint und GetMark tauschen + if( !bSrchForward ) // rueckwaerts Suche? + Exchange(); // SPoint und GetMark tauschen break; } } diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx index 4a0697692975..814fd21bbf8b 100644 --- a/sw/source/core/crsr/findtxt.cxx +++ b/sw/source/core/crsr/findtxt.cxx @@ -134,13 +134,13 @@ String& lcl_CleanStr( const SwTxtNode& rNd, xub_StrLen nStart, case RES_TXTATR_METAFIELD: { // JP 06.05.98: mit Bug 50100 werden sie als Trenner erwuenscht und nicht - // mehr zum Wort dazu gehoerend. + // mehr zum Wort dazu gehoerend. // MA 23.06.98: mit Bug 51215 sollen sie konsequenterweise auch am - // Satzanfang und -ende ignoriert werden wenn sie Leer sind. - // Dazu werden sie schlicht entfernt. Fuer den Anfang entfernen - // wir sie einfach. - // Fuer das Ende merken wir uns die Ersetzungen und entferenen - // hinterher alle am Stringende (koenten ja 'normale' 0x7f drinstehen + // Satzanfang und -ende ignoriert werden wenn sie Leer sind. + // Dazu werden sie schlicht entfernt. Fuer den Anfang entfernen + // wir sie einfach. + // Fuer das Ende merken wir uns die Ersetzungen und entferenen + // hinterher alle am Stringende (koenten ja 'normale' 0x7f drinstehen BOOL bEmpty = RES_TXTATR_FIELD != pHt->Which() || !(static_cast<SwTxtFld const*>(pHt) ->GetFld().GetFld()->ExpandField( @@ -584,12 +584,12 @@ int SwFindParaText::Find( SwPaM* pCrsr, SwMoveFn fnMove, BOOL bFnd = (BOOL)pCrsr->Find( rSearchOpt, bSearchInNotes, aSTxt, fnMove, pRegion, bInReadOnly ); - /* #i80135# if we found something in a note, Mark and Point is the same + /* #i80135# if we found something in a note, Mark and Point is the same if( bFnd && *pCrsr->GetMark() == *pCrsr->GetPoint() ) return FIND_NOT_FOUND; */ - if( bFnd && bReplace ) // String ersetzen ?? + if( bFnd && bReplace ) // String ersetzen ?? { // Replace-Methode vom SwDoc benutzen const bool bRegExp(SearchAlgorithms_REGEXP == rSearchOpt.algorithmType); diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index ec30b5aefbe0..6de3089cb3ca 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -825,21 +825,27 @@ BOOL SwPaM::HasReadonlySel( bool bFormView ) const } //FIXME FieldBk // TODO: Form Protection when Enhanced Fields are enabled - if (!bRet) { - const SwDoc *pDoc = GetDoc(); - sw::mark::IMark* pA = NULL; - sw::mark::IMark* pB = NULL; - if ( pDoc ) - { - const IDocumentMarkAccess* pMarksAccess = pDoc->getIDocumentMarkAccess( ); - pA = GetPoint() ? pMarksAccess->getFieldmarkFor( *GetPoint( ) ) : NULL; - pB = GetMark( ) ? pMarksAccess->getFieldmarkFor( *GetMark( ) ) : pA; - bRet = ( pA != pB ); - } + const SwDoc *pDoc = GetDoc(); + sw::mark::IMark* pA = NULL; + sw::mark::IMark* pB = NULL; + if ( pDoc ) + { + const IDocumentMarkAccess* pMarksAccess = pDoc->getIDocumentMarkAccess( ); + pA = GetPoint() ? pMarksAccess->getFieldmarkFor( *GetPoint( ) ) : NULL; + pB = GetMark( ) ? pMarksAccess->getFieldmarkFor( *GetMark( ) ) : pA; + } + + if (!bRet) + { + bRet = ( pA != pB ); bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM ); if ( bProtectForm ) bRet |= ( pA == NULL || pB == NULL ); } + else + { + bRet = !( pA == pB && pA != NULL ); + } return bRet; } diff --git a/sw/source/core/crsr/paminit.cxx b/sw/source/core/crsr/paminit.cxx index 56f497215f91..34b0814d526e 100644 --- a/sw/source/core/crsr/paminit.cxx +++ b/sw/source/core/crsr/paminit.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,46 +33,46 @@ static SwMoveFnCollection aFwrd = { - /* fnNd */ &GoNext, - /* fnNds */ &GoNextNds, - /* fnDoc */ &GoEndDoc, - /* fnSections */ &GoEndSection, - /* fnCmpOp */ &SwPosition::operator<, - /* fnGetHint */ &GetFrwrdTxtHint, - /* fnSearch */ &utl::TextSearch::SearchFrwrd, - /* fnSection */ &SwNodes::GoStartOfSection + /* fnNd */ &GoNext, + /* fnNds */ &GoNextNds, + /* fnDoc */ &GoEndDoc, + /* fnSections */ &GoEndSection, + /* fnCmpOp */ &SwPosition::operator<, + /* fnGetHint */ &GetFrwrdTxtHint, + /* fnSearch */ &utl::TextSearch::SearchFrwrd, + /* fnSection */ &SwNodes::GoStartOfSection }; static SwMoveFnCollection aBwrd = { - /* fnNd */ &GoPrevious, - /* fnNds */ &GoPreviousNds, - /* fnDoc */ &GoStartDoc, - /* fnSections */ &GoStartSection, - /* fnCmpOp */ &SwPosition::operator>, - /* fnGetHint */ &GetBkwrdTxtHint, - /* fnSearch */ &utl::TextSearch::SearchBkwrd, - /* fnSection */ &SwNodes::GoEndOfSection + /* fnNd */ &GoPrevious, + /* fnNds */ &GoPreviousNds, + /* fnDoc */ &GoStartDoc, + /* fnSections */ &GoStartSection, + /* fnCmpOp */ &SwPosition::operator>, + /* fnGetHint */ &GetBkwrdTxtHint, + /* fnSearch */ &utl::TextSearch::SearchBkwrd, + /* fnSection */ &SwNodes::GoEndOfSection }; -SwGoInDoc fnGoDoc = &GoInDoc; -SwGoInDoc fnGoSection = &GoInSection; -SwGoInDoc fnGoNode = &GoInNode; -SwGoInDoc fnGoCntnt = &GoInCntnt; +SwGoInDoc fnGoDoc = &GoInDoc; +SwGoInDoc fnGoSection = &GoInSection; +SwGoInDoc fnGoNode = &GoInNode; +SwGoInDoc fnGoCntnt = &GoInCntnt; SwGoInDoc fnGoCntntCells = &GoInCntntCells; SwGoInDoc fnGoCntntSkipHidden = &GoInCntntSkipHidden; SwGoInDoc fnGoCntntCellsSkipHidden = &GoInCntntCellsSkipHidden; -SwWhichPara fnParaPrev = &GoPrevPara; -SwWhichPara fnParaCurr = &GoCurrPara; -SwWhichPara fnParaNext = &GoNextPara; -SwPosPara fnParaStart = &aFwrd; -SwPosPara fnParaEnd = &aBwrd; +SwWhichPara fnParaPrev = &GoPrevPara; +SwWhichPara fnParaCurr = &GoCurrPara; +SwWhichPara fnParaNext = &GoNextPara; +SwPosPara fnParaStart = &aFwrd; +SwPosPara fnParaEnd = &aBwrd; -SwWhichSection fnSectionPrev = &GoPrevSection; -SwWhichSection fnSectionCurr = &GoCurrSection; -SwWhichSection fnSectionNext = &GoNextSection; -SwPosSection fnSectionStart = &aFwrd; -SwPosSection fnSectionEnd = &aBwrd; +SwWhichSection fnSectionPrev = &GoPrevSection; +SwWhichSection fnSectionCurr = &GoCurrSection; +SwWhichSection fnSectionNext = &GoNextSection; +SwPosSection fnSectionStart = &aFwrd; +SwPosSection fnSectionEnd = &aBwrd; // Travelling in Tabellen BOOL GotoPrevTable( SwPaM&, SwPosTable, BOOL bInReadOnly ); @@ -98,8 +98,8 @@ SwWhichRegion fnRegionNext = &GotoNextRegion; SwPosRegion fnRegionStart = &aFwrd; SwPosRegion fnRegionEnd = &aBwrd; -SwMoveFn fnMoveBackward = &aBwrd; -SwMoveFn fnMoveForward = &aFwrd; +SwMoveFn fnMoveBackward = &aBwrd; +SwMoveFn fnMoveForward = &aFwrd; SwWhichPara GetfnParaCurr() { diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx index 7637df0a67b4..3dc0ff9e40b7 100644 --- a/sw/source/core/crsr/swcrsr.cxx +++ b/sw/source/core/crsr/swcrsr.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -57,9 +57,9 @@ #include <breakit.hxx> #include <crsskip.hxx> #include <vcl/msgbox.hxx> -#include <mdiexp.hxx> // ...Percent() +#include <mdiexp.hxx> // ...Percent() #ifndef _STATSTR_HRC -#include <statstr.hrc> // ResId fuer Statusleiste +#include <statstr.hrc> // ResId fuer Statusleiste #endif #include <redline.hxx> // SwRedline @@ -110,7 +110,7 @@ struct _PercentHdl ::StartProgress( STR_STATSTR_SEARCH, nStt, nEnd, pDSh ); } - ~_PercentHdl() { ::EndProgress( pDSh ); } + ~_PercentHdl() { ::EndProgress( pDSh ); } void NextPos( ULONG nPos ) const { ::SetProgressState( bBack ? nActPos - nPos : nPos, pDSh ); } @@ -134,7 +134,7 @@ SwCursor::SwCursor( const SwPosition &rPos, SwPaM* pRing, bool bColumnSel ) // @@@ semantic: no copy ctor. SwCursor::SwCursor( SwCursor& rCpy ) - : SwPaM( rCpy ), pSavePos( 0 ), mnRowSpanOffset( rCpy.mnRowSpanOffset ), + : SwPaM( rCpy ), pSavePos( 0 ), mnRowSpanOffset( rCpy.mnRowSpanOffset ), nCursorBidiLevel( rCpy.nCursorBidiLevel ), mbColumnSelection( rCpy.mbColumnSelection ) { } @@ -359,7 +359,7 @@ BOOL SwCursor::IsSelOvr( int eFlags ) SwNodeIndex& rPtIdx = GetPoint()->nNode; int bGoNxt = pSavePos->nNode < rPtIdx.GetIndex(); while( 0 != ( pFrm = ( bGoNxt ? pFrm->GetNextCntntFrm() - : pFrm->GetPrevCntntFrm() )) && + : pFrm->GetPrevCntntFrm() )) && 0 == pFrm->Frm().Height() ) ; @@ -369,7 +369,7 @@ BOOL SwCursor::IsSelOvr( int eFlags ) { bGoNxt = !bGoNxt; pFrm = ((SwCntntNode*)pNd)->GetFrm(); - while ( pFrm && 0 == pFrm->Frm().Height() ) + while ( pFrm && 0 == pFrm->Frm().Height() ) { pFrm = bGoNxt ? pFrm->GetNextCntntFrm() : pFrm->GetPrevCntntFrm(); @@ -398,7 +398,7 @@ BOOL SwCursor::IsSelOvr( int eFlags ) { DeleteMark(); RestoreSavePos(); - return TRUE; // ohne Frames geht gar nichts! + return TRUE; // ohne Frames geht gar nichts! } } @@ -414,12 +414,12 @@ BOOL SwCursor::IsSelOvr( int eFlags ) return FALSE; //JP 19.08.98: teste mal auf ungueltige Selektion - sprich ueber - // GrundSections: + // GrundSections: if( !::CheckNodesRange( GetMark()->nNode, GetPoint()->nNode, TRUE )) { DeleteMark(); RestoreSavePos(); - return TRUE; // ohne Frames geht gar nichts! + return TRUE; // ohne Frames geht gar nichts! } const SwTableNode* pPtNd = pNd->FindTableNode(); @@ -429,7 +429,7 @@ BOOL SwCursor::IsSelOvr( int eFlags ) { DeleteMark(); RestoreSavePos(); - return TRUE; // ohne Frames geht gar nichts! + return TRUE; // ohne Frames geht gar nichts! } const SwTableNode* pMrkNd = pNd->FindTableNode(); @@ -440,14 +440,14 @@ BOOL SwCursor::IsSelOvr( int eFlags ) // in unterschiedlichen Tabellen oder nur Mark in der Tabelle if( ( pPtNd && pMrkNd ) || pMrkNd ) - { // dann lasse das nicht zu, alte Pos zurueck + { // dann lasse das nicht zu, alte Pos zurueck RestoreSavePos(); // Crsr bleibt an der alten Position return TRUE; } // ACHTUNG: dieses kann nicht im TableMode geschehen !! - if( pPtNd ) // nur Point in Tabelle, dann gehe hinter/vor diese + if( pPtNd ) // nur Point in Tabelle, dann gehe hinter/vor diese { if( nsSwCursorSelOverFlags::SELOVER_CHANGEPOS & eFlags ) { @@ -460,7 +460,7 @@ BOOL SwCursor::IsSelOvr( int eFlags ) ULONG nSEIdx = pPtNd->EndOfSectionIndex(); ULONG nSttEndTbl = nSEIdx + 1; // dflt. Sel. nach unten - if( bSelTop ) // Sel. nach oben + if( bSelTop ) // Sel. nach oben nSttEndTbl = rNds[ nSEIdx ]->StartOfSectionIndex() - 1; GetPoint()->nNode = nSttEndTbl; @@ -507,9 +507,9 @@ BOOL SwCursor::IsSelOvr( int eFlags ) // dann verbleibe auf der alten Position RestoreSavePos(); - return TRUE; // Crsr bleibt an der alten Position + return TRUE; // Crsr bleibt an der alten Position } - return FALSE; // was bleibt noch ?? + return FALSE; // was bleibt noch ?? } #if defined( UNX ) @@ -561,7 +561,7 @@ BOOL SwCursor::IsInProtectTable( BOOL bMove, BOOL bChgCrsr ) if( bChgCrsr ) // restore the last save position RestoreSavePos(); - return TRUE; // Crsr bleibt an der alten Position + return TRUE; // Crsr bleibt an der alten Position } // wir stehen in einer geschuetzten TabellenZelle @@ -592,7 +592,7 @@ GoNextCell: } while( bProt ); SetNextCrsr: - if( !bProt ) // eine freie Zelle gefunden + if( !bProt ) // eine freie Zelle gefunden { GetPoint()->nNode = IDX; #if defined( UNX ) @@ -624,7 +624,7 @@ SetNextCrsr: else if( pNd->IsTableNode() && IDX++ ) goto GoNextCell; - bProt = FALSE; // Index steht jetzt auf einem ContentNode + bProt = FALSE; // Index steht jetzt auf einem ContentNode goto SetNextCrsr; } @@ -653,7 +653,7 @@ GoPrevCell: } while( bProt ); SetPrevCrsr: - if( !bProt ) // eine freie Zelle gefunden + if( !bProt ) // eine freie Zelle gefunden { GetPoint()->nNode = IDX; #if defined( UNX ) @@ -684,7 +684,7 @@ SetPrevCrsr: else if( pNd->StartOfSectionNode()->IsTableNode() && IDX-- ) goto GoPrevCell; - bProt = FALSE; // Index steht jetzt auf einem ContentNode + bProt = FALSE; // Index steht jetzt auf einem ContentNode goto SetPrevCrsr; } } @@ -718,7 +718,7 @@ BOOL SwCursor::IsAtValidPos( BOOL bPoint ) const return TRUE; } -void SwCursor::SaveTblBoxCntnt( const SwPosition* ) {} +void SwCursor::SaveTblBoxCntnt( const SwPosition* ) {} // setze den SRange fuer das Suchen im Dokument SwMoveFnCollection* SwCursor::MakeFindRange( SwDocPositions nStart, @@ -788,7 +788,7 @@ ULONG lcl_FindSelection( SwFindParas& rParas, SwCursor* pCurCrsr, if( !( FIND_NO_RING & nFndRet )) { // Bug 24084: Ring richtig herum aufbauen -> gleiche Mimik - // wie beim CreateCrsr !!!! + // wie beim CreateCrsr !!!! SwCursor* pNew = pCurCrsr->Create( pFndRing ); if( !pFndRing ) @@ -834,8 +834,8 @@ ULONG lcl_FindSelection( SwFindParas& rParas, SwCursor* pCurCrsr, // bewege pSttPos hinter den gefundenen Bereich *pSttPos = *pCurCrsr->End(); - if( *pSttPos == *pEndPos ) // im Bereich, aber am Ende - break; // fertig + if( *pSttPos == *pEndPos ) // im Bereich, aber am Ende + break; // fertig if( !nCrsrCnt && pPHdl ) { @@ -854,7 +854,7 @@ ULONG lcl_FindSelection( SwFindParas& rParas, SwCursor* pCurCrsr, } while( pTmpCrsr != pSaveCrsr ); - if( nFound && !pFndRing ) // falls kein Ring aufgebaut werden soll + if( nFound && !pFndRing ) // falls kein Ring aufgebaut werden soll pFndRing = pCurCrsr->Create(); delete pPHdl; @@ -882,7 +882,7 @@ int lcl_MakeSelFwrd( const SwNode& rSttNd, const SwNode& rEndNd, } else if( rSttNd.GetIndex() > rPam.GetPoint()->nNode.GetIndex() || rPam.GetPoint()->nNode.GetIndex() >= rEndNd.GetIndex() ) - return FALSE; // steht nicht in dieser Section + return FALSE; // steht nicht in dieser Section rPam.SetMark(); rPam.GetPoint()->nNode = rEndNd; @@ -914,7 +914,7 @@ int lcl_MakeSelBkwrd( const SwNode& rSttNd, const SwNode& rEndNd, } else if( rEndNd.GetIndex() > rPam.GetPoint()->nNode.GetIndex() || rPam.GetPoint()->nNode.GetIndex() >= rSttNd.GetIndex() ) - return FALSE; // steht nicht in dieser Section + return FALSE; // steht nicht in dieser Section rPam.SetMark(); rPam.GetPoint()->nNode = rEndNd; @@ -973,7 +973,7 @@ ULONG SwCursor::FindAll( SwFindParas& rParas, { // Cursor als Kopie vom akt. und in den Ring aufnehmen // Verkettung zeigt immer auf den zuerst erzeugten, also vorwaerts - SwCursor* pSav = Create( this ); // sicher den aktuellen Crsr + SwCursor* pSav = Create( this ); // sicher den aktuellen Crsr // wenn schon ausserhalb vom Bodytext, suche von der Position, // ansonsten beginne mit der 1. GrundSection @@ -1031,7 +1031,7 @@ ULONG SwCursor::FindAll( SwFindParas& rParas, } else if( FND_IN_SELALL & eFndRngs ) { - SwCursor* pSav = Create( this ); // sicher den aktuellen Crsr + SwCursor* pSav = Create( this ); // sicher den aktuellen Crsr const SwNode* pSttNd = ( FND_IN_BODYONLY & eFndRngs ) ? rNds.GetEndOfContent().StartOfSectionNode() @@ -1121,7 +1121,7 @@ void SwCursor::FillFindPos( SwDocPositions ePos, SwPosition& rPos ) const bIsStart = FALSE; break; -// case DOCPOS_CURR: +// case DOCPOS_CURR: default: rPos = *GetPoint(); } @@ -1476,7 +1476,7 @@ BOOL SwCursor::GoSentence( SentenceMoveType eMoveType ) nPtPos, pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) )); if (nPtPos == 0) - return FALSE; // the previous sentence is not in this paragraph + return FALSE; // the previous sentence is not in this paragraph if (nPtPos > 0) nPtPos = (xub_StrLen)pBreakIt->GetBreakIter()->beginOfSentence( sNodeText, @@ -1516,10 +1516,10 @@ BOOL SwCursor::ExpandToSentenceBorders() xub_StrLen nEndPos = End()->nContent.GetIndex(); nStartPos = (xub_StrLen)pBreakIt->GetBreakIter()->beginOfSentence( - sStartText, nStartPos, + sStartText, nStartPos, pBreakIt->GetLocale( pStartNd->GetLang( nStartPos ) ) ); nEndPos = (xub_StrLen)pBreakIt->GetBreakIter()->endOfSentence( - sEndText, nEndPos, + sEndText, nEndPos, pBreakIt->GetLocale( pEndNd->GetLang( nEndPos ) ) ); // it is allowed to place the PaM just behind the last @@ -2079,7 +2079,7 @@ BOOL SwCursor::MoveSection( SwWhichSection fnWhichSect, BOOL MoveRegion( SwWhichRegion, SwPosRegion ); */ -void SwCursor::RestoreSavePos() // Point auf die SavePos setzen +void SwCursor::RestoreSavePos() // Point auf die SavePos setzen { if( pSavePos ) { @@ -2133,7 +2133,7 @@ BOOL lcl_SeekEntry( const SwSelBoxes& rTmp, const SwStartNode* pSrch, USHORT& rF SwCursor* SwTableCursor::MakeBoxSels( SwCursor* pAktCrsr ) { - if( bChg ) // ??? + if( bChg ) // ??? { if( bParked ) { @@ -2201,7 +2201,7 @@ JP 20.07.98: der alte Code geht mit dem UNO-TableCrsr nicht if( pAktCrsr->GetNext() == pAktCrsr ) { pAktCrsr->DeleteMark(); - break; // es gibt nichts mehr zu loeschen! + break; // es gibt nichts mehr zu loeschen! } pAktCrsr = (SwCursor*)pDel->GetPrev(); } diff --git a/sw/source/core/crsr/trvlcol.cxx b/sw/source/core/crsr/trvlcol.cxx index 076af3be386c..716de1368a67 100644 --- a/sw/source/core/crsr/trvlcol.cxx +++ b/sw/source/core/crsr/trvlcol.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -106,7 +106,7 @@ BOOL SwCrsrShell::MoveColumn( SwWhichColumn fnWhichCol, SwPosColumn fnPosCol ) SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen SwCrsrSaveState aSaveState( *pCurCrsr ); - pCnt->Calc(); // ??? + pCnt->Calc(); // ??? Point aPt( pCnt->Frm().Pos() + pCnt->Prt().Pos() ); if( fnPosCol == GetColumnEnd ) diff --git a/sw/source/core/crsr/trvlfnfl.cxx b/sw/source/core/crsr/trvlfnfl.cxx index 3edf3718eabe..0d324b021766 100644 --- a/sw/source/core/crsr/trvlfnfl.cxx +++ b/sw/source/core/crsr/trvlfnfl.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -211,7 +211,7 @@ BOOL SwCursor::GotoNextFtnAnchor() { pTxtFtn = rFtnArr[ nPos ]; if( !CmpLE( *pTxtFtn, nNdPos, nCntPos ) ) - break; // gefunden + break; // gefunden pTxtFtn = 0; } } @@ -225,9 +225,9 @@ BOOL SwCursor::GotoNextFtnAnchor() if( CmpLE( *pTxtFtn, nNdPos, nCntPos ) ) { pTxtFtn = rFtnArr[ ++nPos ]; - break; // gefunden + break; // gefunden } -// pTxtFtn = 0; +// pTxtFtn = 0; } } } @@ -283,7 +283,7 @@ BOOL SwCursor::GotoPrevFtnAnchor() { pTxtFtn = rFtnArr[ --nPos ]; if( CmpL( *pTxtFtn, nNdPos, nCntPos )) - break; // gefunden + break; // gefunden pTxtFtn = 0; } } @@ -327,7 +327,7 @@ BOOL SwCrsrShell::GotoFlyAnchor() pFrm = pFrm->GetUpper(); } while( pFrm && !pFrm->IsFlyFrm() ); - if( !pFrm ) // ist kein FlyFrame + if( !pFrm ) // ist kein FlyFrame return FALSE; SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, diff --git a/sw/source/core/crsr/trvlreg.cxx b/sw/source/core/crsr/trvlreg.cxx index bf6343e77bc0..e339623d7a1b 100644 --- a/sw/source/core/crsr/trvlreg.cxx +++ b/sw/source/core/crsr/trvlreg.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,7 +54,7 @@ BOOL GotoPrevRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion, 0 == ( pNd = aIdx.GetNode().StartOfSectionNode()->GetSectionNode()) ) aIdx--; - if( pNd ) // gibt einen weiteren SectionNode ? + if( pNd ) // gibt einen weiteren SectionNode ? { if( pNd->GetSection().IsHiddenFlag() || ( !bInReadOnly && @@ -110,7 +110,7 @@ BOOL GotoNextRegion( SwPaM& rCurCrsr, SwPosRegion fnPosRegion, 0 == ( pNd = aIdx.GetNode().GetSectionNode()) ) aIdx++; - if( pNd ) // gibt einen weiteren SectionNode ? + if( pNd ) // gibt einen weiteren SectionNode ? { if( pNd->GetSection().IsHiddenFlag() || ( !bInReadOnly && @@ -198,7 +198,7 @@ BOOL GotoCurrRegionAndSkip( SwPaM& rCurCrsr, SwPosRegion fnPosRegion, do { SwCntntNode* pCNd; - if( bMoveBackward ) // ans Ende vom Bereich + if( bMoveBackward ) // ans Ende vom Bereich { SwNodeIndex aIdx( *pNd->EndOfSectionNode() ); pCNd = pNd->GetNodes().GoPrevSection( &aIdx, TRUE, !bInReadOnly ); @@ -244,7 +244,7 @@ BOOL SwCursor::MoveRegion( SwWhichRegion fnWhichRegion, SwPosRegion fnPosRegion BOOL SwCrsrShell::MoveRegion( SwWhichRegion fnWhichRegion, SwPosRegion fnPosRegion ) { - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen BOOL bRet = !pTblCrsr && pCurCrsr->MoveRegion( fnWhichRegion, fnPosRegion ); if( bRet ) UpdateCrsr(); @@ -279,7 +279,7 @@ BOOL SwCursor::GotoRegion( const String& rName ) BOOL SwCrsrShell::GotoRegion( const String& rName ) { - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, BOOL bRet = !pTblCrsr && pCurCrsr->GotoRegion( rName ); if( bRet ) UpdateCrsr( SwCrsrShell::SCROLLWIN | SwCrsrShell::CHKRANGE | diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx index d9a887e61ad9..ba7ec10c1b5a 100644 --- a/sw/source/core/crsr/trvltbl.cxx +++ b/sw/source/core/crsr/trvltbl.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,7 +34,7 @@ #include <crsrsh.hxx> #include <doc.hxx> #include <cntfrm.hxx> -#include <editsh.hxx> //EndAllAction gibts nur an der EditShell +#include <editsh.hxx> //EndAllAction gibts nur an der EditShell #include <pam.hxx> #include <swtable.hxx> #include <docary.hxx> @@ -59,7 +59,7 @@ BOOL SwCrsrShell::GoNextCell( BOOL bAppendLine ) if( IsTableMode() || 0 != ( pTblNd = IsCrsrInTbl() )) { SwCursor* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr; - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, bRet = TRUE; // Check if we have to move the cursor to a covered cell before @@ -87,7 +87,7 @@ BOOL SwCrsrShell::GoNextCell( BOOL bAppendLine ) if( !aCellStt.GetNode().IsStartNode() ) { - if( pCrsr->HasMark() || !bAppendLine ) + if( pCrsr->HasMark() || !bAppendLine ) bRet = FALSE; else { @@ -110,7 +110,7 @@ BOOL SwCrsrShell::GoNextCell( BOOL bAppendLine ) } } if( bRet && 0 != ( bRet = pCrsr->GoNextCell() )) - UpdateCrsr(); // und den akt. Updaten + UpdateCrsr(); // und den akt. Updaten } return bRet; } @@ -123,10 +123,10 @@ BOOL SwCrsrShell::GoPrevCell() if( IsTableMode() || 0 != ( pTblNd = IsCrsrInTbl() )) { SwCursor* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr; - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, bRet = pCrsr->GoPrevCell(); if( bRet ) - UpdateCrsr(); // und den akt. Updaten + UpdateCrsr(); // und den akt. Updaten } return bRet; } @@ -257,7 +257,7 @@ BOOL SwCrsrShell::_SelTblRowOrCol( bool bRow, bool bRowSimple ) if ( !bRow ) pTblCrsr->GetPtPos() = pMasterTabFrm->IsVertical() ? pMasterTabFrm->Frm().TopRight() : pMasterTabFrm->Frm().TopLeft(); - UpdateCrsr(); // und den akt. Updaten + UpdateCrsr(); // und den akt. Updaten return TRUE; } @@ -519,9 +519,9 @@ BOOL GotoPrevTable( SwPaM& rCurCrsr, SwPosTable fnPosTbl, 0 == ( pTblNd = aIdx.GetNode().StartOfSectionNode()->GetTableNode()) ) aIdx--; - if( pTblNd ) // gibt einen weiteren TableNode ? + if( pTblNd ) // gibt einen weiteren TableNode ? { - if( fnPosTbl == fnMoveForward ) // an Anfang ? + if( fnPosTbl == fnMoveForward ) // an Anfang ? { aIdx = *aIdx.GetNode().StartOfSectionNode(); if( !lcl_FindNextCell( aIdx, bInReadOnly )) @@ -572,9 +572,9 @@ BOOL GotoNextTable( SwPaM& rCurCrsr, SwPosTable fnPosTbl, while( aIdx.GetIndex() < nLastNd && 0 == ( pTblNd = aIdx.GetNode().GetTableNode()) ) aIdx++; - if( pTblNd ) // gibt einen weiteren TableNode ? + if( pTblNd ) // gibt einen weiteren TableNode ? { - if( fnPosTbl == fnMoveForward ) // an Anfang ? + if( fnPosTbl == fnMoveForward ) // an Anfang ? { if( !lcl_FindNextCell( aIdx, bInReadOnly )) { @@ -619,7 +619,7 @@ BOOL GotoCurrTable( SwPaM& rCurCrsr, SwPosTable fnPosTbl, return FALSE; SwTxtNode* pTxtNode = 0; - if( fnPosTbl == fnMoveBackward ) // ans Ende der Tabelle + if( fnPosTbl == fnMoveBackward ) // ans Ende der Tabelle { SwNodeIndex aIdx( *pTblNd->EndOfSectionNode() ); if( !lcl_FindPrevCell( aIdx, bInReadOnly )) @@ -651,7 +651,7 @@ BOOL SwCursor::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) BOOL bRet = FALSE; SwTableCursor* pTblCrsr = dynamic_cast<SwTableCursor*>(this); - if( pTblCrsr || !HasMark() ) // nur wenn kein Mark oder ein TblCrsr + if( pTblCrsr || !HasMark() ) // nur wenn kein Mark oder ein TblCrsr { SwCrsrSaveState aSaveState( *this ); bRet = (*fnWhichTbl)( *this, fnPosTbl, IsReadOnlyAvailable() ) && @@ -663,14 +663,14 @@ BOOL SwCursor::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) BOOL SwCrsrShell::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) { - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen SwShellCrsr* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr; BOOL bCheckPos, bRet; ULONG nPtNd = 0; xub_StrLen nPtCnt = 0; - if( !pTblCrsr && pCurCrsr->HasMark() ) // wenn Mark und kein TblCrsr, + if( !pTblCrsr && pCurCrsr->HasMark() ) // wenn Mark und kein TblCrsr, { // dann auf jedenfall in den Tabellen-Modus schalten pTblCrsr = new SwShellTableCrsr( *this, *pCurCrsr->GetPoint() ); @@ -692,7 +692,7 @@ BOOL SwCrsrShell::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) if( bRet ) { //JP 28.10.97: Bug 45028 - die "oberste" Position setzen fuer - // wiederholte Kopfzeilen + // wiederholte Kopfzeilen pCrsr->GetPtPos() = Point(); UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY); @@ -719,7 +719,7 @@ BOOL SwCrsrShell::IsTblComplexForChart() { BOOL bRet = FALSE; - StartAction(); // IsTblComplexForChart() may trigger table formatting + StartAction(); // IsTblComplexForChart() may trigger table formatting // we better do that inside an action const SwTableNode* pTNd = pCurCrsr->GetPoint()->nNode.GetNode().FindTableNode(); @@ -786,7 +786,7 @@ String SwCrsrShell::GetBoxNms() const BOOL SwCrsrShell::GotoTable( const String& rName ) { - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, BOOL bRet = !pTblCrsr && pCurCrsr->GotoTable( rName ); if( bRet ) { @@ -881,7 +881,7 @@ void SwCrsrShell::SaveTblBoxCntnt( const SwPosition* pPos ) if( pSttNd && pBoxIdx ) { if( pSttNd == &pBoxIdx->GetNode() ) - pSttNd = 0; // die haben wir schon + pSttNd = 0; // die haben wir schon else bCheckBox = TRUE; } diff --git a/sw/source/core/crsr/unocrsr.cxx b/sw/source/core/crsr/unocrsr.cxx index a4e0d6f79785..6b958dc00a0d 100644 --- a/sw/source/core/crsr/unocrsr.cxx +++ b/sw/source/core/crsr/unocrsr.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -75,8 +75,8 @@ SwUnoCrsr::~SwUnoCrsr() while( GetNext() != this ) { Ring* pNxt = GetNext(); - pNxt->MoveTo( 0 ); // ausketten - delete pNxt; // und loeschen + pNxt->MoveTo( 0 ); // ausketten + delete pNxt; // und loeschen } } @@ -223,7 +223,7 @@ SwUnoTableCrsr::SwUnoTableCrsr(const SwPosition& rPos) SwUnoTableCrsr::~SwUnoTableCrsr() { while( aTblSel.GetNext() != &aTblSel ) - delete aTblSel.GetNext(); // und loeschen + delete aTblSel.GetNext(); // und loeschen } diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 214700c5e680..8e0ee588397e 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,9 +51,9 @@ #include <extinput.hxx> #include <ndtxt.hxx> #include <scriptinfo.hxx> -#include <mdiexp.hxx> // GetSearchDialog +#include <mdiexp.hxx> // GetSearchDialog #ifndef _COMCORE_HRC -#include <comcore.hrc> // ResId fuer Abfrage wenn zu Search & Replaces +#include <comcore.hrc> // ResId fuer Abfrage wenn zu Search & Replaces #endif #include <svx/sdr/overlay/overlaymanager.hxx> @@ -77,65 +77,65 @@ MapMode* SwSelPaintRects::pMapMode = 0; // // class SwBookmarkRects : public SwSelPaintRects // { -// virtual void Paint( const Rectangle& rRect ); -// virtual void FillRects(); +// virtual void Paint( const Rectangle& rRect ); +// virtual void FillRects(); // // public: -// SwBookmarkRects( const SwCrsrShell& rSh ) : SwSelPaintRects( rSh ) {} +// SwBookmarkRects( const SwCrsrShell& rSh ) : SwSelPaintRects( rSh ) {} // }; // // void SwBookmarkRects::Paint( const Rectangle& rRect ) // { -// Window* pWin = GetShell()->GetWin(); +// Window* pWin = GetShell()->GetWin(); // -// RasterOp eOld( pWin->GetRasterOp() ); -// BOOL bLCol = pWin->IsLineColor(); -// Color aLCol( pWin->GetLineColor() ); -// BOOL bFCol = pWin->IsFillColor(); -// Color aFCol( pWin->GetFillColor() ); +// RasterOp eOld( pWin->GetRasterOp() ); +// BOOL bLCol = pWin->IsLineColor(); +// Color aLCol( pWin->GetLineColor() ); +// BOOL bFCol = pWin->IsFillColor(); +// Color aFCol( pWin->GetFillColor() ); // -// pWin->SetRasterOp( ROP_XOR ); -// Color aCol( RGB_COLORDATA( 0xF0, 0xC8, 0xF0 ) ^ COL_WHITE ); -// pWin->SetFillColor( aCol ); -// pWin->SetLineColor( aCol ); +// pWin->SetRasterOp( ROP_XOR ); +// Color aCol( RGB_COLORDATA( 0xF0, 0xC8, 0xF0 ) ^ COL_WHITE ); +// pWin->SetFillColor( aCol ); +// pWin->SetLineColor( aCol ); // -// pWin->DrawRect( rRect ); +// pWin->DrawRect( rRect ); // -// if( bLCol ) pWin->SetLineColor( aLCol ); else pWin->SetLineColor(); -// if( bFCol ) pWin->SetFillColor( aFCol ); else pWin->SetFillColor(); -// pWin->SetRasterOp( eOld ); +// if( bLCol ) pWin->SetLineColor( aLCol ); else pWin->SetLineColor(); +// if( bFCol ) pWin->SetFillColor( aFCol ); else pWin->SetFillColor(); +// pWin->SetRasterOp( eOld ); // } // // void SwBookmarkRects::FillRects() // { -// SwRegionRects aReg( GetShell()->VisArea() ); +// SwRegionRects aReg( GetShell()->VisArea() ); // // const SwBookmarks& rBkmkTbl = GetShell()->getIDocumentMarkAccess()->getBookmarks(); -// SwShellCrsr* pCrsr = 0; -// for( USHORT n = 0; n < rBkmkTbl.Count(); ++n ) -// { -// const SwBookmark& rBkmk = *rBkmkTbl[ n ]; -// if( rBkmk.IsBookMark() && rBkmk.GetOtherPos() ) -// { -// if( !pCrsr ) -// { -// pCrsr = new SwShellCrsr( *GetShell(), rBkmk.GetPos() ); -// pCrsr->SetMark(); -// } -// else -// *pCrsr->GetPoint() = rBkmk.GetPos(); -// *pCrsr->GetMark() = *rBkmk.GetOtherPos(); -// pCrsr->FillRects(); -// for( USHORT i = 0; i < pCrsr->Count(); ++i ) -// aReg -= (*pCrsr)[ i ]; +// SwShellCrsr* pCrsr = 0; +// for( USHORT n = 0; n < rBkmkTbl.Count(); ++n ) +// { +// const SwBookmark& rBkmk = *rBkmkTbl[ n ]; +// if( rBkmk.IsBookMark() && rBkmk.GetOtherPos() ) +// { +// if( !pCrsr ) +// { +// pCrsr = new SwShellCrsr( *GetShell(), rBkmk.GetPos() ); +// pCrsr->SetMark(); +// } +// else +// *pCrsr->GetPoint() = rBkmk.GetPos(); +// *pCrsr->GetMark() = *rBkmk.GetOtherPos(); +// pCrsr->FillRects(); +// for( USHORT i = 0; i < pCrsr->Count(); ++i ) +// aReg -= (*pCrsr)[ i ]; // -// pCrsr->Remove( 0, i ); -// } -// } -// if( pCrsr ) delete pCrsr; +// pCrsr->Remove( 0, i ); +// } +// } +// if( pCrsr ) delete pCrsr; // -// aReg.Invert(); -// SwRects::Insert( &aReg, 0 ); +// aReg.Invert(); +// SwRects::Insert( &aReg, 0 ); // } // // SwBookmarkRects* pBookMarkRects = 0; @@ -143,24 +143,24 @@ MapMode* SwSelPaintRects::pMapMode = 0; // void ShowBookmarks( const SwCrsrShell* pSh, int nAction, const SwRect* pRect = 0 ) // { // if( !pBookMarkRects && pSh->getIDocumentMarkAccess()->getBookmarks().Count() ) -// pBookMarkRects = new SwBookmarkRects( *pSh ); +// pBookMarkRects = new SwBookmarkRects( *pSh ); // -// if( pBookMarkRects ) -// { -// switch( nAction ) -// { -// case 1: pBookMarkRects->Show(); break; -// case 2: pBookMarkRects->Hide(); break; -// case 3: pBookMarkRects->Invalidate( *pRect ); break; -// } +// if( pBookMarkRects ) +// { +// switch( nAction ) +// { +// case 1: pBookMarkRects->Show(); break; +// case 2: pBookMarkRects->Hide(); break; +// case 3: pBookMarkRects->Invalidate( *pRect ); break; +// } // -// if( !pBookMarkRects->Count() ) -// delete pBookMarkRects, pBookMarkRects = 0; -// } +// if( !pBookMarkRects->Count() ) +// delete pBookMarkRects, pBookMarkRects = 0; +// } // } // -// #define SHOWBOOKMARKS1( nAct ) ShowBookmarks( GetShell(),nAct ); -// #define SHOWBOOKMARKS2( nAct, pRect ) ShowBookmarks( GetShell(),nAct, pRect ); +// #define SHOWBOOKMARKS1( nAct ) ShowBookmarks( GetShell(),nAct ); +// #define SHOWBOOKMARKS2( nAct, pRect ) ShowBookmarks( GetShell(),nAct, pRect ); #else @@ -202,10 +202,10 @@ void SwRedlineRects::Paint( const Rectangle& rRect ) UINT8 nVal = 0xc8 - ( (nMode / 4) * 16 ); switch( nMode % 4 ) { - case 0: aCol = RGB_COLORDATA( nVal, nVal, 0xFF ); break; - case 1: aCol = RGB_COLORDATA( 0xFF, 0xc8, nVal ); break; - case 2: aCol = RGB_COLORDATA( nVal, 0xFF, nVal ); break; - case 3: aCol = RGB_COLORDATA( 0xFF, nVal, nVal ); break; + case 0: aCol = RGB_COLORDATA( nVal, nVal, 0xFF ); break; + case 1: aCol = RGB_COLORDATA( 0xFF, 0xc8, nVal ); break; + case 2: aCol = RGB_COLORDATA( nVal, 0xFF, nVal ); break; + case 3: aCol = RGB_COLORDATA( 0xFF, nVal, nVal ); break; } aCol = aCol.GetColor() ^ COL_WHITE; @@ -279,7 +279,7 @@ void ShowRedlines( const SwCrsrShell* pSh, int nAction, const SwRect* pRect = 0 switch( nAction ) { case 1: (*ppRedRect)->Show(); break; - case 2: (*ppRedRect)->Hide(); break; + case 2: (*ppRedRect)->Hide(); break; case 3: (*ppRedRect)->Invalidate( *pRect ); break; } @@ -290,8 +290,8 @@ void ShowRedlines( const SwCrsrShell* pSh, int nAction, const SwRect* pRect = 0 } } -#define SHOWREDLINES1( nAct ) ShowRedlines( GetShell(),nAct ); -#define SHOWREDLINES2( nAct, pRect ) ShowRedlines( GetShell(),nAct, pRect ); +#define SHOWREDLINES1( nAct ) ShowRedlines( GetShell(),nAct ); +#define SHOWREDLINES2( nAct, pRect ) ShowRedlines( GetShell(),nAct, pRect ); #else @@ -331,7 +331,7 @@ SwVisCrsr::~SwVisCrsr() { #ifdef SW_CRSR_TIMER if( bTimerOn ) - Stop(); // Timer stoppen + Stop(); // Timer stoppen #endif if( bIsVisible && aTxtCrsr.IsVisible() ) @@ -382,7 +382,7 @@ void SwVisCrsr::Hide() Stop(); // Timer Stoppen #endif - if( aTxtCrsr.IsVisible() ) // sollten die Flags nicht gueltig sein? + if( aTxtCrsr.IsVisible() ) // sollten die Flags nicht gueltig sein? aTxtCrsr.Hide(); } } @@ -412,7 +412,7 @@ BOOL SwVisCrsr::ChgTimerFlag( BOOL bFlag ) bOld = bTimerOn; if( !bFlag && bIsVisible && IsActive() ) { - Stop(); // Timer Stoppen + Stop(); // Timer Stoppen _SetPosAndShow(); } bTimerOn = bFlag; @@ -514,7 +514,7 @@ void SwVisCrsr::_SetPosAndShow() ////////////////////////////////////////////////////////////////////////////// SwSelPaintRects::SwSelPaintRects( const SwCrsrShell& rCSh ) -: SwRects( 0 ), +: SwRects( 0 ), pCShell( &rCSh ), mpCursorOverlay(0) { @@ -619,7 +619,7 @@ void SwSelPaintRects::Show() // create correct selection mpCursorOverlay = new sdr::overlay::OverlaySelection( sdr::overlay::OVERLAY_TRANSPARENT, - aHighlight, + aHighlight, aNewRanges, true); @@ -738,7 +738,7 @@ void SwShellCrsr::FillRects() GetPoint()->nNode.GetNode().GetCntntNode()->GetFrm() && (GetMark()->nNode == GetPoint()->nNode || (GetMark()->nNode.GetNode().IsCntntNode() && - GetMark()->nNode.GetNode().GetCntntNode()->GetFrm() ) )) + GetMark()->nNode.GetNode().GetCntntNode()->GetFrm() ) )) GetDoc()->GetRootFrm()->CalcFrmRects( *this, GetShell()->IsTableMode() ); } @@ -852,7 +852,7 @@ BOOL SwShellCrsr::UpDown( BOOL bUp, USHORT nCnt ) #ifdef DBG_UTIL // JP 05.03.98: zum Testen des UNO-Crsr Verhaltens hier die Implementierung -// am sichtbaren Cursor +// am sichtbaren Cursor BOOL SwShellCrsr::IsSelOvr( int eFlags ) { @@ -894,7 +894,7 @@ SwShellTableCrsr::SwShellTableCrsr( const SwCrsrShell& rCrsrSh, SwShellTableCrsr::~SwShellTableCrsr() {} -void SwShellTableCrsr::SetMark() { SwShellCrsr::SetMark(); } +void SwShellTableCrsr::SetMark() { SwShellCrsr::SetMark(); } SwCursor* SwShellTableCrsr::Create( SwPaM* pRing ) const { @@ -991,7 +991,7 @@ BOOL SwShellTableCrsr::IsInside( const Point& rPt ) const #ifdef DBG_UTIL // JP 05.03.98: zum Testen des UNO-Crsr Verhaltens hier die Implementierung -// am sichtbaren Cursor +// am sichtbaren Cursor BOOL SwShellTableCrsr::IsSelOvr( int eFlags ) { return SwShellCrsr::IsSelOvr( eFlags ); |