1 /**************************************************************************/
2 /*                                                                        */
3 /*       Copyright (c) Microsoft Corporation. All rights reserved.        */
4 /*                                                                        */
5 /**************************************************************************/
6 
7 
8 /**************************************************************************/
9 /**************************************************************************/
10 /**                                                                       */
11 /** GUIX Component                                                        */
12 /**                                                                       */
13 /**   Rich Text View Managment (Rich Text View)                           */
14 /**                                                                       */
15 /**************************************************************************/
16 
17 #define GX_SOURCE_CODE
18 
19 
20 /* Include necessary system files.  */
21 
22 #include "gx_api.h"
23 #include "gx_system.h"
24 #include "gx_rich_text_view.h"
25 
26 GX_CALLER_CHECKING_EXTERNS
27 /**************************************************************************/
28 /*                                                                        */
29 /*  FUNCTION                                               RELEASE        */
30 /*                                                                        */
31 /*    _gxe_rich_text_view_fonts_set                       PORTABLE C      */
32 /*                                                           6.1          */
33 /*  AUTHOR                                                                */
34 /*                                                                        */
35 /*    Kenneth Maxwell, Microsoft Corporation                              */
36 /*                                                                        */
37 /*  DESCRIPTION                                                           */
38 /*                                                                        */
39 /*    This function checks for errors in the rich text view font set      */
40 /*    function call.                                                      */
41 /*                                                                        */
42 /*                                                                        */
43 /*  INPUT                                                                 */
44 /*                                                                        */
45 /*    text_view                             Rich text view widget         */
46 /*                                            control block               */
47 /*    fonts                                 Font list                     */
48 /*                                                                        */
49 /*  OUTPUT                                                                */
50 /*                                                                        */
51 /*    status                                Completion status             */
52 /*                                                                        */
53 /*  CALLS                                                                 */
54 /*                                                                        */
55 /*    _gx_rich_text_view_font_set           Actual rich text view font    */
56 /*                                            set function                */
57 /*                                                                        */
58 /*  CALLED BY                                                             */
59 /*                                                                        */
60 /*    Application Code                                                    */
61 /*                                                                        */
62 /*  RELEASE HISTORY                                                       */
63 /*                                                                        */
64 /*    DATE              NAME                      DESCRIPTION             */
65 /*                                                                        */
66 /*  09-30-2020     Kenneth Maxwell          Initial Version 6.1           */
67 /*                                                                        */
68 /**************************************************************************/
_gxe_rich_text_view_fonts_set(GX_RICH_TEXT_VIEW * rich_view,GX_RICH_TEXT_FONTS * fonts)69 UINT  _gxe_rich_text_view_fonts_set(GX_RICH_TEXT_VIEW *rich_view, GX_RICH_TEXT_FONTS *fonts)
70 {
71 UINT status;
72 
73     /* Check for invalid caller.  */
74     GX_INIT_AND_THREADS_CALLER_CHECKING
75 
76     /* Check for invalid pointer. */
77     if ((rich_view == GX_NULL) || (fonts == GX_NULL))
78     {
79         return(GX_PTR_ERROR);
80     }
81 
82     status = _gx_rich_text_view_fonts_set(rich_view, fonts);
83 
84     return(status);
85 }
86 
87