mlreportgen.ppt.MessageFilter Class
Namespace: mlreportgen.ppt
Filter to control message dispatcher
Description
Filter for messages dispatched by the message dispatcher.
The mlreportgen.ppt.MessageFilter
class is a handle
class.
Properties
DebugMessagePass
— Pass or block debug messages
logical value
Pass or block debug messages, specified as a logical.
true
— Pass debug messages.false
— Block debug messages.
Data Types: logical
ErrorMessagePass
— Pass or block error messages
logical value
true
— Pass error messages.false
— Block error messages.
Data Types: logical
GlobalFilter
— Pass or block all messages
logical value
true
— Pass all messages.false
— Block all messages.
Data Types: logical
ProgressMessagePass
— Pass or block progress messages
logical value
true
— Pass progress messages.false
— Block progress messages.
Data Types: logical
GlobalFilter
— Pass or block all messages
logical value
true
— Pass all messages.false
— Block all messages.
Data Types: logical
SourceFilter
— Pass messages only for this PPT object
PPT object
Pass messages only for this PPT object, specified as a PPT object. Pass
messages only from the specified PPT object if the messages meet the other
filter conditions specified by this MessageFilter
object.
Examples
Filter Messages
Create the presentation.
import mlreportgen.ppt.*; pre = Presentation('myPresentation.pptx');
Create the listener and add it to the message dispatcher.
dispatcher = MessageDispatcher.getTheDispatcher; dispatcher.Filter.ErrorMessagesPass = true; dispatcher.Filter.ProgressMessagesPass = false; l = addlistener(dispatcher,'Message', ... @(src, evtdata) disp(evtdata.Message.formatAsText));
Create the message and dispatch it before opening.
msg = ErrorMessage('Invalid slide',pre);
dispatch(dispatcher, msg);
open(pre);
Create an error in the program and dispatch the message. Then open the presentation.
titleText = Text('This is a Title'); titleText.Style = {Bold}; replace(pre,'Title',titleText); close(pre);
Version History
Introduced in R2015b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)