-
Notifications
You must be signed in to change notification settings - Fork 3
/
MCCWebScriptPageController.h
46 lines (34 loc) · 1.78 KB
/
MCCWebScriptPageController.h
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
//
// MCCWebScriptPageController.h
// MailCommon
//
// Created by smorr on 2013-09-24.
// Copyright (c) 2013 Indev Software. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
#include "MCCCommonHeader.h"
#import "MCCWebScriptWindowController.h"
@interface MCC_PREFIXED_NAME(WebScriptPageController) : NSObject
@property (retain) WebView *webView;
@property (readonly) MCC_PREFIXED_NAME(WebScriptWindowController)* windowController;
@property (readonly) NSWindow * window;
- (void)localizePrefixedElementsWithStringsFromTable:(NSString *)table;
-(void)localizeElementID:(NSString*)elementID usingStringsTable:(NSString*)table;
-(void)localizeElementID:(NSString*)elementID withString:(NSString*)unlocalizedString fromTable:(NSString*)table;
- (NSString*)contentOfElementId:(NSString*)pageObjectID;
- (void)setContentOfElementId:(NSString*)pageObjectID toString:(NSString*)string;
- (NSString*)imagePathOnElementId:(NSString*)pageObjectID;
- (void)setImagePath:(NSString*)path onElementId:(NSString*)pageObjectID;
- (NSString*)htmlOfElementId:(NSString*)pageObjectID;
- (void)setHtmlOfElementId:(NSString*)pageObjectID toString:(NSString*)string;
- (void)setHtmlOfElementId:(NSString*)pageObjectID toNode:(DOMHTMLElement*)element;
- (void)replaceElementId:(NSString *)objectID withHTML:(NSString *)html;
- (void)setDisabled:(BOOL)enabled onElementId:(NSString *)pageObjectID;
- (BOOL)disabledOnElementId:(NSString *)pageObjectID;
- (void)setHidden:(BOOL)hidden onElementId:(NSString *)pageObjectID;
- (BOOL)hiddenOnElementId:(NSString *)pageObjectID;
- (void)setAttributeValue:(NSString *)attrValue forName:(NSString *)attrName onElementId:(NSString *)pageObjectID;
- (BOOL)attributeValueForName:(NSString *)attrName onElementId:(NSString *)pageObjectID;
-(void)initPage;
@end