File: Preferences.h

package info (click to toggle)
textedit.app 5.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,308 kB
  • sloc: objc: 2,863; makefile: 14
file content (31 lines) | stat: -rw-r--r-- 872 bytes parent folder | download | duplicates (2)
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
#import <Cocoa/Cocoa.h>

enum {
    HTMLDocumentTypeOptionUseTransitional = (1 << 0),
    HTMLDocumentTypeOptionUseXHTML = (1 << 1)
};
typedef NSUInteger HTMLDocumentTypeOptions;

enum {
    HTMLStylingUseEmbeddedCSS = 0,
    HTMLStylingUseInlineCSS = 1,
    HTMLStylingUseNoCSS = 2
};
typedef NSInteger HTMLStylingMode;

@interface Preferences : NSWindowController {
    BOOL changingRTFFont;
    NSInteger originalDimensionFieldValue;
}
- (IBAction)revertToDefault:(id)sender;    

- (IBAction)changeRichTextFont:(id)sender;	/* Request to change the rich text font */
- (IBAction)changePlainTextFont:(id)sender;	/* Request to change the plain text font */
- (void)changeFont:(id)fontManager;	/* Sent by the font manager */

- (NSFont *)richTextFont;
- (void)setRichTextFont:(NSFont *)newFont;
- (NSFont *)plainTextFont;
- (void)setPlainTextFont:(NSFont *)newFont;

@end