unit UDVSObju;
{ Generated by MakeComp 1.03 from UDVSTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, SysUtils, Graphics, UlanType, ULRecTyp, ULObju, 
  UDVRType,
  UDVSType;

type
  TUDVSObj = class(TULObj)
  protected
    function GetDataLinesViewName: TDataLinesViewName;
    procedure SetDataLinesViewName(ADataLinesViewName: TDataLinesViewName);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property DataLinesViewName: TDataLinesViewName
      read GetDataLinesViewName write SetDataLinesViewName;
  end;

const
  UDVSChildRecIDs: array[0..0] of TULRecID = (
    UDVRID
  );
  UDVSFldDescs: array[0..0] of TULFldDesc = (
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 4097;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0;
     FieldColorCount : 0;
     FieldColors : nil;
     Filter: '';
     DefDir: '';
     StripPrefix: '';
     EditMask: '';
     MaxID: 0;
     FieldName: 'DataLinesViewName';
     KeyFieldName: '';
     ListFieldName: '';
     Typ: '';
     VarSize: false;
     PasType: 'TDataLinesViewName';
    )
  );

  UDVSRecDesc: TULRecDesc = (
    Caption: 'Data line views';
    ChildRecIDsStr: 'UDVRID';
    ChildRecIDs: @UDVSChildRecIDs;
    ChildRecIDCount: 1;
    FldCount: 1;
    Flds: @UDVSFldDescs;
    Flags: rfChildAllowed OR rfRootChild OR rfEnabled OR rfVisible OR rfBrowseOnEdit;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: '';
    MenuFieldList: '';
    BrowseChildRecIDs: '';
    NameProp: '';
    MainProp: '';
    DefDir: '';
    OpenFilter: '';
    SaveFilter: '';
    Table: '';
    Indexes: ''
   );

implementation

{TUDVSObj}
function TUDVSObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TUDVSRec);
end;

constructor TUDVSObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), UDVSID);
end;

function TUDVSObj.GetULRecDesc: PULRecDesc;
begin
  Result := @UDVSRecDesc;
end;

procedure TUDVSObj.SetDataLinesViewName(ADataLinesViewName: TDataLinesViewName);
begin
  if PUDVSRec(Rec)^.DataLinesViewName <> ADataLinesViewName then begin
    PUDVSRec(Rec)^.DataLinesViewName := ADataLinesViewName;
    if UDVSFldDescs[0].VarSize then 
      ClearFieldsLen;
    DoChange;
  end;
end;

function TUDVSObj.GetDataLinesViewName: TDataLinesViewName;
begin
  GetDataLinesViewName := PUDVSRec(Rec)^.DataLinesViewName;
end;

{/TUDVSObj}

end.
