LibreOffice Module vcl (master) 1
menubarupdateicon.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <tools/link.hxx>
23#include <vcl/idle.hxx>
24#include <vcl/image.hxx>
25
26class BubbleWindow;
27class MenuBar;
28class SystemWindow;
29class VclSimpleEvent;
30class VclWindowEvent;
32
34{
35private:
36 OUString maBubbleTitle;
37 OUString maBubbleText;
42
46
49
50 sal_uInt16 mnIconID;
51
55
56 DECL_DLLPRIVATE_LINK(UserEventHdl, void*, void);
57 DECL_DLLPRIVATE_LINK(TimeOutHdl, Timer*, void);
58 DECL_DLLPRIVATE_LINK(WindowEventHdl, VclWindowEvent&, void);
59 DECL_DLLPRIVATE_LINK(ApplicationEventHdl, VclSimpleEvent&, void);
60 DECL_DLLPRIVATE_LINK(WaitTimeOutHdl, Timer*, void);
63
64 VclPtr<BubbleWindow> GetBubbleWindow();
65 void SetBubbleChanged();
66
67public:
70
71 void SetShowMenuIcon(bool bShowMenuIcon);
72 void SetShowBubble(bool bShowBubble);
73 void SetBubbleImage(const Image& rImage);
74 void SetBubbleTitle(const OUString& rTitle);
75 void SetBubbleText(const OUString& rText);
76
77 void SetClickHdl(const Link<LinkParamNone*, void>& rHdl) { maClickHdl = rHdl; }
78
79 bool GetShowMenuIcon() const { return mbShowMenuIcon; }
80 bool GetShowBubble() const { return mbShowBubble; }
81 const OUString& GetBubbleTitle() const { return maBubbleTitle; }
82 const OUString& GetBubbleText() const { return maBubbleText; }
83
84 void RemoveBubbleWindow(bool bRemoveIcon);
85
86 void AddMenuBarIcon(SystemWindow* pSysWin, bool bAddEventHdl);
87};
88
89/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
An idle is a timer to be scheduled immediately.
Definition: idle.hxx:35
Definition: image.hxx:40
Link< VclSimpleEvent &, void > maApplicationEventHdl
const OUString & GetBubbleTitle() const
Link< LinkParamNone *, void > maClickHdl
DECL_DLLPRIVATE_LINK(TimeOutHdl, Timer *, void)
VclPtr< MenuBar > mpIconMBar
void SetClickHdl(const Link< LinkParamNone *, void > &rHdl)
Link< VclWindowEvent &, void > maWindowEventHdl
DECL_DLLPRIVATE_LINK(ClickHdl, MenuBarButtonCallbackArg &, bool)
DECL_DLLPRIVATE_LINK(HighlightHdl, MenuBarButtonCallbackArg &, bool)
DECL_DLLPRIVATE_LINK(WaitTimeOutHdl, Timer *, void)
DECL_DLLPRIVATE_LINK(ApplicationEventHdl, VclSimpleEvent &, void)
VclPtr< SystemWindow > mpIconSysWin
const OUString & GetBubbleText() const
VclPtr< BubbleWindow > mpBubbleWin
DECL_DLLPRIVATE_LINK(UserEventHdl, void *, void)
DECL_DLLPRIVATE_LINK(WindowEventHdl, VclWindowEvent &, void)
Definition: timer.hxx:27
#define VCL_DLLPUBLIC
Definition: dllapi.h:29