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
f0ffe0c0
Kaydet (Commit)
f0ffe0c0
authored
Eki 29, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#85111 put a border around the custom properties box
Change-Id: Ibdbfb4a88c1c75aaf5d33672d8639a9ea55afbac
üst
6484bf5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
dinfdlg.hxx
include/sfx2/dinfdlg.hxx
+3
-2
dinfdlg.cxx
sfx2/source/dialog/dinfdlg.cxx
+19
-5
No files found.
include/sfx2/dinfdlg.hxx
Dosyayı görüntüle @
f0ffe0c0
...
...
@@ -465,9 +465,10 @@ public:
// class CustomPropertiesControl -----------------------------------------
class
CustomPropertiesControl
:
public
VclVBox
class
CustomPropertiesControl
:
public
vcl
::
Window
{
private
:
VclVBox
*
m_pVBox
;
HeaderBar
*
m_pHeaderBar
;
VclHBox
*
m_pBody
;
CustomPropertiesWindow
*
m_pPropertiesWin
;
...
...
@@ -490,7 +491,7 @@ public:
GetCustomProperties
()
const
{
return
m_pPropertiesWin
->
GetCustomProperties
();
}
void
Init
(
VclBuilderContainer
&
rParent
);
virtual
void
setAllocation
(
const
Size
&
rAllocation
)
SAL_OVERRIDE
;
virtual
void
Resize
(
)
SAL_OVERRIDE
;
};
// class SfxCustomPropertiesPage -----------------------------------------
...
...
sfx2/source/dialog/dinfdlg.cxx
Dosyayı görüntüle @
f0ffe0c0
...
...
@@ -1985,7 +1985,8 @@ Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties() c
}
CustomPropertiesControl
::
CustomPropertiesControl
(
vcl
::
Window
*
pParent
)
:
VclVBox
(
pParent
)
:
Window
(
pParent
,
WB_HIDE
|
WB_CLIPCHILDREN
|
WB_TABSTOP
|
WB_DIALOGCONTROL
|
WB_BORDER
)
,
m_pVBox
(
NULL
)
,
m_pHeaderBar
(
NULL
)
,
m_pBody
(
NULL
)
,
m_pPropertiesWin
(
NULL
)
...
...
@@ -1996,8 +1997,9 @@ CustomPropertiesControl::CustomPropertiesControl(vcl::Window* pParent)
void
CustomPropertiesControl
::
Init
(
VclBuilderContainer
&
rBuilder
)
{
m_pHeaderBar
=
new
HeaderBar
(
this
,
WB_BUTTONSTYLE
|
WB_BOTTOMBORDER
);
m_pBody
=
new
VclHBox
(
this
);
m_pVBox
=
new
VclVBox
(
this
);
m_pHeaderBar
=
new
HeaderBar
(
m_pVBox
,
WB_BUTTONSTYLE
|
WB_BOTTOMBORDER
);
m_pBody
=
new
VclHBox
(
m_pVBox
);
FixedText
*
pName
=
rBuilder
.
get
<
FixedText
>
(
"name"
);
FixedText
*
pType
=
rBuilder
.
get
<
FixedText
>
(
"type"
);
FixedText
*
pValue
=
rBuilder
.
get
<
FixedText
>
(
"value"
);
...
...
@@ -2012,6 +2014,12 @@ void CustomPropertiesControl::Init(VclBuilderContainer& rBuilder)
set_expand
(
true
);
set_fill
(
true
);
m_pVBox
->
set_hexpand
(
true
);
m_pVBox
->
set_vexpand
(
true
);
m_pVBox
->
set_expand
(
true
);
m_pVBox
->
set_fill
(
true
);
m_pVBox
->
Show
();
m_pBody
->
set_hexpand
(
true
);
m_pBody
->
set_vexpand
(
true
);
m_pBody
->
set_expand
(
true
);
...
...
@@ -2048,9 +2056,14 @@ void CustomPropertiesControl::Init(VclBuilderContainer& rBuilder)
m_pVertScroll
->
SetScrollHdl
(
aScrollLink
);
}
void
CustomPropertiesControl
::
setAllocation
(
const
Size
&
rAllocation
)
void
CustomPropertiesControl
::
Resize
(
)
{
VclVBox
::
setAllocation
(
rAllocation
);
Window
::
Resize
();
if
(
!
m_pVBox
)
return
;
m_pVBox
->
SetSizePixel
(
GetSizePixel
());
bool
bWidgetsResized
=
m_pPropertiesWin
->
InitControls
(
m_pHeaderBar
,
m_pVertScroll
);
sal_Int32
nScrollOffset
=
m_pPropertiesWin
->
GetLineHeight
();
...
...
@@ -2075,6 +2088,7 @@ CustomPropertiesControl::~CustomPropertiesControl()
delete
m_pPropertiesWin
;
delete
m_pBody
;
delete
m_pHeaderBar
;
delete
m_pVBox
;
}
IMPL_LINK
(
CustomPropertiesControl
,
ScrollHdl
,
ScrollBar
*
,
pScrollBar
)
...
...
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