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
fbe878da
Kaydet (Commit)
fbe878da
authored
Ock 25, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
hand rolled dynamic positioning code can go now
Change-Id: If30c91ea3828f8e4d8ed4c5ac95697fb2817d68f
üst
4c05804b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
20 deletions
+5
-20
dlgname.cxx
cui/source/dialogs/dlgname.cxx
+4
-20
messbox.ui
cui/uiconfig/ui/messbox.ui
+1
-0
No files found.
cui/source/dialogs/dlgname.cxx
Dosyayı görüntüle @
fbe878da
...
...
@@ -46,20 +46,6 @@ SvxNameDialog::SvxNameDialog( Window* pWindow, const String& rName, const String
pEdtName
->
SetSelection
(
Selection
(
SELECTION_MIN
,
SELECTION_MAX
));
ModifyHdl
(
&
pEdtName
);
pEdtName
->
SetModifyHdl
(
LINK
(
this
,
SvxNameDialog
,
ModifyHdl
));
// dynamic height of the description field
Size
aSize
=
pFtDescription
->
GetSizePixel
();
long
nTxtWidth
=
pFtDescription
->
GetCtrlTextWidth
(
rDesc
);
if
(
nTxtWidth
>
aSize
.
Width
()
)
{
long
nLines
=
Min
(
(
nTxtWidth
/
(
aSize
.
Width
()
+
1
)
+
1
),
MAX_DESCRIPTION_LINES
);
long
nHeight
=
aSize
.
Height
();
aSize
.
Height
()
=
nHeight
*
nLines
;
pFtDescription
->
SetSizePixel
(
aSize
);
Point
aPnt
=
pEdtName
->
GetPosPixel
();
aPnt
.
Y
()
+=
(
aSize
.
Height
()
-
nHeight
);
pEdtName
->
SetPosPixel
(
aPnt
);
}
}
IMPL_LINK_NOARG
(
SvxNameDialog
,
ModifyHdl
)
...
...
@@ -130,8 +116,9 @@ SvxObjectTitleDescDialog::SvxObjectTitleDescDialog(
|*
\************************************************************************/
SvxMessDialog
::
SvxMessDialog
(
Window
*
pWindow
,
const
String
&
rText
,
const
String
&
rDesc
,
Image
*
pImg
)
:
ModalDialog
(
pWindow
,
"MessBox"
,
"cui/ui/messbox.ui"
)
SvxMessDialog
::
SvxMessDialog
(
Window
*
pWindow
,
const
String
&
rText
,
const
String
&
rDesc
,
Image
*
pImg
)
:
ModalDialog
(
pWindow
,
"MessBox"
,
"cui/ui/messbox.ui"
)
,
pImage
(
NULL
)
{
get
(
pBtn1
,
"mess_box_btn1"
);
get
(
pBtn2
,
"mess_box_btn2"
);
...
...
@@ -142,8 +129,6 @@ SvxMessDialog::SvxMessDialog( Window* pWindow, const String& rText, const String
pImage
=
new
Image
(
*
pImg
);
pFtImage
->
SetImage
(
*
pImage
);
pFtImage
->
SetStyle
(
(
pFtImage
->
GetStyle
()
/* | WB_NOTABSTOP */
)
&
~
WB_3DLOOK
);
pFtImage
->
SetPosSizePixel
(
LogicToPixel
(
Point
(
3
,
6
),
MAP_APPFONT
),
pFtImage
->
GetImage
().
GetSizePixel
()
);
pFtImage
->
Show
();
}
...
...
@@ -156,8 +141,7 @@ SvxMessDialog::SvxMessDialog( Window* pWindow, const String& rText, const String
SvxMessDialog
::~
SvxMessDialog
()
{
if
(
pImage
)
delete
pImage
;
delete
pImage
;
}
/*************************************************************************/
...
...
cui/uiconfig/ui/messbox.ui
Dosyayı görüntüle @
fbe878da
...
...
@@ -75,6 +75,7 @@
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"padding"
>
12
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
...
...
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