"Recent Files 2" menu is shown next position of the existing "Recent Files" of the File menu of Writer, Calc, Drawing, Impress, Master Document, HTML and Formula. And it shows files list including only the same kind of the current document.
There is the example to implement PopupMenuController in C++ in the OOoWiki, but there is the difference to implement it in Python.
The PopupMenuController is not instantiated through com.sun.star.lang.XInitialization interface, but it is instantiated through python __init__ method. You need to get some arguments passed as tuple of com.sun.star.beans.PropertyValue like the following:
Code: Select all
def __init__(self, ctx, *args):
The list of filter names is taken from com.sun.star.document.FilterFactory service and the documentation can be read in the Office Development chapter fo the DevGuide.