Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: core/include/fpdfapi/fpdf_objects.h

Issue 1519693002: Merge to XFA: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: XFA-specific changes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
9 9
10 #include "core/include/fxcrt/fx_coordinates.h" 10 #include "core/include/fxcrt/fx_coordinates.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 static CPDF_Array* Create() { return new CPDF_Array(); } 288 static CPDF_Array* Create() { return new CPDF_Array(); }
289 289
290 CPDF_Array() : CPDF_Object(PDFOBJ_ARRAY) {} 290 CPDF_Array() : CPDF_Object(PDFOBJ_ARRAY) {}
291 291
292 FX_DWORD GetCount() const { return m_Objects.GetSize(); } 292 FX_DWORD GetCount() const { return m_Objects.GetSize(); }
293 293
294 CPDF_Object* GetElement(FX_DWORD index) const; 294 CPDF_Object* GetElement(FX_DWORD index) const;
295 295
296 CPDF_Object* GetElementValue(FX_DWORD index) const; 296 CPDF_Object* GetElementValue(FX_DWORD index) const;
297 297
298 CFX_AffineMatrix GetMatrix(); 298 CFX_Matrix GetMatrix();
299 299
300 CFX_FloatRect GetRect(); 300 CFX_FloatRect GetRect();
301 301
302 CFX_ByteString GetString(FX_DWORD index) const; 302 CFX_ByteString GetString(FX_DWORD index) const;
303 303
304 CFX_ByteStringC GetConstString(FX_DWORD index) const; 304 CFX_ByteStringC GetConstString(FX_DWORD index) const;
305 305
306 int GetInteger(FX_DWORD index) const; 306 int GetInteger(FX_DWORD index) const;
307 307
308 FX_FLOAT GetNumber(FX_DWORD index) const; 308 FX_FLOAT GetNumber(FX_DWORD index) const;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 FX_FLOAT GetNumber(const CFX_ByteStringC& key) const; 393 FX_FLOAT GetNumber(const CFX_ByteStringC& key) const;
394 394
395 CPDF_Dictionary* GetDict(const CFX_ByteStringC& key) const; 395 CPDF_Dictionary* GetDict(const CFX_ByteStringC& key) const;
396 396
397 CPDF_Stream* GetStream(const CFX_ByteStringC& key) const; 397 CPDF_Stream* GetStream(const CFX_ByteStringC& key) const;
398 398
399 CPDF_Array* GetArray(const CFX_ByteStringC& key) const; 399 CPDF_Array* GetArray(const CFX_ByteStringC& key) const;
400 400
401 CFX_FloatRect GetRect(const CFX_ByteStringC& key) const; 401 CFX_FloatRect GetRect(const CFX_ByteStringC& key) const;
402 402
403 CFX_AffineMatrix GetMatrix(const CFX_ByteStringC& key) const; 403 CFX_Matrix GetMatrix(const CFX_ByteStringC& key) const;
404 404
405 FX_FLOAT GetFloat(const CFX_ByteStringC& key) const { return GetNumber(key); } 405 FX_FLOAT GetFloat(const CFX_ByteStringC& key) const { return GetNumber(key); }
406 406
407 FX_BOOL KeyExist(const CFX_ByteStringC& key) const; 407 FX_BOOL KeyExist(const CFX_ByteStringC& key) const;
408 408
409 FX_POSITION GetStartPos() const; 409 FX_POSITION GetStartPos() const;
410 410
411 CPDF_Object* GetNextElement(FX_POSITION& pos, CFX_ByteString& key) const; 411 CPDF_Object* GetNextElement(FX_POSITION& pos, CFX_ByteString& key) const;
412 412
413 void SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj); 413 void SetAt(const CFX_ByteStringC& key, CPDF_Object* pObj);
(...skipping 15 matching lines...) Expand all
429 CPDF_Object* obj) { 429 CPDF_Object* obj) {
430 SetAtReference(key, pDoc, obj->GetObjNum()); 430 SetAtReference(key, pDoc, obj->GetObjNum());
431 } 431 }
432 432
433 void AddReference(const CFX_ByteStringC& key, 433 void AddReference(const CFX_ByteStringC& key,
434 CPDF_IndirectObjects* pDoc, 434 CPDF_IndirectObjects* pDoc,
435 FX_DWORD objnum); 435 FX_DWORD objnum);
436 436
437 void SetAtRect(const CFX_ByteStringC& key, const CFX_FloatRect& rect); 437 void SetAtRect(const CFX_ByteStringC& key, const CFX_FloatRect& rect);
438 438
439 void SetAtMatrix(const CFX_ByteStringC& key, const CFX_AffineMatrix& matrix); 439 void SetAtMatrix(const CFX_ByteStringC& key, const CFX_Matrix& matrix);
440 440
441 void SetAtBoolean(const CFX_ByteStringC& key, FX_BOOL bValue); 441 void SetAtBoolean(const CFX_ByteStringC& key, FX_BOOL bValue);
442 442
443 void RemoveAt(const CFX_ByteStringC& key); 443 void RemoveAt(const CFX_ByteStringC& key);
444 444
445 void ReplaceKey(const CFX_ByteStringC& oldkey, const CFX_ByteStringC& newkey); 445 void ReplaceKey(const CFX_ByteStringC& oldkey, const CFX_ByteStringC& newkey);
446 446
447 FX_BOOL Identical(CPDF_Dictionary* pDict) const; 447 FX_BOOL Identical(CPDF_Dictionary* pDict) const;
448 448
449 int GetCount() const { return m_Map.GetCount(); } 449 int GetCount() const { return m_Map.GetCount(); }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 625
626 protected: 626 protected:
627 CFX_MapPtrToPtr m_IndirectObjs; 627 CFX_MapPtrToPtr m_IndirectObjs;
628 628
629 CPDF_Parser* m_pParser; 629 CPDF_Parser* m_pParser;
630 630
631 FX_DWORD m_LastObjNum; 631 FX_DWORD m_LastObjNum;
632 }; 632 };
633 633
634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698