www.gusucode.com > rmidemos工具箱matlab源码程序 > rmidemos/powerwin_reqs/rmidemo_pp_linktype_step1.m
function linkType = rmidemo_pp_linktype linkType = ReqMgr.LinkType; linkType.Registration = mfilename; linkType.Version = ''; % not used % Label describing this link type linkType.Label = 'Microsoft Power Point'; % File information linkType.IsFile = 1; linkType.Extensions = {'.ppt', '.pptx'}; % Location delimiters linkType.LocDelimiters = '#'; % Supported methods linkType.NavigateFcn = @NavigateFcn; end function NavigateFcn(filePath, locationStr) if isempty(locationStr) disp(['Navigating to "' filePath '"']); else disp(['Navigating to "' locationStr '" in "' filePath '"']); end end