Files
PDFPatcher/App/Functions/Editor/Commands/PasteBookmarkItemCommand.cs
T
2022-01-06 09:08:16 +08:00

21 lines
518 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using PDFPatcher.Processor;
namespace PDFPatcher.Functions.Editor
{
sealed class PasteBookmarkItemCommand : IEditorCommand
{
public void Process(Controller controller, params string[] parameters) {
var b = controller.View.Bookmark;
b.PasteBookmarks(b.FocusedItem != null
? b.GetModelObject(b.FocusedItem.Index) as XmlElement
: controller.Model.Document.BookmarkRoot,
b.FocusedItem == null);
}
}
}