LibreOffice Module svx (master)  1
colrctrl.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 #pragma once
20 
21 #include <sal/types.h>
22 #include <sfx2/dockwin.hxx>
23 #include <svl/lstner.hxx>
24 #include <vcl/transfer.hxx>
25 #include <svx/SvxColorValueSet.hxx>
26 #include <svx/xtable.hxx>
27 #include <tools/gen.hxx>
28 #include <tools/link.hxx>
29 #include <vcl/vclptr.hxx>
30 
31 namespace vcl { class Window; }
32 
33 class SfxBindings;
34 class SfxBroadcaster;
35 class SfxChildWindow;
36 class SfxHint;
37 
38 /*************************************************************************
39 |*
40 |* SvxColorValueSet_docking
41 |*
42 \************************************************************************/
43 
45 {
48 
49  void DoDrag();
50 
51  // ValueSet
52  virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
53  virtual void MouseButtonUp( const MouseEvent& rMEvt ) override;
54 
55  // DragSourceHelper
56  virtual void StartDrag( sal_Int8 nAction, const Point& rPtPixel ) override;
57 
58  DECL_LINK(ExecDragHdl, void*, void);
59 
60 public:
62 
63  bool IsLeftButton() const { return mbLeftButton; }
64 };
65 
66 /*************************************************************************
67 |*
68 |* SvxColorDockingWindow
69 |*
70 \************************************************************************/
71 
73 {
74 friend class SvxColorChildWindow;
75 
76 private:
79  sal_uInt16 nCols;
80  sal_uInt16 nLines;
81  long nCount;
83 
84  void FillValueSet();
85  void SetSize();
86  DECL_LINK( SelectHdl, ValueSet*, void );
87 
92  virtual void GetFocus() override;
93 
94  virtual bool Close() override;
95  virtual void Resize() override;
96  virtual void Resizing( Size& rSize ) override;
97 
98 public:
100  SfxChildWindow *pCW,
102  virtual ~SvxColorDockingWindow() override;
103  virtual void dispose() override;
104 
105  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
106 
107  virtual bool EventNotify( NotifyEvent& rNEvt ) override;
108 };
109 
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
signed char sal_Int8
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel)
virtual bool Close() override
virtual bool EventNotify(NotifyEvent &rNEvt) override
Child of SfxChildWindow as a "container" for Controller.
XColorListRef pColorList
Definition: colrctrl.hxx:77
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
VclPtr< SvxColorValueSet_docking > aColorSet
Definition: colrctrl.hxx:78
virtual void Resizing(Size &rSize) override
VclPtr< vcl::Window > pParent
DECL_LINK(TimerHdl, Timer *, void)
#define SAL_WARN_UNUSED
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint)
virtual void Resize() override
virtual void dispose() override
bool IsLeftButton() const
Definition: colrctrl.hxx:63