////////////////////////////////////////////////////////////////////////////////
//
//    LT_Spc.h
//
////////////////////////////////////////////////////////////////////////////////
#ifndef __LT_SPC_H
#define __LT_SPC_H



#ifndef __LTDEFINE_H
#include "ltdefine.h"
#endif

#ifndef __LIB_FUNC__
#define __LIB_FUNC__
#define LIB_FUNC WINAPI
#endif

extern "C" {
//   - 344
//------------------------------------------------------------------------------
//   
//  
//    ksSpcObjectEnd();
//  ,         numb,   
//      
// nameLib  styleNumb -        ,
//    
// ---
int LIB_FUNC ksSpcObjectCreate( char          *nameLib,    //   
                                unsigned int   styleNumb,  //   
                                unsigned short secNumb,    //  
                                unsigned short subSecNumb, //  
                                double         numb,       //   -  ,      0
                                                           //    -   ,      0
                                unsigned char  typeObj );  //   0-   1- 


//   - 807
//------------------------------------------------------------------------------
//   
//  
//    ksSpcObjectEnd();
//  ,         numb,   
//      
// nameLib  styleNumb -        ,
//     (Unicode)
// ---
int LIB_FUNC ksSpcObjectCreateW( LPWSTR         nameLib,    //   
                                 unsigned int   styleNumb,  //   
                                 unsigned short secNumb,    //  
                                 unsigned short subSecNumb, //  
                                 double         numb,       //   -  ,      0
                                                           //    -   ,      0
                                 unsigned char  typeObj );  //   0-   1- 

#ifdef _UNICODE
#define ksSpcObjectCreateT  ksSpcObjectCreateW
#else
#define ksSpcObjectCreateT  ksSpcObjectCreate
#endif // !UNICODE


//   - 350
//------------------------------------------------------------------------------
//     
//      , ,  , ,  .
//       ksSpcObjectEnd()
// ---
int LIB_FUNC ksSpcObjectEdit( reference spcObj );


//   - 345
//------------------------------------------------------------------------------
//   
//      .
//   ,      
//  .
//     
// ---
reference LIB_FUNC ksSpcObjectEnd();


//   - 346
//------------------------------------------------------------------------------
//       itemNumb      colNumb
//           itemNumb      1
// typeVal -     CHAR_ATTR_TYPE ...STRING_ATTR_TYPE . ltdefine.h
//  typeVal== STRING_ATTR_TYPE,  val -   char[MAX_TEXT_LENGTH]
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcChangeValue(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcChangeValue( unsigned int  colNumb,     //  ,   
                               unsigned int  itemNumb,    //  ,   
                               void         *val,         //   
                               unsigned char typeVal   ); //  


//   - 951
//------------------------------------------------------------------------------
//       itemNumb      colNumb
//           itemNumb      1
// typeVal -     CHAR_ATTR_TYPE ...STRING_ATTR_TYPE . ltdefine.h
//  typeVal== STRING_ATTR_TYPE,  val -   wchar_t[MAX_TEXT_LENGTH]
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcChangeValue(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcChangeValueW( unsigned int  colNumb,      //  ,   
                                unsigned int  itemNumb,     //  ,   
                                void *        val,          //   
                                unsigned char typeVal   );

#ifdef _UNICODE
#define ksSpcChangeValueT  ksSpcChangeValueW
#else
#define ksSpcChangeValueT  ksSpcChangeValue
#endif // !UNICODE


//   - 347
//------------------------------------------------------------------------------
//       itemNumb      colNumb
//           itemNumb      1
// typeVal -     CHAR_ATTR_TYPE ...STRING_ATTR_TYPE . ltdefine.h
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcVisible(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcVisible( unsigned int colNumb,       // ,   
                           unsigned int  itemNumb,     // ,   
                           unsigned char flagOn );    //1 -  0- 


//   - 348
//------------------------------------------------------------------------------
//   .      1,   
//      "".     0.
//         
//  
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcMassa(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcMassa( char *sMassa ); //  


//   - 808
//------------------------------------------------------------------------------
//   .      1,   
//      "".     0.
//         
//   (Unicode)
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcMassa(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcMassaW( LPWSTR sMassa ); //  

#ifdef _UNICODE
#define ksSpcMassaT  ksSpcMassaW
#else
#define ksSpcMassaT  ksSpcMassa
#endif // !UNICODE


//   - 363
//------------------------------------------------------------------------------
//      .     1,     
//    "".     0.
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcCount(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcCount ( unsigned char ispoln,  //  
                          char         *sCount );//  


//   - 809
//------------------------------------------------------------------------------
//      .     1,     
//    "".     0.
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...); (Unicode)
//   .....
//   ksSpcCount(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcCountW ( unsigned char ispoln,  //  
                           LPWSTR sCount );//  

#ifdef _UNICODE
#define ksSpcCountT  ksSpcCountW
#else
#define ksSpcCountT  ksSpcCount
#endif // !UNICODE


//   - 349
//------------------------------------------------------------------------------
//    .     1,   
//      "".     0.
//         
//  
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcPosition(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSpcPosition( unsigned short pos );


//   - 351
//------------------------------------------------------------------------------
//          .
//      .    
// 1,       .  
//   0.
//         
//  
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSpcIncludeReference(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
//  obj == 0  clear == 0       
// ---
int LIB_FUNC ksSpcIncludeReference( reference     obj,     //     
                                    unsigned char clear ); // 2 -     
                                                           // 1 -    
                                                           // 0 -   


//   - 352
//------------------------------------------------------------------------------
//           
//  obj = 0 -   
//   equal = 1
//    
// ---
reference LIB_FUNC ksGetSpcObjForGeom( char         *nameLib, //    
                                       unsigned int  numb,    //   
                                       reference     obj,     //    -  
                                       unsigned char equal,   // 1 -      ; 0-    
                                       unsigned char first ); // 1 -  0-  



//   - 365
//------------------------------------------------------------------------------
//              
//  obj = 0 -   
//    

// ---
reference LIB_FUNC ksGetSpcObjForGeomWithLimit( char          *nameLib, //    
                                                unsigned int   numb,    //   
                                                reference      obj,     //    -  
                                                unsigned char  equal,   // 1 -      ; 0-    
                                                unsigned char  first,   // 1 -  0-  
                                                unsigned short section, //  ,    ,  0 -  
                                                double         attrTypeNumb ); //       ,  0 -  


//   - 811
//------------------------------------------------------------------------------
//              
//  obj = 0 -   
//     (Unicode)
// ---
reference LIB_FUNC ksGetSpcObjForGeomWithLimitW( LPWSTR         nameLib, //    
                                                 unsigned int   numb,    //   
                                                 reference      obj,     //    -  
                                                 unsigned char  equal,   // 1 -      ; 0-    
                                                 unsigned char  first,   // 1 -  0-  
                                                 unsigned short section, //  ,    ,  0 -  
                                                 double         attrTypeNumb ); //       ,  0 -  

#ifdef _UNICODE
#define ksGetSpcObjForGeomWithLimitT  ksGetSpcObjForGeomWithLimitW
#else
#define ksGetSpcObjForGeomWithLimitT  ksGetSpcObjForGeomWithLimit
#endif // !UNICODE


//   - 408
//------------------------------------------------------------------------------
//        
//  true    
// ---
int LIB_FUNC ksGetSpcSectionName( reference spcObj, //   
                                  char*     name,   //    
                                  int       size ); //  


//   - 812
//------------------------------------------------------------------------------
//        
//  true     (Unicode)
// ---
int LIB_FUNC ksGetSpcSectionNameW( reference spcObj, //   
                                   LPWSTR    name,   //    
                                   int       size ); //  

#ifdef _UNICODE
#define ksGetSpcSectionNameT  ksGetSpcSectionNameW
#else
#define ksGetSpcSectionNameT  ksGetSpcSectionName
#endif // !UNICODE


//   - 356
//------------------------------------------------------------------------------
//   .
//       , 
//   .
//   .         ,
//       Cursor, Placement, CommandWindow,
// ksEditViewObject, ksCreateViewObject;
// ---
int LIB_FUNC ksEditWindowSpcObject( reference obj );


//   - 364
//------------------------------------------------------------------------------
//     
// ---
double LIB_FUNC ksGetSpcObjectNumber  ( reference spcObj );


//   - 220
//------------------------------------------------------------------------------
//       
//       
//    
// nameLib  styleNumb -        ,
//    
// ---
reference LIB_FUNC CreateSpcIterator( char        *nameLib,      //    
                                      unsigned int styleNumb,    //   
                                      int          spcObjType ); // 0 -   1 -  
                                                                 // 2-       
                                                                 // 3-  

//   - 813
//------------------------------------------------------------------------------
//       
//       
//    
// nameLib  styleNumb -        ,
//    
// ---
reference LIB_FUNC CreateSpcIteratorW( LPWSTR       nameLib,      //    
                                       unsigned int styleNumb,    //   
                                       int          spcObjType ); // 0 -   1 -  
                                                                  // 2-       
                                                                  // 3-  

#ifdef _UNICODE
#define CreateSpcIteratorT  CreateSpcIteratorW
#else
#define CreateSpcIteratorT  CreateSpcIterator
#endif // !UNICODE


//   - 367
//------------------------------------------------------------------------------
//     
// ---
reference LIB_FUNC ksGetSpcObject( double objNumb );


//   - 368
//------------------------------------------------------------------------------
//         
//   block = 0 -        
// (    2.113-75    10 )
//   0      ,    size_s
//   , -1   
// ---
int LIB_FUNC ksGetSpcObjectColumnText( reference spcObj,        //  
                                       unsigned int columnType, //   SPC_CLM_FORMAT...SPC_CLM_USER
                                       unsigned int ispoln,     //   
                                       unsigned int block,      //  
                                       char        *s,          // 
                                       unsigned int size_s );   //   s


//   - 814
//------------------------------------------------------------------------------
//         
//   block = 0 -        
// (    2.113-75    10 )
//   0      ,    size_s
//   , -1    (Unicode)
// ---
int LIB_FUNC ksGetSpcObjectColumnTextW( reference spcObj,        //  
                                        unsigned int columnType, //   SPC_CLM_FORMAT...SPC_CLM_USER
                                        unsigned int ispoln,     //   
                                        unsigned int block,      //  
                                        LPWSTR       s,          // 
                                        unsigned int size_s );   //   s

#ifdef _UNICODE
#define ksGetSpcObjectColumnTextT  ksGetSpcObjectColumnTextW
#else
#define ksGetSpcObjectColumnTextT  ksGetSpcObjectColumnText
#endif // !UNICODE


//   - 369
//-------------------------------------------------------------------------------------------------
//        
//   block = 0 -        
// (    2.113-75    10 )
//   1     0   
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSetSpcObjectColumnText(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSetSpcObjectColumnText( unsigned int columnType, //   SPC_CLM_FORMAT...SPC_CLM_USER
                                       unsigned int ispoln,     //   
                                       unsigned int block,      //  
                                       char        *s );        // 


//   - 815
//-------------------------------------------------------------------------------------------------
//        
//   block = 0 -        
// (    2.113-75    10 )
//   1     0   
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...); (Unicode)
//   .....
//   ksSetSpcObjectColumnText(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
// ---
int LIB_FUNC ksSetSpcObjectColumnTextW( unsigned int columnType, //   SPC_CLM_FORMAT...SPC_CLM_USER
                                        unsigned int ispoln,     //   
                                        unsigned int block,      //  
                                        LPWSTR       s );        // 


#ifdef _UNICODE
#define ksSetSpcObjectColumnTextT  ksSetSpcObjectColumnTextW
#else
#define ksSetSpcObjectColumnTextT  ksSetSpcObjectColumnText
#endif // !UNICODE


//   - 375
//------------------------------------------------------------------------------
//         
//   , nameLib  numb  .
//         ,
//        .
//         0   
// ---
int LIB_FUNC ksGetSpcTableColumn( char *nameLib, unsigned int numb, //       
                                  unsigned char additioanalCol );   // 0 -  (    ) 1-  


//   - 816
//------------------------------------------------------------------------------
//         
//   , nameLib  numb  .
//         ,
//        .
//         0   
// ---
int LIB_FUNC ksGetSpcTableColumnW( LPWSTR nameLib, unsigned int numb, //       
                                   unsigned char additioanalCol );   // 0 -  (    ) 1-  


#ifdef _UNICODE
#define ksGetSpcTableColumnT  ksGetSpcTableColumnW
#else
#define ksGetSpcTableColumnT  ksGetSpcTableColumn
#endif // !UNICODE


//   - 376
//------------------------------------------------------------------------------
//           (
//   SPC_CLM_FORMAT...SPC_CLM_USER,   ,  ,
//  (   ),   )
//         ,
//        ,
//    
//   1      0   
// ---
int LIB_FUNC ksGetSpcColumnType( reference       spcObj,  //  
                                 unsigned int    colNumb, //  ,   1
                                 SpcColumnParam *par );   //  


//   - 817
//------------------------------------------------------------------------------
//           (
//   SPC_CLM_FORMAT...SPC_CLM_USER,   ,  ,
//  (   ),   )
//         ,
//        ,
//    
//   1      0    (Unicode)
// ---
int LIB_FUNC ksGetSpcColumnTypeW( reference        spcObj,  //  
                                  unsigned int     colNumb, //  ,   1
                                  SpcColumnParamW *par );   //  


#ifdef _UNICODE
#define ksGetSpcColumnTypeT  ksGetSpcColumnTypeW
#else
#define ksGetSpcColumnTypeT  ksGetSpcColumnType
#endif // !UNICODE


//   - 377
//------------------------------------------------------------------------------
//    
//    SPC_CLM_FORMAT...SPC_CLM_USER,       
//      
//         0   
// ---
int LIB_FUNC ksGetSpcColumnNumb( reference    spcObj,     //  
                                 unsigned int columnType, //   SPC_CLM_FORMAT...SPC_CLM_USER
                                 unsigned int ispoln,     //    
                                 unsigned int block );    //  


//   - 380
//------------------------------------------------------------------------------
//       (CHAR_STR_ARR),
//   
// ---
reference LIB_FUNC ksGetSpcSheetSB( reference spcDoc ); // 


//   - 987
//------------------------------------------------------------------------------
//       (CHAR_STR_ARR_W),
//   
// ---
reference LIB_FUNC ksGetSpcSheetSB_W( reference spcDoc ); // 

#ifdef _UNICODE
#define ksGetSpcSheetSB_T  ksGetSpcSheetSB_W
#else
#define ksGetSpcSheetSB_T  ksGetSpcSheetSB
#endif // !UNICODE


//   - 381
//------------------------------------------------------------------------------
//      ,   
// ---
int LIB_FUNC ksSetSpcSheetSB( reference spcDoc, // 
                              reference arr );  //   CHAR_STR_ARR  CHAR_STR_ARR_W 

//   - 398
//------------------------------------------------------------------------------
// C  .     
// onSheet - 1 -, 0- 
//   1     0 -   
// ---
int LIB_FUNC ksSpecificationOnSheet( unsigned char onSheet );


//   - 413
//------------------------------------------------------------------------------
//        numb   nameLib
//  nameLib = NULL     ,    .
// tPar <=ALLPARAM          -   SpcStyleParam
// tPar == SPC_TUNING_PARAM -   SpcTuningStyleParam
// ---
int LIB_FUNC ksGetSpcStyleParam( char *       nameLib, //   
                                 unsigned int numb,    //   
                                 void *       par,     //  
                                 unsigned int size,    //   
                                 int          tPar );  //   

//   - 818
//------------------------------------------------------------------------------
//        numb   nameLib
//  nameLib = NULL     ,    .
// tPar <=ALLPARAM          -   SpcStyleParam
// tPar == SPC_TUNING_PARAM -   SpcTuningStyleParam (Unicode)
// ---
int LIB_FUNC ksGetSpcStyleParamW( LPWSTR       nameLib, //   
                                  unsigned int numb,    //   
                                  void *       par,     //  
                                  unsigned int size,    //   
                                  int          tPar );  //   

#ifdef _UNICODE
#define ksGetSpcStyleParamT  ksGetSpcStyleParamW
#else
#define ksGetSpcStyleParamT  ksGetSpcStyleParam
#endif // !UNICODE


//   - 414
//------------------------------------------------------------------------------
//       pDoc
// index = -1 -  , ( -  )
// state -   ( true - , false -  )
// ---
int LIB_FUNC ksGetSpcDescription( reference       pDoc,     //   
											            int             index,	   //     
 											            SpcDescrParam * param,    //  
                                  unsigned char * state );  // : true - , false - 


//   - 819
//------------------------------------------------------------------------------
//       pDoc
// index = -1 -  , ( -  )
// state -   ( true - , false -  ) (Unicode)
// ---
int LIB_FUNC ksGetSpcDescriptionW( reference        pDoc,     //   
											            int              index,	   //     
 											            SpcDescrParamW * param,    //  
                                  unsigned char  * state );  // : true - , false - 

#ifdef _UNICODE
#define ksGetSpcDescriptionT  ksGetSpcDescriptionW
#else
#define ksGetSpcDescriptionT  ksGetSpcDescription
#endif // !UNICODE


//   - 416
//------------------------------------------------------------------------------
//   pDoc       index
// /   ,  state = true
// index = -1 -  , ( -  )
//  param = NULL -   
// ---
int LIB_FUNC ksSetSpcDescription( reference      pDoc,    //   
											            int            index,	  //     
 											            SpcDescrParam* param,   //  
                                  unsigned char  state ); // : true - , false - 

//   - 821
//------------------------------------------------------------------------------
//   pDoc       index
// /   ,  state = true
// index = -1 -  , ( -  )
//  param = NULL -    (Unicode)
// ---
int LIB_FUNC ksSetSpcDescriptionW( reference       pDoc,    //   
											             int             index,	  //     
 											             SpcDescrParamW* param,   //  
                                   unsigned char   state ); // : true - , false - 

#ifdef _UNICODE
#define ksSetSpcDescriptionT  ksSetSpcDescriptionW
#else
#define ksSetSpcDescriptionT  ksSetSpcDescription
#endif // !UNICODE


//   - 417
//------------------------------------------------------------------------------
//   pDoc   
// ---
int LIB_FUNC ksAddSpcDescription( reference      pDoc,     //   
 										              SpcDescrParam* param );  //  


//   - 822
//------------------------------------------------------------------------------
//   pDoc    (Unicode)
// ---
int LIB_FUNC ksAddSpcDescriptionW( reference       pDoc,     //   
 										               SpcDescrParamW* param );  //  

#ifdef _UNICODE
#define ksAddSpcDescriptionT  ksAddSpcDescriptionW
#else
#define ksAddSpcDescriptionT  ksAddSpcDescription
#endif // !UNICODE


//   - 418
//------------------------------------------------------------------------------
//   pDoc       index
// ---
int LIB_FUNC ksDeleteSpcDescription( reference      pDoc,    //   
												             int            index);  //     

//   - 428
//------------------------------------------------------------------------------
//        (       )
//      
// ---
reference LIB_FUNC ksGetCurrentSpcObject();

//   - 429
//------------------------------------------------------------------------------------------------
//    
//    ,    
//      .
//   0     1   
//------------------------------------------------------------------------------------------------
int LIB_FUNC ksSetCurrentSpcObject( reference spcObj, int index );

//   - 430
//------------------------------------------------------------------------------
//         
//   block = 0 -        
// (    2.113-75    10 )
//    ""     ,   
//     -    ,  .
//    - LTVARIANT_ARR
// ---
reference LIB_FUNC ksGetSpcObjectColumnValues( reference spcObj,        //  
                                               unsigned int columnType, //   SPC_CLM_FORMAT...SPC_CLM_USER
                                               unsigned int ispoln,     //       1
                                               unsigned int block );    //  

//   - 370
//------------------------------------------------------------------------------
//       
//  spcDoc = 0 -   
// ---
int LIB_FUNC ksGetSpcDocumentPagesCount( reference spcDoc );

//   - 389
//-------------------------------------------------------------------------------------------------
//      
//-------------------------------------------------------------------------------------------------
int LIB_FUNC ksIsModuleSpecificationActive();

//   - 435
//------------------------------------------------------------------------------
//         
// attach: 1    ; 0 -    
//   1,        .
//     0
//
// ---
int  LIB_FUNC ksModuleSpecification( unsigned char attach );

//   - 436
//------------------------------------------------------------------------------------
//    width.
// numColumn  -  .
// cellOrText - >0    0     
//---
double LIB_FUNC ksGetWidthColumnSpc( int numColumn, unsigned char cellOrText );

//   - 703    
//------------------------------------------------------------------------------
//     
//  pDoc == 0,    
//  index == -1,      
//    :    
//    :  ,     
//     "  ".
//  3d  :  ,     .
// ---
int LIB_FUNC ksSetTuningSpcStyleParam( reference             pDoc,  //   
                                       int                   index,	//     
                                       SpcTuningStyleParam * par ); //  

//   - 823    
//------------------------------------------------------------------------------
//     
//  pDoc == 0,    
//  index == -1,      
//    :    
//    :  ,     
//     "  ".
//  3d  :  ,     . (Unicode)
// ---
int LIB_FUNC ksSetTuningSpcStyleParamW( reference              pDoc,  //   
                                        int                    index,	//     
                                        SpcTuningStyleParamW * par ); //  

#ifdef _UNICODE
#define ksSetTuningSpcStyleParamT  ksSetTuningSpcStyleParamW
#else
#define ksSetTuningSpcStyleParamT  ksSetTuningSpcStyleParam
#endif // !UNICODE


//   - 704    
//------------------------------------------------------------------------------
//     
//  pDoc == 0,    
//  index == -1,      
//    :    
//    :  ,     
//     "  ".
//  3d  :  ,     .
// ---
int LIB_FUNC ksGetTuningSpcStyleParam( reference pDoc,              //   
                                       int index,	                  //     
                                       SpcTuningStyleParam * par ); //  



//   - 824    
//------------------------------------------------------------------------------
//     
//  pDoc == 0,    
//  index == -1,      
//    :    
//    :  ,     
//     "  ".
//  3d  :  ,     . (Unicode)
// ---
int LIB_FUNC ksGetTuningSpcStyleParamW( reference pDoc,              //   
                                        int index,	                  //     
                                        SpcTuningStyleParamW * par ); //  

#ifdef _UNICODE
#define ksGetTuningSpcStyleParamT  ksGetTuningSpcStyleParamW
#else
#define ksGetTuningSpcStyleParamT  ksGetTuningSpcStyleParam
#endif // !UNICODE


//   - 709    
//------------------------------------------------------------------------------------------------
//      ,    
//------------------------------------------------------------------------------------------------
reference LIB_FUNC ksGetSpcObjGeometry(  reference  spcObj );

//   - 756
//-----------------------------------------------------------------------------
//  [31.03.2005]
//      ,    
//  geomMode  = 0 -   
//            = 1 -    
//            = 2 -     
// ---
reference LIB_FUNC ksGetSpcObjGeometryEx( reference  spcObj, int geomMode );


//   - 723    
//-------------------------------------------------------------------------------------------------
//            
//    TEXT_LINE_ARR
//   block = 0 -        
// (    2.113-75    10 )
//           
// 0   
//-------------------------------------------------------------------------------------------------
reference LIB_FUNC ksGetSpcObjectColumnTextEx ( reference    spcObj,     // 
                                                unsigned int columnType, //  SPC_CLM_FORMAT...SPC_CLM_USER
                                                unsigned int ispoln,     //      1
                                                unsigned int block );    // 

//   - 724    
//-------------------------------------------------------------------------------------------------
//        
//   block = 0 -        
// (    2.113-75    10 )
//   1     0   
//           
// ksSpcObjectCreate(...);  ksSpcObjectEdit(...);
//   .....
//   ksSetSpcObjectColumnTextEx(...);
//   .....
// reference spsObj = ksSpcObjectEnd();
//-------------------------------------------------------------------------------------------------
int LIB_FUNC ksSetSpcObjectColumnTextEx  ( unsigned int columnType, //  SPC_CLM_FORMAT...SPC_CLM_USER
                                           unsigned int ispoln,     //     1
                                           unsigned int block,      // 
                                           reference    p );        //    

//   - 733  
//-----------------------------------------------------------------------------
// [17.4.04]
//          
//  doc = 0 -   
//   0 -  , 1 - , 2-   
// ---
int LIB_FUNC ksIsSlaveSpcOpened( reference doc );

//   - 757
//-----------------------------------------------------------------------------------
// [6.06.05]
//       
// align :
// 0 -  
// 1 -   
// 2 -   
// 3 -   
// ---
int LIB_FUNC ksSetSpcObjectColumnTextAlign( reference spcObj,       // 
                                            int columnNumber,       // ,   1
                                            int lineIndex,          //  
                                            int align );            //

//   - 766
//-----------------------------------------------------------------------------------
// [16/07/05]
//       
// 0 -  
// 1 -   
// 2 -   
// 3 -   
// ---
int LIB_FUNC ksGetSpcObjectColumnTextAlign( reference spcObj,        // 
                                            int columnNumber,        // ,   1
                                            int lineIndex );         //  


//   - 764
//-------------------------------------------------------------------------------
// [16/07/05]
//     
// ---
double LIB_FUNC ksGetSpcObjectAttributeNumber( reference spcObj );   // 


//   - 765
//-------------------------------------------------------------------------------
// [16/07/05]
//     
//  attrNumber == 0    
// ---
int LIB_FUNC ksSetSpcObjectAttributeNumber( reference spcObj,        // 
                                            double attrNumber );     //  

//   - 767
//-------------------------------------------------------------------------------
// [16/07/05]
//      
//    
// blockNumber = 0 -  
//               1        
//    
// blockNumber = 1
// ---
double LIB_FUNC ksGetSpcObjectSummaryCount( reference spcObj,        // 
                                            int ispoln,              //   "",   1(      )
                                            int blockNumber );       // ,   0 (     A )

//-------------------------------------------------------------------------------
//           .
//      . 
//  c             . 
//   1   .   
// ---
int LIB_FUNC ksSetSpcObjectMaterial( reference spcObj, LPSTR material, double density );


//-------------------------------------------------------------------------------
//           . Unicode
//      . 
//  c             .   
//   1   .  
// ---
int LIB_FUNC ksSetSpcObjectMaterialW( reference spcObj, LPWSTR material, double density );

#ifdef _UNICODE
#define ksSetSpcObjectMaterialT  ksSetSpcObjectMaterialW
#else
#define ksSetSpcObjectMaterialT  ksSetSpcObjectMaterial
#endif // !UNICODE


//-------------------------------------------------------------------------------
//    
// ---
int LIB_FUNC ksGetSpcPerformanceName( int   index,	      //     
                                      int   ispoln,      //    "",   1(      )
                                      int   blockNumber, //  ,   0 (     A ) 
                                      LPSTR name,        //  
                                      int   nameLen );   //   


//-------------------------------------------------------------------------------
//    
// ---
int LIB_FUNC ksGetSpcPerformanceNameW( int    index,	      //     
                                       int    ispoln,      //    "",   1(      )
                                       int    blockNumber, //  ,   0 (     A ) 
                                       LPWSTR name,        //  
                                       int    nameLen );   //   

#ifdef _UNICODE
#define ksGetSpcPerformanceNameT  ksGetSpcPerformanceNameW
#else
#define ksGetSpcPerformanceNameT  ksGetSpcPerformanceName
#endif // !UNICODE


//-------------------------------------------------------------------------------
//    
// ---
int LIB_FUNC ksSetSpcPerformanceName( int   index,	     //     
                                      int   ispoln,      //    "",   1(      )
                                      int   blockNumber, //  ,   0 (     A ) 
                                      LPSTR name );      //  


//-------------------------------------------------------------------------------
//    
// ---
int LIB_FUNC ksSetSpcPerformanceNameW( int    index,	     //     
                                       int    ispoln,      //    "",   1(      )
                                       int    blockNumber, //  ,   0 (     A ) 
                                       LPWSTR name );      //  

#ifdef _UNICODE
#define ksSetSpcPerformanceNameT  ksSetSpcPerformanceNameW
#else
#define ksSetSpcPerformanceNameT  ksSetSpcPerformanceName
#endif // !UNICODE


// [12.02.2009]
//   - 992
//-------------------------------------------------------------------------------------------------
//   -( , 3D, )
//  -  ;
//-------------------------------------------------------------------------------------------------
int LIB_FUNC ksSpcDocLinksClear( reference pDoc );

} // extern "C"



#endif // __LT_SPC_H