List Info

Thread: how to judge the paragraph style of the paragraph which the cursor is




how to judge the paragraph style of the paragraph which the cursor is
user name
2007-08-22 07:40:44
hi all:


When the cursor is in a paragraph, 
and I want to know which paragraph style is this paragraph
belonged to. 
How to judge the paragraph style of the paragraph which the
cursor is in?


Best regards,
Liyuan
Re: how to judge the paragraph style of the paragraph which the cursor is
user name
2007-08-22 08:04:18
Hi all,

Is it like that:

SwTxtFmtColl* pColl = GetWrtShell()->GetCurTxtFmtColl();
if(pColl)
{
     aParam = pColl->GetName();
...


> hi all:
> 
> 
> When the cursor is in a paragraph, 
> and I want to know which paragraph style is this
paragraph belonged to. 
> How to judge the paragraph style of the paragraph which
the cursor is in?
> 
> 
> Best regards,
> Liyuan

 Best regards,
 Liyuan
Re: how to judge the paragraph style of the paragraph which the cursor is
user name
2007-08-22 08:15:55
Hi Liyuan,

On 08/22/07 15:04, Liyuan(Internet) wrote:
> 
> Is it like that:
> 
> SwTxtFmtColl* pColl =
GetWrtShell()->GetCurTxtFmtColl();
> if(pColl)
> {
>      aParam = pColl->GetName();

yep.

Best regards,

Frank

--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/Gu
llFOSS

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )