[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: Embedded or not ?
From:       Werner Trobin <wtrobin () mandrakesoft ! com>
Date:       2000-05-18 13:47:59
[Download RAW message or body]

Kai-Uwe Sattler wrote:
> 
> Hi,
> I'm trying to cleanup the Koffice part of KIllustrator, but the code has
> changed in the last month significantly. So I have lost the overview ;-)
> How can I detect, if a view is embedded or not ? I would like to hide
> the rulers and scrollbars, if a KIllustrator document is embedded into
> another KOffice part.

When a view is embedded, you don't have a "view" (no KoView class)
This menas, that there is no widget you can paint on.
The part hosting your document calls KoDocument::paintContents(...)

Hope this helps.

-- 
Werner Trobin - wtrobin@mandrakesoft.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic