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#pragma once
21
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>
28
29namespace vcl { class Window; }
30
31class SdrModel;
32class SdrCaptionObj;
33
35{
36private:
43 OUString m_aUserText;
47 bool m_bLeft;
49
51 std::unique_ptr<SdrModel> m_pModel;
54 DECL_LINK( TimeHdl, Timer*, void );
55
56public:
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);
61
62 void Draw();
63 void InvalidateWin();
64
65 const ScAddress& GetDocPos() const { return m_aDocPos; }
66 bool IsByKeyboard() const { return m_bByKeyboard; }
67};
68
69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
tools::Rectangle m_aRect
Definition: notemark.hxx:50
ScNoteMarker(vcl::Window *pWin, vcl::Window *pRight, vcl::Window *pBottom, vcl::Window *pDiagonal, ScDocument *pD, const ScAddress &aPos, OUString aUser, const MapMode &rMap, bool bLeftEdge, bool bForce, bool bKeyboard)
Definition: notemark.cxx:37
bool m_bVisible
Definition: notemark.hxx:53
bool m_bLeft
Definition: notemark.hxx:47
VclPtr< vcl::Window > m_pRightWin
Definition: notemark.hxx:38
tools::Rectangle m_aVisRect
Definition: notemark.hxx:44
bool IsByKeyboard() const
Definition: notemark.hxx:66
Timer m_aTimer
Definition: notemark.hxx:45
VclPtr< vcl::Window > m_pDiagWin
Definition: notemark.hxx:40
DECL_LINK(TimeHdl, Timer *, void)
std::unique_ptr< SdrModel > m_pModel
Definition: notemark.hxx:51
ScAddress m_aDocPos
Definition: notemark.hxx:42
MapMode m_aMapMode
Definition: notemark.hxx:46
OUString m_aUserText
Definition: notemark.hxx:43
VclPtr< vcl::Window > m_pWindow
Definition: notemark.hxx:37
VclPtr< vcl::Window > m_pBottomWin
Definition: notemark.hxx:39
ScDocument * m_pDoc
Definition: notemark.hxx:41
rtl::Reference< SdrCaptionObj > m_xObject
Definition: notemark.hxx:52
bool m_bByKeyboard
Definition: notemark.hxx:48
void Draw()
Definition: notemark.cxx:148
void InvalidateWin()
Definition: notemark.cxx:169
const ScAddress & GetDocPos() const
Definition: notemark.hxx:65