LibreOffice Module framework (master) 1
|
#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>
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) |
#define ATTRIBUTE_ITEMSTYLE_IMAGE "image" |
Definition at line 70 of file menudocumenthandler.cxx.
#define ATTRIBUTE_ITEMSTYLE_RADIO "radio" |
Definition at line 71 of file menudocumenthandler.cxx.
#define ATTRIBUTE_ITEMSTYLE_TEXT "text" |
Definition at line 69 of file menudocumenthandler.cxx.
|
constexpr |
Definition at line 57 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuBarHandler::startElement(), and framework::OReadMenuPopupHandler::startElement().
|
constexpr |
Definition at line 55 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuBarHandler::startElement(), and framework::OReadMenuPopupHandler::startElement().
Definition at line 56 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuBarHandler::startElement(), and framework::OReadMenuPopupHandler::startElement().
|
constexpr |
Definition at line 62 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuItem().
|
constexpr |
Definition at line 60 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenu(), framework::OWriteMenuDocumentHandler::WriteMenuDocument(), and framework::OWriteMenuDocumentHandler::WriteMenuItem().
|
constexpr |
Definition at line 61 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenu(), and framework::OWriteMenuDocumentHandler::WriteMenuItem().
|
constexpr |
Definition at line 63 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuItem().
|
constexpr |
Definition at line 58 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuBarHandler::startElement(), and framework::OReadMenuPopupHandler::startElement().
|
constexpr |
Definition at line 65 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuDocument().
const char* attrName |
Definition at line 98 of file menudocumenthandler.cxx.
|
constexpr |
Definition at line 44 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuBarHandler::endElement(), framework::OReadMenuPopupHandler::endElement(), framework::OReadMenuBarHandler::startElement(), and framework::OReadMenuPopupHandler::startElement().
|
constexpr |
Definition at line 43 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuDocumentHandler::endElement(), and framework::OReadMenuDocumentHandler::startElement().
|
constexpr |
Definition at line 46 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuPopupHandler::endElement(), and framework::OReadMenuPopupHandler::startElement().
|
constexpr |
Definition at line 45 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuDocumentHandler::endElement(), framework::OReadMenuHandler::endElement(), framework::OReadMenuDocumentHandler::startElement(), and framework::OReadMenuHandler::startElement().
|
constexpr |
Definition at line 47 of file menudocumenthandler.cxx.
Referenced by framework::OReadMenuPopupHandler::endElement(), and framework::OReadMenuPopupHandler::startElement().
|
constexpr |
Definition at line 50 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenu().
|
constexpr |
Definition at line 49 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuDocument().
|
constexpr |
Definition at line 52 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuItem().
|
constexpr |
Definition at line 51 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenu(), and framework::OWriteMenuDocumentHandler::WriteMenuDocument().
|
constexpr |
Definition at line 53 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuSeparator().
|
constexpr |
Definition at line 74 of file menudocumenthandler.cxx.
Referenced by framework::ToolBarManager::FillToolbarFromContainer(), and framework::ToolBarManager::ToggleButton().
|
constexpr |
Definition at line 76 of file menudocumenthandler.cxx.
Referenced by framework::ExtractMenuParameters().
|
constexpr |
Definition at line 75 of file menudocumenthandler.cxx.
|
constexpr |
Definition at line 77 of file menudocumenthandler.cxx.
|
constexpr |
Definition at line 79 of file menudocumenthandler.cxx.
|
constexpr |
Definition at line 78 of file menudocumenthandler.cxx.
|
constexpr |
Definition at line 67 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuDocument().
sal_Int16 nBit |
Definition at line 97 of file menudocumenthandler.cxx.
|
constexpr |
Definition at line 41 of file menudocumenthandler.cxx.
Referenced by framework::OWriteMenuDocumentHandler::WriteMenuDocument().