<div dir="ltr">This is the patch pertaining to bug 56995. I did this as a qualification requirement to apply for GSoc in libreoffice. Name : Manik Malhotra<div>The message follows:<div><div>fdo#56995 Created global option to disable presenter console in Impress Slideshow</div>

<div><br></div><div>Changes made are as Follows</div><div><ol style><li style>./officecfg/registry/schema/org/openoffice/Office/Impress.xcs</li><ul style><li style>To add the new global checkbox to Libreoffice Impress>General>Start</li>

<li style>A new xml block for EnablePresenterScreen was added</li><li style><prop oor:name="EnablePresenterScreen" oor:type="xs:boolean" ></li></ul><li style>/sd/source/ui/app/optsitem.cxx</li><ul style>

<li style>To add the setter/getter for the new checkbox button, namely:<br></li></ul><ol style><ul style><li style>SetEnablePresenterScreen<br></li><li style>IsEnablePresenterScreen<br></li></ul></ol><ul style><li style>
EnablePresenterScreen added to index number 26 of:<br>
</li></ul><ol style><ul style><li style>GetPropNameArray()<br></li></ul></ol><li style>/sd/source/ui/dlg/tpoption.cxx</li><ul style><li style>SdTpOptionsMisc() editted to attach EnablePresenterScreen to CBX_ENABLE_PRESENTER_SCREEN<br>

</li></ul><ol style><ul style><li style>aCbxEnablePresenterScreen  ( this, SdResId( CBX_ENABLE_PRESENTER_SCREEN))<br></li></ul></ol><ul style><li style>Also Added to FillItemSet() and Reset() functions</li></ul><li style>

/sd/source/ui/dlg/tpoption.src b/sd/source/ui/dlg/tpoption.src</li><ul style><li style>enableSdRemote size changed to</li><li style>Size = MAP_APPFONT ( 116 , 10 ) ;</li><li style>To allow enableSdRemote(CBX_ENABLE_SDREMOTE) and enablePresenterScreen( CBX_ENABLE_PRESENTER_SCREEN) to be drawn adjacent.</li>

<li style>enablePresenterScreen checkbox CBX_ENABLE_PRESENTER_SCREEN added</li></ul><li style>/sd/source/ui/inc/optsitem.hxx</li><ul style><li style>Set default value for enablePresenterScreen as 1 or TRUE</li><ul style>
<li style>
sal_Bool    bEnablePresenterScreen : 1;</li></ul><li style>Added getter/setter named same as above for interface definition</li></ul><li style>sd/source/ui/inc/tpoption.hrc</li><ul style><li style>Defined CBX_ENABLE_PRESENTER_SCREEN as 42nd checkbox</li>

<ul style><li style>#define CBX_ENABLE_PRESENTER_SCREEN 42</li></ul></ul><li style>/sd/source/ui/inc/tpoption.hxx</li><ul style><li style> Added interface declaration of aCbxEnablePresenterScreen which was attached to  CBX_ENABLE_PRESENTER_SCREEN</li>

</ul><li style>/sdext/source/presenter/PresenterScreen.hxx</li><ul style><li style> Added interface declaration of</li><li style>bool isPresenterScreenEnabled()</li><li style> to PresenterScreen class to allow presenterscreen to get if the option is checked</li>

</ul><li style>/sdext/source/presenter/PresenterScreen.cxx</li><ul style><li style> Added definition of<br></li><li style> isPresenterScreenEnabled(const css::uno::Reference<css::uno::XComponentContext>& rxContext)</li>

<ul style><li style>Input : Current Process Context</li><li style>Output : The 0/1 value of EnablePresenterScreen from presenterconfig</li></ul><li style>In PresenterScreenListener::notifyEvent( )</li><ul style><li style>

Added</li><li style> if(mpPresenterScreen->isPresenterScreenEnabled(mxComponentContext)</li><li style>mpPresenterScreen->InitializePresenterScreen()</li></ul><li style> To initialize PresenterScreen only when enabled</li>

</ul></ol></div><div><br></div><br>-- <br>Manik Malhotra<br><div><br></div>
</div></div></div>