LibreOffice Module sfx2 (master) 1
Classes | Macros | Functions | Variables
shutdowniconaqua.mm File Reference
#include <unotools/moduleoptions.hxx>
#include <unotools/dynamicmenuoptions.hxx>
#include <unotools/historyoptions.hxx>
#include <rtl/ustring.hxx>
#include <tools/urlobj.hxx>
#include <osl/file.h>
#include <osl/diagnose.h>
#include <comphelper/sequenceashashmap.hxx>
#include <sfx2/app.hxx>
#include <sal/macros.h>
#include <sfx2/sfxresid.hxx>
#include <sfx2/strings.hrc>
#include <vcl/svapp.hxx>
#include "shutdownicon.hxx"
#include <com/sun/star/util/XStringWidth.hpp>
#include <cppuhelper/implbase.hxx>
#include <set>
#include <vector>
#include <premac.h>
#include <objc/objc-runtime.h>
#include <Cocoa/Cocoa.h>
#include <postmac.h>
Include dependency graph for shutdowniconaqua.mm:

Go to the source code of this file.

Classes

class  QSMenuExecute
 
class  RecentMenuDelegate
 

Macros

#define MI_OPEN   1
 
#define MI_WRITER   2
 
#define MI_CALC   3
 
#define MI_IMPRESS   4
 
#define MI_DRAW   5
 
#define MI_BASE   6
 
#define MI_MATH   7
 
#define MI_TEMPLATE   8
 
#define MI_STARTMODULE   9
 

Functions

static NSString * getAutoreleasedString (const OUString &rStr)
 
static OUString getShortCut (const OUString &i_rTitle)
 
static void appendMenuItem (NSMenu *i_pMenu, NSMenu *i_pDockMenu, const OUString &i_rTitle, int i_nTag, const OUString &i_rKeyEquiv)
 
static void appendRecentMenu (NSMenu *i_pMenu, const OUString &i_rTitle)
 
void aqua_init_systray ()
 
void SAL_DLLPUBLIC_EXPORT aqua_shutdown_systray ()
 

Variables

static NSMenuItem * pDefMenu = nil
 
static NSMenuItem * pDockSubMenu = nil
 
static QSMenuExecutepExecute = nil
 
static std::set< OUString > aShortcuts
 
static RecentMenuDelegatepRecentDelegate = nil
 

Macro Definition Documentation

◆ MI_BASE

#define MI_BASE   6

Definition at line 53 of file shutdowniconaqua.mm.

◆ MI_CALC

#define MI_CALC   3

Definition at line 50 of file shutdowniconaqua.mm.

◆ MI_DRAW

#define MI_DRAW   5

Definition at line 52 of file shutdowniconaqua.mm.

◆ MI_IMPRESS

#define MI_IMPRESS   4

Definition at line 51 of file shutdowniconaqua.mm.

◆ MI_MATH

#define MI_MATH   7

Definition at line 54 of file shutdowniconaqua.mm.

◆ MI_OPEN

#define MI_OPEN   1

Definition at line 48 of file shutdowniconaqua.mm.

◆ MI_STARTMODULE

#define MI_STARTMODULE   9

Definition at line 56 of file shutdowniconaqua.mm.

◆ MI_TEMPLATE

#define MI_TEMPLATE   8

Definition at line 55 of file shutdowniconaqua.mm.

◆ MI_WRITER

#define MI_WRITER   2

Definition at line 49 of file shutdowniconaqua.mm.

Function Documentation

◆ appendMenuItem()

static void appendMenuItem ( NSMenu *  i_pMenu,
NSMenu *  i_pDockMenu,
const OUString &  i_rTitle,
int  i_nTag,
const OUString &  i_rKeyEquiv 
)
static

Definition at line 303 of file shutdowniconaqua.mm.

Referenced by aqua_init_systray().

◆ appendRecentMenu()

static void appendRecentMenu ( NSMenu *  i_pMenu,
const OUString &  i_rTitle 
)
static

Definition at line 331 of file shutdowniconaqua.mm.

References pRecentDelegate.

Referenced by aqua_init_systray().

◆ aqua_init_systray()

void aqua_init_systray ( )

◆ aqua_shutdown_systray()

void SAL_DLLPUBLIC_EXPORT aqua_shutdown_systray ( )

Definition at line 465 of file shutdowniconaqua.mm.

Referenced by ShutdownIcon::deInitSystray().

◆ getAutoreleasedString()

static NSString * getAutoreleasedString ( const OUString &  rStr)
static

Definition at line 121 of file shutdowniconaqua.mm.

◆ getShortCut()

static OUString getShortCut ( const OUString &  i_rTitle)
static

Definition at line 285 of file shutdowniconaqua.mm.

References aShortcuts, and nIndex.

Referenced by aqua_init_systray().

Variable Documentation

◆ aShortcuts

std::set< OUString > aShortcuts
static

Definition at line 119 of file shutdowniconaqua.mm.

Referenced by aqua_init_systray(), and getShortCut().

◆ pDefMenu

NSMenuItem* pDefMenu = nil
static

Definition at line 116 of file shutdowniconaqua.mm.

Referenced by aqua_init_systray().

◆ pDockSubMenu

NSMenuItem * pDockSubMenu = nil
static

Definition at line 116 of file shutdowniconaqua.mm.

Referenced by aqua_init_systray().

◆ pExecute

QSMenuExecute* pExecute = nil
static

Definition at line 117 of file shutdowniconaqua.mm.

Referenced by aqua_init_systray().

◆ pRecentDelegate

RecentMenuDelegate* pRecentDelegate = nil
static

Definition at line 283 of file shutdowniconaqua.mm.

Referenced by appendRecentMenu().