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
d29529cf
Kaydet (Commit)
d29529cf
authored
Ara 12, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add get_content_area and get_action_area to Dialog
Change-Id: I147cea986b8152e54586a0296e446652bd695a18
üst
4ce2602b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
13 deletions
+27
-13
tabdlg.hxx
sfx2/inc/sfx2/tabdlg.hxx
+2
-2
tabdlg.cxx
sfx2/source/dialog/tabdlg.cxx
+10
-10
printer.cxx
sfx2/source/view/printer.cxx
+1
-1
dialog.hxx
vcl/inc/vcl/dialog.hxx
+4
-0
dialog.cxx
vcl/source/window/dialog.cxx
+10
-0
No files found.
sfx2/inc/sfx2/tabdlg.hxx
Dosyayı görüntüle @
d29529cf
...
...
@@ -65,7 +65,7 @@ friend class SfxTabDialogController;
SfxViewFrame
*
pFrame
;
Vcl
VBox
*
m_pV
Box
;
Vcl
Box
*
m_p
Box
;
TabControl
*
m_pTabCtrl
;
OKButton
*
m_pOKBtn
;
...
...
@@ -114,7 +114,7 @@ protected:
virtual
void
PageCreated
(
sal_uInt16
nId
,
SfxTabPage
&
rPage
);
virtual
long
Notify
(
NotifyEvent
&
rNEvt
);
Vcl
HButtonBox
*
m_pActionArea
;
Vcl
ButtonBox
*
m_pActionArea
;
SfxItemSet
*
pExampleSet
;
SfxItemSet
*
GetInputSetImpl
();
SfxTabPage
*
GetTabPage
(
sal_uInt16
nPageId
)
const
;
...
...
sfx2/source/dialog/tabdlg.cxx
Dosyayı görüntüle @
d29529cf
...
...
@@ -513,7 +513,7 @@ SfxTabDialog::~SfxTabDialog()
if
(
m_bOwnsTabCtrl
)
delete
m_pTabCtrl
;
if
(
m_bOwnsVBox
)
delete
m_p
V
Box
;
delete
m_pBox
;
}
// -----------------------------------------------------------------------
...
...
@@ -526,26 +526,26 @@ void SfxTabDialog::Init_Impl( sal_Bool bFmtFlag, const String* pUserButtonText,
*/
{
m_p
VBox
=
m_pUIBuilder
?
m_pUIBuilder
->
get
<
VclVBox
>
(
"dialog-vbox1"
)
:
NULL
;
m_bOwnsVBox
=
m_p
V
Box
==
NULL
;
m_p
Box
=
get_content_area
()
;
m_bOwnsVBox
=
m_pBox
==
NULL
;
if
(
m_bOwnsVBox
)
{
m_p
V
Box
=
new
VclVBox
(
this
,
false
,
7
);
m_p
V
Box
->
set_expand
(
true
);
m_pBox
=
new
VclVBox
(
this
,
false
,
7
);
m_pBox
->
set_expand
(
true
);
}
m_pTabCtrl
=
m_pUIBuilder
?
m_pUIBuilder
->
get
<
TabControl
>
(
SAL_STRINGIFY
(
ID_TABCONTROL
))
:
NULL
;
m_bOwnsTabCtrl
=
m_pTabCtrl
==
NULL
;
if
(
m_bOwnsTabCtrl
)
{
m_pTabCtrl
=
new
TabControl
(
m_p
V
Box
,
ResId
(
ID_TABCONTROL
,
*
rResId
.
GetResMgr
()));
m_pTabCtrl
=
new
TabControl
(
m_pBox
,
ResId
(
ID_TABCONTROL
,
*
rResId
.
GetResMgr
()));
m_pTabCtrl
->
set_expand
(
true
);
}
m_pActionArea
=
m_pUIBuilder
?
m_pUIBuilder
->
get
<
VclHButtonBox
>
(
"dialog-action_area1"
)
:
NULL
;
m_pActionArea
=
get_action_area
()
;
m_bOwnsActionArea
=
m_pActionArea
==
NULL
;
if
(
m_bOwnsActionArea
)
m_pActionArea
=
new
VclHButtonBox
(
m_p
V
Box
);
m_pActionArea
=
new
VclHButtonBox
(
m_pBox
);
m_pOKBtn
=
m_pUIBuilder
?
m_pUIBuilder
->
get
<
OKButton
>
(
"ok"
)
:
NULL
;
m_bOwnsOKBtn
=
m_pOKBtn
==
NULL
;
...
...
@@ -593,7 +593,7 @@ void SfxTabDialog::Init_Impl( sal_Bool bFmtFlag, const String* pUserButtonText,
m_pTabCtrl
->
SetDeactivatePageHdl
(
LINK
(
this
,
SfxTabDialog
,
DeactivatePageHdl
)
);
m_pActionArea
->
Show
();
m_p
V
Box
->
Show
();
m_pBox
->
Show
();
m_pTabCtrl
->
Show
();
m_pOKBtn
->
Show
();
m_pCancelBtn
->
Show
();
...
...
@@ -1084,7 +1084,7 @@ IMPL_LINK_NOARG(SfxTabDialog, OkHdl)
Handler of the Ok-Buttons
This calls the current page <SfxTabPage::DeactivatePage(SfxItemSet *)>.
Returns <SfxTabPage::LEAVE_PAGE>, <SfxTabDialog::Ok()> is called
an
f
the Dialog is ended.
an
d
the Dialog is ended.
*/
{
...
...
sfx2/source/view/printer.cxx
Dosyayı görüntüle @
d29529cf
...
...
@@ -208,7 +208,7 @@ SfxPrintOptionsDialog::SfxPrintOptionsDialog(Window *pParent,
,
pViewSh
(
pViewShell
)
,
pOptions
(
pSet
->
Clone
())
{
VclContainer
*
pVBox
=
m_pUIBuilder
->
get
<
VclVBox
>
(
"dialog-vbox1"
);
VclContainer
*
pVBox
=
get_content_area
(
);
// Insert TabPage
pPage
=
pViewSh
->
CreatePrintOptionsPage
(
pVBox
,
*
pOptions
);
...
...
vcl/inc/vcl/dialog.hxx
Dosyayı görüntüle @
d29529cf
...
...
@@ -34,6 +34,8 @@
// - Dialog -
// ----------
struct
DialogImpl
;
class
VclBox
;
class
VclButtonBox
;
class
VclContainer
;
class
VCL_DLLPUBLIC
Dialog
...
...
@@ -95,6 +97,8 @@ public:
void
setInitialLayoutSize
();
void
queue_layout
();
virtual
bool
set_property
(
const
rtl
::
OString
&
rKey
,
const
rtl
::
OString
&
rValue
);
VclButtonBox
*
get_action_area
();
VclBox
*
get_content_area
();
virtual
sal_Bool
Close
();
...
...
vcl/source/window/dialog.cxx
Dosyayı görüntüle @
d29529cf
...
...
@@ -560,6 +560,16 @@ WinBits Dialog::init(Window *pParent, const ResId& rResId)
return
nStyle
;
}
VclButtonBox
*
Dialog
::
get_action_area
()
{
return
m_pUIBuilder
?
m_pUIBuilder
->
get
<
VclButtonBox
>
(
"dialog-action_area1"
)
:
NULL
;
}
VclBox
*
Dialog
::
get_content_area
()
{
return
m_pUIBuilder
?
m_pUIBuilder
->
get
<
VclBox
>
(
"dialog-vbox1"
)
:
NULL
;
}
// -----------------------------------------------------------------------
Dialog
::~
Dialog
()
...
...
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