Foxit PDF SDK

fs_paragraphediting.h
1
15 #ifndef FS_PARAGRAPHEDITING_H_
16 #define FS_PARAGRAPHEDITING_H_
17
18 #include "common/fs_common.h"
19 #include "common/fs_render.h"
20 #include "pdf/fs_pdfdoc.h"
21 #include "pdf/fs_pdfpage.h"
22
28 namespace foxit {
32 namespace addon {
36 namespace pageeditor {
37 // forward declaration
38 class ParagraphEditing;
39 class ParagraphEditingUndoItem;
40
45 class ParagraphEditingProviderCallback {
46 public:
52 virtual void Release() = 0;
53
61 virtual Matrix GetRenderMatrix(const pdf::PDFDoc& document, int page_index) = 0;
62
70 virtual void* GetPageViewHandle(const pdf::PDFDoc& document, int page_index) = 0;
71
77 virtual RectF GetClientRect(const pdf::PDFDoc& document) = 0;
78
86 virtual float GetScale(const pdf::PDFDoc& document, int page_index) = 0;
87
97 virtual bool GotoPageView(const pdf::PDFDoc& document, int page_index, float left, float top) = 0;
98
104 virtual Int32Array GetVisiblePageIndexArray(const pdf::PDFDoc& document) = 0;
105
113 virtual RectF GetPageVisibleRect(const pdf::PDFDoc& document, int page_index) = 0;
114
122 virtual foxit::RectF GetPageRect(const pdf::PDFDoc& document, int page_index) = 0;
123
129 virtual int GetCurrentPageIndex(const pdf::PDFDoc& document) = 0;
130
138 virtual common::Rotation GetRotation(const pdf::PDFDoc& document, int page_index) = 0;
139
148 virtual void InvalidateRect(const pdf::PDFDoc& document, int page_index, const RectFArray& invalid_rects) = 0;
149
157 virtual void AddUndoItem(const ParagraphEditingUndoItem& undo_item) = 0;
158
166 virtual void SetDocChangeMark(const pdf::PDFDoc& document) = 0;
167
175 virtual void NotifyTextInputReachLimit(const pdf::PDFDoc& document, int page_index) = 0;
176
177 protected:
179 virtual ~ParagraphEditingProviderCallback() {}
180 };
181
185 class ParagraphEditingUndoItem FS_FINAL : public Base {
186 public:
192 ParagraphEditingUndoItem(const ParagraphEditingUndoItem& other);
193
195 ~ParagraphEditingUndoItem();
196
197 // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
198 explicit ParagraphEditingUndoItem(FS_HANDLE handle);
199
207 ParagraphEditingUndoItem& operator=(const ParagraphEditingUndoItem& other);
208
216 bool operator==(const ParagraphEditingUndoItem& other) const;
217
225 bool operator!=(const ParagraphEditingUndoItem& other) const;
226
234 bool IsEmpty() const;
235
241 void Undo();
242
248 void Redo();
249 };
250
257 class ParagraphEditing FS_FINAL : public Base {
258 public:
264 typedef enum _BulletType {
266 e_BulletTypeNone = 0,
268 e_BulletTypeSolidCircle = 1,
270 e_BulletTypeSolidRectangle = 2,
272 e_BulletTypeSolidDiamond = 3,
274 e_BulletTypeCheck = 4,
276 e_BulletTypeRightArrow = 5,
278 e_BulletTypeInverseTangentCircle = 6,
280 e_BulletTypeDiagonalUpRightArrow = 7,
282 e_BulletTypeBlackDiamondMinusWhite = 8
283 } BulletType;
284
290 typedef enum _NumberingType {
292 e_NumberingTypeNone = 0,
294 e_NumberingTypeDecimalDot = 1,
296 e_NumberingTypeDecimalRParen = 2,
298 e_NumberingTypeUpperLatinDot = 3,
300 e_NumberingTypeLowerLatinRParen = 4,
302 e_NumberingTypeLowerLatinDot = 5
303 } NumberingType;
304
305
307 ~ParagraphEditing();
308
314 ParagraphEditing(const ParagraphEditing& other);
315
316 // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
317 explicit ParagraphEditing(FS_HANDLE handle);
318
326 ParagraphEditing& operator=(const ParagraphEditing& other);
327
336 bool operator==(const ParagraphEditing& other) const;
337
346 bool operator!=(const ParagraphEditing& other) const;
347
355 bool IsEmpty() const;
356
362 bool Activate();
363
369 bool Deactivate();
370
380 void StartEditing(int page_index, const PointF& start_point, const PointF& end_point);
381
389 void ExitEditing(bool is_end_directly = false);
390
398 bool InsertText(const WString& text);
399
410 bool Render(const Int32Array page_index_array, const common::Renderer& renderer);
411
419 bool OnChar(uint32 char_code);
420
429 bool OnKeyDown(uint32 key_code);
430
439 bool OnKeyUp(uint32 key_code);
440
449 bool OnLButtonDown(int page_index, const PointF& point);
450
459 bool OnLButtonUp(int page_index, const PointF& point);
460
469 bool OnLButtonDoubleClick(int page_index, const PointF& point);
470
479 bool OnMouseMove(int page_index, const PointF& point);
480
491 bool OnMouseWheel(int page_index, const PointF& point, int32 delta);
492
498 bool CanSelectAll();
499
505 bool SelectAll();
506
512 bool CanDelete();
513
519 bool DeleteSelected();
520
526 bool CanCopy();
527
533 bool CopySelected();
534
540 bool CanCut();
541
547 bool CutSelected();
548
554 bool CanPaste();
555
561 bool PasteSelected();
562
568 bool CanDeselectAll();
569
575 bool DeselectAll();
576
584 void SetFontName(const WString& font_name);
585
593 void SetFontSize(float font_size);
594
602 void SetTextColor(RGB text_color);
603
611 void SetBold(bool is_bold);
612
620 void SetItalic(bool is_italic);
621
630 void SetAlignment(foxit::common::Alignment alignment);
631
639 void SetCharSpace(float char_space);
640
648 void SetCharHorizontalScale(int scale);
649
657 void SetLineSpace(float line_space);
658
666 void SetUnderline(bool is_underline);
667
675 void SetStrikethrough(bool is_striketrough);
676
684 void SetSuperscript(bool is_superscript);
685
693 void SetSubscript(bool is_subscript);
694
702 void SetParagraphSpacing(float paragraph_space);
703
709 void Indent();
710
716 void Dedent();
717
728 void SetBulletedList(BulletType bullet_type);
729
738 void SetNumberedList(NumberingType numbering_type);
739 };
740
746 class JoinSplit FS_FINAL : public Base {
747 public:
753 typedef enum _JoinSplitOperationType {
755 e_JoinSplitOperationTypeJoin = 0,
757 e_JoinSplitOperationTypeSpilt = 1,
759 e_JoinSplitOperationTypeLink = 2,
761 e_JoinSplitOperationTypeUnlink = 3,
763 e_JoinSplitOperationTypeSelectNone = 4,
765 e_JoinSplitOperationTypeClose = 5
766 } JoinSplitOperationType;
767
768
770 ~JoinSplit();
771
777 JoinSplit(const JoinSplit& other);
778
779 // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
780 explicit JoinSplit(FS_HANDLE handle);
781
789 JoinSplit& operator=(const JoinSplit& other);
790
799 bool operator==(const JoinSplit& other) const;
800
809 bool operator!=(const JoinSplit& other) const;
810
818 bool IsEmpty() const;
819
825 bool Activate();
826
832 bool Deactivate();
833
839 void ExitJoinEditing();
840
851 bool Render(Int32Array page_index_array, const common::Renderer& renderer);
852
861 bool OnLButtonDown(int page_index, const PointF& point);
862
871 bool OnLButtonUp(int page_index, const PointF& point);
872
881 bool OnMouseMove(int page_index, const PointF& point);
882
888 bool GetEnableStatus(JoinSplit::JoinSplitOperationType type);
889
895 void JoinBoxes();
896
902 void SplitBoxes();
903
909 void LinkBoxes();
910
916 void UnlinkBoxes();
917
923 void SelectNone();
924 };
925
935 class ParagraphEditingMgr FS_FINAL : public Base{
936 public:
943 explicit ParagraphEditingMgr(ParagraphEditingProviderCallback* callback, const pdf::PDFDoc& document);
944
946 ~ParagraphEditingMgr();
947
953 ParagraphEditingMgr(const ParagraphEditingMgr& other);
954
955 // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
956 explicit ParagraphEditingMgr(FS_HANDLE handle = NULL);
957
965 ParagraphEditingMgr& operator=(const ParagraphEditingMgr& other);
966
974 bool operator==(const ParagraphEditingMgr& other) const;
975
983 bool operator!=(const ParagraphEditingMgr& other) const;
984
992 bool IsEmpty() const;
993
999 ParagraphEditing GetParagraphEditing();
1000
1006 JoinSplit GetJoinSplit();
1007
1016 void SetSystemDPI(float horizontal_dpi, float vertical_dpi);
1017 };
1018 } // namespace pageeditor
1019 } // namespace addon
1020 } // namespace foxit
1021 #endif // FS_PARAGRAPHEDIT_H_
foxit::addon::pageeditor::ParagraphEditing::SetSuperscript
void SetSuperscript(bool is_superscript)
Set the word property of superscript type for text.
foxit::addon::pageeditor::JoinSplit::OnLButtonDown
bool OnLButtonDown(int page_index, const PointF &point)
Call this function when left mouse button is down.
foxit::addon::pageeditor::JoinSplit::JoinSplit
JoinSplit(const JoinSplit &other)
Constructor, with another join split object.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetPageRect
virtual foxit::RectF GetPageRect(const pdf::PDFDoc &document, int page_index)=0
A callback function used to get page rectangle in device coordinate system.
foxit::addon::pageeditor::JoinSplit::operator==
bool operator==(const JoinSplit &other) const
Equal operator.
foxit::addon::pageeditor::ParagraphEditing::SetUnderline
void SetUnderline(bool is_underline)
Set underline for text.
foxit::addon::pageeditor::JoinSplit::UnlinkBoxes
void UnlinkBoxes()
Call this function to unlink text.
foxit::addon::pageeditor::ParagraphEditingMgr::operator!=
bool operator!=(const ParagraphEditingMgr &other) const
Not equal operator.
foxit::addon::pageeditor::ParagraphEditing::OnMouseMove
bool OnMouseMove(int page_index, const PointF &point)
Call this function when mouse moves.
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeNone
Bullet type: none.
Definition: fs_paragraphediting.h:266
foxit::addon::pageeditor::JoinSplit
Definition: fs_paragraphediting.h:746
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeDiagonalUpRightArrow
Bullet type: diagonal up right arrow.
Definition: fs_paragraphediting.h:280
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeSolidDiamond
Bullet type: solid diamond.
Definition: fs_paragraphediting.h:272
foxit::addon::pageeditor::JoinSplit::Deactivate
bool Deactivate()
Deactivate join split editing.
foxit::addon::pageeditor::ParagraphEditingUndoItem::Redo
void Redo()
Redo this item.
foxit::addon::pageeditor::ParagraphEditing::CutSelected
bool CutSelected()
Cut the selected text.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GotoPageView
virtual bool GotoPageView(const pdf::PDFDoc &document, int page_index, float left, float top)=0
A callback function to go to page view.
foxit::addon::pageeditor::ParagraphEditing::NumberingType
NumberingType
Enumeration for numbering type.
Definition: fs_paragraphediting.h:290
foxit::addon::pageeditor::ParagraphEditingProviderCallback::~ParagraphEditingProviderCallback
virtual ~ParagraphEditingProviderCallback()
Destructor.
Definition: fs_paragraphediting.h:179
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeSolidCircle
Bullet type: solid circle.
Definition: fs_paragraphediting.h:268
foxit::addon::pageeditor::ParagraphEditing::e_NumberingTypeDecimalRParen
Numbering type: 1) 2) 3)
Definition: fs_paragraphediting.h:296
foxit::addon::pageeditor::ParagraphEditing::OnKeyDown
bool OnKeyDown(uint32 key_code)
Call this function when key on the keyboard is down.
foxit::addon::pageeditor::ParagraphEditingUndoItem::operator!=
bool operator!=(const ParagraphEditingUndoItem &other) const
Not equal operator.
foxit::addon::pageeditor::ParagraphEditing::CanPaste
bool CanPaste()
Check whether can paste text.
foxit::addon::pageeditor::ParagraphEditingProviderCallback
Definition: fs_paragraphediting.h:45
fs_pdfdoc.h
Header file for PDF document related definitions and classes.
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeBlackDiamondMinusWhite
Bullet type: black diamond minus white.
Definition: fs_paragraphediting.h:282
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetClientRect
virtual RectF GetClientRect(const pdf::PDFDoc &document)=0
A callback function to get the client rectangle in device coordinate system.
foxit::addon::pageeditor::ParagraphEditing::StartEditing
void StartEditing(int page_index, const PointF &start_point, const PointF &end_point)
Start paragraph editing.
foxit::RGB
uint32 RGB
RGB color type, 24 bits, ((b) | ((g) << 8) | ((r) << 16)))
Definition: fs_basictypes.h:211
CFX_PSVTemplate
Definition: fx_coordinates.h:30
foxit::addon::pageeditor::ParagraphEditing::OnLButtonDown
bool OnLButtonDown(int page_index, const PointF &point)
Call this function when left mouse button is down.
foxit::addon::pageeditor::ParagraphEditing::e_NumberingTypeLowerLatinDot
Numbering type: a. b. c.
Definition: fs_paragraphediting.h:302
foxit::addon::pageeditor::ParagraphEditing
Definition: fs_paragraphediting.h:257
foxit::addon::pageeditor::ParagraphEditingUndoItem::IsEmpty
bool IsEmpty() const
Check whether current object is empty or not.
foxit::addon::pageeditor::ParagraphEditingMgr::IsEmpty
bool IsEmpty() const
Check whether current object is empty or not.
foxit::addon::pageeditor::ParagraphEditing::CopySelected
bool CopySelected()
Copy the selected text.
CFX_WideString
WIDE STRING CLASS.
Definition: fx_string.h:1461
foxit::addon::pageeditor::JoinSplit::Render
bool Render(Int32Array page_index_array, const common::Renderer &renderer)
Draw the currently join split operation state on the rendering.
foxit::addon::pageeditor::ParagraphEditing::SetBulletedList
void SetBulletedList(BulletType bullet_type)
Set bullet list for text.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetCurrentPageIndex
virtual int GetCurrentPageIndex(const pdf::PDFDoc &document)=0
A callback function used to get current page index.
foxit::addon::pageeditor::ParagraphEditingMgr::SetSystemDPI
void SetSystemDPI(float horizontal_dpi, float vertical_dpi)
Set the dpi for the paragraph editing provider used.
foxit::addon::pageeditor::ParagraphEditing::Deactivate
bool Deactivate()
Deactivate paragraph editing.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetVisiblePageIndexArray
virtual Int32Array GetVisiblePageIndexArray(const pdf::PDFDoc &document)=0
A callback function used to get visible page indexes.
foxit::addon::pageeditor::JoinSplit::e_JoinSplitOperationTypeLink
Join spilt operation type: Link.
Definition: fs_paragraphediting.h:759
foxit::pdf::PDFDoc
Definition: fs_pdfdoc.h:776
foxit::addon::pageeditor::JoinSplit::SelectNone
void SelectNone()
Call this function to clear all selected text.
foxit::addon::pageeditor::JoinSplit::GetEnableStatus
bool GetEnableStatus(JoinSplit::JoinSplitOperationType type)
Get join split editing operation state.
foxit::addon::pageeditor::ParagraphEditingMgr::operator==
bool operator==(const ParagraphEditingMgr &other) const
Equal operator.
foxit::addon::pageeditor::ParagraphEditing::Indent
void Indent()
Increase indent for text.
foxit::addon::pageeditor::ParagraphEditingUndoItem::operator==
bool operator==(const ParagraphEditingUndoItem &other) const
Equal operator.
foxit::addon::pageeditor::ParagraphEditing::SetFontName
void SetFontName(const WString &font_name)
Set font name for text.
foxit::addon::pageeditor::JoinSplit::e_JoinSplitOperationTypeClose
Join spilt operation type: Close.
Definition: fs_paragraphediting.h:765
foxit::addon::pageeditor::ParagraphEditing::Render
bool Render(const Int32Array page_index_array, const common::Renderer &renderer)
Draw the current paragraph editing operation status on the rendering.
foxit::addon::pageeditor::ParagraphEditing::e_NumberingTypeLowerLatinRParen
Numbering type: a) b) c)
Definition: fs_paragraphediting.h:300
foxit::common::Renderer
Definition: fs_render.h:197
foxit::addon::pageeditor::ParagraphEditingMgr::ParagraphEditingMgr
ParagraphEditingMgr(ParagraphEditingProviderCallback *callback, const pdf::PDFDoc &document)
Constructor.
foxit::addon::pageeditor::JoinSplit::IsEmpty
bool IsEmpty() const
Check whether current object is empty or not.
foxit::addon::pageeditor::JoinSplit::operator!=
bool operator!=(const JoinSplit &other) const
Not equal operator.
foxit::addon::pageeditor::ParagraphEditing::ExitEditing
void ExitEditing(bool is_end_directly=false)
Exit paragraph editing.
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeCheck
Bullet type: check.
Definition: fs_paragraphediting.h:274
foxit::addon::pageeditor::ParagraphEditing::DeleteSelected
bool DeleteSelected()
Delete the selected text.
foxit::addon::pageeditor::ParagraphEditing::OnKeyUp
bool OnKeyUp(uint32 key_code)
Call this function when key on the keyboard is up.
foxit::addon::pageeditor::ParagraphEditingUndoItem
Definition: fs_paragraphediting.h:185
foxit::addon::pageeditor::ParagraphEditing::SetStrikethrough
void SetStrikethrough(bool is_striketrough)
Set strikeout word style for text.
foxit::addon::pageeditor::ParagraphEditing::DeselectAll
bool DeselectAll()
Deselect all text.
foxit::addon::pageeditor::JoinSplit::operator=
JoinSplit & operator=(const JoinSplit &other)
Assign operator.
foxit::addon::pageeditor::ParagraphEditing::InsertText
bool InsertText(const WString &text)
Call this function when insert text into the page.
foxit::addon::pageeditor::ParagraphEditingUndoItem::ParagraphEditingUndoItem
ParagraphEditingUndoItem(const ParagraphEditingUndoItem &other)
Constructor, with another undo item object.
foxit::addon::pageeditor::ParagraphEditing::OnChar
bool OnChar(uint32 char_code)
Call this function when a character code is being input.
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeRightArrow
Bullet type: right arrow (upper white and lower black).
Definition: fs_paragraphediting.h:276
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetRenderMatrix
virtual Matrix GetRenderMatrix(const pdf::PDFDoc &document, int page_index)=0
A callback function to get the render matrix.
foxit::addon::pageeditor::ParagraphEditing::SelectAll
bool SelectAll()
Select all text.
foxit::addon::pageeditor::ParagraphEditing::OnLButtonUp
bool OnLButtonUp(int page_index, const PointF &point)
Call this function when left mouse button is up.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::NotifyTextInputReachLimit
virtual void NotifyTextInputReachLimit(const pdf::PDFDoc &document, int page_index)=0
A callback function used to notify text input reach limit.
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeInverseTangentCircle
Bullet type: inverse tangent circle.
Definition: fs_paragraphediting.h:278
foxit::addon::pageeditor::ParagraphEditingProviderCallback::Release
virtual void Release()=0
A callback function used to release current callback object itself.
foxit::addon::pageeditor::ParagraphEditing::e_NumberingTypeNone
Numbering type: none.
Definition: fs_paragraphediting.h:292
foxit::addon::pageeditor::ParagraphEditing::ParagraphEditing
ParagraphEditing(const ParagraphEditing &other)
Constructor, with another paragraph edit object.
foxit::addon::pageeditor::ParagraphEditingUndoItem::Undo
void Undo()
Undo this item.
foxit::addon::pageeditor::ParagraphEditing::e_BulletTypeSolidRectangle
Bullet type: solid rectangle.
Definition: fs_paragraphediting.h:270
CFX_ArrayTemplate< int32 >
foxit::addon::pageeditor::ParagraphEditingProviderCallback::AddUndoItem
virtual void AddUndoItem(const ParagraphEditingUndoItem &undo_item)=0
A callback function used to notify the page to add undo operation.
foxit::addon::pageeditor::ParagraphEditing::SetTextColor
void SetTextColor(RGB text_color)
Set text color for text.
foxit::addon::pageeditor::ParagraphEditing::OnMouseWheel
bool OnMouseWheel(int page_index, const PointF &point, int32 delta)
Call this function when scrolling the mouse wheel.
foxit::addon::pageeditor::ParagraphEditing::operator==
bool operator==(const ParagraphEditing &other) const
Equal operator.
foxit::addon::pageeditor::JoinSplit::ExitJoinEditing
void ExitJoinEditing()
Exit join split editing.
foxit::addon::pageeditor::ParagraphEditing::BulletType
BulletType
Enumeration for bullet type.
Definition: fs_paragraphediting.h:264
foxit::uint32
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:195
foxit::FS_HANDLE
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
fs_common.h
Header file for common definitions and classes.
foxit::addon::pageeditor::JoinSplit::e_JoinSplitOperationTypeSpilt
Join spilt operation type: Spilt.
Definition: fs_paragraphediting.h:757
foxit::addon::pageeditor::ParagraphEditingMgr::GetParagraphEditing
ParagraphEditing GetParagraphEditing()
Get the paragraph edit object.
foxit::addon::pageeditor::ParagraphEditing::e_NumberingTypeDecimalDot
Numbering type: 1. 2. 3.
Definition: fs_paragraphediting.h:294
foxit::addon::pageeditor::ParagraphEditing::operator!=
bool operator!=(const ParagraphEditing &other) const
Not equal operator.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetScale
virtual float GetScale(const pdf::PDFDoc &document, int page_index)=0
A callback function to get the scale of page.
foxit::common::Alignment
Alignment
Enumeration for alignment (horizontal).
Definition: fs_common.h:94
foxit::addon::pageeditor::ParagraphEditing::IsEmpty
bool IsEmpty() const
Check whether current object is empty or not.
foxit::addon::pageeditor::ParagraphEditing::CanCut
bool CanCut()
Check whether can cut text.
foxit::addon::pageeditor::ParagraphEditing::SetParagraphSpacing
void SetParagraphSpacing(float paragraph_space)
Set paragraph spacing for text.
foxit::int32
FX_INT32 int32
32-bit signed integer.
Definition: fs_basictypes.h:193
foxit::Base
Definition: fs_basictypes.h:451
foxit::addon::pageeditor::JoinSplit::e_JoinSplitOperationTypeJoin
Join spilt operation type: Join.
Definition: fs_paragraphediting.h:755
foxit::addon::pageeditor::ParagraphEditingProviderCallback::InvalidateRect
virtual void InvalidateRect(const pdf::PDFDoc &document, int page_index, const RectFArray &invalid_rects)=0
A callback function used to invalidate page rectangle.
fs_pdfpage.h
Header file for PDF page related definitions and classes.
foxit::addon::pageeditor::ParagraphEditing::CanDelete
bool CanDelete()
Check whether can delete text.
foxit::addon::pageeditor::JoinSplit::LinkBoxes
void LinkBoxes()
Call this function to link text.
foxit::addon::pageeditor::ParagraphEditingMgr
Definition: fs_paragraphediting.h:935
foxit::addon::pageeditor::ParagraphEditing::SetLineSpace
void SetLineSpace(float line_space)
Set line space for text.
foxit::addon::pageeditor::ParagraphEditing::operator=
ParagraphEditing & operator=(const ParagraphEditing &other)
Assign operator.
foxit::common::Rotation
Rotation
Enumeration for rotation.
Definition: fs_common.h:57
foxit
Foxit namespace.
Definition: fs_pdf3d.h:26
foxit::addon::pageeditor::JoinSplit::e_JoinSplitOperationTypeSelectNone
Join spilt operation type: SelectNone.
Definition: fs_paragraphediting.h:763
foxit::addon::pageeditor::JoinSplit::SplitBoxes
void SplitBoxes()
Call this function to split text.
foxit::addon::pageeditor::JoinSplit::Activate
bool Activate()
Activate join split editing.
foxit::addon::pageeditor::JoinSplit::~JoinSplit
~JoinSplit()
Destructor.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetPageViewHandle
virtual void * GetPageViewHandle(const pdf::PDFDoc &document, int page_index)=0
A callback function to get the page view window handle.
foxit::addon::pageeditor::ParagraphEditing::CanCopy
bool CanCopy()
Check whether can copy text.
foxit::addon::pageeditor::ParagraphEditing::Dedent
void Dedent()
Decrease indent for text.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetPageVisibleRect
virtual RectF GetPageVisibleRect(const pdf::PDFDoc &document, int page_index)=0
A callback function used to get visible page rectangle in device coordinate system.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::GetRotation
virtual common::Rotation GetRotation(const pdf::PDFDoc &document, int page_index)=0
A callback function used to get the page view rotate.
foxit::addon::pageeditor::ParagraphEditing::SetCharHorizontalScale
void SetCharHorizontalScale(int scale)
Set char horizontal scale for text.
foxit::addon::pageeditor::ParagraphEditingProviderCallback::SetDocChangeMark
virtual void SetDocChangeMark(const pdf::PDFDoc &document)=0
A callback function used to notify the document have changed.
foxit::addon::pageeditor::ParagraphEditing::Activate
bool Activate()
Activate paragraph editing.
foxit::addon::pageeditor::ParagraphEditing::SetBold
void SetBold(bool is_bold)
Set bold status for text.
foxit::addon::pageeditor::ParagraphEditingMgr::~ParagraphEditingMgr
~ParagraphEditingMgr()
Destructor.
foxit::addon::pageeditor::ParagraphEditing::SetSubscript
void SetSubscript(bool is_subscript)
Set the word property of subscript type for text.
NULL
#define NULL
The null-pointer value.
Definition: fx_system.h:792
CFX_Matrix
Definition: fx_coordinates.h:1076
foxit::addon::pageeditor::JoinSplit::JoinSplitOperationType
JoinSplitOperationType
Enumeration for join spilt operation type.
Definition: fs_paragraphediting.h:753
foxit::addon::pageeditor::ParagraphEditing::PasteSelected
bool PasteSelected()
Paste the copied text.
foxit::addon::pageeditor::ParagraphEditing::SetFontSize
void SetFontSize(float font_size)
Set the font size for text.
foxit::addon::pageeditor::JoinSplit::JoinBoxes
void JoinBoxes()
Call this function to join text.
foxit::addon::pageeditor::ParagraphEditing::~ParagraphEditing
~ParagraphEditing()
Destructor.
foxit::addon::pageeditor::ParagraphEditing::OnLButtonDoubleClick
bool OnLButtonDoubleClick(int page_index, const PointF &point)
Call this function when left mouse button is double clicked.
foxit::addon::pageeditor::ParagraphEditingMgr::operator=
ParagraphEditingMgr & operator=(const ParagraphEditingMgr &other)
Assign operator.
foxit::addon::pageeditor::ParagraphEditing::SetAlignment
void SetAlignment(foxit::common::Alignment alignment)
Set text alignment for text.
foxit::addon::pageeditor::ParagraphEditing::SetItalic
void SetItalic(bool is_italic)
Set italic status for text.
foxit::addon::pageeditor::ParagraphEditing::CanDeselectAll
bool CanDeselectAll()
Check whether can deselect all text.
fs_render.h
Header file for rendering related definitions and classes.
foxit::addon::pageeditor::ParagraphEditing::SetCharSpace
void SetCharSpace(float char_space)
Set char space for text.
foxit::addon::pageeditor::ParagraphEditing::e_NumberingTypeUpperLatinDot
Numbering type: A. B. C.
Definition: fs_paragraphediting.h:298
foxit::addon::pageeditor::ParagraphEditingUndoItem::operator=
ParagraphEditingUndoItem & operator=(const ParagraphEditingUndoItem &other)
Assign operator.
foxit::addon::pageeditor::ParagraphEditingUndoItem::~ParagraphEditingUndoItem
~ParagraphEditingUndoItem()
Destructor.
foxit::addon::pageeditor::JoinSplit::OnMouseMove
bool OnMouseMove(int page_index, const PointF &point)
Call this function when mouse moves.
foxit::addon::pageeditor::ParagraphEditing::CanSelectAll
bool CanSelectAll()
Check whether can select all text.
foxit::addon::pageeditor::JoinSplit::OnLButtonUp
bool OnLButtonUp(int page_index, const PointF &point)
Call this function when left mouse button is up.
foxit::addon::pageeditor::JoinSplit::e_JoinSplitOperationTypeUnlink
Join spilt operation type: Unlink.
Definition: fs_paragraphediting.h:761
CFX_FloatRect
Definition: fx_coordinates.h:771
foxit::addon::pageeditor::ParagraphEditingMgr::GetJoinSplit
JoinSplit GetJoinSplit()
Get the join split object.
foxit::addon::pageeditor::ParagraphEditing::SetNumberedList
void SetNumberedList(NumberingType numbering_type)
Set the look of numbering for text.