⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 withclss.idl

📁 c#设计模式WithCla
💻 IDL
📖 第 1 页 / 共 5 页
字号:
  HRESULT ShowType([in] VARIANT_BOOL newVal);
		[propget, id(43), helpstring("property ShowVisibility")] HRESULT ShowVisibility([out, retval] VARIANT_BOOL *pVal);
		[propput, id(43), helpstring("property ShowVisibility")] HRESULT ShowVisibility([in] VARIANT_BOOL newVal);
		[propget, id(44), helpstring("property ShowProperties")] HRESULT ShowProperties([out, retval] VARIANT_BOOL *pVal);
		[propput, id(44), helpstring("property ShowProperties")] HRESULT ShowProperties([in] VARIANT_BOOL newVal);
		[propget, id(45), helpstring("property ShowStereotypes")] HRESULT ShowStereotypes([out, retval] VARIANT_BOOL *pVal);
		[propput, id(45), helpstring("property ShowStereotypes")] HRESULT ShowStereotypes([in] VARIANT_BOOL newVal);
		[propget, id(46), helpstring("property ShowInitialValues")] HRESULT ShowInitialValues([out, retval] VARIANT_BOOL *pVal);
		[propput, id(46), helpstring("property ShowInitialValues")] HRESULT ShowInitialValues([in] VARIANT_BOOL newVal);
		[propget, id(47), helpstring("Parameters for the template of the class")] HRESULT TemplateParameters([out, retval] BSTR *pVal);
		[propput, id(47), helpstring("Parameters for the template of the class")] HRESULT TemplateParameters([in] BSTR newVal);
		[propget, id(48), helpstring("property ShowParameters")] HRESULT ShowParameters([out, retval] VARIANT_BOOL *pVal);
		[propput, id(48), helpstring("property ShowParameters")] HRESULT ShowParameters([in] VARIANT_BOOL newVal);
  [id(30), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
  HRESULT NewAttribute([in]BSTR strAttributeName, [out, retval]IAttribute** pVal);
  [id(31), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
  HRESULT NewOperation([in]BSTR strOperationName, [out, retval]IOperation** pVal);
  [id(39), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
  HRESULT Refresh();

	};

	[ uuid(6FAF8997-25F3-11D0-9EB4-F02E03C10627),
	  dual,
	  hidden,
	  pointer_default(unique)
	]
	interface IClassCollection : IDispatch
	{
  [propget, id(1), helpcontext(131473), helpstring("The number of items in the collection")]
  HRESULT Count([out, retval] long * pVal);

  [propget, id(3), helpcontext(131473), helpstring("Returns the current item in the collection")]
  HRESULT Item([in]  short index, [out, retval]IClass** pVal);
  [id(2), helpcontext(131473), helpstring("Adds a class to the collection - not used")]
  HRESULT Add([in]  IClass* aClass);
  [id(4), helpcontext(131473), helpstring("Sets the index at the beginning item in the class collection")]
  HRESULT Restart();
  [id(5), helpcontext(131473), helpstring("Returns true if the index is at the last item in the collection")]
  HRESULT IsLast([out, retval]VARIANT_BOOL * aFlag);
  [id(6), helpcontext(131473), helpstring("Returns the next item in the collection")]
  HRESULT GetNext([out, retval]IClass** pVal);
  [id(7), helpcontext(131473), helpstring("Returns a class object based upon the class name")]
  HRESULT FindClass([in] BSTR strClass, [out, retval]IClass** pVal);


	};

	//  Class information for CClassCollection

	[ uuid(6FAF8998-25F3-11D0-9EB4-F02E03C10627) ]
	coclass Classes
	{
		[default] interface IClassCollection;
	};



	//  Class information for Class

	[ uuid(6FAF8996-25F3-11D0-9EB4-F02E03C10627) ]
	coclass Class
	{
		[default] interface IClass;
	};



	//  Primary dispatch interface for CRcsalvDoc
	
	[ 
		uuid(6FAF898C-25F3-11D0-9EB4-F02E03C10627),
		dual,
		hidden,
	    helpstring("WithClass document refers to the current WithClass .omt file"),
		pointer_default(unique)
	]
	interface IWithClass : IDispatch
	{
	  [propget, id(1), helpcontext(131473), helpstring("")]
	  HRESULT Relationships([out, retval] IRelationshipCollection** pVal);
	  [propget, id(2), helpcontext(131473), helpstring("")]
	  HRESULT Classes([out, retval] IClassCollection** pVal);
	  [propput, id(7), helpcontext(131473), helpstring("")]
	  HRESULT FileName([in] BSTR Val);
	  [propget, id(7), helpcontext(131473), helpstring("")]
	  HRESULT FileName([out, retval] BSTR * pVal);
	  [propget, id(11), helpcontext(131473), helpstring("")]
	  HRESULT States([out, retval] IStateCollection** pVal);
	  [propget, id(12), helpcontext(131473), helpstring("")]
	  HRESULT Transitions([out, retval] ITransitionCollection** pVal);
	  [propget, id(13), helpcontext(131473), helpstring("")]
	  HRESULT Objects([out, retval] IObjectCollection** pVal);
	  [propget, id(14), helpcontext(131473), helpstring("")]
	  HRESULT Interactions([out, retval] IInteractionCollection** pVal);
	  [propget, id(16), helpcontext(131473), helpstring("")]
	  HRESULT Packages([out, retval] IPackageCollection** pVal);

	 // BSTR Properties
	[propput, id(24), helpcontext(131473), helpstring("")]
	  HRESULT WorkingDirectory([in] BSTR Val);
	  [propget, id(24), helpcontext(131473), helpstring("")]
	  HRESULT WorkingDirectory([out, retval] BSTR * pVal);
	[propput, id(25), helpcontext(131473), helpstring("")]
	  HRESULT DocumentDirectory([in] BSTR Val);
	  [propget, id(25), helpcontext(131473), helpstring("")]
	  HRESULT DocumentDirectory([out, retval] BSTR * pVal);

	  [propget, id(26), helpcontext(131473), helpstring("")]
	  HRESULT Application([out, retval] IApplication** pVal);

	// Boolean Properties
  
	// short Properties
	  [propput, id(27), helpcontext(131473), helpstring("")]
	  HRESULT XResolution([in] short Val);
	  [propget, id(27), helpcontext(131473), helpstring("")]
	  HRESULT XResolution([out, retval] short * pVal);
	[propput, id(28), helpcontext(131473), helpstring("")]
	  HRESULT YResolution([in] short Val);
	  [propget, id(28), helpcontext(131473), helpstring("")]
	  HRESULT YResolution([out, retval] short * pVal);
	[propput, id(29), helpcontext(131473), helpstring("")]
	  HRESULT XPosition([in] short Val);
	  [propget, id(29), helpcontext(131473), helpstring("")]
	  HRESULT XPosition([out, retval] short * pVal);
	[propput, id(30), helpcontext(131473), helpstring("")]
	  HRESULT YPosition([in] short Val);
	  [propget, id(30), helpcontext(131473), helpstring("")]
	  HRESULT YPosition([out, retval] short * pVal);
	[propput, id(32), helpcontext(131473), helpstring("")]
	  HRESULT WindowWidth([in] short Val);
	  [propget, id(32), helpcontext(131473), helpstring("")]
	  HRESULT WindowWidth([out, retval] short * pVal);
	[propput, id(33), helpcontext(131473), helpstring("")]
	  HRESULT WindowHeight([in] short Val);
	  [propget, id(33), helpcontext(131473), helpstring("")]
	  HRESULT WindowHeight([out, retval] short * pVal);
	[propput, id(35), helpcontext(131473), helpstring("")]
	  HRESULT XScreenResolution([in] short Val);
	  [propget, id(35), helpcontext(131473), helpstring("")]
	  HRESULT XScreenResolution([out, retval] short * pVal);
	[propput, id(36), helpcontext(131473), helpstring("")]
	  HRESULT YScreenResolution([in] short Val);
	  [propget, id(36), helpcontext(131473), helpstring("")]
	  HRESULT YScreenResolution([out, retval] short * pVal);
  
	// long properties
  
	// IDispatch properties
	  [propget, id(48), helpcontext(131473), helpstring("")]
	  HRESULT ClassDiagrams([out, retval] IWCCollection** pVal);
	  [propget, id(49), helpcontext(131473), helpstring("")]
	  HRESULT StateDiagrams([out, retval] IWCCollection** pVal);
	  [propget, id(50), helpcontext(131473), helpstring("")]
	  HRESULT SequenceDiagrams([out, retval] IWCCollection** pVal);
	  [propget, id(51), helpcontext(131473), helpstring("")]
	  HRESULT UseCaseDiagrams([out, retval] IWCCollection** pVal);
	  [propget, id(53), helpcontext(131473), helpstring("")]
	  HRESULT Shapes([out, retval] IShapeCollection** pVal);
	  [propget, id(57), helpcontext(131473), helpstring("")]
	  HRESULT ImplementationDiagrams([out, retval] IWCCollection** pVal);
	  [propget, id(58), helpcontext(131473), helpstring("Parent Application")]
	  HRESULT Parent([out, retval] IApplication** pVal);
	  [propget, id(59), helpstring("property ObjectPtr"),hidden] 
	  HRESULT ObjectPtr([out, retval] long *pVal);
	 	
	// operations
	  [id(3), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewClass([in] short xcoord, [in] short ycoord, [in] BSTR className, [out, retval]IClass** pVal);
	  [id(4), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT RefreshWindow();
	  [id(5), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT ShowWindow();
	  [id(6), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT SaveFile();
	  [id(8), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT CloseFile();
	  [id(9), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT RunClassScript([in] BSTR strClassName, [in] BSTR strScriptName, [in] BSTR strExtension);
	  [id(10), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewFile();
	  [id(15), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT ReplaceType([in] BSTR strOldType, [in] BSTR strNewType, [in] short bReplaceAttributeTypes, [in] short bReplaceOperationReturnTypes, [in] short bReplaceOperationParameterTypes);
	  [id(17), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT Reset();
	  [id(18), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewGeneralization([in] IClass* pSrcClass, [in] IClass* pDestClass, [out, retval]IRelationship**);
	  [id(19), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewAssociation([in] IClass* pSrcClass, [in] IClass* pDestClass, [in] BSTR strText, [in] BSTR strSrcCardinality, [in] BSTR strDestCardinality, [out, retval]IRelationship** pRel);
	  [id(20), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewAggregation([in] IClass* pSrcClass, [in] IClass* pDestClass, [in] BSTR strText, [in] BSTR strSrcCardinality, [in] BSTR strDestCardinality, [out, retval]IRelationship** pRel);
	  [id(21), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewDependency([in] IClass* pSrcClass, [in] IClass* pDestClass, [in] BSTR strText, [in] BSTR strSrcCardinality, [in] BSTR strDestCardinality, [out, retval]IRelationship** pRel);
	  [id(22), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewPackage([in] short xcoord, [in] short ycoord, [in] BSTR packName, [out, retval]IPackage** pPackage);
	  [id(23), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT CopyRegionToClipBoard([in] short left, [in] short top, [in] short right, [in] short bottom);
	  [id(31), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT SetScale([in] short scale, [out, retval]short *pVal);
	  [id(34), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT SaveAs([in] BSTR strFileName);
	  [id(37), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT MaximizeActiveView();
	  [id(38), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT RegisterAddIn([in] BSTR strFileName, [in] BSTR strVBACommand, [in] BSTR strMenuText, [in, optional] VARIANT bAutoShutdown);
	  [id(39), helpstring("Creates a new state and returns the state object, accepts an optional global constant for a particular type")]
	  HRESULT   NewState([in] short xcoord, [in]short ycoord, [in]BSTR stateName, [optional] VARIANT stateType, [out, retval] IState **pVal);
	  [id(40), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewTransition([in] IState* pSrcState, [in] IState* pDestState, [in] BSTR strEvent, [in] BSTR strCondition, [in] BSTR strAction, [out, retval]ITransition**);
	  [id(41), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT ShowView([optional] VARIANT wcvType);
	  [id(42), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT ArrangeClasses();
	  [id(43), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT ArrangeRelationships();
	  [id(44), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewParser([out, retval]IParser**);
	  [id(45), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewObject([in] short xcoord, [in] short ycoord, [in] BSTR objectName, [in] BSTR className, [out, retval]IObject** pVal);
	  [id(46), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT NewInteraction([in]short sequenceNumber, [in]IObject *pSrcObject, [in]IObject *pDestObject, 
							[in]BSTR strInvokedOperation, [in, optional] VARIANT Type, [out, retval]IInteraction** pVal);
	  [id(47), helpcontext(131473), helpstring("OPERATION_DESCRIPTION")]
	  HRESULT CenterScreenAt([in] short x, [in] short y);
	  [id(52), helpstring("Shows a particular diagram view for a particular model from the global view constant passed")]
	  HRESULT  ShowDiagram([in, optional] VARIANT wcvType, [in]short diagramcount);
	  [id(54), helpstring("Creates a particular diagram view for a particular model from the global view constant passed")]
	  HRESULT  NewDiagram([in, optional] VARIANT wcvType, [in]BSTR Name, [out, retval]IDispatch ** pVal);
	  [id(55), helpstring("Creates a particular shape from the global shape constant passed")]
	  HRESULT NewShape([in]short xcoord, short ycoord, [in]short ShapeType, [in]BSTR ShapeName, [out, retval]IShape ** pVal);
	  [id(56), helpstring("Finds a particular diagram")]
	  HRESULT FindDiagram([in, optional] VARIANT wcvType, [in]BSTR Name, [out, retval]IDispatch **pVal);
	  [propget, id(60), helpcontext(131473), helpstring("Collection of Collaboration Diagrams")]
	  HRESULT CollaborationDiagrams([out, retval] IWCCollection** pVal);
	  [id(61), helpcontext(131473), helpstring("Adds a Menu Item to the Utility menu")]
	  HRESULT AddUtilityMenuItem([in]short wcMenuItem, [in]BSTR MenuText);
	  [id(62), helpcontext(131473), helpstring("Adds a Menu Item to the Class PopUp Menu")]
	  HRESULT AddClassMenuItem([in]short wcMenuItem, [in]BSTR MenuText);
	  [id(63), helpcontext(131473), helpstring("Adds a Menu Item to the Shape Popup Menu")]
	  HRESULT AddShapeMenuItem([in]short wcMenuItem, [in]BSTR MenuText);
	  [id(64), helpcontext(131473), helpstring("Removes a Menu Item from the Utility menu")]
	  HRESULT RemoveUtilityMenuItem([in]short wcMenuItem);
	  [id(65), helpcontext(131473), helpstring("Removes a Menu Item from the Class PopUp Menu")]
	  HRESULT RemoveClassMenuItem([in]short wcMenuItem);
	  [id(66), helpcontext(131473), helpstring("Removes a Menu Item from the Shape Popup Menu")]
	  HRESULT RemoveShapeMenuItem([in]short wcMenuItem);
	};

	//  Class information for CRcsalvDoc
	
	[ uuid(6FAF898A-25F3-11D0-9EB4-F02E03C10627),
	helpstring("WithClass document refers to the current WithClass .omt file")]
	coclass Document
	{
		[default] interface IWithClass;
		[default, source] dispinterface DEDocumentEvents;
	};




	[ uuid(6FAF8993-25F3-11D0-9EB4-F02E03C10627),
	  dual,
	  hidden,
	  pointer_default(unique)
	]
	interface IRelationship : IDispatch
	{

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -