You can check if SdrPage::GetBackgroundObj() returns a non null pointer. In that case the slide has a background set. You can clear the background of a slide by calling SdrPage::SetBackgroundObj(0). But don't forget to add an undo event or bad things will happen.
All in all this is a very useful feature. Most slides will have the same background as their master page. But if you have one or two that needs just a different background filling you don't need to have a second master page, you can just override the background for these one or two slides. Regards, Christian Andre Fischer - Sun Microsystems Germany wrote: > zhaosheng wrote: > >> Hi: >> >> In Impress, there is a phenomena about the background setting, here it is: >> supose there are more than one slides in the presentation, select one slide, >> open the page style dialog >> and chose background tab page, and fill any type of backgound for the >> current slide, and click ok >> and a message box pops up, asking you if you want to make the setting for >> all pages, select "no". >> and only the current page is set. >> and then, if you select another page, do it again but chose a different e.g >> color for background to show >> some difference later, for the message box this time chose "yes" to make the >> setting to all pages. >> the result will be every page except the former one we changed first. It is >> apparent that the first choice >> made for the slide not to make the setting to all the pages paid off. >> I want to ask, does it necessary to shut the page out because first we chose >> to set something only for it? >> and maybe the user just want all the pages set the same this time. >> BTW, can I ask how can I check the difference between the unique slide and >> the rest, say how can write >> code to identify that page can't be set with the same background as others? >> > > This is a known problem. It is caused by two different ways of how to > set the background: > 1.) When you set the background for just one slide, then the background > of that slide is explicitly set to the background. > 2.) When you set the background for all slides, then the background of > their master pages are set to the background. The slides themselves are > not modified. > > So, when you first set the background for one slide and then for all > slides, then that one slide is not excluded. Its explicitly set > background is just not reset. It still shows its own background, not, > like all the other slides, that of its master page. > > QA is searching for the issue, or writes a new one. > > >> thanks >> >> >> >> >> zhaosheng >> 2007-05-18 >> >> > > Best regards, > Andre > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
