LibreOffice Module sc (master)
1
sc
source
ui
inc
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
29
namespace
vcl
{
class
Window
; }
30
31
class
SdrModel
;
32
class
SdrCaptionObj
;
33
34
class
ScNoteMarker
35
{
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
;
49
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
);
55
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
();
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: */
address.hxx
ScAddress
Definition:
address.hxx:207
ScDocument
Definition:
document.hxx:323
ScNoteMarker
Definition:
notemark.hxx:35
ScNoteMarker::m_aRect
tools::Rectangle m_aRect
Definition:
notemark.hxx:50
ScNoteMarker::ScNoteMarker
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
ScNoteMarker::m_bVisible
bool m_bVisible
Definition:
notemark.hxx:53
ScNoteMarker::m_bLeft
bool m_bLeft
Definition:
notemark.hxx:47
ScNoteMarker::m_pRightWin
VclPtr< vcl::Window > m_pRightWin
Definition:
notemark.hxx:38
ScNoteMarker::m_aVisRect
tools::Rectangle m_aVisRect
Definition:
notemark.hxx:44
ScNoteMarker::IsByKeyboard
bool IsByKeyboard() const
Definition:
notemark.hxx:66
ScNoteMarker::m_aTimer
Timer m_aTimer
Definition:
notemark.hxx:45
ScNoteMarker::m_pDiagWin
VclPtr< vcl::Window > m_pDiagWin
Definition:
notemark.hxx:40
ScNoteMarker::DECL_LINK
DECL_LINK(TimeHdl, Timer *, void)
ScNoteMarker::m_pModel
std::unique_ptr< SdrModel > m_pModel
Definition:
notemark.hxx:51
ScNoteMarker::m_aDocPos
ScAddress m_aDocPos
Definition:
notemark.hxx:42
ScNoteMarker::m_aMapMode
MapMode m_aMapMode
Definition:
notemark.hxx:46
ScNoteMarker::m_aUserText
OUString m_aUserText
Definition:
notemark.hxx:43
ScNoteMarker::m_pWindow
VclPtr< vcl::Window > m_pWindow
Definition:
notemark.hxx:37
ScNoteMarker::m_pBottomWin
VclPtr< vcl::Window > m_pBottomWin
Definition:
notemark.hxx:39
ScNoteMarker::m_pDoc
ScDocument * m_pDoc
Definition:
notemark.hxx:41
ScNoteMarker::m_xObject
rtl::Reference< SdrCaptionObj > m_xObject
Definition:
notemark.hxx:52
ScNoteMarker::m_bByKeyboard
bool m_bByKeyboard
Definition:
notemark.hxx:48
ScNoteMarker::Draw
void Draw()
Definition:
notemark.cxx:148
ScNoteMarker::~ScNoteMarker
~ScNoteMarker()
Definition:
notemark.cxx:66
ScNoteMarker::InvalidateWin
void InvalidateWin()
Definition:
notemark.cxx:169
ScNoteMarker::GetDocPos
const ScAddress & GetDocPos() const
Definition:
notemark.hxx:65
SdrCaptionObj
SdrModel
Timer
VclPtr< vcl::Window >
rtl::Reference< SdrCaptionObj >
tools::Rectangle
gen.hxx
mapmod.hxx
vcl
postit.hxx
MapMode
vcl::Window
timer.hxx
vclptr.hxx
EViewType::Window
@ Window
Generated on Sun Jul 30 2023 04:29:21 for LibreOffice Module sc (master) by
1.9.3