1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: editstat.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
35 #include <tools/string.hxx>
38 #ifndef INCLUDED_I18NPOOL_LANG_H
39 #include <i18npool/lang.h>
43 #define EE_CNTRL_USECHARATTRIBS 0x00000001 // Verwendung harter ZeichenAttr.
44 #define EE_CNTRL_USEPARAATTRIBS 0x00000002 // Verwendung von AbsatzAttr.
45 #define EE_CNTRL_CRSRLEFTPARA 0x00000004 // Cursor ist in einen anderen Absatz gewandert
46 #define EE_CNTRL_DOIDLEFORMAT 0x00000008 // Idle-Formatierung
47 #define EE_CNTRL_PASTESPECIAL 0x00000010 // Allow PasteSpecial
48 #define EE_CNTRL_AUTOINDENTING 0x00000020 // Automatisches einruecken
49 #define EE_CNTRL_UNDOATTRIBS 0x00000040 // Undo fuer Attribute....
50 #define EE_CNTRL_ONECHARPERLINE 0x00000080 // Ein Zeichen pro Zeile
51 #define EE_CNTRL_NOCOLORS 0x00000100 // Engine: Keine Farben
52 #define EE_CNTRL_OUTLINER 0x00000200 // Sonderbehandlung Outliner/Gliederungsmodus
53 #define EE_CNTRL_OUTLINER2 0x00000400 // Sonderbehandlung Outliner/Seite
54 #define EE_CNTRL_ALLOWBIGOBJS 0x00000800 // PortionInfo in Textobjekten
55 #define EE_CNTRL_ONLINESPELLING 0x00001000 // Waehrend des editieren Spelling
56 #define EE_CNTRL_STRETCHING 0x00002000 // Stretch-Modus
57 #define EE_CNTRL_MARKFIELDS 0x00004000 // Felder farblich hinterlegen
58 #define EE_CNTRL_URLSFXEXECUTE 0x00008000 // !!!OLD!!!: SFX-URL-Execute.
59 #define EE_CNTRL_RESTOREFONT 0x00010000 // Font im OutDev restaurieren
60 #define EE_CNTRL_RTFSTYLESHEETS 0x00020000 // Stylesheets bei Import verwenden
61 #define EE_CNTRL_NOREDLINES 0x00040000 // Keine RedLines bei OnlineSpellError
62 #define EE_CNTRL_AUTOCORRECT 0x00080000 // AutoKorrektur
63 #define EE_CNTRL_AUTOCOMPLETE 0x00100000 // AutoComplete
64 #define EE_CNTRL_AUTOPAGESIZEX 0x00200000 // Papierbreite an Text anpassen
65 #define EE_CNTRL_AUTOPAGESIZEY 0x00400000 // Papierhoehe an Text anpassen
66 #define EE_CNTRL_AUTOPAGESIZE (EE_CNTRL_AUTOPAGESIZEX|EE_CNTRL_AUTOPAGESIZEY)
67 #define EE_CNTRL_TABINDENTING 0x00800000 // Einruecken mit Tab
68 #define EE_CNTRL_FORMAT100 0x01000000 // Immer nach 100% formatieren
69 #define EE_CNTRL_ULSPACESUMMATION 0x02000000 // MS Compat: SA und SB aufsummieren, nicht maximalwert
70 #define EE_CNTRL_ULSPACEFIRSTPARA 0x04000000 // MS Compat: SB auch beim ersten Absatz auswerten
72 #define EV_CNTRL_AUTOSCROLL 0x00000001 // Autom. Scrollen horiz.
73 #define EV_CNTRL_BIGSCROLL 0x00000002 // Weiter Scrollen, als nur zum Cursor
74 #define EV_CNTRL_ENABLEPASTE 0x00000004 // Paste erlauben
75 #define EV_CNTRL_SINGLELINEPASTE 0x00000008 // View: Paste in Eingabezeile...
76 #define EV_CNTRL_OVERWRITE 0x00000010 // Ueberschreibmodus
77 #define EV_CNTRL_INVONEMORE 0x00000020 // Ein Pixel mehr invalidieren
78 #define EV_CNTRL_AUTOSIZEX 0x00000040 // Automatisch an Textbreite anpassen
79 #define EV_CNTRL_AUTOSIZEY 0x00000080 // Automatisch an Texthoehe anpassen
80 #define EV_CNTRL_AUTOSIZE (EV_CNTRL_AUTOSIZEX|EV_CNTRL_AUTOSIZEY)
82 #define EE_STAT_HSCROLL 0x00000001
83 #define EE_STAT_VSCROLL 0x00000002
84 #define EE_STAT_CURSOROUT 0x00000004
85 #define EE_STAT_CRSRMOVEFAIL 0x00000008
86 #define EE_STAT_CRSRLEFTPARA 0x00000010
87 #define EE_STAT_TEXTWIDTHCHANGED 0x00000020
88 #define EE_STAT_TEXTHEIGHTCHANGED 0x00000040
89 #define EE_STAT_WRONGWORDCHANGED 0x00000080
90 // #define EE_STAT_MODIFIED 0x00000100
93 #define EE_CNTRL_AUTOCENTER EE_CNTRL_AUTOPAGESIZE
94 #define EE_STAT_GROWY EE_STAT_TEXTHEIGHTCHANGED
97 EE_STAT_CRSRLEFTPARA zur Zeit bei Cursorbewegungen und Return.
100 inline void SetFlags( ULONG
& rBits
, const ULONG nMask
, FASTBOOL bOn
)
113 USHORT nPrevPara
; // fuer EE_STAT_CRSRLEFTPARA
116 EditStatus() { nStatusBits
= 0; nControlBits
= 0; nPrevPara
= 0xFFFF; }
118 void Clear() { nStatusBits
= 0; }
119 void SetControlBits( ULONG nMask
, FASTBOOL bOn
)
120 { SetFlags( nControlBits
, nMask
, bOn
); }
122 ULONG
GetStatusWord() const { return nStatusBits
; }
123 ULONG
& GetStatusWord() { return nStatusBits
; }
125 ULONG
GetControlWord() const { return nControlBits
; }
126 ULONG
& GetControlWord() { return nControlBits
; }
128 USHORT
GetPrevParagraph() const { return nPrevPara
; }
129 USHORT
& GetPrevParagraph() { return nPrevPara
; }
132 #define SPELLCMD_IGNOREWORD 0x0001
133 #define SPELLCMD_STARTSPELLDLG 0x0002
134 #define SPELLCMD_ADDTODICTIONARY 0x0003
135 #define SPELLCMD_WORDLANGUAGE 0x0004
136 #define SPELLCMD_PARALANGUAGE 0x0005
138 struct SpellCallbackInfo
142 LanguageType eLanguage
;
144 SpellCallbackInfo( USHORT nCMD
, const String
& rWord
)
148 eLanguage
= LANGUAGE_DONTKNOW
;
151 SpellCallbackInfo( USHORT nCMD
, LanguageType eLang
)
158 }//end of namespace binfilter
159 #endif // _EDITSTAT_HXX