OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ | 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ |
8 #define FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ | 8 #define FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ |
9 | 9 |
10 #include "JS_Define.h" | 10 #include "JS_Define.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 }; | 45 }; |
46 | 46 |
47 class IconTree { | 47 class IconTree { |
48 public: | 48 public: |
49 IconTree() : m_pHead(NULL), m_pEnd(NULL), m_iLength(0) {} | 49 IconTree() : m_pHead(NULL), m_pEnd(NULL), m_iLength(0) {} |
50 | 50 |
51 virtual ~IconTree() {} | 51 virtual ~IconTree() {} |
52 | 52 |
53 public: | 53 public: |
54 void InsertIconElement(IconElement* pNewIcon); | 54 void InsertIconElement(IconElement* pNewIcon); |
55 void DeleteIconElement(CFX_WideString swIconName); | |
56 void DeleteIconTree(); | 55 void DeleteIconTree(); |
57 int GetLength(); | 56 int GetLength(); |
58 IconElement* operator[](int iIndex); | 57 IconElement* operator[](int iIndex); |
59 | 58 |
60 private: | 59 private: |
61 IconElement* m_pHead; | 60 IconElement* m_pHead; |
62 IconElement* m_pEnd; | 61 IconElement* m_pEnd; |
63 int m_iLength; | 62 int m_iLength; |
64 }; | 63 }; |
65 | 64 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 JS_STATIC_METHOD(removeField, Document); | 381 JS_STATIC_METHOD(removeField, Document); |
383 JS_STATIC_METHOD(replacePages, Document); | 382 JS_STATIC_METHOD(replacePages, Document); |
384 JS_STATIC_METHOD(removeIcon, Document); | 383 JS_STATIC_METHOD(removeIcon, Document); |
385 JS_STATIC_METHOD(resetForm, Document); | 384 JS_STATIC_METHOD(resetForm, Document); |
386 JS_STATIC_METHOD(saveAs, Document); | 385 JS_STATIC_METHOD(saveAs, Document); |
387 JS_STATIC_METHOD(submitForm, Document); | 386 JS_STATIC_METHOD(submitForm, Document); |
388 JS_STATIC_METHOD(mailDoc, Document); | 387 JS_STATIC_METHOD(mailDoc, Document); |
389 }; | 388 }; |
390 | 389 |
391 #endif // FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ | 390 #endif // FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ |
OLD | NEW |