| 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 | 10 |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 pStreamDict->SetAtInteger("FormType", 1); | 1055 pStreamDict->SetAtInteger("FormType", 1); |
| 1056 pStream->InitStream(NULL,0,pStreamDict); | 1056 pStream->InitStream(NULL,0,pStreamDict); |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 if (pStreamDict) | 1059 if (pStreamDict) |
| 1060 { | 1060 { |
| 1061 pStreamDict->SetAtMatrix("Matrix",matrix); | 1061 pStreamDict->SetAtMatrix("Matrix",matrix); |
| 1062 pStreamDict->SetAtRect("BBox", rcBBox); | 1062 pStreamDict->SetAtRect("BBox", rcBBox); |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 » pStream->SetData((FX_BYTE*)(FX_LPCSTR)sContents, sContents.GetLength(),
FALSE, FALSE); | 1065 » pStream->SetData((FX_BYTE*)sContents.c_str(), sContents.GetLength(), FAL
SE, FALSE); |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 #define BA_ANNOT_MINWIDTH 1 | 1068 #define BA_ANNOT_MINWIDTH 1 |
| 1069 #define BA_ANNOT_MINHEIGHT 1 | 1069 #define BA_ANNOT_MINHEIGHT 1 |
| 1070 | 1070 |
| 1071 FX_FLOAT CPDFSDK_Annot::GetMinWidth() const | 1071 FX_FLOAT CPDFSDK_Annot::GetMinWidth() const |
| 1072 { | 1072 { |
| 1073 return BA_ANNOT_MINWIDTH; | 1073 return BA_ANNOT_MINWIDTH; |
| 1074 } | 1074 } |
| 1075 | 1075 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 return ; | 1173 return ; |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 CPDF_Page* CPDFSDK_Annot::GetPDFPage() | 1176 CPDF_Page* CPDFSDK_Annot::GetPDFPage() |
| 1177 { | 1177 { |
| 1178 if(m_pPageView) | 1178 if(m_pPageView) |
| 1179 return m_pPageView->GetPDFPage(); | 1179 return m_pPageView->GetPDFPage(); |
| 1180 return NULL; | 1180 return NULL; |
| 1181 } | 1181 } |
| 1182 | 1182 |
| OLD | NEW |