15 #ifndef FS_PARAGRAPHEDITING_H_
16 #define FS_PARAGRAPHEDITING_H_
36 namespace pageeditor {
264 typedef enum _BulletType {
290 typedef enum _NumberingType {
752 typedef enum _JoinSplitOperationType {
1015 void SetSystemDPI(
float horizontal_dpi,
float vertical_dpi);
1020 #endif // FS_PARAGRAPHEDIT_H_
bool IsEmpty() const
Check whether current object is empty or not.
virtual bool GotoPageView(const pdf::PDFDoc &document, int page_index, float left, float top)=0
A callback function to go to page view.
bool IsEmpty() const
Check whether current object is empty or not.
Join spilt operation type: Join.
Definition: fs_paragraphediting.h:754
Numbering type: a. b. c.
Definition: fs_paragraphediting.h:302
ParagraphEditingMgr & operator=(const ParagraphEditingMgr &other)
Assign operator.
Join spilt operation type: SelectNone.
Definition: fs_paragraphediting.h:762
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
bool OnLButtonUp(int page_index, const PointF &point)
Call this function when left mouse button is up.
bool Render(Int32Array page_index_array, const common::Renderer &renderer)
Draw the currently join split operation state on the rendering.
JoinSplit(const JoinSplit &other)
Constructor, with another join split object.
Numbering type: A. B. C.
Definition: fs_paragraphediting.h:298
~ParagraphEditingUndoItem()
Destructor.
bool CanDelete()
Check whether can delete text.
virtual void * GetPageViewHandle(const pdf::PDFDoc &document, int page_index)=0
A callback function to get the page view window handle.
bool CanCut()
Check whether can cut text.
virtual ~ParagraphEditingProviderCallback()
Destructor.
Definition: fs_paragraphediting.h:179
bool operator!=(const ParagraphEditing &other) const
Not equal operator.
bool CutSelected()
Cut the selected text.
virtual foxit::RectF GetPageRect(const pdf::PDFDoc &document, int page_index)=0
A callback function used to get page rectangle in device coordinate system.
JoinSplitOperationType
Enumeration for join spilt operation type.
Definition: fs_paragraphediting.h:752
Join spilt operation type: Spilt.
Definition: fs_paragraphediting.h:756
bool operator==(const JoinSplit &other) const
Equal operator.
JoinSplit & operator=(const JoinSplit &other)
Assign operator.
void Dedent()
Decrease indent for text.
void SetAlignment(foxit::common::Alignment alignment)
Set text alignment for text.
void SetBulletedList(BulletType bullet_type)
Set bullet list for text.
Join spilt operation type: Close.
Definition: fs_paragraphediting.h:764
Join spilt operation type: Unlink.
Definition: fs_paragraphediting.h:760
Header file for common definitions and classes.
bool CanCopy()
Check whether can copy text.
bool DeleteSelected()
Delete the selected text.
virtual common::Rotation GetRotation(const pdf::PDFDoc &document, int page_index)=0
A callback function used to get the page view rotate.
bool OnMouseWheel(int page_index, const PointF &point, int32 delta)
Call this function when scrolling the mouse wheel.
bool OnMouseMove(int page_index, const PointF &point)
Call this function when mouse moves.
Alignment
Enumeration for alignment (horizontal).
Definition: fs_common.h:75
void SetLineSpace(float line_space)
Set line space for text.
Bullet type: inverse tangent circle.
Definition: fs_paragraphediting.h:278
Bullet type: solid diamond.
Definition: fs_paragraphediting.h:272
bool IsEmpty() const
Check whether current object is empty or not.
ParagraphEditingUndoItem(const ParagraphEditingUndoItem &other)
Constructor, with another undo item object.
bool operator!=(const JoinSplit &other) const
Not equal operator.
void ExitEditing(bool is_end_directly=false)
Exit paragraph editing.
void ExitJoinEditing()
Exit join split editing.
bool OnLButtonDown(int page_index, const PointF &point)
Call this function when left mouse button is down.
bool operator!=(const ParagraphEditingMgr &other) const
Not equal operator.
bool DeselectAll()
Deselect all text.
bool OnLButtonDown(int page_index, const PointF &point)
Call this function when left mouse button is down.
virtual Matrix GetRenderMatrix(const pdf::PDFDoc &document, int page_index)=0
A callback function to get the render matrix.
Bullet type: right arrow (upper white and lower black).
Definition: fs_paragraphediting.h:276
bool IsEmpty() const
Check whether current object is empty or not.
void UnlinkBoxes()
Call this function to unlink text.
bool operator!=(const ParagraphEditingUndoItem &other) const
Not equal operator.
void Undo()
Undo this item.
Numbering type: none.
Definition: fs_paragraphediting.h:292
void Indent()
Increase indent for text.
bool CanPaste()
Check whether can paste text.
virtual int GetCurrentPageIndex(const pdf::PDFDoc &document)=0
A callback function used to get current page index.
Numbering type: 1) 2) 3)
Definition: fs_paragraphediting.h:296
virtual void AddUndoItem(const ParagraphEditingUndoItem &undo_item)=0
A callback function used to notify the page to add undo operation.
bool OnKeyDown(uint32 key_code)
Call this function when key on the keyboard is down.
bool CanDeselectAll()
Check whether can deselect all text.
void JoinBoxes()
Call this function to join text.
Bullet type: black diamond minus white.
Definition: fs_paragraphediting.h:282
virtual void Release()=0
A callback function used to release current callback object itself.
virtual Int32Array GetVisiblePageIndexArray(const pdf::PDFDoc &document)=0
A callback function used to get visible page indexes.
ParagraphEditing GetParagraphEditing()
Get the paragraph edit object.
~ParagraphEditing()
Destructor.
void SetSubscript(bool is_subscript)
Set the word property of subscript type for text.
bool OnLButtonUp(int page_index, const PointF &point)
Call this function when left mouse button is up.
void SetFontName(const WString &font_name)
Set font name for text.
void SetNumberedList(NumberingType numbering_type)
Set the look of numbering for text.
Definition: fx_coordinates.h:30
virtual void NotifyTextInputReachLimit(const pdf::PDFDoc &document, int page_index)=0
A callback function used to notify text input reach limit.
bool Activate()
Activate paragraph editing.
Rotation
Enumeration for rotation.
Definition: fs_common.h:57
Definition: fs_paragraphediting.h:934
ParagraphEditingMgr(ParagraphEditingProviderCallback *callback, const pdf::PDFDoc &document)
Constructor.
virtual float GetScale(const pdf::PDFDoc &document, int page_index)=0
A callback function to get the scale of page.
void SetSystemDPI(float horizontal_dpi, float vertical_dpi)
Set the dpi for the paragraph editing provider used.
void SetStrikethrough(bool is_striketrough)
Set strikeout word style for text.
bool operator==(const ParagraphEditingMgr &other) const
Equal operator.
void SetFontSize(float font_size)
Set the font size for text.
bool operator==(const ParagraphEditingUndoItem &other) const
Equal operator.
Header file for rendering related definitions and classes.
void SetUnderline(bool is_underline)
Set underline for text.
Header file for PDF page related definitions and classes.
Definition: fs_paragraphediting.h:185
virtual RectF GetPageVisibleRect(const pdf::PDFDoc &document, int page_index)=0
A callback function used to get visible page rectangle in device coordinate system.
Definition: fs_paragraphediting.h:45
Foxit namespace.
Definition: fs_taggedpdf.h:27
void SetCharHorizontalScale(int scale)
Set char horizontal scale for text.
void SplitBoxes()
Call this function to split text.
BulletType
Enumeration for bullet type.
Definition: fs_paragraphediting.h:264
bool Render(const Int32Array page_index_array, const common::Renderer &renderer)
Draw the current paragraph editing operation status on the rendering.
Numbering type: a) b) c)
Definition: fs_paragraphediting.h:300
void LinkBoxes()
Call this function to link text.
bool OnLButtonDoubleClick(int page_index, const PointF &point)
Call this function when left mouse button is double clicked.
Definition: fs_paragraphediting.h:257
Header file for PDF document related definitions and classes.
Bullet type: check.
Definition: fs_paragraphediting.h:274
bool SelectAll()
Select all text.
#define NULL
The null-pointer value.
Definition: fx_system.h:780
Definition: fx_coordinates.h:771
Join spilt operation type: Link.
Definition: fs_paragraphediting.h:758
ParagraphEditing & operator=(const ParagraphEditing &other)
Assign operator.
uint32 RGB
RGB color type, 24 bits, ((b) | ((g) << 8) | ((r) << 16)))
Definition: fs_basictypes.h:212
virtual RectF GetClientRect(const pdf::PDFDoc &document)=0
A callback function to get the client rectangle in device coordinate system.
Definition: fs_pdfdoc.h:610
NumberingType
Enumeration for numbering type.
Definition: fs_paragraphediting.h:290
bool CopySelected()
Copy the selected text.
void SetCharSpace(float char_space)
Set char space for text.
bool Deactivate()
Deactivate paragraph editing.
virtual void SetDocChangeMark(const pdf::PDFDoc &document)=0
A callback function used to notify the document have changed.
Bullet type: diagonal up right arrow.
Definition: fs_paragraphediting.h:280
FX_INT32 int32
32-bit signed integer.
Definition: fs_basictypes.h:194
ParagraphEditingUndoItem & operator=(const ParagraphEditingUndoItem &other)
Assign operator.
Numbering type: 1. 2. 3.
Definition: fs_paragraphediting.h:294
Bullet type: none.
Definition: fs_paragraphediting.h:266
bool Deactivate()
Deactivate join split editing.
Bullet type: solid rectangle.
Definition: fs_paragraphediting.h:270
void SelectNone()
Call this function to clear all selected text.
JoinSplit GetJoinSplit()
Get the join split object.
void SetTextColor(RGB text_color)
Set text color for text.
bool operator==(const ParagraphEditing &other) const
Equal operator.
Definition: fs_paragraphediting.h:745
Definition: fx_coordinates.h:1076
bool OnChar(uint32 char_code)
Call this function when a character code is being input.
void SetItalic(bool is_italic)
Set italic status for text.
bool OnKeyUp(uint32 key_code)
Call this function when key on the keyboard is up.
WIDE STRING CLASS.
Definition: fx_string.h:1452
bool InsertText(const WString &text)
Call this function when insert text into the page.
virtual void InvalidateRect(const pdf::PDFDoc &document, int page_index, const RectFArray &invalid_rects)=0
A callback function used to invalidate page rectangle.
Bullet type: solid circle.
Definition: fs_paragraphediting.h:268
ParagraphEditing(const ParagraphEditing &other)
Constructor, with another paragraph edit object.
void StartEditing(int page_index, const PointF &start_point, const PointF &end_point)
Start paragraph editing.
bool Activate()
Activate join split editing.
bool CanSelectAll()
Check whether can select all text.
bool OnMouseMove(int page_index, const PointF &point)
Call this function when mouse moves.
void Redo()
Redo this item.
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:196
bool PasteSelected()
Paste the copied text.
Definition: fs_render.h:200
void SetParagraphSpacing(float paragraph_space)
Set paragraph spacing for text.
Definition: fs_basictypes.h:427
~ParagraphEditingMgr()
Destructor.
void SetBold(bool is_bold)
Set bold status for text.
void SetSuperscript(bool is_superscript)
Set the word property of superscript type for text.
bool GetEnableStatus(JoinSplit::JoinSplitOperationType type)
Get join split editing operation state.
@2024 Foxit Software Incorporated. All rights reserved.