mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-19 06:21:06 +08:00
21 lines
518 B
C#
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);
|
|
}
|
|
|
|
}
|
|
}
|