Hi Alfredo :) > > chrrm, is there an easy way how to recognize paragraph begining inside the > > loop for (DocIterator dit = from ; dit != to ; dit.forwardPos()) > > ? > > What about dit.pos() == 0?
hmm. i tried to bake a new function from the hints you gave in wiki, does it seem to be right? int countPars(ParIterator const & from, ParIterator const & to) { int pars = 0; for (ParIterator dit = from ; dit != to ; dit.forwardPar()) { ++pars; } return pars; } pavel