1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
|
/*************************************************************************
*
* $RCSfile: move.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:14:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#ifdef PRECOMPILED
#include "ui_pch.hxx"
#endif
#pragma hdrstop
#ifndef _SFX_BINDINGS_HXX //autogen
#include <sfx2/bindings.hxx>
#endif
#ifndef _WRTSH_HXX
#include <wrtsh.hxx>
#endif
#ifndef _VIEW_HXX
#include <view.hxx>
#endif
#ifndef _VIEWOPT_HXX
#include <viewopt.hxx>
#endif
#ifndef _SFXVIEWFRM_HXX
#include <sfx2/viewfrm.hxx>
#endif
/* Immer:
- Zuruecksetzen des Cursorstacks
- Timer nachtriggern
- gfs. GCAttr
bei Selektion
- SttSelect()
sonst
- EndSelect()
*/
const long nReadOnlyScrollOfst = 10;
class ShellMoveCrsr
{
SwWrtShell* pSh;
BOOL bAct;
public:
inline ShellMoveCrsr( SwWrtShell* pWrtSh, FASTBOOL bSel )
{
bAct = !pWrtSh->ActionPend() && (pWrtSh->GetFrmType(0,FALSE) & FRMTYPE_FLY_ANY);
( pSh = pWrtSh )->MoveCrsr( BOOL(bSel) );
pWrtSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_HYPERLINK_GETLINK);
}
inline ~ShellMoveCrsr()
{
if( bAct )
{
//Die Action wird fuer das Scrollen in "einabsaetzigen" Rahmen mit
//fester Hoehe gebraucht.
pSh->StartAllAction();
pSh->EndAllAction();
}
}
};
void SwWrtShell::MoveCrsr( FASTBOOL bWithSelect )
{
ResetCursorStack();
if ( IsGCAttr() )
{
GCAttr();
ClearGCAttr();
}
if ( bWithSelect )
SttSelect();
else
{
EndSelect();
(this->*fnKillSel)( 0, FALSE );
}
}
FASTBOOL SwWrtShell::SimpleMove( FNSimpleMove FnSimpleMove, FASTBOOL bSelect )
{
FASTBOOL nRet;
if( bSelect )
{
SttCrsrMove();
MoveCrsr( TRUE );
nRet = (this->*FnSimpleMove)();
EndCrsrMove();
}
else if( 0 != ( nRet = (this->*FnSimpleMove)() ) )
MoveCrsr( FALSE );
return nRet;
}
FASTBOOL SwWrtShell::Left( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
{
if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.X() -= VisArea().Width() * nReadOnlyScrollOfst / 100;
rView.SetVisArea( aTmp );
return TRUE;
}
else
{
ShellMoveCrsr aTmp( this, bSelect );
return SwCrsrShell::Left( nCount );
}
}
FASTBOOL SwWrtShell::Right( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
{
if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.X() += VisArea().Width() * nReadOnlyScrollOfst / 100;
aTmp.X() = rView.SetHScrollMax( aTmp.X() );
rView.SetVisArea( aTmp );
return TRUE;
}
else
{
ShellMoveCrsr aTmp( this, bSelect );
return SwCrsrShell::Right( nCount );
}
}
FASTBOOL SwWrtShell::Up( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
{
if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.Y() -= VisArea().Height() * nReadOnlyScrollOfst / 100;
rView.SetVisArea( aTmp );
return TRUE;
}
else
{
ShellMoveCrsr aTmp( this, bSelect );
return SwCrsrShell::Up( nCount );
}
}
FASTBOOL SwWrtShell::Down( FASTBOOL bSelect, USHORT nCount, BOOL bBasicCall )
{
if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.Y() += VisArea().Height() * nReadOnlyScrollOfst / 100;
aTmp.Y() = rView.SetVScrollMax( aTmp.Y() );
rView.SetVisArea( aTmp );
return TRUE;
}
else
{
ShellMoveCrsr aTmp( this, bSelect );
return SwCrsrShell::Down( nCount );
}
}
FASTBOOL SwWrtShell::LeftMargin( FASTBOOL bSelect, FASTBOOL bBasicCall )
{
if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.X() = DOCUMENTBORDER;
rView.SetVisArea( aTmp );
return TRUE;
}
else
{
ShellMoveCrsr aTmp( this, bSelect );
return SwCrsrShell::LeftMargin();
}
}
FASTBOOL SwWrtShell::RightMargin( FASTBOOL bSelect, FASTBOOL bBasicCall )
{
if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.X() = GetDocSize().Width() - VisArea().Width() + DOCUMENTBORDER;
if( DOCUMENTBORDER > aTmp.X() )
aTmp.X() = DOCUMENTBORDER;
rView.SetVisArea( aTmp );
return TRUE;
}
else
{
ShellMoveCrsr aTmp( this, bSelect );
return SwCrsrShell::RightMargin(bBasicCall);
}
}
BOOL SwWrtShell::GoStart( BOOL bKeepArea, BOOL *pMoveTable,
BOOL bSelect, BOOL bDontMoveRegion )
{
if ( IsCrsrInTbl() )
{
const BOOL bBoxSelection = HasBoxSelection();
if ( !bSelect )
EnterStdMode();
else
SttSelect();
// Tabellenzelle?
if ( !bBoxSelection && (MoveSection( fnSectionCurr, fnSectionStart)
|| bDontMoveRegion))
{
if ( pMoveTable )
*pMoveTable = FALSE;
return TRUE;
}
if( MoveTable( fnTableCurr, fnTableStart ) || bDontMoveRegion )
{
if ( pMoveTable )
*pMoveTable = TRUE;
return TRUE;
}
else if( bBoxSelection && pMoveTable )
{
// JP 09.01.96: wir haben eine Boxselektion (oder leere Zelle)
// und wollen selektieren (pMoveTable wird im
// SelAll gesetzt). Dann darf die Tabelle nicht
// verlassen werden; sonst ist keine Selektion der
// gesamten Tabelle moeglich!
*pMoveTable = TRUE;
return TRUE;
}
}
if ( !bSelect )
EnterStdMode();
else
SttSelect();
const USHORT nFrmType = GetFrmType(0,FALSE);
if ( FRMTYPE_FLY_ANY & nFrmType )
{
if( MoveSection( fnSectionCurr, fnSectionStart ) )
return TRUE;
else if ( FRMTYPE_FLY_FREE & nFrmType || bDontMoveRegion )
return FALSE;
}
if(( FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FOOTNOTE ) & nFrmType )
{
if ( MoveSection( fnSectionCurr, fnSectionStart ) )
return TRUE;
else if ( bKeepArea )
return TRUE;
}
// Bereiche ???
return SwCrsrShell::MoveRegion( fnRegionCurrAndSkip, fnRegionStart ) ||
SwCrsrShell::SttDoc();
}
BOOL SwWrtShell::GoEnd(BOOL bKeepArea, BOOL *pMoveTable)
{
if ( pMoveTable && *pMoveTable )
return MoveTable( fnTableCurr, fnTableEnd );
if ( IsCrsrInTbl() )
{
if ( MoveSection( fnSectionCurr, fnSectionEnd ) ||
MoveTable( fnTableCurr, fnTableEnd ) )
return TRUE;
}
else
{
const USHORT nFrmType = GetFrmType(0,FALSE);
if ( FRMTYPE_FLY_ANY & nFrmType )
{
if ( MoveSection( fnSectionCurr, fnSectionEnd ) )
return TRUE;
else if ( FRMTYPE_FLY_FREE & nFrmType )
return FALSE;
}
if(( FRMTYPE_HEADER | FRMTYPE_FOOTER | FRMTYPE_FOOTNOTE ) & nFrmType )
{
if ( MoveSection( fnSectionCurr, fnSectionEnd) )
return TRUE;
else if ( bKeepArea )
return TRUE;
}
}
// Bereiche ???
return SwCrsrShell::MoveRegion( fnRegionCurrAndSkip, fnRegionEnd ) ||
SwCrsrShell::EndDoc();
}
FASTBOOL SwWrtShell::SttDoc( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return GoStart(FALSE, 0, bSelect );
}
FASTBOOL SwWrtShell::EndDoc( FASTBOOL bSelect)
{
ShellMoveCrsr aTmp( this, bSelect );
return GoEnd();
}
FASTBOOL SwWrtShell::SttNxtPg( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePage( fnPageNext, fnPageStart );
}
FASTBOOL SwWrtShell::SttPrvPg( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePage( fnPagePrev, fnPageStart );
}
FASTBOOL SwWrtShell::EndNxtPg( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePage( fnPageNext, fnPageEnd );
}
FASTBOOL SwWrtShell::EndPrvPg( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePage( fnPagePrev, fnPageEnd );
}
FASTBOOL SwWrtShell::SttPg( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePage( fnPageCurr, fnPageStart );
}
FASTBOOL SwWrtShell::EndPg( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePage( fnPageCurr, fnPageEnd );
}
FASTBOOL SwWrtShell::SttPara( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePara( fnParaCurr, fnParaStart );
}
FASTBOOL SwWrtShell::EndPara( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect );
return MovePara(fnParaCurr,fnParaEnd);
}
/*------------------------------------------------------------------------
Beschreibung: Spaltenweises Springen
Parameter: mit oder ohne SSelection
Return: Erfolg oder Misserfolg
------------------------------------------------------------------------*/
FASTBOOL SwWrtShell::StartOfColumn( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect);
return MoveColumn(fnColumnCurr, fnColumnStart);
}
FASTBOOL SwWrtShell::EndOfColumn( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect);
return MoveColumn(fnColumnCurr, fnColumnEnd);
}
FASTBOOL SwWrtShell::StartOfNextColumn( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect);
return MoveColumn( fnColumnNext, fnColumnStart);
}
FASTBOOL SwWrtShell::EndOfNextColumn( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect);
return MoveColumn(fnColumnNext, fnColumnEnd);
}
FASTBOOL SwWrtShell::StartOfPrevColumn( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect);
return MoveColumn(fnColumnPrev, fnColumnStart);
}
FASTBOOL SwWrtShell::EndOfPrevColumn( FASTBOOL bSelect )
{
ShellMoveCrsr aTmp( this, bSelect);
return MoveColumn(fnColumnPrev, fnColumnEnd);
}
BOOL SwWrtShell::PushCrsr(SwTwips lOffset, BOOL bSelect)
{
BOOL bDiff = FALSE;
SwRect aOldRect( GetCharRect() ), aTmpArea( VisArea() );
//bDestOnStack besagt, ob ich den Cursor nicht an die aktuelle Position
//setzen konnte, da in diesem Bereich kein Inhalt vorhanden ist.
if( !bDestOnStack )
{
Point aPt( aOldRect.Center() );
if( !IsCrsrVisible() )
// set CrsrPos to top-/bottom left pos. So the pagescroll is not
// be dependent on the current cursor, but on the visarea.
aPt.Y() = aTmpArea.Top() + aTmpArea.Height() / 2;
aPt.Y() += lOffset;
aDest = GetCntntPos(aPt,lOffset > 0);
aDest.X() = aPt.X();
bDestOnStack = TRUE;
}
//falls wir eine Rahmenselektion hatten, muss diese nach dem
//fnSetCrsr entfernt werden und damit wir da wieder hinkommen
//auf dem Stack gemerkt werden.
BOOL bIsFrmSel = FALSE;
BOOL bIsObjSel = FALSE;
//Zielposition liegt jetzt innerhalb des sichtbaren Bereiches -->
//Cursor an die Zielposition setzen; merken, dass keine Ziel-
//position mehr auf dem Stack steht.
//Der neue sichtbare Bereich wird zuvor ermittelt.
aTmpArea.Pos().Y() += lOffset;
if( aTmpArea.IsInside(aDest) )
{
if( bSelect )
SttSelect();
else
EndSelect();
bIsFrmSel = IsFrmSelected();
bIsObjSel = 0 != IsObjSelected();
// Rahmenselektion aufheben
if( bIsFrmSel || bIsObjSel )
{
UnSelectFrm();
LeaveSelFrmMode();
if ( bIsObjSel )
{
GetView().SetDrawFuncPtr( NULL );
GetView().LeaveDrawCreate();
}
CallChgLnk();
}
(this->*fnSetCrsr)( &aDest, TRUE );
bDiff = aOldRect != GetCharRect();
if( bIsFrmSel )
{
// CallChgLnk();
// bei Frames immer nur die obere Ecke nehmen, damit dieser
// wieder selektiert werden kann
aOldRect.SSize( 5, 5 );
}
// Zuruecksetzen des Dest. SPoint Flags
bDestOnStack = FALSE;
}
// Position auf den Stack; bDiff besagt, ob ein Unterschied zwischen
// der alten und der neuen Cursorposition besteht.
pCrsrStack = new CrsrStack( bDiff, bIsFrmSel, aOldRect.Center(),
lOffset, pCrsrStack );
return !bDestOnStack && bDiff;
}
BOOL SwWrtShell::PopCrsr(BOOL bUpdate, BOOL bSelect)
{
if( 0 == pCrsrStack)
return FALSE;
const BOOL bValidPos = pCrsrStack->bValidCurPos;
if( bUpdate && bValidPos )
{
// falls ein Vorgaenger auf dem Stack steht, dessen Flag fuer eine
// gueltige Position verwenden.
SwRect aTmpArea(VisArea());
aTmpArea.Pos().Y() -= pCrsrStack->lOffset;
if( aTmpArea.IsInside( pCrsrStack->aDocPos ) )
{
if( bSelect )
SttSelect();
else
EndSelect();
(this->*fnSetCrsr)(&pCrsrStack->aDocPos, !pCrsrStack->bIsFrmSel);
if( pCrsrStack->bIsFrmSel && IsObjSelectable(pCrsrStack->aDocPos))
{
HideCrsr();
SelectObj( pCrsrStack->aDocPos );
EnterSelFrmMode( &pCrsrStack->aDocPos );
}
}
// Falls eine Verschiebung zwischen dem sichtbaren Bereich
// und der gemerkten Cursorpositionen auftritt, werden
// alle gemerkten Positionen weggeschmissen
else
{
_ResetCursorStack();
return FALSE;
}
}
CrsrStack *pTmp = pCrsrStack;
pCrsrStack = pCrsrStack->pNext;
delete pTmp;
if( 0 == pCrsrStack )
{
ePageMove = MV_NO;
bDestOnStack = FALSE;
}
return bValidPos;
}
/*
* Zuruecksetzen aller gepushten Cursorpositionen; dieser werden nicht
* zur Anzeige gebracht ( --> Kein Start-/EndAction!!)
*/
void SwWrtShell::_ResetCursorStack()
{
CrsrStack *pTmp = pCrsrStack;
while(pCrsrStack)
{
pTmp = pCrsrStack->pNext;
delete pCrsrStack;
pCrsrStack = pTmp;
}
ePageMove = MV_NO;
bDestOnStack = FALSE;
}
/**************
falls kein Stack existiert --> Selektionen aufheben
falls Stack && Richtungswechsel
--> Cursor poppen und return
sonst
--> Cursor pushen
Cursor umsetzen
***************/
BOOL SwWrtShell::PageCrsr(SwTwips lOffset, BOOL bSelect)
{
// nichts tun, wenn ein Offset von 0 angegeben wurde
if(!lOffset) return FALSE;
// Diente mal dazu, eine Neuformatierung fuer das Layout
// zu erzwingen.
// Hat so nicht funktioniert, da der Cursor nicht gesetzt
// wurde, da dies innerhalb einer Start- / EndActionklammerung
// nicht geschieht.
// Da am Ende nur ViewShell::EndAction() gerufen wird,
// findet auch hier keine Aktualisierung der Anzeige
// der Cursorposition statt.
// Die CrsrShell- Actionklammerung kann nicht verwendet werden,
// da sie immer zu einer Anzeige des Cursors fuehrt, also auch,
// wenn nach dem Blaettern in einen Bereich ohne gueltige Position
// geblaettert wurde.
// ViewShell::StartAction();
PageMove eDir = lOffset > 0? MV_PAGE_DOWN: MV_PAGE_UP;
// Richtungswechsel und Stack vorhanden
if( eDir != ePageMove && ePageMove != MV_NO && PopCrsr( TRUE, bSelect ))
return TRUE;
const BOOL bRet = PushCrsr(lOffset, bSelect);
ePageMove = eDir;
return bRet;
}
BOOL SwWrtShell::GotoPage(USHORT nPage, BOOL bRecord)
{
ShellMoveCrsr aTmp( this, FALSE);
if( SwCrsrShell::GotoPage(nPage) && bRecord)
{
if(IsSelFrmMode())
{
UnSelectFrm();
LeaveSelFrmMode();
}
return TRUE;
}
return FALSE;
}
FASTBOOL SwWrtShell::GotoBookmark( USHORT nPos, BOOL bSelect, BOOL bStart )
{
ShellMoveCrsr aTmp( this, bSelect );
return SwCrsrShell::GotoBookmark( nPos, bStart );
}
FASTBOOL SwWrtShell::SelectTxtAttr( USHORT nWhich, const SwTxtAttr* pAttr )
{
ShellMoveCrsr aTmp( this, TRUE );
return SwCrsrShell::SelectTxtAttr( nWhich, FALSE, pAttr );
}
/*************************************************************************
$Log: not supported by cvs2svn $
Revision 1.100 2000/09/18 16:06:26 willem.vandorp
OpenOffice header added.
Revision 1.99 2000/09/07 15:59:35 os
change: SFX_DISPATCHER/SFX_BINDINGS removed
Revision 1.98 2000/06/27 19:42:49 jp
Bug #70447#: select the current TOXMark if the EditDialog is open
Revision 1.97 1999/10/12 07:24:36 os
#69115# API parameter in GotoLeftRight/LRMargin
Revision 1.96 1999/10/06 12:58:10 jp
PushCrsr: if cursor not in visarea, thne use the visarea for new position
Revision 1.95 1998/11/27 13:59:32 AMA
Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
Rev 1.94 27 Nov 1998 14:59:32 AMA
Fix #59951#59825#: Unterscheiden zwischen Rahmen-,Seiten- und Bereichsspalten
Rev 1.93 14 Jun 1998 13:46:24 MA
ein paar inlines mittels function pointer
Rev 1.92 04 May 1998 18:00:20 JP
Bug #49993#: IsSelOver darf nicht immer den Cursor verschieben; GotoBookmark mit ReturntWert
Rev 1.91 12 Feb 1998 20:12:22 JP
Left-/RightMargin: zus. Flag fuer BasicCall, im ReadOnlyCall an Anfang/Ende des Randes scrollen
Rev 1.90 24 Nov 1997 14:35:06 MA
includes
Rev 1.89 03 Nov 1997 14:02:54 MA
precomp entfernt
Rev 1.88 29 Jul 1997 09:24:26 OM
Hyperlink Statusmethode
Rev 1.87 12 Jun 1997 11:20:20 MA
chg: CursorTimer vorlaeufig entfernt
Rev 1.86 29 Apr 1997 16:30:56 AMA
New: Scrolling bei abgeschnittenen Absaetzen in Rahmen mit fester Hoehe.
Rev 1.85 06 Mar 1997 12:27:28 JP
Left/Right/Up/Down: bei API-Calls in ReadOnly Docs normale verhalten
Rev 1.84 18 Feb 1997 13:40:44 MA
new: Rahmen im Readonly editierbar
Rev 1.83 21 Nov 1996 16:48:52 AMA
Fix #33452#: Das GCAttr-Flag wandert von der WriterShell in die CrsrShell
Rev 1.82 30 Oct 1996 10:14:50 JP
Bug #32859#: PushCrsr - Rahmenselektin aufheben; PopCrsr: Rahmenselektion wieder erzeugen
Rev 1.81 01 Oct 1996 16:55:32 OM
Hyperlinks editieren
Rev 1.80 24 Sep 1996 12:33:38 MA
chg: Travelling fuer ReadOnly
Rev 1.79 29 Aug 1996 09:26:02 OS
includes
Rev 1.78 16 Aug 1996 10:26:08 OS
richtiges Verhalten bei SelAll
Rev 1.77 08 Aug 1996 15:51:50 JP
neu: SelectTextAttr - vom Attribut umspannten Bereich Selectieren
Rev 1.76 15 Jul 1996 16:31:54 OM
Bei Selektionsaenderung Slot invalidieren
Rev 1.75 10 May 1996 15:55:22 OS
GotoBookmark markiert jetzt immer bug #27690#
Rev 1.74 08 May 1996 12:58:44 OS
neu: GotoBookmark mit Select- und Start Flag
Rev 1.73 09 Jan 1996 09:46:58 JP
GoStart: an Dok-Anfang springen, wenn die 1. Box leer ist!
Rev 1.72 22 Dec 1995 20:17:38 JP
Bug 22611: Rahmenselecktion wird verlassen/wiederhergestellt - dadurch die richtigen Shells!
Rev 1.71 24 Nov 1995 16:59:08 OM
PCH->PRECOMPILED
Rev 1.70 23 Nov 1995 19:50:54 OS
+Fwd/BwdPara
Rev 1.69 30 Oct 1995 18:43:08 OS
Select-Param im EndPg auch auswerten
*************************************************************************/
|