bump product version to 4.1.6.2
[LibreOffice.git] / sc / source / ui / inc / reffact.hxx
blob215836c39876b8eab0ba815197d22ee6d630051a
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 #ifndef SC_REFFACT_HXX
21 #define SC_REFFACT_HXX
23 #include <sfx2/childwin.hxx>
25 #include "dbfunc.hxx"
27 #define DECL_WRAPPER_WITHID(Class) \
28 class Class : public SfxChildWindow \
29 { \
30 public: \
31 Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \
32 SFX_DECL_CHILDWINDOW_WITHID(Class); \
35 //==================================================================
37 DECL_WRAPPER_WITHID(ScNameDlgWrapper)
38 DECL_WRAPPER_WITHID(ScNameDefDlgWrapper)
39 DECL_WRAPPER_WITHID(ScSolverDlgWrapper)
40 DECL_WRAPPER_WITHID(ScOptSolverDlgWrapper)
41 DECL_WRAPPER_WITHID(ScXMLSourceDlgWrapper)
42 DECL_WRAPPER_WITHID(ScPivotLayoutWrapper)
43 DECL_WRAPPER_WITHID(ScTabOpDlgWrapper)
44 DECL_WRAPPER_WITHID(ScFilterDlgWrapper)
45 DECL_WRAPPER_WITHID(ScSpecialFilterDlgWrapper)
46 DECL_WRAPPER_WITHID(ScDbNameDlgWrapper)
47 DECL_WRAPPER_WITHID(ScConsolidateDlgWrapper)
48 DECL_WRAPPER_WITHID(ScPrintAreasDlgWrapper)
49 DECL_WRAPPER_WITHID(ScColRowNameRangesDlgWrapper)
50 DECL_WRAPPER_WITHID(ScFormulaDlgWrapper)
51 DECL_WRAPPER_WITHID(ScHighlightChgDlgWrapper)
53 class ScAcceptChgDlgWrapper: public SfxChildWindow
55 public:
56 ScAcceptChgDlgWrapper( Window*,
57 sal_uInt16,
58 SfxBindings*,
59 SfxChildWinInfo* );
61 SFX_DECL_CHILDWINDOW_WITHID(Class);
63 virtual void ReInitDlg();
66 class ScSimpleRefDlgWrapper: public SfxChildWindow
68 public:
69 ScSimpleRefDlgWrapper( Window*,
70 sal_uInt16,
71 SfxBindings*,
72 SfxChildWinInfo* );
74 SFX_DECL_CHILDWINDOW_WITHID(Class);
76 static void SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet=sal_True);
77 virtual String GetRefString();
78 virtual void SetRefString(const String& rStr);
79 void SetCloseHdl( const Link& rLink );
80 void SetUnoLinks( const Link& rDone, const Link& rAbort,
81 const Link& rChange );
82 void SetFlags( sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection );
83 static void SetAutoReOpen(sal_Bool bFlag);
85 void StartRefInput();
88 class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow
90 bool m_bVisibleLock:1;
91 bool m_bFreeWindowLock:1;
92 Window * m_pSavedWndParent;
93 public:
94 ScValidityRefChildWin( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
95 SFX_DECL_CHILDWINDOW_WITHID(ScValidityRefChildWin);
96 ~ScValidityRefChildWin();
97 bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
98 bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
99 void Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); }
100 void Show( sal_uInt16 nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
103 //==================================================================
106 #endif // SC_REFFACT_HXX
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */