time | calls | line |
---|
| | 363 | function LocalCheckForDeprecation(pj)
|
| 12 | 364 | msgID = '';
|
| 12 | 365 | msgText = '';
|
| 12 | 366 | deviceToCheck = pj.Driver;
|
| | 367 |
|
| | 368 | % Get deprecated device list
|
0.02 | 12 | 369 | [ ~, ~, ~, ~, depDevices, depDestinations, ~ ] = getDeprecatedDeviceList();
|
| 12 | 370 | depIndex = find(strcmp(depDevices, deviceToCheck));
|
| 12 | 371 | if isempty(depIndex)
|
| 12 | 372 | return;
|
| | 373 | end
|
| | 374 | depDest = depDestinations(depIndex);
|
| | 375 | if isempty(depDest)
|
| | 376 | depDest = '';
|
| | 377 | end
|
| | 378 |
|
| | 379 | if strcmpi(deviceToCheck, 'ill')
|
| | 380 | % Native illustrator support will be removed
|
| | 381 | msgID = 'MATLAB:print:Illustrator:DeprecatedDevice';
|
| | 382 | if pj.UseOriginalHGPrinting
|
| | 383 | msgText = getString(message('MATLAB:uistring:inputcheck:ThedillPrintDeviceWillBeRemovedInAFutureRelease'));
|
| | 384 | else
|
| | 385 | msgText = getString(message('MATLAB:uistring:inputcheck:ThedillPrintDeviceHasBeenRemoved'));
|
| | 386 | end
|
| | 387 | elseif strcmpi(deviceToCheck, 'mfile')
|
| | 388 | % MFile Code Generation Option Removed
|
| | 389 | msgID = 'MATLAB:print:DeprecatedMATLABCodeGenerationOption';
|
| | 390 | if pj.UseOriginalHGPrinting
|
| | 391 | msgText = getString(message('MATLAB:printdmfile:DeprecatedMATLABCodeGenerationOption'));
|
| | 392 | else
|
| | 393 | msgText = getString(message('MATLAB:print:DeprecatedMATLABCodeGenerationOption'));
|
| | 394 | end
|
| | 395 | elseif strcmp('P', depDest)
|
| | 396 | % some older printer devices are being deprecated
|
| | 397 | msgID = 'MATLAB:Print:Deprecate:PrinterFormat';
|
| | 398 | if pj.UseOriginalHGPrinting
|
| | 399 | msgText = sprintf('%s',getString(message('MATLAB:uistring:inputcheck:ThePrintDeviceWillBeRemovedInAFutureRelease', ...
|
| | 400 | deviceToCheck)));
|
| | 401 | else
|
| | 402 | msgText = sprintf('%s',getString(message('MATLAB:uistring:inputcheck:ThePrintDeviceHasBeenRemoved', ...
|
| | 403 | deviceToCheck)));
|
| | 404 | end
|
| | 405 | elseif strcmp('X', depDest)
|
| | 406 | msgID = 'MATLAB:Print:Deprecate:GraphicFormat';
|
| | 407 | if pj.UseOriginalHGPrinting
|
| | 408 | msgText = sprintf( getString(message('MATLAB:uistring:inputcheck:TheGraphicExportFormatWillBeRemovedInAFutureRelease', ...
|
| | 409 | deviceToCheck)));
|
| | 410 | else
|
| | 411 | msgText = sprintf( getString(message('MATLAB:uistring:inputcheck:TheGraphicExportFormatHasBeenRemoved', ...
|
| | 412 | deviceToCheck)));
|
| | 413 | end
|
| | 414 | elseif strcmpi('setup',deviceToCheck)
|
| | 415 | msgID = 'MATLAB:Print:DSetupOptionRemoved';
|
| | 416 | if pj.UseOriginalHGPrinting
|
| | 417 | msgText = sprintf( getString(message('MATLAB:print:DSetupOptionDeprecation')));
|
| | 418 | else
|
| | 419 | msgText = sprintf( getString(message('MATLAB:print:DSetupOptionRemoved')));
|
| | 420 | end
|
| | 421 | end
|
| | 422 |
|
| | 423 | if ~isempty(msgID)
|
| | 424 | if pj.UseOriginalHGPrinting
|
| | 425 | warning(msgID, msgText);
|
| | 426 | else
|
| | 427 | error(msgID, msgText);
|
| | 428 | end
|
| | 429 | end
|
| | 430 |
|
| | 431 | %EOFunction LocalCheckForDeprecation
|
| | 432 | end
|
Other subfunctions in this file are not included in this listing.