From c859b5c44000e6414ce683b1ba92b60673204f20 Mon Sep 17 00:00:00 2001 From: Svetlana Kulikova Date: Wed, 17 Apr 2024 12:50:43 +0300 Subject: [PATCH] Rename IsEditPage --- PdfFile/PdfEditor.cpp | 2 +- PdfFile/PdfEditor.h | 2 +- PdfFile/PdfFile.cpp | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/PdfFile/PdfEditor.cpp b/PdfFile/PdfEditor.cpp index 4762d4fc8f..ecd6e54ec3 100644 --- a/PdfFile/PdfEditor.cpp +++ b/PdfFile/PdfEditor.cpp @@ -1246,7 +1246,7 @@ int CPdfEditor::GetRotate(int nPageIndex) return 0; return pPage->GetRotate(); } -bool CPdfEditor::EditPage() +bool CPdfEditor::IsEditPage() { return bEditPage; } diff --git a/PdfFile/PdfEditor.h b/PdfFile/PdfEditor.h index 5c9c287b97..1f3c625838 100644 --- a/PdfFile/PdfEditor.h +++ b/PdfFile/PdfEditor.h @@ -53,7 +53,7 @@ public: int GetPagesCount(); void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY); int GetRotate(int nPageIndex); - bool EditPage(); + bool IsEditPage(); void AddShapeXML(const std::string& sXML); void EndMarkedContent(); diff --git a/PdfFile/PdfFile.cpp b/PdfFile/PdfFile.cpp index 0c7e3f9ccb..c5501cdf78 100644 --- a/PdfFile/PdfFile.cpp +++ b/PdfFile/PdfFile.cpp @@ -1194,14 +1194,14 @@ HRESULT CPdfFile::AdvancedCommand(IAdvancedCommand* command) case IAdvancedCommand::AdvancedCommandType::Annotaion: { CAnnotFieldInfo* pCommand = (CAnnotFieldInfo*)command; - if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage()) + if (m_pInternal->pEditor && m_pInternal->pEditor->IsEditPage()) m_pInternal->pEditor->EditAnnot(pCommand->GetPage(), pCommand->GetID()); return m_pInternal->pWriter->AddAnnotField(m_pInternal->pAppFonts, pCommand); } case IAdvancedCommand::AdvancedCommandType::DeleteAnnot: { CAnnotFieldDelete* pCommand = (CAnnotFieldDelete*)command; - if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage()) + if (m_pInternal->pEditor && m_pInternal->pEditor->IsEditPage()) m_pInternal->pEditor->DeleteAnnot(pCommand->GetID()); return S_OK; } @@ -1215,26 +1215,26 @@ HRESULT CPdfFile::AdvancedCommand(IAdvancedCommand* command) case IAdvancedCommand::AdvancedCommandType::ShapeStart: { CShapeStart* pCommand = (CShapeStart*)command; - if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage()) + if (m_pInternal->pEditor && m_pInternal->pEditor->IsEditPage()) m_pInternal->pEditor->AddShapeXML(pCommand->GetShapeXML()); return S_OK; } case IAdvancedCommand::AdvancedCommandType::ShapeEnd: { - if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage()) + if (m_pInternal->pEditor && m_pInternal->pEditor->IsEditPage()) m_pInternal->pEditor->EndMarkedContent(); return S_OK; } case IAdvancedCommand::AdvancedCommandType::PageClear: { - if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage()) + if (m_pInternal->pEditor && m_pInternal->pEditor->IsEditPage()) m_pInternal->pWriter->PageClear(); return S_OK; } case IAdvancedCommand::AdvancedCommandType::PageRotate: { CPageRotate* pCommand = (CPageRotate*)command; - if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage()) + if (m_pInternal->pEditor && m_pInternal->pEditor->IsEditPage()) m_pInternal->pWriter->PageRotate(pCommand->GetPageRotate()); return S_OK; }