UNPKG

2.57 kBtext/x-cView Raw
1/*
2 Source File : PDFPageDriver.h
3
4
5 Copyright 2013 Gal Kahana HummusJS
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19 */
20#pragma once
21
22#include "nodes.h"
23
24#include "PDFPage.h"
25
26class PageContentContext;
27class ConstructorsHolder;
28
29class PDFPageDriver : public node::ObjectWrap
30{
31public:
32 virtual ~PDFPageDriver();
33
34 DEC_SUBORDINATE_INIT(Init)
35
36
37 PDFPage* GetPage(){return mPDFPage;}
38
39 PageContentContext* ContentContext;
40
41 ConstructorsHolder* holder;
42 PDFPage* mPDFPage;
43 bool mOwnsPage;
44
45private:
46 PDFPageDriver();
47
48
49 static METHOD_RETURN_TYPE New(const ARGS_TYPE& args);
50 static METHOD_RETURN_TYPE GetMediaBox(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
51 static void SetMediaBox(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
52 static METHOD_RETURN_TYPE GetBleedBox(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
53 static void SetBleedBox(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
54 static METHOD_RETURN_TYPE GetCropBox(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
55 static void SetCropBox(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
56 static METHOD_RETURN_TYPE GetTrimBox(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
57 static void SetTrimBox(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
58 static METHOD_RETURN_TYPE GetArtBox(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
59 static void SetArtBox(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
60 static METHOD_RETURN_TYPE GetRotate(v8::Local<v8::String> property, const PROPERTY_TYPE &info);
61 static void SetRotate(v8::Local<v8::String> property,v8::Local<v8::Value> value,const PROPERTY_SETTER_TYPE &info);
62 static METHOD_RETURN_TYPE GetResourcesDictionary(const ARGS_TYPE& args);
63};
\No newline at end of file