Ignore:
Timestamp:
Feb 21, 2002, 8:24:22 PM (23 years ago)
Author:
umoeller
Message:

misc. updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/textview.c

    r137 r142  
    278278 */
    279279
    280 VOID SetSubFont(HPS hps,
    281                 PXFMTFONT pFont,
    282                 ULONG ulPointSize,
    283                 PSZ pszFaceName,
    284                 ULONG flFormat)
     280static VOID SetSubFont(HPS hps,
     281                       PXFMTFONT pFont,
     282                       ULONG ulPointSize,
     283                       PSZ pszFaceName,
     284                       ULONG flFormat)
    285285{
    286286    CHAR    ac[256];
     
    336336
    337337/*
    338  *@@ txvSetFormatFont:
     338 *@@ SetFormatFont:
    339339 *      creates logical fonts from the specified
    340340 *      font information.
     
    343343 */
    344344
    345 VOID txvSetFormatFont(HPS hps,           // in: HPS to select default font into
    346                       PXFMTCHARACTER pxfmtc, // in/out: format data
    347                       ULONG ulPointSize, // in: font point size (e.g. 12) or 0
    348                       PSZ pszFaceName)   // in: font face name (e.g. "Courier") or NULL
     345static VOID SetFormatFont(HPS hps,           // in: HPS to select default font into
     346                          PXFMTCHARACTER pxfmtc, // in/out: format data
     347                          ULONG ulPointSize, // in: font point size (e.g. 12) or 0
     348                          PSZ pszFaceName)   // in: font face name (e.g. "Courier") or NULL
    349349{
    350350    pxfmtc->lPointSize = ulPointSize;
     
    385385 */
    386386
    387 VOID AppendCharNoCheck(char **ppszNew,
    388                        PULONG pcbNew,
    389                        char **ppTarget,
    390                        char c)
     387static VOID AppendCharNoCheck(char **ppszNew,
     388                              PULONG pcbNew,
     389                              char **ppTarget,
     390                              char c)
    391391{
    392392    ULONG   cbSizeThis = *ppTarget - *ppszNew;
     
    494494 */
    495495
    496 PSZ strhFindEOL2(PSZ *ppszSearchIn,        // in: where to search
    497                  PULONG pulOffset)       // out: offset (ptr can be NULL)
     496static PSZ strhFindEOL2(PSZ *ppszSearchIn,        // in: where to search
     497                        PULONG pulOffset)       // out: offset (ptr can be NULL)
    498498{
    499499    PSZ     pThis = *ppszSearchIn,
     
    554554 *@@ FORMATLINEBUF:
    555555 *      worker structure to store various data
    556  *      in txvFormatText in between txvCreateWord
     556 *      in txvFormatText in between CreateWord
    557557 *      calls. This has been created for speed
    558558 *      so we don't have to pass all these on
     
    590590
    591591/*
    592  *@@ txvCreateWord:
     592 *@@ CreateWord:
    593593 *
    594594 *      --  If the word ends with one or several spaces,
     
    613613 */
    614614
    615 PTXVWORD txvCreateWord(HPS hps,
    616                         PSZ *ppStartOfWord,
    617                         PFORMATLINEBUF pflbuf)
     615static PTXVWORD CreateWord(HPS hps,
     616                           PSZ *ppStartOfWord,
     617                           PFORMATLINEBUF pflbuf)
    618618{
    619619    PTXVWORD   pWord = NULL;
     
    745745 */
    746746
    747 PTXVWORD ProcessEscapes(char **ppCurrent,          // in/out: current position; initially points to esc char
    748                         PXFORMATDATA pxfd,         // in/out: formatting data
    749                         PFORMATLINEBUF pflbuf,     // in/out: formatting buffer
    750                         BOOL fWordsProcessed)      // FALSE during step 1 (words processing),
    751                                                    // TRUE during step 2 (rectangles correlation)
     747static PTXVWORD ProcessEscapes(char **ppCurrent,          // in/out: current position; initially points to esc char
     748                               PXFORMATDATA pxfd,         // in/out: formatting data
     749                               PFORMATLINEBUF pflbuf,     // in/out: formatting buffer
     750                               BOOL fWordsProcessed)      // FALSE during step 1 (words processing),
     751                                                          // TRUE during step 2 (rectangles correlation)
    752752{
    753753    PTXVWORD pEscapeWord = NULL;
     
    11551155                    }
    11561156
    1157                     if (pWord = txvCreateWord(hps,
    1158                                               &pCurrent, // advanced to next word
    1159                                               &flbuf))
     1157                    if (pWord = CreateWord(hps,
     1158                                           &pCurrent, // advanced to next word
     1159                                           &flbuf))
    11601160                    {
    11611161                        lstAppendItem(&pxfd->llWords, pWord);
     
    14111411 */
    14121412
    1413 VOID DrawListMarker(HPS hps,
    1414                     PRECTL prclLine,        // current line rectangle
    1415                     PTXVWORD pWordThis,    // current word
    1416                     LONG lViewXOfs)         // in: x offset to paint; 0 means rightmost
     1413static VOID DrawListMarker(HPS hps,
     1414                           PRECTL prclLine,        // current line rectangle
     1415                           PTXVWORD pWordThis,    // current word
     1416                           LONG lViewXOfs)         // in: x offset to paint; 0 means rightmost
    14171417{
    14181418    POINTL ptl;
     
    18651865 */
    18661866
    1867 VOID UpdateTextViewPresData(HWND hwndTextView,
    1868                             PTEXTVIEWWINDATA ptxvd)
     1867static VOID UpdateTextViewPresData(HWND hwndTextView,
     1868                                   PTEXTVIEWWINDATA ptxvd)
    18691869{
    18701870    PSZ pszFont;
     
    18871887                              &pszFaceName))
    18881888        {
    1889             txvSetFormatFont(ptxvd->hps,
     1889            SetFormatFont(ptxvd->hps,
    18901890                             &ptxvd->xfd.fmtcStandard,
    18911891                             ulSize,
     
    19201920 */
    19211921
    1922 VOID AdjustViewRects(HWND hwndTextView,
    1923                      PTEXTVIEWWINDATA ptxvd)
     1922static VOID AdjustViewRects(HWND hwndTextView,
     1923                            PTEXTVIEWWINDATA ptxvd)
    19241924{
    19251925    ULONG ulScrollCX = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL),
     
    19921992 */
    19931993
    1994 VOID FormatText2Screen(HWND hwndTextView,
    1995                        PTEXTVIEWWINDATA ptxvd,
    1996                        BOOL fAlreadyRecursing,  // in: set this to FALSE when calling
    1997                        BOOL fFullRecalc)
     1994static VOID FormatText2Screen(HWND hwndTextView,
     1995                              PTEXTVIEWWINDATA ptxvd,
     1996                              BOOL fAlreadyRecursing,  // in: set this to FALSE when calling
     1997                              BOOL fFullRecalc)
    19981998{
    19991999    ULONG   ulWinCX,
     
    20802080 */
    20812081
    2082 VOID PaintViewText2Screen(PTEXTVIEWWINDATA ptxvd,
    2083                           PRECTL prcl2Paint)  // in: invalid rectangle, can be NULL == paint all
     2082static VOID PaintViewText2Screen(PTEXTVIEWWINDATA ptxvd,
     2083                                 PRECTL prcl2Paint)  // in: invalid rectangle, can be NULL == paint all
    20842084{
    20852085    ULONG   ulLineIndex = 0;
     
    21002100 */
    21012101
    2102 VOID PaintViewFocus(HPS hps,
    2103                     PTEXTVIEWWINDATA ptxvd,
    2104                     BOOL fFocus)
     2102static VOID PaintViewFocus(HPS hps,
     2103                           PTEXTVIEWWINDATA ptxvd,
     2104                           BOOL fFocus)
    21052105{
    21062106    POINTL  ptl;
     
    21312131 */
    21322132
    2133 VOID RepaintWord(PTEXTVIEWWINDATA ptxvd,
    2134                  PTXVWORD pWordThis,
    2135                  LONG lColor)
     2133static VOID RepaintWord(PTEXTVIEWWINDATA ptxvd,
     2134                        PTXVWORD pWordThis,
     2135                        LONG lColor)
    21362136{
    21372137    POINTL ptlStart;
     
    21842184 */
    21852185
    2186 VOID RepaintAnchor(PTEXTVIEWWINDATA ptxvd,
    2187                    LONG lColor)
     2186static VOID RepaintAnchor(PTEXTVIEWWINDATA ptxvd,
     2187                          LONG lColor)
    21882188{
    21892189    PLISTNODE pNode = ptxvd->pWordNodeFirstInAnchor;
     
    22552255 */
    22562256
    2257 MRESULT EXPENTRY fnwpTextView(HWND hwndTextView, ULONG msg, MPARAM mp1, MPARAM mp2)
     2257static MRESULT EXPENTRY fnwpTextView(HWND hwndTextView, ULONG msg, MPARAM mp1, MPARAM mp2)
    22582258{
    22592259    MRESULT mrc = 0;
     
    23652365
    23662366                // set "code" format
    2367                 txvSetFormatFont(ptxvd->hps,
     2367                SetFormatFont(ptxvd->hps,
    23682368                                 &ptxvd->xfd.fmtcCode,
    23692369                                 6,
     
    32063206 */
    32073207
    3208 PRQINFO3* prthEnumQueues(PULONG pulReturned)    // out: no. of queues found
     3208static PRQINFO3* prthEnumQueues(PULONG pulReturned)    // out: no. of queues found
    32093209{
    32103210    SPLERR  rc;
     
    32483248 */
    32493249
    3250 VOID prthFreeBuf(PVOID pprq3)
     3250static VOID prthFreeBuf(PVOID pprq3)
    32513251{
    32523252    if (pprq3)
     
    32703270 */
    32713271
    3272 HDC prthCreatePrinterDC(HAB hab,
    3273                         PRQINFO3 *pprq3,
    3274                         PLONG palRes)  // out: 2 longs holding horizontal and vertical
    3275                                        // printer resolution in pels per inch
     3272static HDC prthCreatePrinterDC(HAB hab,
     3273                               PRQINFO3 *pprq3,
     3274                               PLONG palRes)  // out: 2 longs holding horizontal and vertical
     3275                                              // printer resolution in pels per inch
    32763276{
    32773277    HDC     hdc = NULLHANDLE;
     
    33163316 */
    33173317
    3318 HCINFO* prthQueryForms(HDC hdc,
    3319                        PULONG pulCount)
     3318static HCINFO* prthQueryForms(HDC hdc,
     3319                              PULONG pulCount)
    33203320{
    33213321    HCINFO  *pahci = NULL;
     
    33483348 */
    33493349
    3350 HPS prthCreatePS(HAB hab,       // in: anchor block
    3351                  HDC hdc,       // in: printer device context
    3352                  ULONG ulUnits) // in: one of:
    3353                                 // -- PU_PELS
    3354                                 // -- PU_LOMETRIC
    3355                                 // -- PU_HIMETRIC
    3356                                 // -- PU_LOENGLISH
    3357                                 // -- PU_HIENGLISH
    3358                                 // -- PU_TWIPS
     3350static HPS prthCreatePS(HAB hab,       // in: anchor block
     3351                        HDC hdc,       // in: printer device context
     3352                        ULONG ulUnits) // in: one of:
     3353                                       // -- PU_PELS
     3354                                       // -- PU_LOMETRIC
     3355                                       // -- PU_HIMETRIC
     3356                                       // -- PU_LOENGLISH
     3357                                       // -- PU_HIENGLISH
     3358                                       // -- PU_TWIPS
    33593359{
    33603360    SIZEL   sizel;
     
    33783378 */
    33793379
    3380 VOID prthStartDoc(HDC hdc,
    3381                   PSZ pszDocTitle)
     3380static VOID prthStartDoc(HDC hdc,
     3381                         PSZ pszDocTitle)
    33823382{
    33833383    DevEscape(hdc,
     
    33983398 */
    33993399
    3400 VOID prthNextPage(HDC hdc)
     3400static VOID prthNextPage(HDC hdc)
    34013401{
    34023402    DevEscape(hdc,
     
    34173417 */
    34183418
    3419 VOID prthEndDoc(HDC hdc,
    3420                 HPS hps)
     3419static VOID prthEndDoc(HDC hdc,
     3420                       HPS hps)
    34213421{
    34223422    DevEscape(hdc, DEVESC_ENDDOC, 0L, 0L, 0, NULL);
     
    34743474    txvInitFormat(&xfd);
    34753475
    3476     /* txvSetFormatFont(hps,
     3476    /* SetFormatFont(hps,
    34773477                     &xfd,
    34783478                     ulSize,
Note: See TracChangeset for help on using the changeset viewer.