The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

DtEditorFormat (3)
  • >> DtEditorFormat (3) ( Solaris man: Библиотечные вызовы )
  • 
    NAME
         DtEditorFormat - format all or part of  the  contents  of  a
         DtEditor widget
    
    SYNOPSIS
         #include <Dt/Editor.h>
         DtEditorErrorCode DtEditorFormat(Widget widget,
                                          DtEditorFormatSettings *formatSettings,
                                          unsigned int amountToFormat);
    
    DESCRIPTION
         The DtEditorFormat() function formats all  or  part  of  the
         contents  of  the  DtEditor  widget according to the current
         text format settings in the Format Settings  dialog.   These
         options  specify which margins and alignments (left aligned,
         right aligned, justified or centered) are used.  Optionally,
         alternative  settings can be passed as an argument to DtEdi-
         torFormat() in a  data  structure.   This  function  formats
         either  the paragraph containing the insertion cursor or the
         entire contents of the DtEditor  widget,  depending  on  the
         value of the amountToFormat argument.
    
         The Format Settings dialog  is  displayed  with  DtEditorIn-
         vokeFormatDialog(3).   For a complete description of format-
         ting and the Format Settings dialog, see DtEditor.
    
         The widget argument specifies the editor widget ID.
    
         The formatSettings argument  specifies  left  margin  value,
         right  margin  value and the justification style.  The Left-
         Margin and RightMargin fields of DtEditorFormatSettings must
         be  zero or larger.  The Alignment field can have a value of
         DtEDITOR_ALIGN_CENTER,               DtEDITOR_ALIGN_JUSTIFY,
         DtEDITOR_ALIGN_LEFT  or  DtEDITOR_ALIGN_RIGHT.   If the for-
         matSettings argument is NULL, DtEditorFormat() uses the last
         format settings specified in the Format Settings dialog.
    
         When    the    amountToFormat    argument    is    set    to
         DtEDITOR_FORMAT_ALL,  it  reformats all the text in the edit
         window.  When this argument is  set  to  DtEDITOR_PARAGRAPH,
         only  the  paragraph containing the insertion cursor is for-
         matted.
    
         For a complete definition of the  DtEditor  widget  and  its
         associated resources, see DtEditor(3).
    
         For a complete  definition  of  DtEditorFormatSettings,  see
         <Dt/Editor.h>.
    
    RETURN VALUE
         Upon successful completion,  the  DtEditorFormat()  function
         returns DtEDITOR_NO_ERRORS; otherwise, it returns one of the
         following values:
    
            DtEDITOR_NO_TMP_FILE
                  The DtEditorFormat()  function  cannot  create  two
                  temporary   files  in  the  directory  returned  by
                  tmpnam(3S).
    
            DtEDITOR_ILLEGAL_SIZE
                  The left or right margin values are negative.
    
            DtEDITOR_INVALID_RANGE
                  The amountToFormat argument is not recognized.
    
            DtEDITOR_INVALID_TYPE
                  The Alignment field is not recognized.
    
    SEE ALSO
         DtEditor(5), DtEditor(3), DtEditorInvokeFormatDialog(3);
         tmpnam(3S).
    
    
    
    


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру