0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / TDocStd / TDocStd.cxx
CommitLineData
b311480e 1// Copyright (c) 1997-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15//=======================================================================
7fd59977 16// Language: C++
17// Version: QDF
18// Design:
19// Purpose:
7fd59977 20//=======================================================================
7fd59977 21// Declarations:
22
7fd59977 23#include <CDF.hxx>
7fd59977 24#include <OSD_Environment.hxx>
42cf5bc1 25#include <TDocStd.hxx>
7fd59977 26#include <TDocStd_XLink.hxx>
27
42cf5bc1 28//#include <LCTLOFF.h>
7fd59977 29//=======================================================================
30//function : Application
31//purpose :
32//=======================================================================
7fd59977 33// Handle(TDocStd_Application) TDocStd::Application
34// (const Standard_Boolean UseDocAPI)
35// {
36// static Handle(TDocStd_Application) theAppli;
37// if (theAppli.IsNull()) theAppli = new TDocStd_Application(UseDocAPI);
38// OSD_Environment CSFLicense("CSF_EngineName");
39// TCollection_AsciiString LicenseAscii = CSFLicense .Value();
40// Standard_Boolean HasLicense = Standard_False;
41// if (!LicenseAscii.IsEmpty()) {
42// if (LicenseAscii=="DsgPEngine")
43// HasLicense = Standard_True;
7fd59977 44// }
45// if (HasLicense) {
7fd59977 46// CDF::GetLicense(AED100) ;
47// CDF::GetLicense(AED300) ;
48// }
7fd59977 49// return theAppli;
7fd59977 50// }
7fd59977 51//=======================================================================
52//function : InitApplication
53//purpose :
54//=======================================================================
7fd59977 55// Handle(TDocStd_Application) TDocStd::InitApplication
56// (const Standard_Boolean UseDocAPI)
57// {
58// // No init yet.
59// return TDocStd::Application(UseDocAPI);
60// }
7fd59977 61//=======================================================================
62//function : IDList
63//purpose :
64//=======================================================================
7fd59977 65void TDocStd::IDList(TDF_IDList& anIDList)
66{ anIDList.Append(TDocStd_XLink::GetID()); }
67