Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cjs_icon.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FXJS_CJS_ICON_H_
8#define FXJS_CJS_ICON_H_
9
10#include "fxjs/cjs_object.h"
11#include "fxjs/js_define.h"
12
13class CJS_Icon final : public CJS_Object {
14 public:
15 static uint32_t GetObjDefnID();
16 static void DefineJSObjects(CFXJS_Engine* pEngine);
17
18 CJS_Icon(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
19 ~CJS_Icon() override;
20
21 WideString GetIconName() const { return m_swIconName; }
22 void SetIconName(WideString name) { m_swIconName = name; }
23
24 JS_STATIC_PROP(name, name, CJS_Icon)
25
26 private:
27 static uint32_t ObjDefnID;
28 static const char kName[];
29 static const JSPropertySpec PropertySpecs[];
30
31 CJS_Result get_name(CJS_Runtime* pRuntime);
32 CJS_Result set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
33
34 WideString m_swIconName;
35};
36
37#endif // FXJS_CJS_ICON_H_
@ FXJSOBJTYPE_GLOBAL
void DoFieldDelay(const WideString &sFieldName, int nControlIndex)
CJS_Document(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
void SetFormFillEnv(CPDFSDK_FormFillEnvironment *pFormFillEnv)
~CJS_Document() override
void AddDelayData(std::unique_ptr< CJS_DelayData > pData)
static uint32_t GetObjDefnID()
static void DefineJSObjects(CFXJS_Engine *pEngine)
CJS_Icon(v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
Definition cjs_icon.cpp:27
void SetIconName(WideString name)
Definition cjs_icon.h:22
~CJS_Icon() override
WideString GetIconName() const
Definition cjs_icon.h:21
static uint32_t GetObjDefnID()
Definition cjs_icon.cpp:16
static void DefineJSObjects(CFXJS_Engine *pEngine)
Definition cjs_icon.cpp:21
static void DefineProps(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSPropertySpec > consts)
CJS_Runtime * GetRuntime() const
Definition cjs_object.h:54
static void DefineMethods(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSMethodSpec > consts)
static CJS_Result Success()
Definition cjs_result.h:27
static CJS_Result Failure(JSMessage id)
Definition cjs_result.h:34
static CJS_Result Failure(const WideString &str)
Definition cjs_result.h:31
void BeginBlock()
Definition cjs_runtime.h:47
void EndBlock()
Definition cjs_runtime.h:48
CJS_EventContext * GetCurrentEventContext() const
CPDFSDK_AnnotIteration(CPDFSDK_PageView *page_view)
bool SubmitForm(const WideString &sDestination)
CPDF_InteractiveForm * GetInteractiveForm() const
void OnCalculate(CPDF_FormField *pFormField)
int GetPageCount() const
WideString GetValue() const
WideString GetFullName() const
bool IsEmpty() const
Definition bytestring.h:119
bool IsEmpty() const
Definition widestring.h:118
#define JS_STATIC_PROP(err_name, prop_name, class_name)
Definition js_define.h:141
JSMessage
@ kPermissionError
@ kNotSupportedError
@ kUserGestureRequiredError