15 #include "AnnotTypeDefine.h" 22 namespace uiextensions
27 int GetAnnotDrawBorderWidth();
29 void UpdateSaveCommandVisible();
30 void SavePropertySetting();
32 void SetAnnotDrawBorderWidth(
int linewidth);
34 void SetNoteLogoUrl(Platform::String^ url);
35 Platform::String^ GetNoteLogoUrl();
37 void SetNoteAuthor(Platform::String^ authorName);
38 Platform::String^ GetNoteAuthor();
40 void SetIsLinkHighlight(
bool isHighlight);
41 bool GetIsLinkHighlight();
43 void SetViewIsDarkMode(Platform::String^ isDarkMode);
44 Platform::String^ GetViewIsDarkMode();
46 void SetIsFirstUserAnnot(
bool isFirstUserAnnot);
47 bool GetIsFirstUserAnnot();
49 Windows::UI::Color GetAnnotColor();
50 void SetAnnotColor(Windows::UI::Color value);
52 double GetAnnotOpacity();
53 void SetAnnotOpacity(
double value);
55 Windows::UI::Color GetHightLightAnnotColor();
56 void SetHightLightAnnotColor(Windows::UI::Color value);
58 double GetHightLightAnnotOpacity();
59 void SetHightLightAnnotOpacity(
double value);
61 Windows::UI::Color GetUnderLineAnnotColor();
62 void SetUnderLineAnnotColor(Windows::UI::Color value);
64 double GetUnderLineAnnotOpacity();
65 void SetUnderLineAnnotOpacity(
double value);
67 Windows::UI::Color GetStrikeOutAnnotColor();
68 void SetStrikeOutAnnotColor(Windows::UI::Color value);
70 double GetStrikeOutAnnotOpacity();
71 void SetStrikeOutAnnotOpacity(
double value);
73 Windows::UI::Color GetSquigglyAnnotColor();
74 void SetSquigglyAnnotColor(Windows::UI::Color value);
76 double GetSquigglyAnnotOpacity();
77 void SetSquigglyAnnotOpacity(
double value);
79 Windows::UI::Color GetLineAnnotColor();
80 void SetLineAnnotColor(Windows::UI::Color value);
83 void SetEraserWidth(
int value);
86 void SetStampIndex(
int value);
88 bool GetHightLightIsContinueOpera();
89 void SetHightLightIsContinueOpera(
bool value);
91 bool GetAreaHightLightIsContinueOpera();
92 void SetAreaHightLightIsContinueOpera(
bool value);
94 bool GetStrikeOutIsContinueOpera();
95 void SetStrikeOutIsContinueOpera(
bool value);
97 bool GetUnderLineIsContinueOpera();
98 void SetUnderLineIsContinueOpera(
bool value);
100 bool GetSquigglyIsContinueOpera();
101 void SetSquigglyIsContinueOpera(
bool value);
103 bool GetTextIsContinueOpera();
104 void SetTextIsContinueOpera(
bool value);
106 bool GetLineIsContinueOpera();
107 void SetLineIsContinueOpera(
bool value);
109 bool GetArrowIsContinueOpera();
110 void SetArrowIsContinueOpera(
bool value);
112 bool GetSquareIsContinueOpera();
113 void SetSquareIsContinueOpera(
bool value);
115 bool GetCircleIsContinueOpera();
116 void SetCircleIsContinueOpera(
bool value);
118 bool GetStampIsContinueOpera();
119 void SetStampeIsContinueOpera(
bool value);
121 bool GetFreeTextIsContinueOpera();
122 void SetFreeTextIsContinueOpera(
bool value);
124 Windows::UI::Color GetFreeTextColor();
125 void SetFreeTextColor(Windows::UI::Color value);
127 double GetFreeTextAnnotOpacity();
128 void SetFreeTextAnnotOpacity(
double value);
130 int GetFreeTextFontSize();
131 void SetFreeTextFontSize(
int value);
133 Platform::String^ GetFreeTextFontName();
134 void SetFreeTextFontName(Platform::String^ value);
136 void SetIsFirstUserTip(
bool isFirstUserTip);
137 bool GetIsFirstUserTip();
139 bool GetInsertTextIsContinueOpera();
140 void SetInsertTextIsContinueOpera(
bool value);
142 Windows::UI::Color GetInsertTextColor();
143 void SetInsertTextColor(Windows::UI::Color value);
145 double GetInsertTextAnnotOpacity();
146 void SetInsertTextAnnotOpacity(
double value);
148 Windows::UI::Color GetReplaceTextColor();
149 void SetReplaceTextColor(Windows::UI::Color value);
151 double GetReplaceTextAnnotOpacity();
152 void SetReplaceTextAnnotOpacity(
double value);
154 bool GetReplaceTextIsContinueOpera();
155 void SetReplaceTextIsContinueOpera(
bool value);
161 Platform::Object^ Pointer;
167 Platform::Object^ Pointer;
173 Platform::Object^ Pointer;
179 property Platform::Object^ PDFAnnot
181 Platform::Object^
get()
184 wrap->Pointer = _PdfAnnot;
196 _PdfAnnot = pdfannot;
199 property foxit::pdf::annots::Annot^ PDF_Annot
201 foxit::pdf::annots::Annot^
get()
205 void set(foxit::pdf::annots::Annot^ value)
212 foxit::pdf::annots::Annot^ _PdfAnnot;
216 [Windows::Foundation::Metadata::WebHostHidden]
220 property int PageIndex
225 property int AnnoIndex
230 property Platform::String^ Name
232 Platform::String^
get();
233 void set(Platform::String^ value);
236 property Platform::String^ Title
238 Platform::String^
get();
239 void set(Platform::String^ value);
242 property Platform::String^ Contents
244 Platform::String^
get();
245 void set(Platform::String^ value);
248 property Windows::UI::Color Color
250 Windows::UI::Color
get();
251 void set(Windows::UI::Color value);
254 property double Opacity
257 void set(
double value);
260 property Windows::Foundation::Rect MinRect
262 Windows::Foundation::Rect
get();
263 void set(Windows::Foundation::Rect value);
266 property AnnotBorderWrap^ AnnotBorder
268 AnnotBorderWrap^
get();
269 void set(AnnotBorderWrap^ value);
272 property double BorderWidth
275 void set(
double value);
278 property Windows::Foundation::DateTime CreationDateTime
280 Windows::Foundation::DateTime
get();
281 void set(Windows::Foundation::DateTime value);
284 property Windows::Foundation::DateTime ModifiedDateTime
286 Windows::Foundation::DateTime
get();
287 void set(Windows::Foundation::DateTime value);
290 property AnnotationType AnnotType
292 AnnotationType
get();
300 property bool IsModifyProperty
303 void set(
bool isModify);
307 property Platform::Object^ PageHandleWrap
309 Platform::Object^
get();
318 virtual bool IsVisibity();
320 virtual bool IsHitTest(Windows::Foundation::Point pagePoint);
322 bool IsHitTestRange(Windows::Foundation::Point pagePoint);
324 [Windows::Foundation::Metadata::DefaultOverload]
325 bool OnLoadAnnot(
IAnnotManager^ annotmgr, Platform::Object^ pageObj,
int annotIndex);
328 bool OnCreate(
IAnnotManager^ annotmgr, Platform::Object^ pageObj);
331 bool OnDeleteNoReflesh();
333 bool SetSelectedState(
bool bIsShow);
335 void SetAnnotVisible(
bool isVisible);
336 void CheckPageIndex();
340 [Windows::Foundation::Metadata::WebHostHidden]
343 void OnPointerPressed(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
344 void OnPointerMoved(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
345 void OnPointerReleased(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
346 void OnTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e);
347 void OnRightTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::RightTappedRoutedEventArgs^ e);
348 void OnManipulationStarted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationStartedRoutedEventArgs^ e);
349 void OnManipulationDelta(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs^ e);
350 void OnManipulationCompleted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs^ e);
351 void OnManipulationInertiaStarting(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationInertiaStartingRoutedEventArgs^ e);
353 void OnCreateAnnotAfterSelectText();
356 [Windows::Foundation::Metadata::WebHostHidden]
360 property AnnotationType AnnotHandlerType
362 AnnotationType
get();
377 bool IsHitTest(
IBaseAnnot^ pAnnot, Windows::Foundation::Point ptDevice);
378 void ClearSelectedBorder();
379 void CancelDrawingOneStep();
380 void EndConsistentDrawing();
386 [Windows::Foundation::Metadata::DefaultOverload]
387 void OnCreateNewAnnot(Platform::Object^ pageObj,
int annotIndex);
388 void OnCreateNewAnnot(Platform::Object^ pageObj,
IBaseAnnot^ newannot);
408 void OnPopupMenu(
IBaseAnnot^ pAnnot, Windows::Foundation::Point point);
409 void OnDoAnnotAction(
IBaseAnnot^ pAnnot, Windows::Foundation::Point curPoint);
411 void CreateAnnotAfterSelectText();
412 void OnCreateNewAnnotGroup(Platform::Object^ pageObj, Windows::Foundation::Collections::IVector<IBaseAnnot^>^ newannots);
415 void OnPointerPressed(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
416 void OnPointerMoved(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
417 void OnPointerReleased(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
418 void OnTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e);
419 void OnRightTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::RightTappedRoutedEventArgs^ e);
420 void OnManipulationStarted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationStartedRoutedEventArgs^ e);
421 void OnManipulationDelta(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs^ e);
422 void OnManipulationCompleted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs^ e);
423 void OnManipulationInertiaStarting(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationInertiaStartingRoutedEventArgs^ e);
426 [Windows::Foundation::Metadata::WebHostHidden]
430 Platform::Object^ GetPdfPageObject(
int pageIndex);
431 void NotifyDocumentChanged();
432 void UpdatePageView(
int pageIndex);
434 void SaveAnonotModifyBeforeProperty();
435 void InsertAnnotModifyUndo();
437 void OnAnnotPointerEntered(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
438 void OnAnnotPointerExited(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
439 void OnAnnotPointerMoved(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
440 void OnAnnotPointerPressed(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
441 void OnAnnotPointerReleased(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
442 void OnAnnotTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e);
443 void OnAnnotRightTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::RightTappedRoutedEventArgs^ e);
445 void OnAnnotManipulationStarted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationStartedRoutedEventArgs^ e);
446 void OnAnnotManipulationDelta(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs^ e);
447 void OnAnnotManipulationCompleted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs^ e);
448 void OnManipulationInertiaStarting(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationInertiaStartingRoutedEventArgs^ e);
452 [Windows::Foundation::Metadata::WebHostHidden]
460 void ClearAnnots(
int nPageIndex);
462 void OnCreateNewAnnot(Platform::Object^ pageObj,
IBaseAnnot^ newannot);
466 void NotifyDocumentChanged();
467 void UpdatePageView(
int pageindex);
468 void OnInitAnnot(
int nPageindex);
469 void ReInitAnnot(
int nPageinex);
470 void FinalizeAnnots(
int nPageIndex);
473 void OnPointerEntered(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
475 void OnPointerExited(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
477 void OnPointerMoved(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
479 void OnPointerPressed(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
481 void OnPointerReleased(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ e);
483 void OnTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e);
485 void OnRightTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::RightTappedRoutedEventArgs^ e);
487 void OnManipulationStarted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationStartedRoutedEventArgs^ e);
489 void OnManipulationDelta(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs^ e);
491 void OnManipulationCompleted(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs^ e);
493 void OnManipulationInertiaStarting(Platform::Object^ sender, Windows::UI::Xaml::Input::ManipulationInertiaStartingRoutedEventArgs^ e);
495 void RefleshOnePageAnnots(
int nPageIndex);
496 IBaseAnnot^ IsHitAnnot(
int index, Windows::Foundation::Point ptDevice);
497 Windows::Foundation::Collections::IVector<IBaseAnnot^>^ IsHitInkAnnot(
int index, Windows::Foundation::Point ptDevice);
498 IBaseAnnot^ GetAnnotHitPoint(
int index, Windows::Foundation::Point pagePt);
499 Windows::Foundation::Collections::IVector<IBaseAnnot^>^ GetAnnotsHitPoint(
int index, Windows::Foundation::Point pagePt);
500 Windows::Foundation::Collections::IVector<PDFAnnotHandle^>^ GetDrawingAnnots(
int pageindex);
506 void SetPdfSelectAnnotNull();
509 Windows::Foundation::Collections::IVector<IBaseAnnot^>^ GetPageNotes(
int pageIndex);
510 Windows::Foundation::Collections::IVector<IBaseAnnot^>^ GetPageWidgetAnnots(
int pageIndex);
511 void UpdateNoteRect(
int pageIndex, Windows::Foundation::Rect rect);
512 void SetNewCreateAnnot(Windows::Foundation::Rect rect);
513 Windows::Foundation::Rect GetNewCreateAnnotRect();
514 void ClearResource();
516 void UpdateAnnotMinRect(
int pageIndex, AnnotationType type, Windows::Foundation::Rect oldrect, Windows::Foundation::Rect minrect);
518 void AnnotCollections_CritsecLock();
519 void AnnotCollections_CritsecUnLock();
521 void OnCreateNewAnnotGroup(Platform::Object^ pageObj, Windows::Foundation::Collections::IVector<IBaseAnnot^>^ newannots);
523 bool IsGetGroupAnnotElement(
int pageIndex, Windows::Foundation::Rect minrect,
int annotIndex, AnnotationType groupAnnotType);
525 void SetGroupAnnotNullptr();
527 void DeleteAnnotCollection(
int pageIndex);
528 void InsertModifyAnnotBeforeDelete();
530 [Windows::Foundation::Metadata::DefaultOverload]
531 void ChangePageIndex(
int srcIndex,
int dstIndex);
532 void ChangePageIndex(Windows::Foundation::Collections::IVector<int>^ srcIndexs,
int dstIndex);
533 void PageDeleteBefore(Windows::Foundation::Collections::IVector<int>^ pageIndexs);
534 void PageDeleteAfter(Windows::Foundation::Collections::IVector<int>^ pageIndexs);
535 void CheckPageIndex(
int startIndex,
int increasingCount);
539 void UnlockViewCtrl();
541 event Windows::Foundation::EventHandler<IBaseAnnot^>^ AddAnnotEvent;
542 event Windows::Foundation::EventHandler<IBaseAnnot^>^ DeleteAnnotEvent;
543 event Windows::Foundation::EventHandler<IBaseAnnot^>^ ModifyAnnotEvent;
Definition: FoxitRdkComponentViewCtrl.h:3