tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / notemark.hxx
blob31965be07802713bbf0dc59263110fc478318c5c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <vcl/mapmod.hxx>
23 #include <vcl/timer.hxx>
24 #include <vcl/vclptr.hxx>
25 #include <tools/gen.hxx>
26 #include <address.hxx>
27 #include <postit.hxx>
29 namespace vcl { class Window; }
31 class SdrModel;
32 class SdrCaptionObj;
34 class ScNoteMarker
36 private:
37 VclPtr<vcl::Window> m_pWindow;
38 VclPtr<vcl::Window> m_pRightWin;
39 VclPtr<vcl::Window> m_pBottomWin;
40 VclPtr<vcl::Window> m_pDiagWin;
41 ScDocument* m_pDoc;
42 ScAddress m_aDocPos;
43 OUString m_aUserText;
44 tools::Rectangle m_aVisRect;
45 Timer m_aTimer;
46 MapMode m_aMapMode;
47 bool m_bLeft;
48 bool m_bByKeyboard;
50 tools::Rectangle m_aRect;
51 std::unique_ptr<SdrModel> m_pModel;
52 rtl::Reference<SdrCaptionObj> m_xObject;
53 bool m_bVisible;
54 DECL_LINK( TimeHdl, Timer*, void );
56 public:
57 ScNoteMarker( vcl::Window* pWin, vcl::Window* pRight, vcl::Window* pBottom, vcl::Window* pDiagonal,
58 ScDocument* pD, const ScAddress& aPos, OUString aUser,
59 const MapMode& rMap, bool bLeftEdge, bool bForce, bool bKeyboard);
60 ~ScNoteMarker();
62 void Draw();
63 void InvalidateWin();
65 const ScAddress& GetDocPos() const { return m_aDocPos; }
66 bool IsByKeyboard() const { return m_bByKeyboard; }
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */