LibreOffice Module vcl (master) 1
Classes | Namespaces | Macros | Functions
menu.cxx File Reference
#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>
Include dependency graph for menu.cxx:

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)
 

Macro Definition Documentation

◆ EXTRAITEMHEIGHT

#define EXTRAITEMHEIGHT   4

Definition at line 73 of file menu.cxx.

◆ SPACE_AROUND_TITLE

#define SPACE_AROUND_TITLE   4

Definition at line 74 of file menu.cxx.

Function Documentation

◆ getShortenedString()

static OUString getShortenedString ( const OUString &  i_rLong,
vcl::RenderContext const &  rRenderContext,
tools::Long  i_nMaxWidth 
)
static

◆ IMPL_LINK_NOARG()

IMPL_LINK_NOARG ( Menu  ,
ImplCallSelect  ,
void *  ,
void   
)

Definition at line 2132 of file menu.cxx.

References Select.

◆ ImplAccelDisabled()

static bool ImplAccelDisabled ( )
static

Definition at line 76 of file menu.cxx.

References aStr, vcl::SettingsConfigItem::get(), and getValue().

Referenced by Menu::ImplCalcSize(), and Menu::ImplPaint().

◆ ImplCopyItem()

static void ImplCopyItem ( Menu pThis,
const Menu rMenu,
sal_uInt16  nPos,
sal_uInt16  nNewPos 
)
static

◆ ImplPaintCheckBackground()

static void ImplPaintCheckBackground ( vcl::RenderContext rRenderContext,
vcl::Window const &  rWindow,
const tools::Rectangle i_rRect,
bool  i_bHighlight 
)
static

◆ ImplSetMenuItemData()

static void ImplSetMenuItemData ( MenuItemData pData)
static

Definition at line 91 of file menu.cxx.

References IMAGE, pData, STRING, and STRINGIMAGE.

Referenced by Menu::SetItemImage(), and Menu::SetItemText().

◆ lcl_TranslateFlags()

static FloatWinPopupFlags lcl_TranslateFlags ( PopupMenuFlags  nFlags)
static

Definition at line 2776 of file menu.cxx.

References Down, ExecuteDown, ExecuteRight, ExecuteUp, NoMouseUpClose, NONE, Right, and Up.

Referenced by PopupMenu::Execute().