Chromium Code Reviews| 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 #include "../include/fsdk_define.h" | 7 #include "../include/fsdk_define.h" |
| 8 #include "../include/fsdk_mgr.h" | 8 #include "../include/fsdk_mgr.h" |
| 9 #include "../include/fsdk_baseannot.h" | 9 #include "../include/fsdk_baseannot.h" |
| 10 #include "../include/fsdk_baseform.h" | 10 #include "../include/fsdk_baseform.h" |
| (...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1909 pStreamDict->SetAt("BBox", pBBox); | 1909 pStreamDict->SetAt("BBox", pBBox); |
| 1910 pBBox->AddInteger(0); | 1910 pBBox->AddInteger(0); |
| 1911 pBBox->AddInteger(0); | 1911 pBBox->AddInteger(0); |
| 1912 pBBox->AddInteger(nWidth); | 1912 pBBox->AddInteger(nWidth); |
| 1913 pBBox->AddInteger(nHeight); | 1913 pBBox->AddInteger(nHeight); |
| 1914 pStreamDict->SetAtInteger("FormType", 1); | 1914 pStreamDict->SetAtInteger("FormType", 1); |
| 1915 | 1915 |
| 1916 pRetStream = new CPDF_Stream(NULL, 0, NULL); | 1916 pRetStream = new CPDF_Stream(NULL, 0, NULL); |
| 1917 CFX_ByteString csStream; | 1917 CFX_ByteString csStream; |
| 1918 csStream.Format("q\n%d 0 0 %d 0 0 cm\n/Img Do\nQ", nWidt h, nHeight); | 1918 csStream.Format("q\n%d 0 0 %d 0 0 cm\n/Img Do\nQ", nWidt h, nHeight); |
| 1919 » » » pRetStream->InitStream((FX_BYTE*)(FX_LPCSTR)csStream, cs Stream.GetLength(), pStreamDict); | 1919 pRetStream->InitStream((FX_BYTE*)csStream.c_str(), csStream.GetLengt h(), pStreamDict); |
|
brucedawson
2014/12/30 23:13:02
Ditto on the indenting.
| |
| 1920 pDocument->AddIndirectObject(pRetStream); | 1920 pDocument->AddIndirectObject(pRetStream); |
| 1921 } | 1921 } |
| 1922 | 1922 |
| 1923 delete pBmp; | 1923 delete pBmp; |
| 1924 } | 1924 } |
| 1925 | 1925 |
| 1926 return pRetStream; | 1926 return pRetStream; |
| 1927 } | 1927 } |
| 1928 #endif | 1928 #endif |
| 1929 | 1929 |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3096 | 3096 |
| 3097 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); | 3097 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); |
| 3098 ASSERT(pPDFAnnot != NULL); | 3098 ASSERT(pPDFAnnot != NULL); |
| 3099 | 3099 |
| 3100 CPDF_Rect rcAnnot; | 3100 CPDF_Rect rcAnnot; |
| 3101 pPDFAnnot->GetRect(rcAnnot); | 3101 pPDFAnnot->GetRect(rcAnnot); |
| 3102 | 3102 |
| 3103 return rcAnnot; | 3103 return rcAnnot; |
| 3104 } | 3104 } |
| 3105 | 3105 |
| OLD | NEW |