PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/externals/GData/Source/Clients/Spreadsheets/GDataSpreadsheetCell.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 66 lines | 29 code | 15 blank | 22 comment | 1 complexity | 7bd34e4b3cbde5a38ea73cd64084566c MD5 | raw file
 1/* Copyright (c) 2007 Google Inc.
 2*
 3* Licensed under the Apache License, Version 2.0 (the "License");
 4* you may not use this file except in compliance with the License.
 5* You may obtain a copy of the License at
 6*
 7*     http://www.apache.org/licenses/LICENSE-2.0
 8*
 9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15
16//
17//  GDataSpreadsheetCell.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE
21
22#import "GDataObject.h"
23
24// For spreadsheet cells like:
25//   <gs:cell row="2" col="4" inputValue="=FLOOR(R[0]C[-1]/(R[0]C[-2]*60),.0001)"
26//            numericValue="0.0033">0.0033</gs:cell>
27//
28// http://code.google.com/apis/spreadsheets/reference.html#gs_reference
29
30@interface GDataSpreadsheetCell : GDataObject <NSCopying, GDataExtension> {
31  NSInteger row_;
32  NSInteger column_;
33  NSString *inputString_;
34  NSNumber *numericValue_;
35  NSString *resultString_;
36}
37
38+ (GDataSpreadsheetCell *)cellWithRow:(NSInteger)row
39                               column:(NSInteger)column
40                          inputString:(NSString *)inputStr
41                         numericValue:(NSNumber *)numericValue
42                         resultString:(NSString *)resultStr;
43
44- (id)initWithXMLElement:(NSXMLElement *)element
45                  parent:(GDataObject *)parent;
46
47- (NSXMLElement *)XMLElement;
48
49- (NSInteger)row;
50- (void)setRow:(NSInteger)row;
51
52- (NSInteger)column;
53- (void)setColumn:(NSInteger)column;
54
55- (NSString *)inputString;
56- (void)setInputString:(NSString *)str;
57
58- (NSNumber *)numericValue;
59- (void)setNumericValue:(NSNumber *)num;
60
61- (NSString *)resultString;
62- (void)setResultString:(NSString *)str;
63
64@end
65
66#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE