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

List:       koffice-devel
Subject:    Re: document classes
From:       Tomasz Grobelny <grotk () poczta ! onet ! pl>
Date:       2002-08-29 13:52:56
[Download RAW message or body]

On czw 29. sierpień 2002 15:42, David Faure wrote:
> On Thursday 29 August 2002 14:04, Tomasz Grobelny wrote:
> > On czw 29. sierpień 2002 13:42, David Faure wrote:
> > > > > But the data (global for document) must be accesible from
> > > > > lib/kotext. So which (document) class should I extend?
> > >
> > > Depends for which features. Please elaborate.
> >
> > I'm trying to implement liststyles. List of listStyles
> > (KoListStyleCollection/KWListStyleCollection) needs to be stored in
> > document class (KWDocument).
>
> Indeed.
>
> > But KoParagCounter::text(KoTextParag* parag) which is
> > responsible for providing counter text must hava access to list of these
> > listStyles. So maybe I should subclass KoParagCounter as KWParagCounter,
> > make it operate on KWTextDocument instead of KoTextDocument and use it in
> > KWord instead of KoParagCounter?
>
> No. Define KoListStyle and KoListStyleCollection in kotext,
That's how I did it.

> let KoParagCounter optionnally point to a KoListStyle, and
> call that from KWord (i.e. KWord sets the fact that a given parag counter
> will use a given list style). The parag/textdoc stuff doesn't need to know
> about the whole style sollection, only about the specific style it's
> associated with. That's how we do for styles (KoStyle) - see kostyle.*
Thanks.

Tomek
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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