LibreOffice Module vcl (master)  1
Classes | Namespaces | Macros | Functions
menu.cxx File Reference
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
#include <comphelper/lok.hxx>
#include <vcl/svapp.hxx>
#include <vcl/mnemonic.hxx>
#include <vcl/image.hxx>
#include <vcl/event.hxx>
#include <vcl/help.hxx>
#include <vcl/floatwin.hxx>
#include <vcl/decoview.hxx>
#include <vcl/menu.hxx>
#include <vcl/taskpanelist.hxx>
#include <vcl/controllayout.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 <vcl/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

 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, long i_nMaxWidth)
 
 IMPL_LINK_NOARG (Menu, ImplCallSelect, void *, void)
 

Macro Definition Documentation

#define EXTRAITEMHEIGHT   4

Definition at line 72 of file menu.cxx.

Referenced by Menu::ImplCalcSize().

#define SPACE_AROUND_TITLE   4

Definition at line 73 of file menu.cxx.

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

Function Documentation

static OUString getShortenedString ( const OUString &  i_rLong,
vcl::RenderContext const &  rRenderContext,
long  i_nMaxWidth 
)
static
IMPL_LINK_NOARG ( Menu  ,
ImplCallSelect  ,
void ,
void   
)

Definition at line 2126 of file menu.cxx.

References Select.

static bool ImplAccelDisabled ( )
static

Definition at line 75 of file menu.cxx.

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

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

static void ImplCopyItem ( Menu pThis,
const Menu rMenu,
sal_uInt16  nPos,
sal_uInt16  nNewPos 
)
static
static void ImplPaintCheckBackground ( vcl::RenderContext rRenderContext,
vcl::Window const &  rWindow,
const tools::Rectangle i_rRect,
bool  i_bHighlight 
)
static
static void ImplSetMenuItemData ( MenuItemData pData)
static