mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 04:36:10 +08:00
Add ctPageRotate, AddPage and RemovePage
This commit is contained in:
@ -1158,6 +1158,7 @@ HRESULT CPdfFile::IsSupportAdvancedCommand(const IAdvancedCommand::AdvancedComma
|
||||
case IAdvancedCommand::AdvancedCommandType::WidgetsInfo:
|
||||
case IAdvancedCommand::AdvancedCommandType::ShapeStart:
|
||||
case IAdvancedCommand::AdvancedCommandType::ShapeEnd:
|
||||
case IAdvancedCommand::AdvancedCommandType::PageRotate:
|
||||
return S_OK;
|
||||
default:
|
||||
break;
|
||||
@ -1229,6 +1230,13 @@ HRESULT CPdfFile::AdvancedCommand(IAdvancedCommand* command)
|
||||
m_pInternal->pEditor->EndMarkedContent();
|
||||
return S_OK;
|
||||
}
|
||||
case IAdvancedCommand::AdvancedCommandType::PageRotate:
|
||||
{
|
||||
CPageRotate* pCommand = (CPageRotate*)command;
|
||||
if (m_pInternal->pEditor && m_pInternal->pEditor->EditPage())
|
||||
m_pInternal->pWriter->PageRotate(pCommand->GetPageRotate());
|
||||
return S_OK;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user