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

Side by Side Diff: xfa/fxfa/include/fxfa_basic.h

Issue 2089443002: Convert XFA_ELEMENT to an enum class (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: More unknown checks Created 4 years, 6 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 | « xfa/fxfa/app/xfa_ffwidgethandler.cpp ('k') | xfa/fxfa/include/fxfa_widget.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 XFA_FXFA_INCLUDE_FXFA_BASIC_H_ 7 #ifndef XFA_FXFA_INCLUDE_FXFA_BASIC_H_
8 #define XFA_FXFA_INCLUDE_FXFA_BASIC_H_ 8 #define XFA_FXFA_INCLUDE_FXFA_BASIC_H_
9 9
10 #include "fxjse/include/cfxjse_arguments.h" 10 #include "fxjse/include/cfxjse_arguments.h"
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 XFA_ATTRIBUTE_Placement, 606 XFA_ATTRIBUTE_Placement,
607 XFA_ATTRIBUTE_Before, 607 XFA_ATTRIBUTE_Before,
608 XFA_ATTRIBUTE_WritingScript, 608 XFA_ATTRIBUTE_WritingScript,
609 XFA_ATTRIBUTE_EndChar, 609 XFA_ATTRIBUTE_EndChar,
610 XFA_ATTRIBUTE_Lock, 610 XFA_ATTRIBUTE_Lock,
611 XFA_ATTRIBUTE_Long, 611 XFA_ATTRIBUTE_Long,
612 XFA_ATTRIBUTE_Intact, 612 XFA_ATTRIBUTE_Intact,
613 XFA_ATTRIBUTE_XdpContent, 613 XFA_ATTRIBUTE_XdpContent,
614 XFA_ATTRIBUTE_DecipherOnly, 614 XFA_ATTRIBUTE_DecipherOnly,
615 }; 615 };
616 enum XFA_ELEMENT { 616
617 XFA_ELEMENT_Ps, 617 enum class XFA_Element : int32_t {
618 XFA_ELEMENT_To, 618 Unknown = -1,
619 XFA_ELEMENT_Ui, 619
620 XFA_ELEMENT_RecordSet, 620 Ps,
621 XFA_ELEMENT_SubsetBelow, 621 To,
622 XFA_ELEMENT_SubformSet, 622 Ui,
623 XFA_ELEMENT_AdobeExtensionLevel, 623 RecordSet,
624 XFA_ELEMENT_Typeface, 624 SubsetBelow,
625 XFA_ELEMENT_Break, 625 SubformSet,
626 XFA_ELEMENT_FontInfo, 626 AdobeExtensionLevel,
627 XFA_ELEMENT_NumberPattern, 627 Typeface,
628 XFA_ELEMENT_DynamicRender, 628 Break,
629 XFA_ELEMENT_PrintScaling, 629 FontInfo,
630 XFA_ELEMENT_CheckButton, 630 NumberPattern,
631 XFA_ELEMENT_DatePatterns, 631 DynamicRender,
632 XFA_ELEMENT_SourceSet, 632 PrintScaling,
633 XFA_ELEMENT_Amd, 633 CheckButton,
634 XFA_ELEMENT_Arc, 634 DatePatterns,
635 XFA_ELEMENT_Day, 635 SourceSet,
636 XFA_ELEMENT_Era, 636 Amd,
637 XFA_ELEMENT_Jog, 637 Arc,
638 XFA_ELEMENT_Log, 638 Day,
639 XFA_ELEMENT_Map, 639 Era,
640 XFA_ELEMENT_Mdp, 640 Jog,
641 XFA_ELEMENT_BreakBefore, 641 Log,
642 XFA_ELEMENT_Oid, 642 Map,
643 XFA_ELEMENT_Pcl, 643 Mdp,
644 XFA_ELEMENT_Pdf, 644 BreakBefore,
645 XFA_ELEMENT_Ref, 645 Oid,
646 XFA_ELEMENT_Uri, 646 Pcl,
647 XFA_ELEMENT_Xdc, 647 Pdf,
648 XFA_ELEMENT_Xdp, 648 Ref,
649 XFA_ELEMENT_Xfa, 649 Uri,
650 XFA_ELEMENT_Xsl, 650 Xdc,
651 XFA_ELEMENT_Zpl, 651 Xdp,
652 XFA_ELEMENT_Cache, 652 Xfa,
653 XFA_ELEMENT_Margin, 653 Xsl,
654 XFA_ELEMENT_KeyUsage, 654 Zpl,
655 XFA_ELEMENT_Exclude, 655 Cache,
656 XFA_ELEMENT_ChoiceList, 656 Margin,
657 XFA_ELEMENT_Level, 657 KeyUsage,
658 XFA_ELEMENT_LabelPrinter, 658 Exclude,
659 XFA_ELEMENT_CalendarSymbols, 659 ChoiceList,
660 XFA_ELEMENT_Para, 660 Level,
661 XFA_ELEMENT_Part, 661 LabelPrinter,
662 XFA_ELEMENT_Pdfa, 662 CalendarSymbols,
663 XFA_ELEMENT_Filter, 663 Para,
664 XFA_ELEMENT_Present, 664 Part,
665 XFA_ELEMENT_Pagination, 665 Pdfa,
666 XFA_ELEMENT_Encoding, 666 Filter,
667 XFA_ELEMENT_Event, 667 Present,
668 XFA_ELEMENT_Whitespace, 668 Pagination,
669 XFA_ELEMENT_DefaultUi, 669 Encoding,
670 XFA_ELEMENT_DataModel, 670 Event,
671 XFA_ELEMENT_Barcode, 671 Whitespace,
672 XFA_ELEMENT_TimePattern, 672 DefaultUi,
673 XFA_ELEMENT_BatchOutput, 673 DataModel,
674 XFA_ELEMENT_Enforce, 674 Barcode,
675 XFA_ELEMENT_CurrencySymbols, 675 TimePattern,
676 XFA_ELEMENT_AddSilentPrint, 676 BatchOutput,
677 XFA_ELEMENT_Rename, 677 Enforce,
678 XFA_ELEMENT_Operation, 678 CurrencySymbols,
679 XFA_ELEMENT_Typefaces, 679 AddSilentPrint,
680 XFA_ELEMENT_SubjectDNs, 680 Rename,
681 XFA_ELEMENT_Issuers, 681 Operation,
682 XFA_ELEMENT_SignaturePseudoModel, 682 Typefaces,
683 XFA_ELEMENT_WsdlConnection, 683 SubjectDNs,
684 XFA_ELEMENT_Debug, 684 Issuers,
685 XFA_ELEMENT_Delta, 685 SignaturePseudoModel,
686 XFA_ELEMENT_EraNames, 686 WsdlConnection,
687 XFA_ELEMENT_ModifyAnnots, 687 Debug,
688 XFA_ELEMENT_StartNode, 688 Delta,
689 XFA_ELEMENT_Button, 689 EraNames,
690 XFA_ELEMENT_Format, 690 ModifyAnnots,
691 XFA_ELEMENT_Border, 691 StartNode,
692 XFA_ELEMENT_Area, 692 Button,
693 XFA_ELEMENT_Hyphenation, 693 Format,
694 XFA_ELEMENT_Text, 694 Border,
695 XFA_ELEMENT_Time, 695 Area,
696 XFA_ELEMENT_Type, 696 Hyphenation,
697 XFA_ELEMENT_Overprint, 697 Text,
698 XFA_ELEMENT_Certificates, 698 Time,
699 XFA_ELEMENT_EncryptionMethods, 699 Type,
700 XFA_ELEMENT_SetProperty, 700 Overprint,
701 XFA_ELEMENT_PrinterName, 701 Certificates,
702 XFA_ELEMENT_StartPage, 702 EncryptionMethods,
703 XFA_ELEMENT_PageOffset, 703 SetProperty,
704 XFA_ELEMENT_DateTime, 704 PrinterName,
705 XFA_ELEMENT_Comb, 705 StartPage,
706 XFA_ELEMENT_Pattern, 706 PageOffset,
707 XFA_ELEMENT_IfEmpty, 707 DateTime,
708 XFA_ELEMENT_SuppressBanner, 708 Comb,
709 XFA_ELEMENT_OutputBin, 709 Pattern,
710 XFA_ELEMENT_Field, 710 IfEmpty,
711 XFA_ELEMENT_Agent, 711 SuppressBanner,
712 XFA_ELEMENT_OutputXSL, 712 OutputBin,
713 XFA_ELEMENT_AdjustData, 713 Field,
714 XFA_ELEMENT_AutoSave, 714 Agent,
715 XFA_ELEMENT_ContentArea, 715 OutputXSL,
716 XFA_ELEMENT_EventPseudoModel, 716 AdjustData,
717 XFA_ELEMENT_WsdlAddress, 717 AutoSave,
718 XFA_ELEMENT_Solid, 718 ContentArea,
719 XFA_ELEMENT_DateTimeSymbols, 719 EventPseudoModel,
720 XFA_ELEMENT_EncryptionLevel, 720 WsdlAddress,
721 XFA_ELEMENT_Edge, 721 Solid,
722 XFA_ELEMENT_Stipple, 722 DateTimeSymbols,
723 XFA_ELEMENT_Attributes, 723 EncryptionLevel,
724 XFA_ELEMENT_VersionControl, 724 Edge,
725 XFA_ELEMENT_Meridiem, 725 Stipple,
726 XFA_ELEMENT_ExclGroup, 726 Attributes,
727 XFA_ELEMENT_ToolTip, 727 VersionControl,
728 XFA_ELEMENT_Compress, 728 Meridiem,
729 XFA_ELEMENT_Reason, 729 ExclGroup,
730 XFA_ELEMENT_Execute, 730 ToolTip,
731 XFA_ELEMENT_ContentCopy, 731 Compress,
732 XFA_ELEMENT_DateTimeEdit, 732 Reason,
733 XFA_ELEMENT_Config, 733 Execute,
734 XFA_ELEMENT_Image, 734 ContentCopy,
735 XFA_ELEMENT_SharpxHTML, 735 DateTimeEdit,
736 XFA_ELEMENT_NumberOfCopies, 736 Config,
737 XFA_ELEMENT_BehaviorOverride, 737 Image,
738 XFA_ELEMENT_TimeStamp, 738 SharpxHTML,
739 XFA_ELEMENT_Month, 739 NumberOfCopies,
740 XFA_ELEMENT_ViewerPreferences, 740 BehaviorOverride,
741 XFA_ELEMENT_ScriptModel, 741 TimeStamp,
742 XFA_ELEMENT_Decimal, 742 Month,
743 XFA_ELEMENT_Subform, 743 ViewerPreferences,
744 XFA_ELEMENT_Select, 744 ScriptModel,
745 XFA_ELEMENT_Window, 745 Decimal,
746 XFA_ELEMENT_LocaleSet, 746 Subform,
747 XFA_ELEMENT_Handler, 747 Select,
748 XFA_ELEMENT_HostPseudoModel, 748 Window,
749 XFA_ELEMENT_Presence, 749 LocaleSet,
750 XFA_ELEMENT_Record, 750 Handler,
751 XFA_ELEMENT_Embed, 751 HostPseudoModel,
752 XFA_ELEMENT_Version, 752 Presence,
753 XFA_ELEMENT_Command, 753 Record,
754 XFA_ELEMENT_Copies, 754 Embed,
755 XFA_ELEMENT_Staple, 755 Version,
756 XFA_ELEMENT_SubmitFormat, 756 Command,
757 XFA_ELEMENT_Boolean, 757 Copies,
758 XFA_ELEMENT_Message, 758 Staple,
759 XFA_ELEMENT_Output, 759 SubmitFormat,
760 XFA_ELEMENT_PsMap, 760 Boolean,
761 XFA_ELEMENT_ExcludeNS, 761 Message,
762 XFA_ELEMENT_Assist, 762 Output,
763 XFA_ELEMENT_Picture, 763 PsMap,
764 XFA_ELEMENT_Traversal, 764 ExcludeNS,
765 XFA_ELEMENT_SilentPrint, 765 Assist,
766 XFA_ELEMENT_WebClient, 766 Picture,
767 XFA_ELEMENT_LayoutPseudoModel, 767 Traversal,
768 XFA_ELEMENT_Producer, 768 SilentPrint,
769 XFA_ELEMENT_Corner, 769 WebClient,
770 XFA_ELEMENT_MsgId, 770 LayoutPseudoModel,
771 XFA_ELEMENT_Color, 771 Producer,
772 XFA_ELEMENT_Keep, 772 Corner,
773 XFA_ELEMENT_Query, 773 MsgId,
774 XFA_ELEMENT_Insert, 774 Color,
775 XFA_ELEMENT_ImageEdit, 775 Keep,
776 XFA_ELEMENT_Validate, 776 Query,
777 XFA_ELEMENT_DigestMethods, 777 Insert,
778 XFA_ELEMENT_NumberPatterns, 778 ImageEdit,
779 XFA_ELEMENT_PageSet, 779 Validate,
780 XFA_ELEMENT_Integer, 780 DigestMethods,
781 XFA_ELEMENT_SoapAddress, 781 NumberPatterns,
782 XFA_ELEMENT_Equate, 782 PageSet,
783 XFA_ELEMENT_FormFieldFilling, 783 Integer,
784 XFA_ELEMENT_PageRange, 784 SoapAddress,
785 XFA_ELEMENT_Update, 785 Equate,
786 XFA_ELEMENT_ConnectString, 786 FormFieldFilling,
787 XFA_ELEMENT_Mode, 787 PageRange,
788 XFA_ELEMENT_Layout, 788 Update,
789 XFA_ELEMENT_Sharpxml, 789 ConnectString,
790 XFA_ELEMENT_XsdConnection, 790 Mode,
791 XFA_ELEMENT_Traverse, 791 Layout,
792 XFA_ELEMENT_Encodings, 792 Sharpxml,
793 XFA_ELEMENT_Template, 793 XsdConnection,
794 XFA_ELEMENT_Acrobat, 794 Traverse,
795 XFA_ELEMENT_ValidationMessaging, 795 Encodings,
796 XFA_ELEMENT_Signing, 796 Template,
797 XFA_ELEMENT_DataWindow, 797 Acrobat,
798 XFA_ELEMENT_Script, 798 ValidationMessaging,
799 XFA_ELEMENT_AddViewerPreferences, 799 Signing,
800 XFA_ELEMENT_AlwaysEmbed, 800 DataWindow,
801 XFA_ELEMENT_PasswordEdit, 801 Script,
802 XFA_ELEMENT_NumericEdit, 802 AddViewerPreferences,
803 XFA_ELEMENT_EncryptionMethod, 803 AlwaysEmbed,
804 XFA_ELEMENT_Change, 804 PasswordEdit,
805 XFA_ELEMENT_PageArea, 805 NumericEdit,
806 XFA_ELEMENT_SubmitUrl, 806 EncryptionMethod,
807 XFA_ELEMENT_Oids, 807 Change,
808 XFA_ELEMENT_Signature, 808 PageArea,
809 XFA_ELEMENT_ADBE_JSConsole, 809 SubmitUrl,
810 XFA_ELEMENT_Caption, 810 Oids,
811 XFA_ELEMENT_Relevant, 811 Signature,
812 XFA_ELEMENT_FlipLabel, 812 ADBE_JSConsole,
813 XFA_ELEMENT_ExData, 813 Caption,
814 XFA_ELEMENT_DayNames, 814 Relevant,
815 XFA_ELEMENT_SoapAction, 815 FlipLabel,
816 XFA_ELEMENT_DefaultTypeface, 816 ExData,
817 XFA_ELEMENT_Manifest, 817 DayNames,
818 XFA_ELEMENT_Overflow, 818 SoapAction,
819 XFA_ELEMENT_Linear, 819 DefaultTypeface,
820 XFA_ELEMENT_CurrencySymbol, 820 Manifest,
821 XFA_ELEMENT_Delete, 821 Overflow,
822 XFA_ELEMENT_Deltas, 822 Linear,
823 XFA_ELEMENT_DigestMethod, 823 CurrencySymbol,
824 XFA_ELEMENT_InstanceManager, 824 Delete,
825 XFA_ELEMENT_EquateRange, 825 Deltas,
826 XFA_ELEMENT_Medium, 826 DigestMethod,
827 XFA_ELEMENT_TextEdit, 827 InstanceManager,
828 XFA_ELEMENT_TemplateCache, 828 EquateRange,
829 XFA_ELEMENT_CompressObjectStream, 829 Medium,
830 XFA_ELEMENT_DataValue, 830 TextEdit,
831 XFA_ELEMENT_AccessibleContent, 831 TemplateCache,
832 XFA_ELEMENT_NodeList, 832 CompressObjectStream,
833 XFA_ELEMENT_IncludeXDPContent, 833 DataValue,
834 XFA_ELEMENT_XmlConnection, 834 AccessibleContent,
835 XFA_ELEMENT_ValidateApprovalSignatures, 835 NodeList,
836 XFA_ELEMENT_SignData, 836 IncludeXDPContent,
837 XFA_ELEMENT_Packets, 837 XmlConnection,
838 XFA_ELEMENT_DatePattern, 838 ValidateApprovalSignatures,
839 XFA_ELEMENT_DuplexOption, 839 SignData,
840 XFA_ELEMENT_Base, 840 Packets,
841 XFA_ELEMENT_Bind, 841 DatePattern,
842 XFA_ELEMENT_Compression, 842 DuplexOption,
843 XFA_ELEMENT_User, 843 Base,
844 XFA_ELEMENT_Rectangle, 844 Bind,
845 XFA_ELEMENT_EffectiveOutputPolicy, 845 Compression,
846 XFA_ELEMENT_ADBE_JSDebugger, 846 User,
847 XFA_ELEMENT_Acrobat7, 847 Rectangle,
848 XFA_ELEMENT_Interactive, 848 EffectiveOutputPolicy,
849 XFA_ELEMENT_Locale, 849 ADBE_JSDebugger,
850 XFA_ELEMENT_CurrentPage, 850 Acrobat7,
851 XFA_ELEMENT_Data, 851 Interactive,
852 XFA_ELEMENT_Date, 852 Locale,
853 XFA_ELEMENT_Desc, 853 CurrentPage,
854 XFA_ELEMENT_Encrypt, 854 Data,
855 XFA_ELEMENT_Draw, 855 Date,
856 XFA_ELEMENT_Encryption, 856 Desc,
857 XFA_ELEMENT_MeridiemNames, 857 Encrypt,
858 XFA_ELEMENT_Messaging, 858 Draw,
859 XFA_ELEMENT_Speak, 859 Encryption,
860 XFA_ELEMENT_DataGroup, 860 MeridiemNames,
861 XFA_ELEMENT_Common, 861 Messaging,
862 XFA_ELEMENT_Sharptext, 862 Speak,
863 XFA_ELEMENT_PaginationOverride, 863 DataGroup,
864 XFA_ELEMENT_Reasons, 864 Common,
865 XFA_ELEMENT_SignatureProperties, 865 Sharptext,
866 XFA_ELEMENT_Threshold, 866 PaginationOverride,
867 XFA_ELEMENT_AppearanceFilter, 867 Reasons,
868 XFA_ELEMENT_Fill, 868 SignatureProperties,
869 XFA_ELEMENT_Font, 869 Threshold,
870 XFA_ELEMENT_Form, 870 AppearanceFilter,
871 XFA_ELEMENT_MediumInfo, 871 Fill,
872 XFA_ELEMENT_Certificate, 872 Font,
873 XFA_ELEMENT_Password, 873 Form,
874 XFA_ELEMENT_RunScripts, 874 MediumInfo,
875 XFA_ELEMENT_Trace, 875 Certificate,
876 XFA_ELEMENT_Float, 876 Password,
877 XFA_ELEMENT_RenderPolicy, 877 RunScripts,
878 XFA_ELEMENT_LogPseudoModel, 878 Trace,
879 XFA_ELEMENT_Destination, 879 Float,
880 XFA_ELEMENT_Value, 880 RenderPolicy,
881 XFA_ELEMENT_Bookend, 881 LogPseudoModel,
882 XFA_ELEMENT_ExObject, 882 Destination,
883 XFA_ELEMENT_OpenAction, 883 Value,
884 XFA_ELEMENT_NeverEmbed, 884 Bookend,
885 XFA_ELEMENT_BindItems, 885 ExObject,
886 XFA_ELEMENT_Calculate, 886 OpenAction,
887 XFA_ELEMENT_Print, 887 NeverEmbed,
888 XFA_ELEMENT_Extras, 888 BindItems,
889 XFA_ELEMENT_Proto, 889 Calculate,
890 XFA_ELEMENT_DSigData, 890 Print,
891 XFA_ELEMENT_Creator, 891 Extras,
892 XFA_ELEMENT_Connect, 892 Proto,
893 XFA_ELEMENT_Permissions, 893 DSigData,
894 XFA_ELEMENT_ConnectionSet, 894 Creator,
895 XFA_ELEMENT_Submit, 895 Connect,
896 XFA_ELEMENT_Range, 896 Permissions,
897 XFA_ELEMENT_Linearized, 897 ConnectionSet,
898 XFA_ELEMENT_Packet, 898 Submit,
899 XFA_ELEMENT_RootElement, 899 Range,
900 XFA_ELEMENT_PlaintextMetadata, 900 Linearized,
901 XFA_ELEMENT_NumberSymbols, 901 Packet,
902 XFA_ELEMENT_PrintHighQuality, 902 RootElement,
903 XFA_ELEMENT_Driver, 903 PlaintextMetadata,
904 XFA_ELEMENT_IncrementalLoad, 904 NumberSymbols,
905 XFA_ELEMENT_SubjectDN, 905 PrintHighQuality,
906 XFA_ELEMENT_CompressLogicalStructure, 906 Driver,
907 XFA_ELEMENT_IncrementalMerge, 907 IncrementalLoad,
908 XFA_ELEMENT_Radial, 908 SubjectDN,
909 XFA_ELEMENT_Variables, 909 CompressLogicalStructure,
910 XFA_ELEMENT_TimePatterns, 910 IncrementalMerge,
911 XFA_ELEMENT_EffectiveInputPolicy, 911 Radial,
912 XFA_ELEMENT_NameAttr, 912 Variables,
913 XFA_ELEMENT_Conformance, 913 TimePatterns,
914 XFA_ELEMENT_Transform, 914 EffectiveInputPolicy,
915 XFA_ELEMENT_LockDocument, 915 NameAttr,
916 XFA_ELEMENT_BreakAfter, 916 Conformance,
917 XFA_ELEMENT_Line, 917 Transform,
918 XFA_ELEMENT_List, 918 LockDocument,
919 XFA_ELEMENT_Source, 919 BreakAfter,
920 XFA_ELEMENT_Occur, 920 Line,
921 XFA_ELEMENT_PickTrayByPDFSize, 921 List,
922 XFA_ELEMENT_MonthNames, 922 Source,
923 XFA_ELEMENT_Severity, 923 Occur,
924 XFA_ELEMENT_GroupParent, 924 PickTrayByPDFSize,
925 XFA_ELEMENT_DocumentAssembly, 925 MonthNames,
926 XFA_ELEMENT_NumberSymbol, 926 Severity,
927 XFA_ELEMENT_Tagged, 927 GroupParent,
928 XFA_ELEMENT_Items, 928 DocumentAssembly,
929 NumberSymbol,
930 Tagged,
931 Items
929 }; 932 };
930 #define XFA_ELEMENT_UNKNOWN ((XFA_ELEMENT)-1)
931 struct XFA_ELEMENTINFO { 933 struct XFA_ELEMENTINFO {
932 uint32_t uHash; 934 uint32_t uHash;
933 const FX_WCHAR* pName; 935 const FX_WCHAR* pName;
934 XFA_ELEMENT eName; 936 XFA_Element eName;
935 uint32_t dwPackets; 937 uint32_t dwPackets;
936 XFA_ObjectType eObjectType; 938 XFA_ObjectType eObjectType;
937 }; 939 };
938 940
939 const XFA_ELEMENTINFO* XFA_GetElementByName(const CFX_WideStringC& wsName); 941 const XFA_ELEMENTINFO* XFA_GetElementByName(const CFX_WideStringC& wsName);
940 const XFA_ELEMENTINFO* XFA_GetElementByID(XFA_ELEMENT eName); 942 const XFA_ELEMENTINFO* XFA_GetElementByID(XFA_Element eName);
941 943
942 enum XFA_ATTRIBUTETYPE { 944 enum XFA_ATTRIBUTETYPE {
943 XFA_ATTRIBUTETYPE_NOTSURE, 945 XFA_ATTRIBUTETYPE_NOTSURE,
944 XFA_ATTRIBUTETYPE_Enum, 946 XFA_ATTRIBUTETYPE_Enum,
945 XFA_ATTRIBUTETYPE_Cdata, 947 XFA_ATTRIBUTETYPE_Cdata,
946 XFA_ATTRIBUTETYPE_Boolean, 948 XFA_ATTRIBUTETYPE_Boolean,
947 XFA_ATTRIBUTETYPE_Integer, 949 XFA_ATTRIBUTETYPE_Integer,
948 XFA_ATTRIBUTETYPE_Measure, 950 XFA_ATTRIBUTETYPE_Measure,
949 }; 951 };
950 struct XFA_ATTRIBUTEINFO { 952 struct XFA_ATTRIBUTEINFO {
951 uint32_t uHash; 953 uint32_t uHash;
952 const FX_WCHAR* pName; 954 const FX_WCHAR* pName;
953 XFA_ATTRIBUTE eName; 955 XFA_ATTRIBUTE eName;
954 XFA_ATTRIBUTETYPE eType; 956 XFA_ATTRIBUTETYPE eType;
955 uint32_t dwPackets; 957 uint32_t dwPackets;
956 void* pDefValue; 958 void* pDefValue;
957 }; 959 };
958 960
959 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByName(const CFX_WideStringC& wsName); 961 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByName(const CFX_WideStringC& wsName);
960 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByID(XFA_ATTRIBUTE eName); 962 const XFA_ATTRIBUTEINFO* XFA_GetAttributeByID(XFA_ATTRIBUTE eName);
961 FX_BOOL XFA_GetAttributeDefaultValue(void*& pValue, 963 FX_BOOL XFA_GetAttributeDefaultValue(void*& pValue,
962 XFA_ELEMENT eElement, 964 XFA_Element eElement,
963 XFA_ATTRIBUTE eAttribute, 965 XFA_ATTRIBUTE eAttribute,
964 XFA_ATTRIBUTETYPE eType, 966 XFA_ATTRIBUTETYPE eType,
965 uint32_t dwPacket); 967 uint32_t dwPacket);
966 XFA_ATTRIBUTEENUM XFA_GetAttributeDefaultValue_Enum(XFA_ELEMENT eElement, 968 XFA_ATTRIBUTEENUM XFA_GetAttributeDefaultValue_Enum(XFA_Element eElement,
967 XFA_ATTRIBUTE eAttribute, 969 XFA_ATTRIBUTE eAttribute,
968 uint32_t dwPacket); 970 uint32_t dwPacket);
969 CFX_WideStringC XFA_GetAttributeDefaultValue_Cdata(XFA_ELEMENT eElement, 971 CFX_WideStringC XFA_GetAttributeDefaultValue_Cdata(XFA_Element eElement,
970 XFA_ATTRIBUTE eAttribute, 972 XFA_ATTRIBUTE eAttribute,
971 uint32_t dwPacket); 973 uint32_t dwPacket);
972 FX_BOOL XFA_GetAttributeDefaultValue_Boolean(XFA_ELEMENT eElement, 974 FX_BOOL XFA_GetAttributeDefaultValue_Boolean(XFA_Element eElement,
973 XFA_ATTRIBUTE eAttribute, 975 XFA_ATTRIBUTE eAttribute,
974 uint32_t dwPacket); 976 uint32_t dwPacket);
975 CXFA_Measurement XFA_GetAttributeDefaultValue_Measure(XFA_ELEMENT eElement, 977 CXFA_Measurement XFA_GetAttributeDefaultValue_Measure(XFA_Element eElement,
976 XFA_ATTRIBUTE eAttribute, 978 XFA_ATTRIBUTE eAttribute,
977 uint32_t dwPacket); 979 uint32_t dwPacket);
978 struct XFA_ELEMENTHIERARCHY { 980 struct XFA_ELEMENTHIERARCHY {
979 uint16_t wStart; 981 uint16_t wStart;
980 uint16_t wCount; 982 uint16_t wCount;
981 }; 983 };
982 984
983 struct XFA_SCRIPTHIERARCHY { 985 struct XFA_SCRIPTHIERARCHY {
984 uint16_t wMethodStart; 986 uint16_t wMethodStart;
985 uint16_t wMethodCount; 987 uint16_t wMethodCount;
986 uint16_t wAttributeStart; 988 uint16_t wAttributeStart;
987 uint16_t wAttributeCount; 989 uint16_t wAttributeCount;
988 int16_t wParentIndex; 990 int16_t wParentIndex;
989 }; 991 };
990 992
991 const uint8_t* XFA_GetElementAttributes(XFA_ELEMENT eElement, int32_t& iCount); 993 const uint8_t* XFA_GetElementAttributes(XFA_Element eElement, int32_t& iCount);
992 994
993 const XFA_ATTRIBUTEINFO* XFA_GetAttributeOfElement(XFA_ELEMENT eElement, 995 const XFA_ATTRIBUTEINFO* XFA_GetAttributeOfElement(XFA_Element eElement,
994 XFA_ATTRIBUTE eAttribute, 996 XFA_ATTRIBUTE eAttribute,
995 uint32_t dwPacket); 997 uint32_t dwPacket);
996 #define XFA_PROPERTYFLAG_OneOf 0x01 998 #define XFA_PROPERTYFLAG_OneOf 0x01
997 #define XFA_PROPERTYFLAG_DefaultOneOf 0x02 999 #define XFA_PROPERTYFLAG_DefaultOneOf 0x02
998 struct XFA_PROPERTY { 1000 struct XFA_PROPERTY {
999 uint16_t eName; 1001 XFA_Element eName;
1000 uint8_t uOccur; 1002 uint8_t uOccur;
1001 uint8_t uFlags; 1003 uint8_t uFlags;
1002 }; 1004 };
1003 const XFA_PROPERTY* XFA_GetElementProperties(XFA_ELEMENT eElement, 1005 const XFA_PROPERTY* XFA_GetElementProperties(XFA_Element eElement,
1004 int32_t& iCount); 1006 int32_t& iCount);
1005 const XFA_PROPERTY* XFA_GetPropertyOfElement(XFA_ELEMENT eElement, 1007 const XFA_PROPERTY* XFA_GetPropertyOfElement(XFA_Element eElement,
1006 XFA_ELEMENT eProperty, 1008 XFA_Element eProperty,
1007 uint32_t dwPacket); 1009 uint32_t dwPacket);
1008 struct XFA_ATTRIBUTEENUMINFO { 1010 struct XFA_ATTRIBUTEENUMINFO {
1009 uint32_t uHash; 1011 uint32_t uHash;
1010 const FX_WCHAR* pName; 1012 const FX_WCHAR* pName;
1011 XFA_ATTRIBUTEENUM eName; 1013 XFA_ATTRIBUTEENUM eName;
1012 }; 1014 };
1013 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName( 1015 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByName(
1014 const CFX_WideStringC& wsName); 1016 const CFX_WideStringC& wsName);
1015 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByID(XFA_ATTRIBUTEENUM eName); 1017 const XFA_ATTRIBUTEENUMINFO* XFA_GetAttributeEnumByID(XFA_ATTRIBUTEENUM eName);
1016 enum XFA_UNIT { 1018 enum XFA_UNIT {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 class CFXJSE_Arguments; 1056 class CFXJSE_Arguments;
1055 class CXFA_Object; 1057 class CXFA_Object;
1056 1058
1057 typedef void (CXFA_Object::*XFA_METHOD_CALLBACK)(CFXJSE_Arguments* pArguments); 1059 typedef void (CXFA_Object::*XFA_METHOD_CALLBACK)(CFXJSE_Arguments* pArguments);
1058 struct XFA_METHODINFO { 1060 struct XFA_METHODINFO {
1059 uint32_t uHash; 1061 uint32_t uHash;
1060 const FX_WCHAR* pName; 1062 const FX_WCHAR* pName;
1061 XFA_METHOD_CALLBACK lpfnCallback; 1063 XFA_METHOD_CALLBACK lpfnCallback;
1062 }; 1064 };
1063 1065
1064 const XFA_METHODINFO* XFA_GetMethodByName(XFA_ELEMENT eElement, 1066 const XFA_METHODINFO* XFA_GetMethodByName(XFA_Element eElement,
1065 const CFX_WideStringC& wsMethodName); 1067 const CFX_WideStringC& wsMethodName);
1066 typedef void (CXFA_Object::*XFA_ATTRIBUTE_CALLBACK)(CFXJSE_Value* pValue, 1068 typedef void (CXFA_Object::*XFA_ATTRIBUTE_CALLBACK)(CFXJSE_Value* pValue,
1067 FX_BOOL bSetting, 1069 FX_BOOL bSetting,
1068 XFA_ATTRIBUTE eAttribute); 1070 XFA_ATTRIBUTE eAttribute);
1069 enum XFA_SCRIPT_TYPE { 1071 enum XFA_SCRIPT_TYPE {
1070 XFA_SCRIPT_Basic, 1072 XFA_SCRIPT_Basic,
1071 XFA_SCRIPT_Object, 1073 XFA_SCRIPT_Object,
1072 }; 1074 };
1073 struct XFA_SCRIPTATTRIBUTEINFO { 1075 struct XFA_SCRIPTATTRIBUTEINFO {
1074 uint32_t uHash; 1076 uint32_t uHash;
1075 const FX_WCHAR* pName; 1077 const FX_WCHAR* pName;
1076 XFA_ATTRIBUTE_CALLBACK lpfnCallback; 1078 XFA_ATTRIBUTE_CALLBACK lpfnCallback;
1077 int32_t eAttribute; 1079 int32_t eAttribute;
1078 uint16_t eValueType; 1080 uint16_t eValueType;
1079 }; 1081 };
1080 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( 1082 const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName(
1081 XFA_ELEMENT eElement, 1083 XFA_Element eElement,
1082 const CFX_WideStringC& wsAttributeName); 1084 const CFX_WideStringC& wsAttributeName);
1083 1085
1084 #endif // XFA_FXFA_INCLUDE_FXFA_BASIC_H_ 1086 #endif // XFA_FXFA_INCLUDE_FXFA_BASIC_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffwidgethandler.cpp ('k') | xfa/fxfa/include/fxfa_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698