Changeset 370 for branches


Ignore:
Timestamp:
02/03/14 17:27:13 (6 years ago)
Author:
jls17
Message:
  • added ShowActionWithServerName? property to CDocActionSetFieldsHelper class, so the server name could be included in actlink documentation
Location:
branches/work_304/doc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/doc/DocActionSetFieldsHelper.cpp

    r369 r370  
    2525        arStructItemType = structItemType; 
    2626        nAction = numAction; 
     27        showServerNameInOutput = false; 
    2728} 
    2829 
    2930CDocActionSetFieldsHelper::~CDocActionSetFieldsHelper(void) 
    3031{ 
     32} 
     33 
     34void CDocActionSetFieldsHelper::ShowActionWithServerName(bool showIt) 
     35{ 
     36        showServerNameInOutput = showIt; 
    3137} 
    3238 
     
    190196                tmpDisplayName = readFromSchemaName; 
    191197 
     198 
     199        if (this->showServerNameInOutput) 
     200                strmSchemaDisplay << "Server: " << strmServer.str() << "<br/>" << endl; 
     201 
    192202        strmSchemaDisplay << "From: " << arIn.LinkToSchema(tmpDisplayName, rootLevel) << "<br/>" << endl; 
    193203 
  • branches/work_304/doc/DocActionSetFieldsHelper.h

    r369 r370  
    2626 
    2727        void SetFieldsGetSecondaryForm(const string& fromSchema, stringstream &strmSchema, stringstream &strmSchemaDisplay, stringstream &strmServer, stringstream &strmQual); 
     28        void ShowActionWithServerName(bool showIt); 
    2829 
    2930private: 
     
    3536        int nAction; 
    3637        int rootLevel; 
     38        bool showServerNameInOutput; 
    3739 
    3840        enum AllMatchingMode 
  • branches/work_304/doc/DocAlActionStruct.cpp

    r369 r370  
    333333 
    334334                CDocActionSetFieldsHelper *alHelper = new CDocActionSetFieldsHelper(*arIn, *obj, action, structItemType, ifElse, nAction, rootLevel); 
     335                alHelper->ShowActionWithServerName(true); 
    335336                alHelper->SetFieldsGetSecondaryForm(schemaName, secondaryFormRaw, secondaryFormDisplay, serverRaw, qualification); 
    336337                delete alHelper; 
    337338 
    338                 strm << "Server: " << serverRaw.str() << "<br/>" << endl; 
    339339                strm << secondaryFormDisplay.str(); 
    340340        } 
Note: See TracChangeset for help on using the changeset viewer.