Changeset 525 for branches


Ignore:
Timestamp:
04/11/14 09:46:42 (5 years ago)
Author:
jls17
Message:
  • removed all the obsolete GetURL functions (only ARField does still have it)
Location:
branches/work_311
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • branches/work_311/core/ARActiveLink.cpp

    r359 r525  
    4444{ 
    4545        return new CARActiveLink(*this); 
    46 } 
    47  
    48 string CARActiveLink::GetURL(int rootLevel, bool showImage) const 
    49 { 
    50         CPageParams file(PAGE_DETAILS, this); 
    51         string url = CWebUtil::Link(this->GetName(), file, (showImage ? "active_link.gif" : ""), rootLevel); 
    52         return url; 
    5346} 
    5447 
  • branches/work_311/core/ARActiveLink.h

    r359 r525  
    6363 
    6464        string GetExecuteOn(bool singleLine=false, CARProplistHelper* props=NULL); 
    65         string GetURL(int rootLevel, bool showImage = true) const; 
    6665 
    6766        static const unsigned int XmlTypeDef = AR_STRUCT_ITEM_XML_ACTIVE_LINK ; 
  • branches/work_311/core/ARAssignHelper.cpp

    r368 r525  
    1717#include "stdafx.h" 
    1818#include "ARAssignHelper.h" 
     19#include "../output/URLLink.h" 
    1920 
    2021CARAssignHelper::CARAssignHelper(CARInside& arIn, int rootLevel, const CARServerObject &obj, const CARSchema& schema1, const CARSchema& schema2) 
     
    290291                                                if (statHistField.Exists()) 
    291292                                                { 
    292                                                         assignText << statHistField.GetURL(rootLevel); 
     293                                                        assignText << URLLink(statHistField, rootLevel); 
    293294                                                        arIn->AddFieldReference(schemaInsideId2, iFieldId, refItem); 
    294295                                                } 
  • branches/work_311/core/ARCharMenu.cpp

    r485 r525  
    5252{ 
    5353        return new CARCharMenu(*this); 
    54 } 
    55  
    56 string CARCharMenu::GetURL(int rootLevel, bool showImage) const 
    57 { 
    58         CPageParams file(PAGE_DETAILS, this); 
    59         return CWebUtil::Link(GetARName(), file, (showImage ? "menu.gif" : ""), rootLevel); 
    6054} 
    6155 
  • branches/work_311/core/ARCharMenu.h

    r428 r525  
    5353 
    5454        // helpers 
    55         string GetURL(int rootLevel, bool showImage = true) const; 
    5655        bool IsUsedInWorkflow() const; 
    5756 
  • branches/work_311/core/ARContainer.cpp

    r477 r525  
    5858{ 
    5959        return new CARContainer(*this); 
    60 } 
    61  
    62 string CARContainer::GetURL(int rootLevel, bool showImage) const 
    63 { 
    64         CPageParams file(PAGE_DETAILS, this);    
    65         return CWebUtil::Link(GetName(), file, (showImage ? CAREnum::ContainerImage(GetType()) : ""), rootLevel); 
    6660} 
    6761 
  • branches/work_311/core/ARContainer.h

    r477 r525  
    5656        void SetAppRefName(const string& appName); 
    5757 
    58         string GetURL(int rootLevel, bool showImage = true) const; 
    59  
    6058        int GetServerObjectTypeXML() const { return AR_STRUCT_ITEM_XML_CONTAINER; } 
    6159        bool IsClonable() const; 
  • branches/work_311/core/AREscalation.cpp

    r422 r525  
    5050} 
    5151 
    52 string CAREscalation::GetURL(int rootLevel, bool showImage) const 
    53 { 
    54         CPageParams file(PAGE_DETAILS, this); 
    55         return CWebUtil::Link(this->GetName(), file, (showImage ? "escalation.gif" : ""), rootLevel); 
    56 } 
    57  
    5852bool CAREscalation::Exists() const 
    5953{ 
  • branches/work_311/core/AREscalation.h

    r421 r525  
    5757        string GetTimeCriteria(); 
    5858        string GetExecuteOn(); 
    59         string GetURL(int rootLevel, bool showImage = true) const; 
    6059        unsigned int GetPool(CARProplistHelper* propList = NULL) const; 
    6160        string GetPoolStr(CARProplistHelper* propList = NULL) const; 
  • branches/work_311/core/ARFilter.cpp

    r359 r525  
    4747{ 
    4848        return new CARFilter(*this); 
    49 } 
    50  
    51 string CARFilter::GetURL(int rootLevel, bool showImage) const 
    52 { 
    53         CPageParams file(PAGE_DETAILS, this); 
    54         return CWebUtil::Link(this->GetName(), file, (showImage ? "filter.gif" : ""), rootLevel); 
    5549} 
    5650 
  • branches/work_311/core/ARFilter.h

    r359 r525  
    6161        // some helpers 
    6262        string GetExecuteOn(bool singleLine=false); 
    63         string GetURL(int rootLevel, bool showImage = true) const; 
    64  
     63         
    6564        // class type support 
    6665        int GetServerObjectTypeXML() const { return AR_STRUCT_ITEM_XML_FILTER; } 
  • branches/work_311/core/ARGroup.cpp

    r359 r525  
    5050{ 
    5151        return new CARGroup(*this); 
    52 } 
    53  
    54 string CARGroup::GetURL(int rootLevel, bool useImage) const 
    55 { 
    56         CPageParams file(PAGE_DETAILS, this); 
    57         return CWebUtil::Link(this->GetName(), file, (useImage ? "group.gif" : ""), rootLevel); 
    5852} 
    5953 
  • branches/work_311/core/ARGroup.h

    r359 r525  
    4949        const string& GetComputedQualification() const; 
    5050 
    51         // some helpers 
    52         string GetURL(int rootLevel, bool useImage = true) const; 
    53  
    5451        // class type support 
    5552        int GetServerObjectTypeXML() const { return AR_STRUCT_ITEM_XML_GROUP; } 
  • branches/work_311/core/ARImage.cpp

    r480 r525  
    112112} 
    113113 
    114 string CARImage::GetURL(int rootLevel, bool showImage) const 
    115 { 
    116         CPageParams file(PAGE_DETAILS, this); 
    117         return CWebUtil::Link(this->GetName(), file, (showImage ? "image.gif" : ""), rootLevel);  
    118 } 
    119  
    120114void CARImage::AddReference(const CRefItem &refItem) 
    121115{ 
  • branches/work_311/core/ARImage.h

    r480 r525  
    5454        const ARPropList& GetPropList() const; 
    5555 
    56         string GetURL(int rootLevel, bool showImage = true) const; 
    57          
    5856        // class type support 
    5957        int GetServerObjectTypeXML() const { return AR_STRUCT_ITEM_XML_IMAGE; } 
  • branches/work_311/core/ARRole.cpp

    r359 r525  
    4949{ 
    5050        return new CARRole(*this); 
    51 } 
    52  
    53 string CARRole::GetURL(int rootLevel, bool useImage) const 
    54 { 
    55         CPageParams file(PAGE_DETAILS, this); 
    56         return CWebUtil::Link(this->GetName(), file, (useImage ? "doc.gif" : ""), rootLevel); 
    5751} 
    5852 
  • branches/work_311/core/ARRole.h

    r359 r525  
    5454        ARTimestamp GetCreateDate() const; 
    5555 
    56         // some helpers 
    57         string GetURL(int rootLevel, bool useImage = true) const; 
    58  
    5956        // class type support 
    6057        int GetServerObjectTypeXML() const { return AR_STRUCT_ITEM_XML_ROLE; } 
  • branches/work_311/core/ARServerObject.h

    r359 r525  
    3434        virtual const char* GetChangeDiary() const = 0; 
    3535        virtual const ARPropList& GetPropList() const = 0; 
    36         virtual string GetURL(int rootLevel, bool showImage = true) const = 0; 
    3736        virtual int GetServerObjectTypeXML() const = 0; 
    3837 
  • branches/work_311/lists/ARActiveLinkList.cpp

    r403 r525  
    439439} 
    440440 
    441 string CARActiveLinkList::ActiveLinkGetURL(unsigned int index, int rootLevel) 
    442 { 
    443         CARActiveLink al(index); 
    444         CPageParams file(PAGE_DETAILS,&al); 
    445         return CWebUtil::Link(ActiveLinkGetName(index), file, "active_link.gif", rootLevel);  
    446 } 
    447  
    448441void CARActiveLinkList::AddOverlayOrCustom(unsigned int index) 
    449442{ 
  • branches/work_311/lists/ARActiveLinkList.h

    r246 r525  
    5858        const char* ActiveLinkGetChangeDiary(unsigned int index) const { assert(index < changeDiary.numItems); return changeDiary.stringList[sortedList[index]]; } 
    5959        const ARPropList& ActiveLinkGetPropList(unsigned int index) const { assert(index < objProps.numItems); return objProps.propsList[sortedList[index]]; } 
    60         string ActiveLinkGetURL(unsigned int index, int rootLevel); 
    6160 
    6261        const string& ActiveLinkGetAppRefName(unsigned int index) const { assert(index < appRefNames.size()); return appRefNames[sortedList[index]]; } 
  • branches/work_311/lists/ARFieldList.h

    r227 r525  
    5858        virtual const char* FieldGetChangeDiary(unsigned int index) const = 0; 
    5959        virtual const ARPropList& FieldGetPropList(unsigned int index) const = 0; 
    60         //virtual string FieldGetURL(unsigned int index, int rootLevel) = 0; 
    6160 
    6261        // types used for workflow references 
  • branches/work_311/lists/ARFilterList.cpp

    r403 r525  
    435435} 
    436436 
    437 string CARFilterList::FilterGetURL(unsigned int index, int rootLevel) 
    438 { 
    439         CARFilter flt(index); 
    440         CPageParams file(PAGE_DETAILS, &flt); 
    441         return CWebUtil::Link(FilterGetName(index), file, "filter.gif", rootLevel);  
    442 } 
    443  
    444437void CARFilterList::AddOverlayOrCustom(unsigned int index) 
    445438{ 
  • branches/work_311/lists/ARFilterList.h

    r246 r525  
    5454        const char* FilterGetChangeDiary(unsigned int index) const { assert(index < changeDiary.numItems); return changeDiary.stringList[sortedList[index]]; } 
    5555        const ARPropList& FilterGetPropList(unsigned int index) const { assert(index < objProps.numItems); return objProps.propsList[sortedList[index]]; } 
    56         string FilterGetURL(unsigned int index, int rootLevel); 
    5756 
    5857        // Notice about the function below (FilterGetErrorOption) 
  • branches/work_311/lists/ARVUIList.h

    r227 r525  
    4646        virtual const char* VUIGetChangeDiary(unsigned int index) const = 0; 
    4747        virtual const ARPropList& VUIGetPropList(unsigned int index) const = 0; 
    48         //virtual string VUIGetURL(unsigned int index, int rootLevel); 
    4948}; 
    5049 
     
    7776        virtual const char* VUIGetChangeDiary(unsigned int index) const { return vuiList.vuiList[sortedList[index]].changeDiary; } 
    7877        virtual const ARPropList& VUIGetPropList(unsigned int index) const; 
    79         //virtual string VUIGetURL(unsigned int index, int rootLevel); 
    8078 
    8179        friend class CARSchemaList; 
  • branches/work_311/output/IFileStructure.h

    r504 r525  
    2222class IFileStructure 
    2323{ 
    24         /// IMPORTANT NOTE: avoid calling the GetURL methods of any object.  
    25         /// For example in: virtual string GetPath(const CARActiveLink &obj)  
    26         /// dont call obj.GetURL(...). This will lead to an infinite loop! 
    2724public: 
    2825 
Note: See TracChangeset for help on using the changeset viewer.