From d8da22e3984f053452f964347f070381f8279d2e Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Thu, 1 Aug 2002 10:45:42 +0000 Subject: #99985# text selection in readonly documents --- sw/inc/cmdid.h | 6 +++--- sw/inc/viewopt.hxx | 8 ++++++-- sw/inc/viewsh.hxx | 5 +++-- 3 files changed, 12 insertions(+), 7 deletions(-) (limited to 'sw/inc') diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h index cd7c517b8ed2..ebcb969b17ee 100644 --- a/sw/inc/cmdid.h +++ b/sw/inc/cmdid.h @@ -2,9 +2,9 @@ * * $RCSfile: cmdid.h,v $ * - * $Revision: 1.34 $ + * $Revision: 1.35 $ * - * last change: $Author: os $ $Date: 2002-07-04 14:40:40 $ + * last change: $Author: os $ $Date: 2002-08-01 11:43:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -992,7 +992,7 @@ Achtung: Ab sofort sind in diesem File keine C++-Kommentare (//) mehr #define FN_NEXT_TBLFML_ERR (FN_SELECTION + 87) /* zur naechsten fehl. Tabellenformel */ #define FN_PREV_TBLFML_ERR (FN_SELECTION + 88) /* zur vorherigen fehl. Tabellenformel */ - +#define FN_READONLY_SELECTION_MODE (FN_SELECTION + 89) /* switches text selection mode in readonly documents*/ /*-------------------------------------------------------------------- QUERY-Block --------------------------------------------------------------------*/ diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx index a52bf8359c10..7fd691cc4e9e 100644 --- a/sw/inc/viewopt.hxx +++ b/sw/inc/viewopt.hxx @@ -2,9 +2,9 @@ * * $RCSfile: viewopt.hxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: os $ $Date: 2002-07-31 12:49:11 $ + * last change: $Author: os $ $Date: 2002-08-01 11:45:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -194,6 +194,7 @@ protected: BOOL bReadonly : 1; // Readonly-Doc BOOL bStarOneSetting : 1;// prevent from UI automatics (no scrollbars in readonly documents) BOOL bIsPagePreview : 1; // the preview mustn't print field/footnote/... shadings + BOOL bSelectionInReadonly : 1; //determines whether selection is switched on in readonly documents // Maszstab USHORT nZoom; // Angaben in Prozent @@ -444,6 +445,9 @@ public: BOOL IsReadonly() const { return bReadonly; } void SetReadonly(BOOL bSet) { bReadonly = bSet; } + BOOL IsSelectionInReadonly() const {return bSelectionInReadonly;} + void SetSelectionInReadonly(BOOL bSet) {bSelectionInReadonly = bSet;} + BOOL IsAutoCompleteWords() const; diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 689af8366dae..78ff38f8ebfb 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -2,9 +2,9 @@ * * $RCSfile: viewsh.hxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: mib $ $Date: 2002-05-29 14:59:50 $ + * last change: $Author: os $ $Date: 2002-08-01 11:45:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -334,6 +334,7 @@ public: void SetUIOptions( const SwViewOption &rOpt ); void SetReadonlyOption(sal_Bool bSet); // Readonly-Bit d. ViewOptions setzen void SetPrtFormatOption(sal_Bool bSet); // PrtFormat-Bit d. ViewOptions setzen + void SetReadonlySelectionOption(sal_Bool bSet);//change the selection mode in readonly docs static void SetShellRes( ShellResource* pRes ) { pShellRes = pRes; } static ShellResource* GetShellRes() { return pShellRes; } -- cgit