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
27da19cd
Kaydet (Commit)
27da19cd
authored
Tem 08, 2012
tarafından
Rafael Dominguez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Center template dialog top buttons.
Change-Id: I18c324a815df279280f3d5efc7b0d9651275bfaa
üst
41c1ecbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
templatedlg.hxx
sfx2/inc/templatedlg.hxx
+2
-0
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+32
-0
templatedlg.src
sfx2/source/doc/templatedlg.src
+2
-2
No files found.
sfx2/inc/templatedlg.hxx
Dosyayı görüntüle @
27da19cd
...
@@ -72,6 +72,8 @@ private:
...
@@ -72,6 +72,8 @@ private:
void
OnTemplateProperties
();
void
OnTemplateProperties
();
void
OnTemplateDelete
();
void
OnTemplateDelete
();
void
centerTopButtons
();
private
:
private
:
PushButton
aButtonAll
;
PushButton
aButtonAll
;
...
...
sfx2/source/doc/templatedlg.cxx
Dosyayı görüntüle @
27da19cd
...
@@ -215,6 +215,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
...
@@ -215,6 +215,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
// Set dialog to correct dimensions
// Set dialog to correct dimensions
SetSizePixel
(
aWinSize
);
SetSizePixel
(
aWinSize
);
centerTopButtons
();
mpViewBar
->
Show
();
mpViewBar
->
Show
();
mpActionBar
->
Show
();
mpActionBar
->
Show
();
...
@@ -755,6 +757,36 @@ void SfxTemplateManagerDlg::OnTemplateDelete ()
...
@@ -755,6 +757,36 @@ void SfxTemplateManagerDlg::OnTemplateDelete ()
}
}
}
}
void
SfxTemplateManagerDlg
::
centerTopButtons
()
{
Point
aFirstBtnPos
=
aButtonAll
.
GetPosPixel
();
Size
aSelBtnSize
=
maButtonSelMode
.
GetOutputSize
();
// Last button in the list
Size
aBtnSize
=
aButtonAll
.
GetOutputSize
();
Size
aWinSize
=
GetOutputSize
();
long
nTotalWidth
=
aSelBtnSize
.
getWidth
()
+
aBtnSize
.
getWidth
()
*
5
;
long
nSpace
=
(
aWinSize
.
getWidth
()
-
nTotalWidth
)
/
2
;
Point
aBtnPos
(
nSpace
,
aFirstBtnPos
.
getY
());
aButtonAll
.
SetPosPixel
(
aBtnPos
);
aBtnPos
.
setX
(
aBtnPos
.
getX
()
+
aBtnSize
.
getWidth
());
aButtonDocs
.
SetPosPixel
(
aBtnPos
);
aBtnPos
.
setX
(
aBtnPos
.
getX
()
+
aBtnSize
.
getWidth
());
aButtonPresents
.
SetPosPixel
(
aBtnPos
);
aBtnPos
.
setX
(
aBtnPos
.
getX
()
+
aBtnSize
.
getWidth
());
aButtonSheets
.
SetPosPixel
(
aBtnPos
);
aBtnPos
.
setX
(
aBtnPos
.
getX
()
+
aBtnSize
.
getWidth
());
aButtonDraws
.
SetPosPixel
(
aBtnPos
);
aBtnPos
.
setX
(
aBtnPos
.
getX
()
+
aBtnSize
.
getWidth
());
maButtonSelMode
.
SetPosPixel
(
aBtnPos
);
}
void
lcl_createTemplate
(
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XComponentLoader
>
xDesktop
,
void
lcl_createTemplate
(
uno
::
Reference
<
com
::
sun
::
star
::
frame
::
XComponentLoader
>
xDesktop
,
const
FILTER_APPLICATION
eApp
)
const
FILTER_APPLICATION
eApp
)
{
{
...
...
sfx2/source/doc/templatedlg.src
Dosyayı görüntüle @
27da19cd
...
@@ -104,8 +104,8 @@ ModalDialog DLG_TEMPLATE_MANAGER
...
@@ -104,8 +104,8 @@ ModalDialog DLG_TEMPLATE_MANAGER
ImageButton BTN_SELECTION_MODE
ImageButton BTN_SELECTION_MODE
{
{
Pos = MAP_APPFONT(26
5
,5);
Pos = MAP_APPFONT(26
0
,5);
Size = MAP_APPFONT(
14
,14);
Size = MAP_APPFONT(
20
,14);
TabStop = TRUE;
TabStop = TRUE;
ButtonImage = Image
ButtonImage = Image
...
...
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