public ContinuousMoonPdfPanel(MoonPdfPanel parent)
		{
			InitializeComponent();

			this.parent = parent;
			this.SizeChanged += ContinuousMoonPdfPanel_SizeChanged;
		}
예제 #2
0
        public ContinuousMoonPdfPanel(MoonPdfPanel parent)
        {
            InitializeComponent();

            this.parent  = parent;
            SizeChanged += ContinuousMoonPdfPanel_SizeChanged;
        }
 public SinglePageMoonPdfPanel(MoonPdfPanel parent)
 {
     InitializeComponent();
     this.parent       = parent;
     this.SizeChanged += SinglePageMoonPdfPanel_SizeChanged;
     this.itemsControl.ItemsSource = _pdfImages;
 }
        public MoonPdfPanelInputHandler(MoonPdfPanel source)
        {
            this.source = source;

            this.source.PreviewKeyDown             += source_PreviewKeyDown;
            this.source.PreviewMouseWheel          += source_PreviewMouseWheel;
            this.source.PreviewMouseLeftButtonDown += source_PreviewMouseLeftButtonDown;
        }
예제 #5
0
        //NoteLabel.Visibility = Visibility.Hidden;
        //BookMarkLabel.Visibility = Visibility.Hidden;


        public PdfViewerViewModel()
        {
            PdfPanel = new MoonPdfPanel();
            LeftPane = Visibility.Collapsed;
            RightPane = Visibility.Collapsed;
            SelectedBookMark = null;
            SelectedNote = null;
            PdfPanel.PageChangedEvent += moonPdfPanel_PageChangedEvent;
        }
예제 #6
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.moonPdfPanel = ((MoonPdfLib.MoonPdfPanel)(target));
         return;
     }
     this._contentLoaded = true;
 }
        public MoonPdfPanelInputHandler(MoonPdfPanel source)
        {
            this.source = source;

            this.source.PreviewKeyDown += source_PreviewKeyDown;
            this.source.PreviewMouseWheel += source_PreviewMouseWheel;
            this.source.PreviewMouseLeftButtonDown += source_PreviewMouseLeftButtonDown;

            this.mouseHookListener = new MouseHookListener(new GlobalHooker());
            this.mouseHookListener.Enabled = false;
            this.mouseHookListener.MouseMove += mouseHookListener_MouseMove;
            this.mouseHookListener.MouseUp += mouseHookListener_MouseUp;
        }
예제 #8
0
        public MoonPdfPanelInputHandler(MoonPdfPanel source)
        {
            this.source = source;

            this.source.PreviewKeyDown             += source_PreviewKeyDown;
            this.source.PreviewMouseWheel          += source_PreviewMouseWheel;
            this.source.PreviewMouseLeftButtonDown += source_PreviewMouseLeftButtonDown;

            this.mouseHookListener            = new MouseHookListener(new GlobalHooker());
            this.mouseHookListener.Enabled    = false;
            this.mouseHookListener.MouseMove += mouseHookListener_MouseMove;
            this.mouseHookListener.MouseUp   += mouseHookListener_MouseUp;
        }
예제 #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.viewSingle = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.viewFacing = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.viewBook = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 5:
                this.itmContinuously = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 6:
                this.itmFullscreen = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 7:
                this.itmFitWidth = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 8:
                this.itmFitHeight = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 9:
                this.itmCustomZoom = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 10:
                this.moonPdfPanel = ((MoonPdfLib.MoonPdfPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.rootWnd = ((TestNAudio.MainWindow)(target));
                return;

            case 2:
                this.RootGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.XpsViewer = ((System.Windows.Controls.DocumentViewer)(target));
                return;

            case 4:
                this.PdfViewer = ((MoonPdfLib.MoonPdfPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #11
0
        private int currentPageIndex = 0;         // starting at 0

        public SinglePageMoonPdfPanel(MoonPdfPanel parent)
        {
            InitializeComponent();
            this.parent       = parent;
            this.SizeChanged += SinglePageMoonPdfPanel_SizeChanged;
        }
 public SinglePageMoonPdfPanel(MoonPdfPanel parent)
 {
     InitializeComponent();
     this.parent = parent;
     this.SizeChanged += SinglePageMoonPdfPanel_SizeChanged;
 }
예제 #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 23 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 26 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.moonPdfPanel = ((MoonPdfLib.MoonPdfPanel)(target));

            #line 30 "..\..\ViewBook.xaml"
                this.moonPdfPanel.Loaded += new System.Windows.RoutedEventHandler(this.afterPanelLoaded);

            #line default
            #line hidden
                return;

            case 4:

            #line 35 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomInButton_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 37 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomOutButton_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 39 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NormalButton_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 41 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FitToHeightButton_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 43 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SinglePageButton_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 45 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FacingButton_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 47 "..\..\ViewBook.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BookmarkButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.m_zairu = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\PDF_Read_Window.xaml"
                this.m_zairu.Click += new System.Windows.RoutedEventHandler(this.FileButton_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.m_fangda = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\PDF_Read_Window.xaml"
                this.m_fangda.Click += new System.Windows.RoutedEventHandler(this.ZoomInButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.m_suoxiao = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\PDF_Read_Window.xaml"
                this.m_suoxiao.Click += new System.Windows.RoutedEventHandler(this.ZoomOutButton_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 20 "..\..\PDF_Read_Window.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NormalButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.m_zhengye = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\PDF_Read_Window.xaml"
                this.m_zhengye.Click += new System.Windows.RoutedEventHandler(this.FitToHeightButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.m_danye = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\PDF_Read_Window.xaml"
                this.m_danye.Click += new System.Windows.RoutedEventHandler(this.SinglePageButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.m_shuangye = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\PDF_Read_Window.xaml"
                this.m_shuangye.Click += new System.Windows.RoutedEventHandler(this.FacingButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.moonPdfPanel = ((MoonPdfLib.MoonPdfPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }