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: editstt2.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 ************************************************************************/
34 #include <editstat.hxx>
36 class InternalEditStatus
: public EditStatus
40 InternalEditStatus() { ; }
42 void TurnOnFlags( ULONG nFlags
)
43 { nControlBits
|= nFlags
; }
45 void TurnOffFlags( ULONG nFlags
)
46 { nControlBits
&= ~nFlags
; }
48 void TurnOnStatusBits( ULONG nBits
)
49 { nStatusBits
|= nBits
; }
51 void TurnOffStatusBits( ULONG nBits
)
52 { nStatusBits
&= ~nBits
; }
55 BOOL
UseCharAttribs() const
56 { return ( ( nControlBits
& EE_CNTRL_USECHARATTRIBS
) != 0 ); }
58 BOOL
NotifyCursorMovements() const
59 { return ( ( nControlBits
& EE_CNTRL_CRSRLEFTPARA
) != 0 ); }
61 BOOL
UseIdleFormatter() const
62 { return ( ( nControlBits
& EE_CNTRL_DOIDLEFORMAT
) != 0 ); }
64 BOOL
AllowPasteSpecial() const
65 { return ( ( nControlBits
& EE_CNTRL_PASTESPECIAL
) != 0 ); }
67 BOOL
DoAutoIndenting() const
68 { return ( ( nControlBits
& EE_CNTRL_AUTOINDENTING
) != 0 ); }
70 BOOL
DoUndoAttribs() const
71 { return ( ( nControlBits
& EE_CNTRL_UNDOATTRIBS
) != 0 ); }
73 BOOL
OneCharPerLine() const
74 { return ( ( nControlBits
& EE_CNTRL_ONECHARPERLINE
) != 0 ); }
76 BOOL
IsOutliner() const
77 { return ( ( nControlBits
& EE_CNTRL_OUTLINER
) != 0 ); }
79 BOOL
IsOutliner2() const
80 { return ( ( nControlBits
& EE_CNTRL_OUTLINER2
) != 0 ); }
82 BOOL
IsAnyOutliner() const
83 { return IsOutliner() || IsOutliner2(); }
85 BOOL
DoNotUseColors() const
86 { return ( ( nControlBits
& EE_CNTRL_NOCOLORS
) != 0 ); }
88 BOOL
AllowBigObjects() const
89 { return ( ( nControlBits
& EE_CNTRL_ALLOWBIGOBJS
) != 0 ); }
91 BOOL
DoOnlineSpelling() const
92 { return ( ( nControlBits
& EE_CNTRL_ONLINESPELLING
) != 0 ); }
94 BOOL
DoStretch() const
95 { return ( ( nControlBits
& EE_CNTRL_STRETCHING
) != 0 ); }
97 BOOL
AutoPageSize() const
98 { return ( ( nControlBits
& EE_CNTRL_AUTOPAGESIZE
) != 0 ); }
99 BOOL
AutoPageWidth() const
100 { return ( ( nControlBits
& EE_CNTRL_AUTOPAGESIZEX
) != 0 ); }
101 BOOL
AutoPageHeight() const
102 { return ( ( nControlBits
& EE_CNTRL_AUTOPAGESIZEY
) != 0 ); }
104 BOOL
MarkFields() const
105 { return ( ( nControlBits
& EE_CNTRL_MARKFIELDS
) != 0 ); }
107 BOOL
DoRestoreFont() const
108 { return ( ( nControlBits
& EE_CNTRL_RESTOREFONT
) != 0 ); }
110 BOOL
DoImportRTFStyleSheets() const
111 { return ( ( nControlBits
& EE_CNTRL_RTFSTYLESHEETS
) != 0 ); }
113 BOOL
DoAutoCorrect() const
114 { return ( ( nControlBits
& EE_CNTRL_AUTOCORRECT
) != 0 ); }
116 BOOL
DoAutoComplete() const
117 { return ( ( nControlBits
& EE_CNTRL_AUTOCOMPLETE
) != 0 ); }
119 BOOL
DoTabIndenting() const
120 { return ( ( nControlBits
& EE_CNTRL_TABINDENTING
) != 0 ); }
122 BOOL
DoFormat100() const
123 { return ( ( nControlBits
& EE_CNTRL_FORMAT100
) != 0 ); }
125 BOOL
ULSpaceSummation() const
126 { return ( ( nControlBits
& EE_CNTRL_ULSPACESUMMATION
) != 0 ); }
128 BOOL
ULSpaceFirstParagraph() const
129 { return ( ( nControlBits
& EE_CNTRL_ULSPACEFIRSTPARA
) != 0 ); }
132 #endif // _EDITSTT2_HXX