LibreOffice Module framework (master) 1
Namespaces | Macros | Functions | Variables
menudocumenthandler.cxx File Reference
#include <sal/macros.h>
#include <rtl/ref.hxx>
#include <rtl/ustrbuf.hxx>
#include <xml/menudocumenthandler.hxx>
#include <com/sun/star/xml/sax/SAXException.hpp>
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <com/sun/star/ui/ItemType.hpp>
#include <com/sun/star/ui/ItemStyle.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/attributelist.hxx>
Include dependency graph for menudocumenthandler.cxx:

Go to the source code of this file.

Namespaces

namespace  framework
 

Macros

#define ATTRIBUTE_ITEMSTYLE_TEXT   "text"
 
#define ATTRIBUTE_ITEMSTYLE_IMAGE   "image"
 
#define ATTRIBUTE_ITEMSTYLE_RADIO   "radio"
 

Functions

static void framework::ExtractMenuParameters (const Sequence< PropertyValue > &rProp, OUString &rCommandURL, OUString &rLabel, OUString &rHelpURL, Reference< XIndexAccess > &rSubMenu, sal_Int16 &rType, sal_Int16 &rStyle)
 

Variables

constexpr OUStringLiteral XMLNS_MENU = u"http://openoffice.org/2001/menu"
 
constexpr OUStringLiteral ELEMENT_MENUBAR = u"http://openoffice.org/2001/menu^menubar"
 
constexpr OUStringLiteral ELEMENT_MENU = u"http://openoffice.org/2001/menu^menu"
 
constexpr OUStringLiteral ELEMENT_MENUPOPUP = u"http://openoffice.org/2001/menu^menupopup"
 
constexpr OUStringLiteral ELEMENT_MENUITEM = u"http://openoffice.org/2001/menu^menuitem"
 
constexpr OUStringLiteral ELEMENT_MENUSEPARATOR = u"http://openoffice.org/2001/menu^menuseparator"
 
constexpr OUStringLiteral ELEMENT_NS_MENUBAR = u"menu:menubar"
 
constexpr OUStringLiteral ELEMENT_NS_MENU = u"menu:menu"
 
constexpr OUStringLiteral ELEMENT_NS_MENUPOPUP = u"menu:menupopup"
 
constexpr OUStringLiteral ELEMENT_NS_MENUITEM = u"menu:menuitem"
 
constexpr OUStringLiteral ELEMENT_NS_MENUSEPARATOR = u"menu:menuseparator"
 
constexpr OUStringLiteral ATTRIBUTE_ID = u"http://openoffice.org/2001/menu^id"
 
constexpr OUStringLiteral ATTRIBUTE_LABEL = u"http://openoffice.org/2001/menu^label"
 
constexpr OUStringLiteral ATTRIBUTE_HELPID = u"http://openoffice.org/2001/menu^helpid"
 
constexpr OUStringLiteral ATTRIBUTE_STYLE = u"http://openoffice.org/2001/menu^style"
 
constexpr OUStringLiteral ATTRIBUTE_NS_ID = u"menu:id"
 
constexpr OUStringLiteral ATTRIBUTE_NS_LABEL = u"menu:label"
 
constexpr OUStringLiteral ATTRIBUTE_NS_HELPID = u"menu:helpid"
 
constexpr OUStringLiteral ATTRIBUTE_NS_STYLE = u"menu:style"
 
constexpr OUStringLiteral ATTRIBUTE_XMLNS_MENU = u"xmlns:menu"
 
constexpr OUStringLiteral MENUBAR_DOCTYPE = u"<!DOCTYPE menu:menubar PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"menubar.dtd\">"
 
constexpr OUStringLiteral ITEM_DESCRIPTOR_COMMANDURL = u"CommandURL"
 
constexpr OUStringLiteral ITEM_DESCRIPTOR_HELPURL = u"HelpURL"
 
constexpr OUStringLiteral ITEM_DESCRIPTOR_CONTAINER = u"ItemDescriptorContainer"
 
constexpr OUStringLiteral ITEM_DESCRIPTOR_LABEL = u"Label"
 
constexpr OUStringLiteral ITEM_DESCRIPTOR_TYPE = u"Type"
 
constexpr OUStringLiteral ITEM_DESCRIPTOR_STYLE = u"Style"
 
const MenuStyleItem framework::MenuItemStyles []
 
sal_Int32 const framework::nMenuStyleItemEntries = SAL_N_ELEMENTS(MenuItemStyles)
 

Macro Definition Documentation

◆ ATTRIBUTE_ITEMSTYLE_IMAGE

#define ATTRIBUTE_ITEMSTYLE_IMAGE   "image"

Definition at line 70 of file menudocumenthandler.cxx.

◆ ATTRIBUTE_ITEMSTYLE_RADIO

#define ATTRIBUTE_ITEMSTYLE_RADIO   "radio"

Definition at line 71 of file menudocumenthandler.cxx.

◆ ATTRIBUTE_ITEMSTYLE_TEXT

#define ATTRIBUTE_ITEMSTYLE_TEXT   "text"

Definition at line 69 of file menudocumenthandler.cxx.

Variable Documentation

◆ ATTRIBUTE_HELPID

constexpr OUStringLiteral ATTRIBUTE_HELPID = u"http://openoffice.org/2001/menu^helpid"
constexpr

◆ ATTRIBUTE_ID

constexpr OUStringLiteral ATTRIBUTE_ID = u"http://openoffice.org/2001/menu^id"
constexpr

◆ ATTRIBUTE_LABEL

constexpr OUStringLiteral ATTRIBUTE_LABEL = u"http://openoffice.org/2001/menu^label"
constexpr

◆ ATTRIBUTE_NS_HELPID

constexpr OUStringLiteral ATTRIBUTE_NS_HELPID = u"menu:helpid"
constexpr

◆ ATTRIBUTE_NS_ID

constexpr OUStringLiteral ATTRIBUTE_NS_ID = u"menu:id"
constexpr

◆ ATTRIBUTE_NS_LABEL

constexpr OUStringLiteral ATTRIBUTE_NS_LABEL = u"menu:label"
constexpr

◆ ATTRIBUTE_NS_STYLE

constexpr OUStringLiteral ATTRIBUTE_NS_STYLE = u"menu:style"
constexpr

◆ ATTRIBUTE_STYLE

constexpr OUStringLiteral ATTRIBUTE_STYLE = u"http://openoffice.org/2001/menu^style"
constexpr

◆ ATTRIBUTE_XMLNS_MENU

constexpr OUStringLiteral ATTRIBUTE_XMLNS_MENU = u"xmlns:menu"
constexpr

◆ attrName

const char* attrName

Definition at line 98 of file menudocumenthandler.cxx.

◆ ELEMENT_MENU

constexpr OUStringLiteral ELEMENT_MENU = u"http://openoffice.org/2001/menu^menu"
constexpr

◆ ELEMENT_MENUBAR

constexpr OUStringLiteral ELEMENT_MENUBAR = u"http://openoffice.org/2001/menu^menubar"
constexpr

◆ ELEMENT_MENUITEM

constexpr OUStringLiteral ELEMENT_MENUITEM = u"http://openoffice.org/2001/menu^menuitem"
constexpr

◆ ELEMENT_MENUPOPUP

constexpr OUStringLiteral ELEMENT_MENUPOPUP = u"http://openoffice.org/2001/menu^menupopup"
constexpr

◆ ELEMENT_MENUSEPARATOR

constexpr OUStringLiteral ELEMENT_MENUSEPARATOR = u"http://openoffice.org/2001/menu^menuseparator"
constexpr

◆ ELEMENT_NS_MENU

constexpr OUStringLiteral ELEMENT_NS_MENU = u"menu:menu"
constexpr

◆ ELEMENT_NS_MENUBAR

constexpr OUStringLiteral ELEMENT_NS_MENUBAR = u"menu:menubar"
constexpr

◆ ELEMENT_NS_MENUITEM

constexpr OUStringLiteral ELEMENT_NS_MENUITEM = u"menu:menuitem"
constexpr

◆ ELEMENT_NS_MENUPOPUP

constexpr OUStringLiteral ELEMENT_NS_MENUPOPUP = u"menu:menupopup"
constexpr

◆ ELEMENT_NS_MENUSEPARATOR

constexpr OUStringLiteral ELEMENT_NS_MENUSEPARATOR = u"menu:menuseparator"
constexpr

◆ ITEM_DESCRIPTOR_COMMANDURL

constexpr OUStringLiteral ITEM_DESCRIPTOR_COMMANDURL = u"CommandURL"
constexpr

◆ ITEM_DESCRIPTOR_CONTAINER

constexpr OUStringLiteral ITEM_DESCRIPTOR_CONTAINER = u"ItemDescriptorContainer"
constexpr

Definition at line 76 of file menudocumenthandler.cxx.

Referenced by framework::ExtractMenuParameters().

◆ ITEM_DESCRIPTOR_HELPURL

constexpr OUStringLiteral ITEM_DESCRIPTOR_HELPURL = u"HelpURL"
constexpr

Definition at line 75 of file menudocumenthandler.cxx.

◆ ITEM_DESCRIPTOR_LABEL

constexpr OUStringLiteral ITEM_DESCRIPTOR_LABEL = u"Label"
constexpr

Definition at line 77 of file menudocumenthandler.cxx.

◆ ITEM_DESCRIPTOR_STYLE

constexpr OUStringLiteral ITEM_DESCRIPTOR_STYLE = u"Style"
constexpr

Definition at line 79 of file menudocumenthandler.cxx.

◆ ITEM_DESCRIPTOR_TYPE

constexpr OUStringLiteral ITEM_DESCRIPTOR_TYPE = u"Type"
constexpr

Definition at line 78 of file menudocumenthandler.cxx.

◆ MENUBAR_DOCTYPE

constexpr OUStringLiteral MENUBAR_DOCTYPE = u"<!DOCTYPE menu:menubar PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"menubar.dtd\">"
constexpr

◆ nBit

sal_Int16 nBit

Definition at line 97 of file menudocumenthandler.cxx.

◆ XMLNS_MENU

constexpr OUStringLiteral XMLNS_MENU = u"http://openoffice.org/2001/menu"
constexpr