Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: fpdfsdk/include/fxedit/fxet_edit.h

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use stdint.h directly, bitfield minefield. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/fxedit/fx_edit.h ('k') | fpdfsdk/include/fxedit/fxet_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ 7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_
8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ 8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_
9 9
10 #include "core/include/fpdfdoc/fpdf_vt.h" 10 #include "core/include/fpdfdoc/fpdf_vt.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 }; 280 };
281 281
282 /* ------------------------- CFX_Edit_UndoItem derived classes 282 /* ------------------------- CFX_Edit_UndoItem derived classes
283 * ---------------------------- */ 283 * ---------------------------- */
284 284
285 class CFXEU_InsertWord : public CFX_Edit_UndoItem { 285 class CFXEU_InsertWord : public CFX_Edit_UndoItem {
286 public: 286 public:
287 CFXEU_InsertWord(CFX_Edit* pEdit, 287 CFXEU_InsertWord(CFX_Edit* pEdit,
288 const CPVT_WordPlace& wpOldPlace, 288 const CPVT_WordPlace& wpOldPlace,
289 const CPVT_WordPlace& wpNewPlace, 289 const CPVT_WordPlace& wpNewPlace,
290 FX_WORD word, 290 uint16_t word,
291 int32_t charset, 291 int32_t charset,
292 const CPVT_WordProps* pWordProps); 292 const CPVT_WordProps* pWordProps);
293 ~CFXEU_InsertWord() override; 293 ~CFXEU_InsertWord() override;
294 294
295 // CFX_Edit_UndoItem 295 // CFX_Edit_UndoItem
296 void Redo() override; 296 void Redo() override;
297 void Undo() override; 297 void Undo() override;
298 298
299 private: 299 private:
300 CFX_Edit* m_pEdit; 300 CFX_Edit* m_pEdit;
301 301
302 CPVT_WordPlace m_wpOld; 302 CPVT_WordPlace m_wpOld;
303 CPVT_WordPlace m_wpNew; 303 CPVT_WordPlace m_wpNew;
304 FX_WORD m_Word; 304 uint16_t m_Word;
305 int32_t m_nCharset; 305 int32_t m_nCharset;
306 CPVT_WordProps m_WordProps; 306 CPVT_WordProps m_WordProps;
307 }; 307 };
308 308
309 class CFXEU_InsertReturn : public CFX_Edit_UndoItem { 309 class CFXEU_InsertReturn : public CFX_Edit_UndoItem {
310 public: 310 public:
311 CFXEU_InsertReturn(CFX_Edit* pEdit, 311 CFXEU_InsertReturn(CFX_Edit* pEdit,
312 const CPVT_WordPlace& wpOldPlace, 312 const CPVT_WordPlace& wpOldPlace,
313 const CPVT_WordPlace& wpNewPlace, 313 const CPVT_WordPlace& wpNewPlace,
314 const CPVT_SecProps* pSecProps, 314 const CPVT_SecProps* pSecProps,
(...skipping 11 matching lines...) Expand all
326 CPVT_WordPlace m_wpNew; 326 CPVT_WordPlace m_wpNew;
327 CPVT_SecProps m_SecProps; 327 CPVT_SecProps m_SecProps;
328 CPVT_WordProps m_WordProps; 328 CPVT_WordProps m_WordProps;
329 }; 329 };
330 330
331 class CFXEU_Backspace : public CFX_Edit_UndoItem { 331 class CFXEU_Backspace : public CFX_Edit_UndoItem {
332 public: 332 public:
333 CFXEU_Backspace(CFX_Edit* pEdit, 333 CFXEU_Backspace(CFX_Edit* pEdit,
334 const CPVT_WordPlace& wpOldPlace, 334 const CPVT_WordPlace& wpOldPlace,
335 const CPVT_WordPlace& wpNewPlace, 335 const CPVT_WordPlace& wpNewPlace,
336 FX_WORD word, 336 uint16_t word,
337 int32_t charset, 337 int32_t charset,
338 const CPVT_SecProps& SecProps, 338 const CPVT_SecProps& SecProps,
339 const CPVT_WordProps& WordProps); 339 const CPVT_WordProps& WordProps);
340 ~CFXEU_Backspace() override; 340 ~CFXEU_Backspace() override;
341 341
342 // CFX_Edit_UndoItem 342 // CFX_Edit_UndoItem
343 void Redo() override; 343 void Redo() override;
344 void Undo() override; 344 void Undo() override;
345 345
346 private: 346 private:
347 CFX_Edit* m_pEdit; 347 CFX_Edit* m_pEdit;
348 348
349 CPVT_WordPlace m_wpOld; 349 CPVT_WordPlace m_wpOld;
350 CPVT_WordPlace m_wpNew; 350 CPVT_WordPlace m_wpNew;
351 FX_WORD m_Word; 351 uint16_t m_Word;
352 int32_t m_nCharset; 352 int32_t m_nCharset;
353 CPVT_SecProps m_SecProps; 353 CPVT_SecProps m_SecProps;
354 CPVT_WordProps m_WordProps; 354 CPVT_WordProps m_WordProps;
355 }; 355 };
356 356
357 class CFXEU_Delete : public CFX_Edit_UndoItem { 357 class CFXEU_Delete : public CFX_Edit_UndoItem {
358 public: 358 public:
359 CFXEU_Delete(CFX_Edit* pEdit, 359 CFXEU_Delete(CFX_Edit* pEdit,
360 const CPVT_WordPlace& wpOldPlace, 360 const CPVT_WordPlace& wpOldPlace,
361 const CPVT_WordPlace& wpNewPlace, 361 const CPVT_WordPlace& wpNewPlace,
362 FX_WORD word, 362 uint16_t word,
363 int32_t charset, 363 int32_t charset,
364 const CPVT_SecProps& SecProps, 364 const CPVT_SecProps& SecProps,
365 const CPVT_WordProps& WordProps, 365 const CPVT_WordProps& WordProps,
366 FX_BOOL bSecEnd); 366 FX_BOOL bSecEnd);
367 ~CFXEU_Delete() override; 367 ~CFXEU_Delete() override;
368 368
369 // CFX_Edit_UndoItem 369 // CFX_Edit_UndoItem
370 void Redo() override; 370 void Redo() override;
371 void Undo() override; 371 void Undo() override;
372 372
373 private: 373 private:
374 CFX_Edit* m_pEdit; 374 CFX_Edit* m_pEdit;
375 375
376 CPVT_WordPlace m_wpOld; 376 CPVT_WordPlace m_wpOld;
377 CPVT_WordPlace m_wpNew; 377 CPVT_WordPlace m_wpNew;
378 FX_WORD m_Word; 378 uint16_t m_Word;
379 int32_t m_nCharset; 379 int32_t m_nCharset;
380 CPVT_SecProps m_SecProps; 380 CPVT_SecProps m_SecProps;
381 CPVT_WordProps m_WordProps; 381 CPVT_WordProps m_WordProps;
382 FX_BOOL m_bSecEnd; 382 FX_BOOL m_bSecEnd;
383 }; 383 };
384 384
385 class CFXEU_Clear : public CFX_Edit_UndoItem { 385 class CFXEU_Clear : public CFX_Edit_UndoItem {
386 public: 386 public:
387 CFXEU_Clear(CFX_Edit* pEdit, 387 CFXEU_Clear(CFX_Edit* pEdit,
388 const CPVT_WordRange& wrSel, 388 const CPVT_WordRange& wrSel,
(...skipping 10 matching lines...) Expand all
399 CPVT_WordRange m_wrSel; 399 CPVT_WordRange m_wrSel;
400 CFX_WideString m_swText; 400 CFX_WideString m_swText;
401 }; 401 };
402 402
403 class CFXEU_ClearRich : public CFX_Edit_UndoItem { 403 class CFXEU_ClearRich : public CFX_Edit_UndoItem {
404 public: 404 public:
405 CFXEU_ClearRich(CFX_Edit* pEdit, 405 CFXEU_ClearRich(CFX_Edit* pEdit,
406 const CPVT_WordPlace& wpOldPlace, 406 const CPVT_WordPlace& wpOldPlace,
407 const CPVT_WordPlace& wpNewPlace, 407 const CPVT_WordPlace& wpNewPlace,
408 const CPVT_WordRange& wrSel, 408 const CPVT_WordRange& wrSel,
409 FX_WORD word, 409 uint16_t word,
410 int32_t charset, 410 int32_t charset,
411 const CPVT_SecProps& SecProps, 411 const CPVT_SecProps& SecProps,
412 const CPVT_WordProps& WordProps); 412 const CPVT_WordProps& WordProps);
413 ~CFXEU_ClearRich() override; 413 ~CFXEU_ClearRich() override;
414 414
415 // CFX_Edit_UndoItem 415 // CFX_Edit_UndoItem
416 void Redo() override; 416 void Redo() override;
417 void Undo() override; 417 void Undo() override;
418 418
419 private: 419 private:
420 CFX_Edit* m_pEdit; 420 CFX_Edit* m_pEdit;
421 421
422 CPVT_WordPlace m_wpOld; 422 CPVT_WordPlace m_wpOld;
423 CPVT_WordPlace m_wpNew; 423 CPVT_WordPlace m_wpNew;
424 CPVT_WordRange m_wrSel; 424 CPVT_WordRange m_wrSel;
425 FX_WORD m_Word; 425 uint16_t m_Word;
426 int32_t m_nCharset; 426 int32_t m_nCharset;
427 CPVT_SecProps m_SecProps; 427 CPVT_SecProps m_SecProps;
428 CPVT_WordProps m_WordProps; 428 CPVT_WordProps m_WordProps;
429 }; 429 };
430 430
431 class CFXEU_InsertText : public CFX_Edit_UndoItem { 431 class CFXEU_InsertText : public CFX_Edit_UndoItem {
432 public: 432 public:
433 CFXEU_InsertText(CFX_Edit* pEdit, 433 CFXEU_InsertText(CFX_Edit* pEdit,
434 const CPVT_WordPlace& wpOldPlace, 434 const CPVT_WordPlace& wpOldPlace,
435 const CPVT_WordPlace& wpNewPlace, 435 const CPVT_WordPlace& wpNewPlace,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 void SetNotify(IFX_Edit_Notify* pNotify) override; 530 void SetNotify(IFX_Edit_Notify* pNotify) override;
531 void SetOprNotify(IFX_Edit_OprNotify* pOprNotify) override; 531 void SetOprNotify(IFX_Edit_OprNotify* pOprNotify) override;
532 IFX_Edit_Iterator* GetIterator() override; 532 IFX_Edit_Iterator* GetIterator() override;
533 IPDF_VariableText* GetVariableText() override; 533 IPDF_VariableText* GetVariableText() override;
534 IFX_Edit_FontMap* GetFontMap() override; 534 IFX_Edit_FontMap* GetFontMap() override;
535 void Initialize() override; 535 void Initialize() override;
536 void SetPlateRect(const CFX_FloatRect& rect, FX_BOOL bPaint = TRUE) override; 536 void SetPlateRect(const CFX_FloatRect& rect, FX_BOOL bPaint = TRUE) override;
537 void SetScrollPos(const CFX_FloatPoint& point) override; 537 void SetScrollPos(const CFX_FloatPoint& point) override;
538 void SetAlignmentH(int32_t nFormat = 0, FX_BOOL bPaint = TRUE) override; 538 void SetAlignmentH(int32_t nFormat = 0, FX_BOOL bPaint = TRUE) override;
539 void SetAlignmentV(int32_t nFormat = 0, FX_BOOL bPaint = TRUE) override; 539 void SetAlignmentV(int32_t nFormat = 0, FX_BOOL bPaint = TRUE) override;
540 void SetPasswordChar(FX_WORD wSubWord = '*', FX_BOOL bPaint = TRUE) override; 540 void SetPasswordChar(uint16_t wSubWord = '*', FX_BOOL bPaint = TRUE) override;
541 void SetLimitChar(int32_t nLimitChar = 0, FX_BOOL bPaint = TRUE) override; 541 void SetLimitChar(int32_t nLimitChar = 0, FX_BOOL bPaint = TRUE) override;
542 void SetCharArray(int32_t nCharArray = 0, FX_BOOL bPaint = TRUE) override; 542 void SetCharArray(int32_t nCharArray = 0, FX_BOOL bPaint = TRUE) override;
543 void SetCharSpace(FX_FLOAT fCharSpace = 0.0f, FX_BOOL bPaint = TRUE) override; 543 void SetCharSpace(FX_FLOAT fCharSpace = 0.0f, FX_BOOL bPaint = TRUE) override;
544 void SetHorzScale(int32_t nHorzScale = 100, FX_BOOL bPaint = TRUE) override; 544 void SetHorzScale(int32_t nHorzScale = 100, FX_BOOL bPaint = TRUE) override;
545 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE) override; 545 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE) override;
546 void SetMultiLine(FX_BOOL bMultiLine = TRUE, FX_BOOL bPaint = TRUE) override; 546 void SetMultiLine(FX_BOOL bMultiLine = TRUE, FX_BOOL bPaint = TRUE) override;
547 void SetAutoReturn(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; 547 void SetAutoReturn(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override;
548 void SetAutoFontSize(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; 548 void SetAutoFontSize(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override;
549 void SetAutoScroll(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override; 549 void SetAutoScroll(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) override;
550 void SetFontSize(FX_FLOAT fFontSize, FX_BOOL bPaint = TRUE) override; 550 void SetFontSize(FX_FLOAT fFontSize, FX_BOOL bPaint = TRUE) override;
(...skipping 23 matching lines...) Expand all
574 void OnVK_UP(FX_BOOL bShift, FX_BOOL bCtrl) override; 574 void OnVK_UP(FX_BOOL bShift, FX_BOOL bCtrl) override;
575 void OnVK_DOWN(FX_BOOL bShift, FX_BOOL bCtrl) override; 575 void OnVK_DOWN(FX_BOOL bShift, FX_BOOL bCtrl) override;
576 void OnVK_LEFT(FX_BOOL bShift, FX_BOOL bCtrl) override; 576 void OnVK_LEFT(FX_BOOL bShift, FX_BOOL bCtrl) override;
577 void OnVK_RIGHT(FX_BOOL bShift, FX_BOOL bCtrl) override; 577 void OnVK_RIGHT(FX_BOOL bShift, FX_BOOL bCtrl) override;
578 void OnVK_HOME(FX_BOOL bShift, FX_BOOL bCtrl) override; 578 void OnVK_HOME(FX_BOOL bShift, FX_BOOL bCtrl) override;
579 void OnVK_END(FX_BOOL bShift, FX_BOOL bCtrl) override; 579 void OnVK_END(FX_BOOL bShift, FX_BOOL bCtrl) override;
580 void SetText(const FX_WCHAR* text, 580 void SetText(const FX_WCHAR* text,
581 int32_t charset = DEFAULT_CHARSET, 581 int32_t charset = DEFAULT_CHARSET,
582 const CPVT_SecProps* pSecProps = NULL, 582 const CPVT_SecProps* pSecProps = NULL,
583 const CPVT_WordProps* pWordProps = NULL) override; 583 const CPVT_WordProps* pWordProps = NULL) override;
584 FX_BOOL InsertWord(FX_WORD word, 584 FX_BOOL InsertWord(uint16_t word,
585 int32_t charset = DEFAULT_CHARSET, 585 int32_t charset = DEFAULT_CHARSET,
586 const CPVT_WordProps* pWordProps = NULL) override; 586 const CPVT_WordProps* pWordProps = NULL) override;
587 FX_BOOL InsertReturn(const CPVT_SecProps* pSecProps = NULL, 587 FX_BOOL InsertReturn(const CPVT_SecProps* pSecProps = NULL,
588 const CPVT_WordProps* pWordProps = NULL) override; 588 const CPVT_WordProps* pWordProps = NULL) override;
589 FX_BOOL Backspace() override; 589 FX_BOOL Backspace() override;
590 FX_BOOL Delete() override; 590 FX_BOOL Delete() override;
591 FX_BOOL Clear() override; 591 FX_BOOL Clear() override;
592 FX_BOOL InsertText(const FX_WCHAR* text, 592 FX_BOOL InsertText(const FX_WCHAR* text,
593 int32_t charset = DEFAULT_CHARSET, 593 int32_t charset = DEFAULT_CHARSET,
594 const CPVT_SecProps* pSecProps = NULL, 594 const CPVT_SecProps* pSecProps = NULL,
595 const CPVT_WordProps* pWordProps = NULL) override; 595 const CPVT_WordProps* pWordProps = NULL) override;
596 FX_BOOL Redo() override; 596 FX_BOOL Redo() override;
597 FX_BOOL Undo() override; 597 FX_BOOL Undo() override;
598 int32_t WordPlaceToWordIndex(const CPVT_WordPlace& place) const override; 598 int32_t WordPlaceToWordIndex(const CPVT_WordPlace& place) const override;
599 CPVT_WordPlace WordIndexToWordPlace(int32_t index) const override; 599 CPVT_WordPlace WordIndexToWordPlace(int32_t index) const override;
600 CPVT_WordPlace GetLineBeginPlace(const CPVT_WordPlace& place) const override; 600 CPVT_WordPlace GetLineBeginPlace(const CPVT_WordPlace& place) const override;
601 CPVT_WordPlace GetLineEndPlace(const CPVT_WordPlace& place) const override; 601 CPVT_WordPlace GetLineEndPlace(const CPVT_WordPlace& place) const override;
602 CPVT_WordPlace GetSectionBeginPlace( 602 CPVT_WordPlace GetSectionBeginPlace(
603 const CPVT_WordPlace& place) const override; 603 const CPVT_WordPlace& place) const override;
604 CPVT_WordPlace GetSectionEndPlace(const CPVT_WordPlace& place) const override; 604 CPVT_WordPlace GetSectionEndPlace(const CPVT_WordPlace& place) const override;
605 CPVT_WordPlace SearchWordPlace(const CFX_FloatPoint& point) const override; 605 CPVT_WordPlace SearchWordPlace(const CFX_FloatPoint& point) const override;
606 int32_t GetCaret() const override; 606 int32_t GetCaret() const override;
607 CPVT_WordPlace GetCaretWordPlace() const override; 607 CPVT_WordPlace GetCaretWordPlace() const override;
608 CFX_WideString GetSelText() const override; 608 CFX_WideString GetSelText() const override;
609 CFX_WideString GetText() const override; 609 CFX_WideString GetText() const override;
610 FX_FLOAT GetFontSize() const override; 610 FX_FLOAT GetFontSize() const override;
611 FX_WORD GetPasswordChar() const override; 611 uint16_t GetPasswordChar() const override;
612 CFX_FloatPoint GetScrollPos() const override; 612 CFX_FloatPoint GetScrollPos() const override;
613 int32_t GetCharArray() const override; 613 int32_t GetCharArray() const override;
614 CFX_FloatRect GetPlateRect() const override; 614 CFX_FloatRect GetPlateRect() const override;
615 CFX_FloatRect GetContentRect() const override; 615 CFX_FloatRect GetContentRect() const override;
616 CFX_WideString GetRangeText(const CPVT_WordRange& range) const override; 616 CFX_WideString GetRangeText(const CPVT_WordRange& range) const override;
617 int32_t GetHorzScale() const override; 617 int32_t GetHorzScale() const override;
618 FX_FLOAT GetCharSpace() const override; 618 FX_FLOAT GetCharSpace() const override;
619 int32_t GetTotalWords() const override; 619 int32_t GetTotalWords() const override;
620 void SetSel(int32_t nStartChar, int32_t nEndChar) override; 620 void SetSel(int32_t nStartChar, int32_t nEndChar) override;
621 void GetSel(int32_t& nStartChar, int32_t& nEndChar) const override; 621 void GetSel(int32_t& nStartChar, int32_t& nEndChar) const override;
(...skipping 17 matching lines...) Expand all
639 CPVT_WordRange GetVisibleWordRange() const override; 639 CPVT_WordRange GetVisibleWordRange() const override;
640 void AddUndoItem(IFX_Edit_UndoItem* pUndoItem) override; 640 void AddUndoItem(IFX_Edit_UndoItem* pUndoItem) override;
641 641
642 FX_BOOL Empty(); 642 FX_BOOL Empty();
643 643
644 CPVT_WordPlace DoInsertText(const CPVT_WordPlace& place, 644 CPVT_WordPlace DoInsertText(const CPVT_WordPlace& place,
645 const FX_WCHAR* text, 645 const FX_WCHAR* text,
646 int32_t charset, 646 int32_t charset,
647 const CPVT_SecProps* pSecProps, 647 const CPVT_SecProps* pSecProps,
648 const CPVT_WordProps* pWordProps); 648 const CPVT_WordProps* pWordProps);
649 int32_t GetCharSetFromUnicode(FX_WORD word, int32_t nOldCharset); 649 int32_t GetCharSetFromUnicode(uint16_t word, int32_t nOldCharset);
650 650
651 int32_t GetTotalLines() const; 651 int32_t GetTotalLines() const;
652 652
653 private: 653 private:
654 void SetSel(const CPVT_WordPlace& begin, const CPVT_WordPlace& end); 654 void SetSel(const CPVT_WordPlace& begin, const CPVT_WordPlace& end);
655 655
656 void RearrangeAll(); 656 void RearrangeAll();
657 void RearrangePart(const CPVT_WordRange& range); 657 void RearrangePart(const CPVT_WordRange& range);
658 void ScrollToCaret(); 658 void ScrollToCaret();
659 void SetScrollInfo(); 659 void SetScrollInfo();
660 void SetScrollPosX(FX_FLOAT fx); 660 void SetScrollPosX(FX_FLOAT fx);
661 void SetScrollPosY(FX_FLOAT fy); 661 void SetScrollPosY(FX_FLOAT fy);
662 void SetScrollLimit(); 662 void SetScrollLimit();
663 void SetContentChanged(); 663 void SetContentChanged();
664 664
665 void SetText(const FX_WCHAR* text, 665 void SetText(const FX_WCHAR* text,
666 int32_t charset, 666 int32_t charset,
667 const CPVT_SecProps* pSecProps, 667 const CPVT_SecProps* pSecProps,
668 const CPVT_WordProps* pWordProps, 668 const CPVT_WordProps* pWordProps,
669 FX_BOOL bAddUndo, 669 FX_BOOL bAddUndo,
670 FX_BOOL bPaint); 670 FX_BOOL bPaint);
671 FX_BOOL InsertWord(FX_WORD word, 671 FX_BOOL InsertWord(uint16_t word,
672 int32_t charset, 672 int32_t charset,
673 const CPVT_WordProps* pWordProps, 673 const CPVT_WordProps* pWordProps,
674 FX_BOOL bAddUndo, 674 FX_BOOL bAddUndo,
675 FX_BOOL bPaint); 675 FX_BOOL bPaint);
676 FX_BOOL InsertReturn(const CPVT_SecProps* pSecProps, 676 FX_BOOL InsertReturn(const CPVT_SecProps* pSecProps,
677 const CPVT_WordProps* pWordProps, 677 const CPVT_WordProps* pWordProps,
678 FX_BOOL bAddUndo, 678 FX_BOOL bAddUndo,
679 FX_BOOL bPaint); 679 FX_BOOL bPaint);
680 FX_BOOL Backspace(FX_BOOL bAddUndo, FX_BOOL bPaint); 680 FX_BOOL Backspace(FX_BOOL bAddUndo, FX_BOOL bPaint);
681 FX_BOOL Delete(FX_BOOL bAddUndo, FX_BOOL bPaint); 681 FX_BOOL Delete(FX_BOOL bAddUndo, FX_BOOL bPaint);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 792
793 class CFX_Edit_Provider : public IPDF_VariableText_Provider { 793 class CFX_Edit_Provider : public IPDF_VariableText_Provider {
794 public: 794 public:
795 explicit CFX_Edit_Provider(IFX_Edit_FontMap* pFontMap); 795 explicit CFX_Edit_Provider(IFX_Edit_FontMap* pFontMap);
796 ~CFX_Edit_Provider() override; 796 ~CFX_Edit_Provider() override;
797 797
798 IFX_Edit_FontMap* GetFontMap(); 798 IFX_Edit_FontMap* GetFontMap();
799 799
800 // IPDF_VariableText_Provider: 800 // IPDF_VariableText_Provider:
801 int32_t GetCharWidth(int32_t nFontIndex, 801 int32_t GetCharWidth(int32_t nFontIndex,
802 FX_WORD word, 802 uint16_t word,
803 int32_t nWordStyle) override; 803 int32_t nWordStyle) override;
804 int32_t GetTypeAscent(int32_t nFontIndex) override; 804 int32_t GetTypeAscent(int32_t nFontIndex) override;
805 int32_t GetTypeDescent(int32_t nFontIndex) override; 805 int32_t GetTypeDescent(int32_t nFontIndex) override;
806 int32_t GetWordFontIndex(FX_WORD word, 806 int32_t GetWordFontIndex(uint16_t word,
807 int32_t charset, 807 int32_t charset,
808 int32_t nFontIndex) override; 808 int32_t nFontIndex) override;
809 int32_t GetDefaultFontIndex() override; 809 int32_t GetDefaultFontIndex() override;
810 FX_BOOL IsLatinWord(FX_WORD word) override; 810 FX_BOOL IsLatinWord(uint16_t word) override;
811 811
812 private: 812 private:
813 IFX_Edit_FontMap* m_pFontMap; 813 IFX_Edit_FontMap* m_pFontMap;
814 }; 814 };
815 815
816 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_ 816 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fxedit/fx_edit.h ('k') | fpdfsdk/include/fxedit/fxet_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698