Hi Sharpminded,

if you want to change the default display that the presentation starts on, you have to change the configuration entry under
"Office.Impress/Misc/Display"

I'm sorry I don't have a code snipped how to access the configuration handy but I'm sure it is described in the developers
guide somewhere.

Regards,
Christian

Sharpminded Gmail schrieb:
Hi Christian,

I unsuccessfully try the service "com.sun.star.awt.DisplayAccess".
It seems that setPropertyValue always throws an exception :
http://lxr.go-oo.org/source/gsl/vcl/source/components/display.cxx#267

Or maybe am I doing the wrong way ?

//BEGIN

Reference< XInterface > xInterfaceDisplayAccess =
  xMultiComponentFactoryServer->createInstanceWithContext(
    OUString::createFromAscii( "com.sun.star.awt.DisplayAccess" ),
    xComponentContext );

Reference< XPropertySet > xMonProps (
  xInterfaceDisplayAccess,
  UNO_QUERY );

const OUString sPropName(
  RTL_CONSTASCII_USTRINGPARAM( "DefaultDisplay" ) );
//some monitor, 0 for primary one
sal_Int8 iDefaultDisplay = 1;
//fails here...
xMonProps->setPropertyValue(
  sPropName,
  makeAny( iDefaultDisplay ) );

//END

I also wonder where is the source file behind the dialog of slideshow settings .
I try to locate it : maybe it has answers to my questions ?

Regards,
Sharpminded

ps : Maybe this is not the right place to discuss that, please tell me
if I'm too disturbing.
------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to