LibreOffice Module sc (master)  1
notemark.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 #ifndef INCLUDED_SC_SOURCE_UI_INC_NOTEMARK_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_NOTEMARK_HXX
22 
23 #include <vcl/mapmod.hxx>
24 #include <vcl/timer.hxx>
25 #include <vcl/vclptr.hxx>
26 #include <tools/gen.hxx>
27 #include <address.hxx>
28 #include <postit.hxx>
29 
30 namespace vcl { class Window; }
31 
32 class SdrModel;
33 class SdrCaptionObj;
34 
36 {
37 private:
44  OUString m_aUserText;
48  bool m_bLeft;
50 
52  std::unique_ptr<SdrModel> m_pModel;
54  bool m_bVisible;
55  DECL_LINK( TimeHdl, Timer*, void );
56 
57 public:
58  ScNoteMarker( vcl::Window* pWin, vcl::Window* pRight, vcl::Window* pBottom, vcl::Window* pDiagonal,
59  ScDocument* pD, const ScAddress& aPos, const OUString& rUser,
60  const MapMode& rMap, bool bLeftEdge, bool bForce, bool bKeyboard);
61  ~ScNoteMarker();
62 
63  void Draw();
64  void InvalidateWin();
65 
66  const ScAddress& GetDocPos() const { return m_aDocPos; }
67  bool IsByKeyboard() const { return m_bByKeyboard; }
68 };
69 
70 #endif
71 
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScCaptionPtr m_xObject
Definition: notemark.hxx:53
ScNoteMarker(vcl::Window *pWin, vcl::Window *pRight, vcl::Window *pBottom, vcl::Window *pDiagonal, ScDocument *pD, const ScAddress &aPos, const OUString &rUser, const MapMode &rMap, bool bLeftEdge, bool bForce, bool bKeyboard)
Definition: notemark.cxx:36
VclPtr< vcl::Window > m_pDiagWin
Definition: notemark.hxx:41
OUString m_aUserText
Definition: notemark.hxx:44
std::unique_ptr< SdrModel > m_pModel
Definition: notemark.hxx:52
ScAddress m_aDocPos
Definition: notemark.hxx:43
tools::Rectangle m_aRect
Definition: notemark.hxx:51
bool m_bByKeyboard
Definition: notemark.hxx:49
bool m_bLeft
Definition: notemark.hxx:48
ScDocument * m_pDoc
Definition: notemark.hxx:42
MapMode m_aMapMode
Definition: notemark.hxx:47
bool m_bVisible
Definition: notemark.hxx:54
const ScAddress & GetDocPos() const
Definition: notemark.hxx:66
DECL_LINK(TimeHdl, Timer *, void)
void Draw()
Definition: notemark.cxx:147
Timer m_aTimer
Definition: notemark.hxx:46
bool IsByKeyboard() const
Definition: notemark.hxx:67
void InvalidateWin()
Definition: notemark.cxx:168
VclPtr< vcl::Window > m_pRightWin
Definition: notemark.hxx:39
Some desperate attempt to fight against the caption object ownership mess, to which none of shared/we...
Definition: postit.hxx:42
VclPtr< vcl::Window > m_pWindow
Definition: notemark.hxx:38
VclPtr< vcl::Window > m_pBottomWin
Definition: notemark.hxx:40
tools::Rectangle m_aVisRect
Definition: notemark.hxx:45