On Friday 14 June 2002 2:12 pm, Martin Vermeer wrote: > On Fri, Jun 14, 2002 at 01:24:26PM +0100, Angus Leeming wrote: > > > Okay John, here is a sample of my ignorance [sentence conformant to > > > Friday cultural context assumptions]. Attached. It does nothing yet -- > > > it just compiles. Except in one place which I don't get (behind // for > > > now). > > > > Does this compile? Creates a variable ist. If not, what's the compiler > > error? void insetShortTitle(InsetText const & ins) { > > InsetShortTitle ist(ins); > > } > > Yes! This compiles. > > But does it do what it should? The idea is that somewhere you call > InsetSection::insetShortTitle with an argument ins containing the text > you want to be in the short title (sub-) inset. And then it should > create such an inset.
It creates an instance of InsetShortTitle. InsetSection should have a member variable InsetShortTitle ist_; Then, your method becomes: void setShortTitle(InsetText const & inset) { ist_ = inset; } Now, you've stored it you can create other methods to draw it. Angus > > What do I want to do with ist? What does it contain? > > > > People over 40 shouldn't have to learn C++. > > > > Rubbish, Grandpa. Stops you going senile and becoming a burden on the > > youf of today. > > No, that was LISP. That was yesterday. I'm interested in keeping your remaining brain cells working today. ;-) A