Re: Adding Items to a Sub-Menu

Ariel Constenla-Haile <[email protected]> Wed, 15 Jun 2011 20:27:02 -0300
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
--nextPart3910336.pWhe6mBb7U
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello Hal,

On Wednesday 15 June 2011, 02:05, Hal Vaughan wrote:
> I haven't been using the API for a while and I'm working on a macros in OO
> Basic.
>=20
> From what I remember, to add things to a sub menu, I have to do that by
> hand.  Am I wrong?  Is there a way, using OO Basic to add items to a sub
> menu?
>=20
> I'm creating a sticky-note program that will let me make notes that are
> attached to a document.  They're stored in the document text fields.  I'd
> like to be able to, when a note is created, add a menu item with the note
> title to a sub-menu I'm creating.  Also, of course, if the note is
> deleted, I'd like to remove that item from the menu.  The hard part is I
> only want those sub-menu items available when that document window is
> selected.
>=20
> Is that do-able without going through a nightmare?

you need to develop a UNO component implementing a PopupMenuController,=20
impossible in OOo Basic, you must code in Java, C++ or Python.


Regards
=2D-=20
Ariel Constenla-Haile
La Plata, Argentina

--nextPart3910336.pWhe6mBb7U
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQIcBAABCAAGBQJN+T/MAAoJEMjP1bm45QNWKcQP/iPI+hHxaXVRK4LDlkkGicDe
cnZQdkiD/QJcpIePN6BRKrb+2KFbsdpIAPaLZd2BqFGyB609N15moblPeKFBVcY7
Ic9UVEJH/OPiB9I1Fr+Bm8h6e1+53dFFdntsmByvI13z6H0qJ1tiSiktuBOOuM9o
yBZXmfv+XM7F5ZanDpKsAH4srhf5iUvkqpHS48yXmCmwjJ1s4TQCOjjMw4ssWOJ3
3UY5XFdDhxiE7wHSc+uGi/4m0jtTs3WuTLHCOcw4+/3d4AG6XhaSEIIb+etI7g2F
w8VoFcyyENXs6l2CTOjuJ9mIpqIcbVShjceek1z17OCBJYbQemPB/Osw+v41AJRx
jctiGXKCUFVCbGLl+GQajhYtyYHae/3Q2SQHLX5Ou9N7lf57Rh1PNMl9O7gDZnjT
Ow3kKfytWoSOWSl/OriFFGbySjSbS0DG6GDaBUXUWIJfzr0SSmhe6vEta88mVpta
ctu1UC+K4Mi1ufpx+W9SuccUWRC+CuuQ0WjSe4q+HLYlyKYcp+C5P3gL9THfvytK
hIY3KfuF9AB1J0uBpmia/QbluJ/BckMhPPCPHW/selgDAosgiO+XYIEmcPjugASz
ag9LAbRS/7c1XWc97bUre4rrJjR23jzH++N3O/Dft6mHGGcEb0KI3oaYDj4iY6PS
7IXlXtEgROIgmJW60I5u
=OyX2
-----END PGP SIGNATURE-----

--nextPart3910336.pWhe6mBb7U--