OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Please help me out on this requirement

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
dinesh.upare@gmx.net
General User
General User


Joined: 18 Apr 2004
Posts: 15

PostPosted: Mon Aug 01, 2005 3:52 pm    Post subject: Please help me out on this requirement Reply with quote

I am interfacing openoffice with .NET application.
i searched a lot to know what property or method i should access, to find whether there is a dialog box on the TextDocument (openoffice document).
I want to handle differently in the code when there is spell Check dialog box appears on the TextDocument.

It would be a great help if you could answer the same.

Thanks,
dinoo
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Tue Aug 02, 2005 9:23 am    Post subject: Reply with quote

Have you already compiled examples and make them working ? Are you a beginner ?
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
dinesh.upare@gmx.net
General User
General User


Joined: 18 Apr 2004
Posts: 15

PostPosted: Tue Aug 02, 2005 2:01 pm    Post subject: Reply with quote

I have already many functionalities with CLi-UNO libraries for .NET.
I am not sure which example you are talking about.
It would be a great help if some one can tell me, how do I identify that that there is a dialog box (e.g. Spell Check, Font Properties etc) on the writer document.
Which property of the classes (XModel, XComponent, XTextDocument, XDocumentInfo), i should access to find this.

Your help will be appreciated.

Thanks,
dinoo
Back to top
View user's profile Send private message
ms777
Super User
Super User


Joined: 07 Feb 2004
Posts: 1355

PostPosted: Sat Aug 06, 2005 1:51 am    Post subject: Reply with quote

I found a BASIC solution. This is not thoroughly tested, though. Good luck with translating ...

ms777

Code:
sub main
msgbox IsWindowOpen("Spellcheck")
end sub

function IsWindowOpen(sTitle as String) as Boolean
IsWindowOpen = false
oToolkit = Stardesktop.ActiveFrame.ContainerWindow.Toolkit
lCount = oToolkit.TopWindowCount

for k=0 to lCount -1
  oWin = oToolkit.getTopWindow(k)
  if HasUnoInterfaces(oWin, "com.sun.star.awt.XDialog") then
    if left(oWin.Title, len(sTitle)) = sTitle then
      IsWindowOpen = true
      exit function
      endif
    endif
  next k
end function
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group