Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
da401ac0
Kaydet (Commit)
da401ac0
authored
Agu 20, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Work around unhelpful MSVC error C2216: override cannot be used with inline
Change-Id: I2944b9911b2458bf1c0f1645fd983b635be67bd2
üst
135df475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
93 deletions
+93
-93
validate.hxx
sc/source/ui/inc/validate.hxx
+93
-93
No files found.
sc/source/ui/inc/validate.hxx
Dosyayı görüntüle @
da401ac0
...
...
@@ -77,6 +77,93 @@ public:
ScRefHandlerHelper
()
:
m_pHandler
(
NULL
),
m_pSetReferenceHdl
(
NULL
),
m_pSetActiveHdl
(
NULL
),
m_pRefInputStartPreHdl
(
NULL
),
m_pRefInputStartPostHdl
(
NULL
),
m_pRefInputDonePreHdl
(
NULL
),
m_pRefInputDonePostHdl
(
NULL
){}
};
class
ScValidationDlg
;
/** The tab page "Criteria" from the Validation dialog. */
class
ScTPValidationValue
:
public
ScRefHandlerCaller
,
public
SfxTabPage
{
public
:
explicit
ScTPValidationValue
(
Window
*
pParent
,
const
SfxItemSet
&
rArgSet
);
static
SfxTabPage
*
Create
(
Window
*
pParent
,
const
SfxItemSet
*
rArgSet
);
static
const
sal_uInt16
*
GetRanges
();
virtual
bool
FillItemSet
(
SfxItemSet
*
rArgSet
)
SAL_OVERRIDE
;
virtual
void
Reset
(
const
SfxItemSet
*
rArgSet
)
SAL_OVERRIDE
;
private
:
void
Init
();
OUString
GetFirstFormula
()
const
;
OUString
GetSecondFormula
()
const
;
void
SetFirstFormula
(
const
OUString
&
rFmlaStr
);
void
SetSecondFormula
(
const
OUString
&
rFmlaStr
);
DECL_LINK
(
SelectHdl
,
void
*
);
DECL_LINK
(
CheckHdl
,
void
*
);
ListBox
*
m_pLbAllow
;
CheckBox
*
m_pCbAllow
;
/// Allow blank cells.
CheckBox
*
m_pCbShow
;
/// Show selection list in cell.
CheckBox
*
m_pCbSort
;
/// Sort selection list in cell.
FixedText
*
m_pFtValue
;
ListBox
*
m_pLbValue
;
FixedText
*
m_pFtMin
;
VclContainer
*
m_pMinGrid
;
formula
::
RefEdit
*
m_pEdMin
;
VclMultiLineEdit
*
m_pEdList
;
/// Entries for explicit list
FixedText
*
m_pFtMax
;
formula
::
RefEdit
*
m_pEdMax
;
FixedText
*
m_pFtHint
;
/// Hint text for cell range validity.
OUString
maStrMin
;
OUString
maStrMax
;
OUString
maStrValue
;
OUString
maStrRange
;
OUString
maStrList
;
sal_Unicode
mcFmlaSep
;
/// List separator in formulas.
DECL_LINK
(
EditSetFocusHdl
,
void
*
);
DECL_LINK
(
KillFocusHdl
,
Window
*
);
void
OnClick
(
Button
*
pBtn
);
formula
::
RefEdit
*
m_pRefEdit
;
public
:
class
ScRefButtonEx
:
public
::
formula
::
RefButton
{
ScTPValidationValue
*
m_pPage
;
virtual
void
Click
()
SAL_OVERRIDE
;
public
:
ScRefButtonEx
(
Window
*
pParent
,
WinBits
nStyle
)
:
::
formula
::
RefButton
(
pParent
,
nStyle
)
,
m_pPage
(
NULL
)
{
}
void
SetParentPage
(
ScTPValidationValue
*
pPage
)
{
m_pPage
=
pPage
;
}
ScTPValidationValue
*
GetParentPage
()
{
return
m_pPage
;
}
};
private
:
ScRefButtonEx
*
m_pBtnRef
;
VclContainer
*
m_pRefGrid
;
friend
class
ScRefButtonEx
;
void
SetReferenceHdl
(
const
ScRange
&
,
ScDocument
*
);
void
SetActiveHdl
();
void
RefInputStartPreHdl
(
formula
::
RefEdit
*
pEdit
,
formula
::
RefButton
*
pButton
);
void
RefInputDonePostHdl
();
ScValidationDlg
*
GetValidationDlg
();
public
:
sal_uInt16
GetAllowEntryPos
();
OUString
GetMinText
();
void
SetupRefDlg
();
void
RemoveRefDlg
();
};
/** The "Validity" tab dialog. */
class
ScValidationDlg
:
public
ScRefHdlrImpl
<
ScValidationDlg
,
SfxTabDialog
,
false
>
...
...
@@ -173,104 +260,17 @@ public:
enum
{
SLOTID
=
SID_VALIDITY_REFERENCE
};
inline
bool
Close
()
SAL_OVERRIDE
;
};
/** The tab page "Criteria" from the Validation dialog. */
class
ScTPValidationValue
:
public
ScRefHandlerCaller
,
public
SfxTabPage
{
public
:
explicit
ScTPValidationValue
(
Window
*
pParent
,
const
SfxItemSet
&
rArgSet
);
static
SfxTabPage
*
Create
(
Window
*
pParent
,
const
SfxItemSet
*
rArgSet
);
static
const
sal_uInt16
*
GetRanges
();
virtual
bool
FillItemSet
(
SfxItemSet
*
rArgSet
)
SAL_OVERRIDE
;
virtual
void
Reset
(
const
SfxItemSet
*
rArgSet
)
SAL_OVERRIDE
;
private
:
void
Init
();
OUString
GetFirstFormula
()
const
;
OUString
GetSecondFormula
()
const
;
void
SetFirstFormula
(
const
OUString
&
rFmlaStr
);
void
SetSecondFormula
(
const
OUString
&
rFmlaStr
);
DECL_LINK
(
SelectHdl
,
void
*
);
DECL_LINK
(
CheckHdl
,
void
*
);
ListBox
*
m_pLbAllow
;
CheckBox
*
m_pCbAllow
;
/// Allow blank cells.
CheckBox
*
m_pCbShow
;
/// Show selection list in cell.
CheckBox
*
m_pCbSort
;
/// Sort selection list in cell.
FixedText
*
m_pFtValue
;
ListBox
*
m_pLbValue
;
FixedText
*
m_pFtMin
;
VclContainer
*
m_pMinGrid
;
formula
::
RefEdit
*
m_pEdMin
;
VclMultiLineEdit
*
m_pEdList
;
/// Entries for explicit list
FixedText
*
m_pFtMax
;
formula
::
RefEdit
*
m_pEdMax
;
FixedText
*
m_pFtHint
;
/// Hint text for cell range validity.
OUString
maStrMin
;
OUString
maStrMax
;
OUString
maStrValue
;
OUString
maStrRange
;
OUString
maStrList
;
sal_Unicode
mcFmlaSep
;
/// List separator in formulas.
DECL_LINK
(
EditSetFocusHdl
,
void
*
);
DECL_LINK
(
KillFocusHdl
,
Window
*
);
void
OnClick
(
Button
*
pBtn
);
formula
::
RefEdit
*
m_pRefEdit
;
public
:
class
ScRefButtonEx
:
public
::
formula
::
RefButton
bool
Close
()
SAL_OVERRIDE
{
ScTPValidationValue
*
m_pPage
;
virtual
void
Click
()
SAL_OVERRIDE
;
public
:
ScRefButtonEx
(
Window
*
pParent
,
WinBits
nStyle
)
:
::
formula
::
RefButton
(
pParent
,
nStyle
)
,
m_pPage
(
NULL
)
{
}
void
SetParentPage
(
ScTPValidationValue
*
pPage
)
if
(
m_bOwnRefHdlr
)
{
m_pPage
=
pPage
;
if
(
SfxTabPage
*
pPage
=
GetTabPage
(
m_nValuePageId
))
static_cast
<
ScTPValidationValue
*>
(
pPage
)
->
RemoveRefDlg
();
}
ScTPValidationValue
*
GetParentPage
()
{
return
m_pPage
;
}
};
private
:
ScRefButtonEx
*
m_pBtnRef
;
VclContainer
*
m_pRefGrid
;
friend
class
ScRefButtonEx
;
void
SetReferenceHdl
(
const
ScRange
&
,
ScDocument
*
);
void
SetActiveHdl
();
void
RefInputStartPreHdl
(
formula
::
RefEdit
*
pEdit
,
formula
::
RefButton
*
pButton
);
void
RefInputDonePostHdl
();
ScValidationDlg
*
GetValidationDlg
();
public
:
sal_uInt16
GetAllowEntryPos
();
OUString
GetMinText
();
void
SetupRefDlg
();
void
RemoveRefDlg
();
};
bool
ScValidationDlg
::
Close
()
{
if
(
m_bOwnRefHdlr
)
{
if
(
SfxTabPage
*
pPage
=
GetTabPage
(
m_nValuePageId
))
static_cast
<
ScTPValidationValue
*>
(
pPage
)
->
RemoveRefDlg
();
return
ScValidationDlgBase
::
Close
();
}
return
ScValidationDlgBase
::
Close
();
}
};
class
ScTPValidationHelp
:
public
SfxTabPage
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment