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
8b309a9e
Kaydet (Commit)
8b309a9e
authored
Eyl 12, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename: ScDPFieldPopupWindow -> ScCheckListMenuWindow.
üst
726b6b12
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
45 deletions
+45
-45
AccessibleFilterTopWindow.hxx
sc/inc/AccessibleFilterTopWindow.hxx
+3
-3
AccessibleFilterTopWindow.cxx
sc/source/ui/Accessibility/AccessibleFilterTopWindow.cxx
+1
-1
dpcontrol.cxx
sc/source/ui/cctrl/dpcontrol.cxx
+32
-32
dpcontrol.hxx
sc/source/ui/inc/dpcontrol.hxx
+5
-5
gridwin.hxx
sc/source/ui/inc/gridwin.hxx
+2
-2
gridwin2.cxx
sc/source/ui/view/gridwin2.cxx
+2
-2
No files found.
sc/inc/AccessibleFilterTopWindow.hxx
Dosyayı görüntüle @
8b309a9e
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "AccessibleFilterMenu.hxx"
#include "AccessibleFilterMenu.hxx"
#include "cppuhelper/implbase1.hxx"
#include "cppuhelper/implbase1.hxx"
class
Sc
DPFieldPopup
Window
;
class
Sc
CheckListMenu
Window
;
class
ScDocument
;
class
ScDocument
;
class
ScAccessibleFilterTopWindow
:
public
ScAccessibleFilterMenu
class
ScAccessibleFilterTopWindow
:
public
ScAccessibleFilterMenu
...
@@ -41,7 +41,7 @@ public:
...
@@ -41,7 +41,7 @@ public:
ScAccessibleFilterTopWindow
(
ScAccessibleFilterTopWindow
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>&
rxParent
,
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>&
rxParent
,
Sc
DPFieldPopup
Window
*
pWin
,
const
::
rtl
::
OUString
&
rName
,
ScDocument
*
pDoc
);
Sc
CheckListMenu
Window
*
pWin
,
const
::
rtl
::
OUString
&
rName
,
ScDocument
*
pDoc
);
virtual
~
ScAccessibleFilterTopWindow
();
virtual
~
ScAccessibleFilterTopWindow
();
// XAccessibleContext
// XAccessibleContext
...
@@ -91,7 +91,7 @@ private:
...
@@ -91,7 +91,7 @@ private:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
mxAccCancelBtn
;
mxAccCancelBtn
;
Sc
DPFieldPopup
Window
*
mpWindow
;
Sc
CheckListMenu
Window
*
mpWindow
;
ScDocument
*
mpDoc
;
ScDocument
*
mpDoc
;
};
};
...
...
sc/source/ui/Accessibility/AccessibleFilterTopWindow.cxx
Dosyayı görüntüle @
8b309a9e
...
@@ -43,7 +43,7 @@ using ::com::sun::star::uno::RuntimeException;
...
@@ -43,7 +43,7 @@ using ::com::sun::star::uno::RuntimeException;
using
::
rtl
::
OUString
;
using
::
rtl
::
OUString
;
ScAccessibleFilterTopWindow
::
ScAccessibleFilterTopWindow
(
ScAccessibleFilterTopWindow
::
ScAccessibleFilterTopWindow
(
const
Reference
<
XAccessible
>&
rxParent
,
Sc
DPFieldPopup
Window
*
pWin
,
const
OUString
&
rName
,
ScDocument
*
pDoc
)
:
const
Reference
<
XAccessible
>&
rxParent
,
Sc
CheckListMenu
Window
*
pWin
,
const
OUString
&
rName
,
ScDocument
*
pDoc
)
:
ScAccessibleFilterMenu
(
rxParent
,
pWin
,
rName
,
ScMenuFloatingWindow
::
MENU_NOT_SELECTED
,
pDoc
),
ScAccessibleFilterMenu
(
rxParent
,
pWin
,
rName
,
ScMenuFloatingWindow
::
MENU_NOT_SELECTED
,
pDoc
),
mpWindow
(
pWin
),
mpWindow
(
pWin
),
mpDoc
(
pDoc
)
mpDoc
(
pDoc
)
...
...
sc/source/ui/cctrl/dpcontrol.cxx
Dosyayı görüntüle @
8b309a9e
...
@@ -274,7 +274,7 @@ void ScDPFieldButton::drawPopupButton()
...
@@ -274,7 +274,7 @@ void ScDPFieldButton::drawPopupButton()
ScMenuFloatingWindow
::
MenuItemData
::
MenuItemData
()
:
ScMenuFloatingWindow
::
MenuItemData
::
MenuItemData
()
:
mbEnabled
(
true
),
mbEnabled
(
true
),
mpAction
(
static_cast
<
Sc
DPFieldPopup
Window
::
Action
*>
(
NULL
)),
mpAction
(
static_cast
<
Sc
CheckListMenu
Window
::
Action
*>
(
NULL
)),
mpSubMenuWin
(
static_cast
<
ScMenuFloatingWindow
*>
(
NULL
))
mpSubMenuWin
(
static_cast
<
ScMenuFloatingWindow
*>
(
NULL
))
{
{
}
}
...
@@ -963,17 +963,17 @@ IMPL_LINK( ScMenuFloatingWindow, PopupEndHdl, void*, EMPTYARG )
...
@@ -963,17 +963,17 @@ IMPL_LINK( ScMenuFloatingWindow, PopupEndHdl, void*, EMPTYARG )
// ============================================================================
// ============================================================================
Sc
DPFieldPopup
Window
::
Member
::
Member
()
:
Sc
CheckListMenu
Window
::
Member
::
Member
()
:
mbVisible
(
true
)
mbVisible
(
true
)
{
{
}
}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
Sc
DPFieldPopupWindow
::
CancelButton
::
CancelButton
(
ScDPFieldPopup
Window
*
pParent
)
:
Sc
CheckListMenuWindow
::
CancelButton
::
CancelButton
(
ScCheckListMenu
Window
*
pParent
)
:
::
CancelButton
(
pParent
),
mpParent
(
pParent
)
{}
::
CancelButton
(
pParent
),
mpParent
(
pParent
)
{}
void
Sc
DPFieldPopup
Window
::
CancelButton
::
Click
()
void
Sc
CheckListMenu
Window
::
CancelButton
::
Click
()
{
{
mpParent
->
EndPopupMode
();
mpParent
->
EndPopupMode
();
::
CancelButton
::
Click
();
::
CancelButton
::
Click
();
...
@@ -981,7 +981,7 @@ void ScDPFieldPopupWindow::CancelButton::Click()
...
@@ -981,7 +981,7 @@ void ScDPFieldPopupWindow::CancelButton::Click()
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
Sc
DPFieldPopupWindow
::
ScDPFieldPopup
Window
(
Window
*
pParent
,
ScDocument
*
pDoc
)
:
Sc
CheckListMenuWindow
::
ScCheckListMenu
Window
(
Window
*
pParent
,
ScDocument
*
pDoc
)
:
ScMenuFloatingWindow
(
pParent
,
pDoc
),
ScMenuFloatingWindow
(
pParent
,
pDoc
),
maChecks
(
this
,
0
),
maChecks
(
this
,
0
),
maChkToggleAll
(
this
,
0
),
maChkToggleAll
(
this
,
0
),
...
@@ -1014,7 +1014,7 @@ ScDPFieldPopupWindow::ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc) :
...
@@ -1014,7 +1014,7 @@ ScDPFieldPopupWindow::ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc) :
getSectionPosSize
(
aPos
,
aSize
,
BTN_OK
);
getSectionPosSize
(
aPos
,
aSize
,
BTN_OK
);
maBtnOk
.
SetPosSizePixel
(
aPos
,
aSize
);
maBtnOk
.
SetPosSizePixel
(
aPos
,
aSize
);
maBtnOk
.
SetFont
(
getLabelFont
());
maBtnOk
.
SetFont
(
getLabelFont
());
maBtnOk
.
SetClickHdl
(
LINK
(
this
,
Sc
DPFieldPopup
Window
,
ButtonHdl
)
);
maBtnOk
.
SetClickHdl
(
LINK
(
this
,
Sc
CheckListMenu
Window
,
ButtonHdl
)
);
maBtnOk
.
Show
();
maBtnOk
.
Show
();
getSectionPosSize
(
aPos
,
aSize
,
BTN_CANCEL
);
getSectionPosSize
(
aPos
,
aSize
,
BTN_CANCEL
);
...
@@ -1025,7 +1025,7 @@ ScDPFieldPopupWindow::ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc) :
...
@@ -1025,7 +1025,7 @@ ScDPFieldPopupWindow::ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc) :
getSectionPosSize
(
aPos
,
aSize
,
LISTBOX_AREA_INNER
);
getSectionPosSize
(
aPos
,
aSize
,
LISTBOX_AREA_INNER
);
maChecks
.
SetPosSizePixel
(
aPos
,
aSize
);
maChecks
.
SetPosSizePixel
(
aPos
,
aSize
);
maChecks
.
SetFont
(
getLabelFont
());
maChecks
.
SetFont
(
getLabelFont
());
maChecks
.
SetCheckButtonHdl
(
LINK
(
this
,
Sc
DPFieldPopup
Window
,
CheckHdl
)
);
maChecks
.
SetCheckButtonHdl
(
LINK
(
this
,
Sc
CheckListMenu
Window
,
CheckHdl
)
);
maChecks
.
Show
();
maChecks
.
Show
();
getSectionPosSize
(
aPos
,
aSize
,
CHECK_TOGGLE_ALL
);
getSectionPosSize
(
aPos
,
aSize
,
CHECK_TOGGLE_ALL
);
...
@@ -1034,29 +1034,29 @@ ScDPFieldPopupWindow::ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc) :
...
@@ -1034,29 +1034,29 @@ ScDPFieldPopupWindow::ScDPFieldPopupWindow(Window* pParent, ScDocument* pDoc) :
maChkToggleAll
.
SetText
(
ScRscStrLoader
(
RID_POPUP_FILTER
,
STR_BTN_TOGGLE_ALL
).
GetString
());
maChkToggleAll
.
SetText
(
ScRscStrLoader
(
RID_POPUP_FILTER
,
STR_BTN_TOGGLE_ALL
).
GetString
());
maChkToggleAll
.
SetTextColor
(
rStyle
.
GetMenuTextColor
());
maChkToggleAll
.
SetTextColor
(
rStyle
.
GetMenuTextColor
());
maChkToggleAll
.
SetControlBackground
(
rStyle
.
GetMenuColor
());
maChkToggleAll
.
SetControlBackground
(
rStyle
.
GetMenuColor
());
maChkToggleAll
.
SetClickHdl
(
LINK
(
this
,
Sc
DPFieldPopup
Window
,
TriStateHdl
)
);
maChkToggleAll
.
SetClickHdl
(
LINK
(
this
,
Sc
CheckListMenu
Window
,
TriStateHdl
)
);
maChkToggleAll
.
Show
();
maChkToggleAll
.
Show
();
getSectionPosSize
(
aPos
,
aSize
,
BTN_SINGLE_SELECT
);
getSectionPosSize
(
aPos
,
aSize
,
BTN_SINGLE_SELECT
);
maBtnSelectSingle
.
SetPosSizePixel
(
aPos
,
aSize
);
maBtnSelectSingle
.
SetPosSizePixel
(
aPos
,
aSize
);
maBtnSelectSingle
.
SetQuickHelpText
(
ScRscStrLoader
(
RID_POPUP_FILTER
,
STR_BTN_SELECT_CURRENT
).
GetString
());
maBtnSelectSingle
.
SetQuickHelpText
(
ScRscStrLoader
(
RID_POPUP_FILTER
,
STR_BTN_SELECT_CURRENT
).
GetString
());
maBtnSelectSingle
.
SetModeImage
(
Image
(
ScResId
(
RID_IMG_SELECT_CURRENT
)));
maBtnSelectSingle
.
SetModeImage
(
Image
(
ScResId
(
RID_IMG_SELECT_CURRENT
)));
maBtnSelectSingle
.
SetClickHdl
(
LINK
(
this
,
Sc
DPFieldPopup
Window
,
ButtonHdl
)
);
maBtnSelectSingle
.
SetClickHdl
(
LINK
(
this
,
Sc
CheckListMenu
Window
,
ButtonHdl
)
);
maBtnSelectSingle
.
Show
();
maBtnSelectSingle
.
Show
();
getSectionPosSize
(
aPos
,
aSize
,
BTN_SINGLE_UNSELECT
);
getSectionPosSize
(
aPos
,
aSize
,
BTN_SINGLE_UNSELECT
);
maBtnUnselectSingle
.
SetPosSizePixel
(
aPos
,
aSize
);
maBtnUnselectSingle
.
SetPosSizePixel
(
aPos
,
aSize
);
maBtnUnselectSingle
.
SetQuickHelpText
(
ScRscStrLoader
(
RID_POPUP_FILTER
,
STR_BTN_UNSELECT_CURRENT
).
GetString
());
maBtnUnselectSingle
.
SetQuickHelpText
(
ScRscStrLoader
(
RID_POPUP_FILTER
,
STR_BTN_UNSELECT_CURRENT
).
GetString
());
maBtnUnselectSingle
.
SetModeImage
(
Image
(
ScResId
(
RID_IMG_UNSELECT_CURRENT
)));
maBtnUnselectSingle
.
SetModeImage
(
Image
(
ScResId
(
RID_IMG_UNSELECT_CURRENT
)));
maBtnUnselectSingle
.
SetClickHdl
(
LINK
(
this
,
Sc
DPFieldPopup
Window
,
ButtonHdl
)
);
maBtnUnselectSingle
.
SetClickHdl
(
LINK
(
this
,
Sc
CheckListMenu
Window
,
ButtonHdl
)
);
maBtnUnselectSingle
.
Show
();
maBtnUnselectSingle
.
Show
();
}
}
Sc
DPFieldPopupWindow
::~
ScDPFieldPopup
Window
()
Sc
CheckListMenuWindow
::~
ScCheckListMenu
Window
()
{
{
}
}
void
Sc
DPFieldPopup
Window
::
getSectionPosSize
(
Point
&
rPos
,
Size
&
rSize
,
SectionType
eType
)
const
void
Sc
CheckListMenu
Window
::
getSectionPosSize
(
Point
&
rPos
,
Size
&
rSize
,
SectionType
eType
)
const
{
{
// constant parameters.
// constant parameters.
const
sal_uInt16
nListBoxMargin
=
5
;
// horizontal distance from the side of the dialog to the listbox border.
const
sal_uInt16
nListBoxMargin
=
5
;
// horizontal distance from the side of the dialog to the listbox border.
...
@@ -1157,21 +1157,21 @@ void ScDPFieldPopupWindow::getSectionPosSize(Point& rPos, Size& rSize, SectionTy
...
@@ -1157,21 +1157,21 @@ void ScDPFieldPopupWindow::getSectionPosSize(Point& rPos, Size& rSize, SectionTy
}
}
}
}
void
Sc
DPFieldPopup
Window
::
setAllMemberState
(
bool
bSet
)
void
Sc
CheckListMenu
Window
::
setAllMemberState
(
bool
bSet
)
{
{
size_t
n
=
maMembers
.
size
();
size_t
n
=
maMembers
.
size
();
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
maChecks
.
CheckEntryPos
(
static_cast
<
sal_uInt16
>
(
i
),
bSet
);
maChecks
.
CheckEntryPos
(
static_cast
<
sal_uInt16
>
(
i
),
bSet
);
}
}
void
Sc
DPFieldPopup
Window
::
selectCurrentMemberOnly
(
bool
bSet
)
void
Sc
CheckListMenu
Window
::
selectCurrentMemberOnly
(
bool
bSet
)
{
{
setAllMemberState
(
!
bSet
);
setAllMemberState
(
!
bSet
);
sal_uInt16
nSelected
=
maChecks
.
GetSelectEntryPos
();
sal_uInt16
nSelected
=
maChecks
.
GetSelectEntryPos
();
maChecks
.
CheckEntryPos
(
nSelected
,
bSet
);
maChecks
.
CheckEntryPos
(
nSelected
,
bSet
);
}
}
void
Sc
DPFieldPopup
Window
::
cycleFocus
(
bool
bReverse
)
void
Sc
CheckListMenu
Window
::
cycleFocus
(
bool
bReverse
)
{
{
maTabStopCtrls
[
mnCurTabStop
]
->
SetFakeFocus
(
false
);
maTabStopCtrls
[
mnCurTabStop
]
->
SetFakeFocus
(
false
);
maTabStopCtrls
[
mnCurTabStop
]
->
LoseFocus
();
maTabStopCtrls
[
mnCurTabStop
]
->
LoseFocus
();
...
@@ -1195,7 +1195,7 @@ void ScDPFieldPopupWindow::cycleFocus(bool bReverse)
...
@@ -1195,7 +1195,7 @@ void ScDPFieldPopupWindow::cycleFocus(bool bReverse)
maTabStopCtrls
[
mnCurTabStop
]
->
GrabFocus
();
maTabStopCtrls
[
mnCurTabStop
]
->
GrabFocus
();
}
}
IMPL_LINK
(
Sc
DPFieldPopup
Window
,
ButtonHdl
,
Button
*
,
pBtn
)
IMPL_LINK
(
Sc
CheckListMenu
Window
,
ButtonHdl
,
Button
*
,
pBtn
)
{
{
if
(
pBtn
==
&
maBtnOk
)
if
(
pBtn
==
&
maBtnOk
)
close
(
true
);
close
(
true
);
...
@@ -1212,7 +1212,7 @@ IMPL_LINK( ScDPFieldPopupWindow, ButtonHdl, Button*, pBtn )
...
@@ -1212,7 +1212,7 @@ IMPL_LINK( ScDPFieldPopupWindow, ButtonHdl, Button*, pBtn )
return
0
;
return
0
;
}
}
IMPL_LINK
(
Sc
DPFieldPopup
Window
,
TriStateHdl
,
TriStateBox
*
,
EMPTYARG
)
IMPL_LINK
(
Sc
CheckListMenu
Window
,
TriStateHdl
,
TriStateBox
*
,
EMPTYARG
)
{
{
switch
(
mePrevToggleAllState
)
switch
(
mePrevToggleAllState
)
{
{
...
@@ -1235,7 +1235,7 @@ IMPL_LINK( ScDPFieldPopupWindow, TriStateHdl, TriStateBox*, EMPTYARG )
...
@@ -1235,7 +1235,7 @@ IMPL_LINK( ScDPFieldPopupWindow, TriStateHdl, TriStateBox*, EMPTYARG )
return
0
;
return
0
;
}
}
IMPL_LINK
(
Sc
DPFieldPopup
Window
,
CheckHdl
,
SvTreeListBox
*
,
pChecks
)
IMPL_LINK
(
Sc
CheckListMenu
Window
,
CheckHdl
,
SvTreeListBox
*
,
pChecks
)
{
{
if
(
pChecks
!=
&
maChecks
)
if
(
pChecks
!=
&
maChecks
)
return
0
;
return
0
;
...
@@ -1254,7 +1254,7 @@ IMPL_LINK( ScDPFieldPopupWindow, CheckHdl, SvTreeListBox*, pChecks )
...
@@ -1254,7 +1254,7 @@ IMPL_LINK( ScDPFieldPopupWindow, CheckHdl, SvTreeListBox*, pChecks )
return
0
;
return
0
;
}
}
void
Sc
DPFieldPopup
Window
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
void
Sc
CheckListMenu
Window
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
{
{
ScMenuFloatingWindow
::
MouseMove
(
rMEvt
);
ScMenuFloatingWindow
::
MouseMove
(
rMEvt
);
...
@@ -1263,7 +1263,7 @@ void ScDPFieldPopupWindow::MouseMove(const MouseEvent& rMEvt)
...
@@ -1263,7 +1263,7 @@ void ScDPFieldPopupWindow::MouseMove(const MouseEvent& rMEvt)
queueCloseSubMenu
();
queueCloseSubMenu
();
}
}
long
Sc
DPFieldPopup
Window
::
Notify
(
NotifyEvent
&
rNEvt
)
long
Sc
CheckListMenu
Window
::
Notify
(
NotifyEvent
&
rNEvt
)
{
{
switch
(
rNEvt
.
GetType
())
switch
(
rNEvt
.
GetType
())
{
{
...
@@ -1283,7 +1283,7 @@ long ScDPFieldPopupWindow::Notify(NotifyEvent& rNEvt)
...
@@ -1283,7 +1283,7 @@ long ScDPFieldPopupWindow::Notify(NotifyEvent& rNEvt)
return
ScMenuFloatingWindow
::
Notify
(
rNEvt
);
return
ScMenuFloatingWindow
::
Notify
(
rNEvt
);
}
}
void
Sc
DPFieldPopup
Window
::
Paint
(
const
Rectangle
&
rRect
)
void
Sc
CheckListMenu
Window
::
Paint
(
const
Rectangle
&
rRect
)
{
{
ScMenuFloatingWindow
::
Paint
(
rRect
);
ScMenuFloatingWindow
::
Paint
(
rRect
);
...
@@ -1306,12 +1306,12 @@ void ScDPFieldPopupWindow::Paint(const Rectangle& rRect)
...
@@ -1306,12 +1306,12 @@ void ScDPFieldPopupWindow::Paint(const Rectangle& rRect)
DrawRect
(
Rectangle
(
aPos
,
aSize
));
DrawRect
(
Rectangle
(
aPos
,
aSize
));
}
}
Window
*
Sc
DPFieldPopup
Window
::
GetPreferredKeyInputWindow
()
Window
*
Sc
CheckListMenu
Window
::
GetPreferredKeyInputWindow
()
{
{
return
maTabStopCtrls
[
mnCurTabStop
];
return
maTabStopCtrls
[
mnCurTabStop
];
}
}
Reference
<
XAccessible
>
Sc
DPFieldPopup
Window
::
CreateAccessible
()
Reference
<
XAccessible
>
Sc
CheckListMenu
Window
::
CreateAccessible
()
{
{
if
(
!
mxAccessible
.
is
())
if
(
!
mxAccessible
.
is
())
{
{
...
@@ -1337,12 +1337,12 @@ Reference<XAccessible> ScDPFieldPopupWindow::CreateAccessible()
...
@@ -1337,12 +1337,12 @@ Reference<XAccessible> ScDPFieldPopupWindow::CreateAccessible()
return
mxAccessible
;
return
mxAccessible
;
}
}
void
Sc
DPFieldPopup
Window
::
setMemberSize
(
size_t
n
)
void
Sc
CheckListMenu
Window
::
setMemberSize
(
size_t
n
)
{
{
maMembers
.
reserve
(
n
);
maMembers
.
reserve
(
n
);
}
}
void
Sc
DPFieldPopup
Window
::
addMember
(
const
OUString
&
rName
,
bool
bVisible
)
void
Sc
CheckListMenu
Window
::
addMember
(
const
OUString
&
rName
,
bool
bVisible
)
{
{
Member
aMember
;
Member
aMember
;
aMember
.
maName
=
rName
;
aMember
.
maName
=
rName
;
...
@@ -1350,7 +1350,7 @@ void ScDPFieldPopupWindow::addMember(const OUString& rName, bool bVisible)
...
@@ -1350,7 +1350,7 @@ void ScDPFieldPopupWindow::addMember(const OUString& rName, bool bVisible)
maMembers
.
push_back
(
aMember
);
maMembers
.
push_back
(
aMember
);
}
}
void
Sc
DPFieldPopup
Window
::
initMembers
()
void
Sc
CheckListMenu
Window
::
initMembers
()
{
{
size_t
n
=
maMembers
.
size
();
size_t
n
=
maMembers
.
size
();
size_t
nVisMemCount
=
0
;
size_t
nVisMemCount
=
0
;
...
@@ -1380,12 +1380,12 @@ void ScDPFieldPopupWindow::initMembers()
...
@@ -1380,12 +1380,12 @@ void ScDPFieldPopupWindow::initMembers()
}
}
}
}
const
Size
&
Sc
DPFieldPopup
Window
::
getWindowSize
()
const
const
Size
&
Sc
CheckListMenu
Window
::
getWindowSize
()
const
{
{
return
maWndSize
;
return
maWndSize
;
}
}
void
Sc
DPFieldPopup
Window
::
getResult
(
boost
::
unordered_map
<
OUString
,
bool
,
OUStringHash
>&
rResult
)
void
Sc
CheckListMenu
Window
::
getResult
(
boost
::
unordered_map
<
OUString
,
bool
,
OUStringHash
>&
rResult
)
{
{
typedef
boost
::
unordered_map
<
OUString
,
bool
,
OUStringHash
>
ResultMap
;
typedef
boost
::
unordered_map
<
OUString
,
bool
,
OUStringHash
>
ResultMap
;
ResultMap
aResult
;
ResultMap
aResult
;
...
@@ -1398,7 +1398,7 @@ void ScDPFieldPopupWindow::getResult(boost::unordered_map<OUString, bool, OUStri
...
@@ -1398,7 +1398,7 @@ void ScDPFieldPopupWindow::getResult(boost::unordered_map<OUString, bool, OUStri
rResult
.
swap
(
aResult
);
rResult
.
swap
(
aResult
);
}
}
void
Sc
DPFieldPopup
Window
::
close
(
bool
bOK
)
void
Sc
CheckListMenu
Window
::
close
(
bool
bOK
)
{
{
if
(
bOK
&&
mpOKAction
.
get
())
if
(
bOK
&&
mpOKAction
.
get
())
mpOKAction
->
execute
();
mpOKAction
->
execute
();
...
@@ -1406,17 +1406,17 @@ void ScDPFieldPopupWindow::close(bool bOK)
...
@@ -1406,17 +1406,17 @@ void ScDPFieldPopupWindow::close(bool bOK)
EndPopupMode
();
EndPopupMode
();
}
}
void
Sc
DPFieldPopup
Window
::
setExtendedData
(
ExtendedData
*
p
)
void
Sc
CheckListMenu
Window
::
setExtendedData
(
ExtendedData
*
p
)
{
{
mpExtendedData
.
reset
(
p
);
mpExtendedData
.
reset
(
p
);
}
}
Sc
DPFieldPopupWindow
::
ExtendedData
*
ScDPFieldPopup
Window
::
getExtendedData
()
Sc
CheckListMenuWindow
::
ExtendedData
*
ScCheckListMenu
Window
::
getExtendedData
()
{
{
return
mpExtendedData
.
get
();
return
mpExtendedData
.
get
();
}
}
void
Sc
DPFieldPopup
Window
::
setOKAction
(
Action
*
p
)
void
Sc
CheckListMenu
Window
::
setOKAction
(
Action
*
p
)
{
{
mpOKAction
.
reset
(
p
);
mpOKAction
.
reset
(
p
);
}
}
...
...
sc/source/ui/inc/dpcontrol.hxx
Dosyayı görüntüle @
8b309a9e
...
@@ -258,7 +258,7 @@ private:
...
@@ -258,7 +258,7 @@ private:
* This class implements a popup window for field button, for quick access
* This class implements a popup window for field button, for quick access
* of hide-item list, and possibly more stuff related to field options.
* of hide-item list, and possibly more stuff related to field options.
*/
*/
class
Sc
DPFieldPopup
Window
:
public
ScMenuFloatingWindow
class
Sc
CheckListMenu
Window
:
public
ScMenuFloatingWindow
{
{
public
:
public
:
/**
/**
...
@@ -267,8 +267,8 @@ public:
...
@@ -267,8 +267,8 @@ public:
*/
*/
struct
ExtendedData
{};
struct
ExtendedData
{};
explicit
Sc
DPFieldPopup
Window
(
Window
*
pParent
,
ScDocument
*
pDoc
);
explicit
Sc
CheckListMenu
Window
(
Window
*
pParent
,
ScDocument
*
pDoc
);
virtual
~
Sc
DPFieldPopup
Window
();
virtual
~
Sc
CheckListMenu
Window
();
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
);
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
);
virtual
long
Notify
(
NotifyEvent
&
rNEvt
);
virtual
long
Notify
(
NotifyEvent
&
rNEvt
);
...
@@ -311,12 +311,12 @@ private:
...
@@ -311,12 +311,12 @@ private:
class
CancelButton
:
public
::
CancelButton
class
CancelButton
:
public
::
CancelButton
{
{
public
:
public
:
CancelButton
(
Sc
DPFieldPopup
Window
*
pParent
);
CancelButton
(
Sc
CheckListMenu
Window
*
pParent
);
virtual
void
Click
();
virtual
void
Click
();
private
:
private
:
Sc
DPFieldPopup
Window
*
mpParent
;
Sc
CheckListMenu
Window
*
mpParent
;
};
};
enum
SectionType
{
enum
SectionType
{
...
...
sc/source/ui/inc/gridwin.hxx
Dosyayı görüntüle @
8b309a9e
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
struct
ScTableInfo
;
struct
ScTableInfo
;
class
ScViewSelectionEngine
;
class
ScViewSelectionEngine
;
class
ScDPObject
;
class
ScDPObject
;
class
Sc
DPFieldPopup
Window
;
class
Sc
CheckListMenu
Window
;
class
ScDPFieldButton
;
class
ScDPFieldButton
;
class
ScOutputData
;
class
ScOutputData
;
class
ScFilterListBox
;
class
ScFilterListBox
;
...
@@ -144,7 +144,7 @@ private:
...
@@ -144,7 +144,7 @@ private:
ScFilterListBox
*
pFilterBox
;
ScFilterListBox
*
pFilterBox
;
FloatingWindow
*
pFilterFloat
;
FloatingWindow
*
pFilterFloat
;
::
std
::
auto_ptr
<
Sc
DPFieldPopup
Window
>
mpDPFieldPopup
;
::
std
::
auto_ptr
<
Sc
CheckListMenu
Window
>
mpDPFieldPopup
;
::
std
::
auto_ptr
<
ScDPFieldButton
>
mpFilterButton
;
::
std
::
auto_ptr
<
ScDPFieldButton
>
mpFilterButton
;
sal_uInt16
nCursorHideCount
;
sal_uInt16
nCursorHideCount
;
...
...
sc/source/ui/view/gridwin2.cxx
Dosyayı görüntüle @
8b309a9e
...
@@ -397,7 +397,7 @@ bool ScGridWindow::DPTestFieldPopupArrow(const MouseEvent& rMEvt, const ScAddres
...
@@ -397,7 +397,7 @@ bool ScGridWindow::DPTestFieldPopupArrow(const MouseEvent& rMEvt, const ScAddres
namespace
{
namespace
{
struct
DPFieldPopupData
:
public
Sc
DPFieldPopup
Window
::
ExtendedData
struct
DPFieldPopupData
:
public
Sc
CheckListMenu
Window
::
ExtendedData
{
{
ScPivotParam
maDPParam
;
ScPivotParam
maDPParam
;
ScDPObject
*
mpDPObj
;
ScDPObject
*
mpDPObj
;
...
@@ -470,7 +470,7 @@ void ScGridWindow::DPLaunchFieldPopupMenu(
...
@@ -470,7 +470,7 @@ void ScGridWindow::DPLaunchFieldPopupMenu(
const
ScDPLabelData
&
rLabelData
=
*
pDPData
->
maDPParam
.
maLabelArray
[
pDPData
->
mnDim
];
const
ScDPLabelData
&
rLabelData
=
*
pDPData
->
maDPParam
.
maLabelArray
[
pDPData
->
mnDim
];
mpDPFieldPopup
.
reset
(
new
Sc
DPFieldPopup
Window
(
this
,
pViewData
->
GetDocument
()));
mpDPFieldPopup
.
reset
(
new
Sc
CheckListMenu
Window
(
this
,
pViewData
->
GetDocument
()));
mpDPFieldPopup
->
setName
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"DataPilot field member popup"
)));
mpDPFieldPopup
->
setName
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"DataPilot field member popup"
)));
mpDPFieldPopup
->
setExtendedData
(
pDPData
.
release
());
mpDPFieldPopup
->
setExtendedData
(
pDPData
.
release
());
mpDPFieldPopup
->
setOKAction
(
new
DPFieldPopupOKAction
(
this
));
mpDPFieldPopup
->
setOKAction
(
new
DPFieldPopupOKAction
(
this
));
...
...
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