60 static string sid(
"text_view_project_item_extension");
66 static string slabel(
"Text View Project item extension");
96 return !sSeqid.empty();
102 if (!so)
return false;
124 if (!item.
HasTag(
"open_text_view"))
127 if (!service_locator)
return;
139 type->SetStr(
"TextViewParams");
147 label->SetStr(
"TextViewType");
149 param->
SetData().SetStr(
"Flat File");
150 data.push_back(param);
156 label->SetStr(
"ExpandAll");
158 param->
SetData().SetBool(
true);
159 data.push_back(param);
166 label->SetStr(
"InitialSequence");
168 param->
SetData().SetStr(sSeqid);
169 data.push_back(param);
User-defined methods of the data storage class.
CAppTaskService - Application Task Service.
const string & GetName(void) const
const CSerialObject * GetObject() const
retrieve the object pointed to as a CObject*
bool HasTag(const string &tag) const
CProjectService - a service providing API for operations with Workspaces and Projects.
CRef< objects::CGBWorkspace > GetGBWorkspace()
bool IsEntrys(void) const
Base class for all serializable objects.
virtual void ProjectItemAttached(objects::CProjectItem &item, CGBDocument &doc, IServiceLocator *service_locator)
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual string GetExtensionIdentifier() const
CTextViewProjectItemExtension.
IServiceLocator - an abstract mechanism for locating services.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
TData & SetData(void)
Assign a value to Data data member.
void SetLabel(TLabel &value)
Assign a value to Label data member.
void SetType(TType &value)
Assign a value to Type data member.
void SetData(TData &value)
Assign a value to Data data member.
vector< CRef< CUser_field > > TData
bool IsSetData(void) const
Check if a value has been assigned to Data data member.
list< CRef< CSeq_entry > > TEntrys
const TEntrys & GetEntrys(void) const
Get the variant data.
const TData & GetData(void) const
Get the Data member data.
static bool s_GetFirstBioseqName(const CSeq_entry *entry, CScope &scope, string &sSeqid)