|
LibreOffice Module vcl (master) 1
|
#include <comphelper/diagnose_ex.hxx>#include <sal/log.hxx>#include <comphelper/lok.hxx>#include <vcl/dialoghelper.hxx>#include <vcl/svapp.hxx>#include <vcl/mnemonic.hxx>#include <vcl/image.hxx>#include <vcl/event.hxx>#include <vcl/help.hxx>#include <vcl/toolkit/floatwin.hxx>#include <vcl/decoview.hxx>#include <vcl/menu.hxx>#include <vcl/taskpanelist.hxx>#include <vcl/settings.hxx>#include <vcl/commandinfoprovider.hxx>#include <salinst.hxx>#include <svdata.hxx>#include <strings.hrc>#include <window.h>#include <salmenu.hxx>#include <salframe.hxx>#include "menubarwindow.hxx"#include "menufloatingwindow.hxx"#include "menuitemlist.hxx"#include <com/sun/star/uno/Reference.h>#include <com/sun/star/lang/XComponent.hpp>#include <com/sun/star/accessibility/XAccessible.hpp>#include <vcl/toolkit/unowrap.hxx>#include <rtl/ustrbuf.hxx>#include <configsettings.hxx>#include <map>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | vcl::MenuLayoutData |
Namespaces | |
| namespace | vcl |
Macros | |
| #define | EXTRAITEMHEIGHT 4 |
| #define | SPACE_AROUND_TITLE 4 |
Functions | |
| static bool | ImplAccelDisabled () |
| static void | ImplSetMenuItemData (MenuItemData *pData) |
| static void | ImplCopyItem (Menu *pThis, const Menu &rMenu, sal_uInt16 nPos, sal_uInt16 nNewPos) |
| static void | ImplPaintCheckBackground (vcl::RenderContext &rRenderContext, vcl::Window const &rWindow, const tools::Rectangle &i_rRect, bool i_bHighlight) |
| static OUString | getShortenedString (const OUString &i_rLong, vcl::RenderContext const &rRenderContext, tools::Long i_nMaxWidth) |
| IMPL_LINK_NOARG (Menu, ImplCallSelect, void *, void) | |
| bool | vcl::IsInPopupMenuExecute () |
| static FloatWinPopupFlags | lcl_TranslateFlags (PopupMenuFlags nFlags) |
|
static |
Definition at line 1676 of file menu.cxx.
References CenterEllipsis, OutputDevice::GetEllipsisString(), nPos, and removeMnemonicFromString().
Referenced by Menu::ImplPaint().
| IMPL_LINK_NOARG | ( | Menu | , |
| ImplCallSelect | , | ||
| void * | , | ||
| void | |||
| ) |
|
static |
Definition at line 76 of file menu.cxx.
References aStr, vcl::SettingsConfigItem::get(), and getValue().
Referenced by Menu::ImplCalcSize(), and Menu::ImplPaint().
|
static |
Definition at line 523 of file menu.cxx.
References Menu::CheckItem(), VclPtr< reference_type >::Create(), DONTKNOW, Menu::EnableItem(), eType, MenuItemList::GetData(), Menu::GetItemId(), Menu::GetItemList(), Menu::GetItemPos(), Menu::GetItemType(), Menu::GetPopupMenu(), Menu::InsertItem(), Menu::InsertSeparator(), Menu::IsItemChecked(), Menu::IsItemEnabled(), MENU_ITEM_NOTFOUND, nId, nPos, pData, SAL_WARN_IF, SEPARATOR, Menu::SetAccelKey(), Menu::SetHelpCommand(), Menu::SetHelpId(), Menu::SetHelpText(), Menu::SetItemCommand(), Menu::SetPopupMenu(), STRING, and STRINGIMAGE.
Referenced by Menu::operator=().
|
static |
Definition at line 1651 of file menu.cxx.
References tools::Rectangle::AdjustBottom(), Button, OutputDevice::DrawNativeControl(), ENABLED, StyleSettings::GetHighlightColor(), StyleSettings::GetMenuHighlightTextColor(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), OutputDevice::IsNativeControlSupported(), On, PRESSED, ImplControlValue::setTristateVal(), and Toolbar.
Referenced by Menu::ImplPaint().
|
static |
Definition at line 91 of file menu.cxx.
References IMAGE, pData, STRING, and STRINGIMAGE.
Referenced by Menu::SetItemImage(), and Menu::SetItemText().
|
static |
Definition at line 2776 of file menu.cxx.
References Down, ExecuteDown, ExecuteRight, ExecuteUp, NoMouseUpClose, NONE, Right, and Up.
Referenced by PopupMenu::Execute().