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
8c639609
Kaydet (Commit)
8c639609
authored
Ara 31, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleanup source of zoom dialog, translate german error message
Change-Id: Iccd140f06b9504606850de780262a23004a803b4
üst
0be5d2b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
29 deletions
+6
-29
zoom.cxx
cui/source/dialogs/zoom.cxx
+6
-29
No files found.
cui/source/dialogs/zoom.cxx
Dosyayı görüntüle @
8c639609
...
...
@@ -47,8 +47,6 @@ sal_uInt16 SvxZoomDialog::GetFactor() const
return
SPECIAL_FACTOR
;
}
void
SvxZoomDialog
::
SetFactor
(
sal_uInt16
nNewFactor
,
sal_uInt16
nBtnId
)
{
m_pUserEdit
->
Disable
();
...
...
@@ -90,8 +88,6 @@ void SvxZoomDialog::SetFactor( sal_uInt16 nNewFactor, sal_uInt16 nBtnId )
}
}
void
SvxZoomDialog
::
HideButton
(
sal_uInt16
nBtnId
)
{
switch
(
nBtnId
)
...
...
@@ -109,12 +105,10 @@ void SvxZoomDialog::HideButton( sal_uInt16 nBtnId )
break
;
default
:
OSL_FAIL
(
"Falsche Button-Nummer!!
!"
);
OSL_FAIL
(
"Wrong button number
!"
);
}
}
void
SvxZoomDialog
::
SetLimits
(
sal_uInt16
nMin
,
sal_uInt16
nMax
)
{
DBG_ASSERT
(
nMin
<
nMax
,
"invalid limits"
);
...
...
@@ -124,8 +118,6 @@ void SvxZoomDialog::SetLimits( sal_uInt16 nMin, sal_uInt16 nMax )
m_pUserEdit
->
SetLast
(
nMax
);
}
SvxZoomDialog
::
SvxZoomDialog
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rCoreSet
)
:
SfxModalDialog
(
pParent
,
"ZoomDialog"
,
"cui/ui/zoomdialog.ui"
)
,
rSet
(
rCoreSet
)
...
...
@@ -284,16 +276,12 @@ SvxZoomDialog::SvxZoomDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet )
}
}
SvxZoomDialog
::~
SvxZoomDialog
()
{
delete
pOutSet
;
pOutSet
=
0
;
}
IMPL_LINK
(
SvxZoomDialog
,
UserHdl
,
RadioButton
*
,
pBtn
)
{
bModified
=
true
;
...
...
@@ -308,8 +296,6 @@ IMPL_LINK( SvxZoomDialog, UserHdl, RadioButton *, pBtn )
return
0
;
}
IMPL_LINK_NOARG
(
SvxZoomDialog
,
SpinHdl
)
{
if
(
!
m_pUserBtn
->
IsChecked
()
)
...
...
@@ -318,8 +304,6 @@ IMPL_LINK_NOARG(SvxZoomDialog, SpinHdl)
return
0
;
}
IMPL_LINK
(
SvxZoomDialog
,
ViewLayoutUserHdl
,
RadioButton
*
,
pBtn
)
{
bModified
=
true
;
...
...
@@ -343,15 +327,13 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutUserHdl, RadioButton *, pBtn )
}
else
{
OSL_FAIL
(
"Wrong Button"
);
OSL_FAIL
(
"Wrong Button"
);
return
0
;
}
return
0
;
}
IMPL_LINK
(
SvxZoomDialog
,
ViewLayoutSpinHdl
,
NumericField
*
,
pEdt
)
{
if
(
pEdt
==
m_pColumnsEdit
&&
!
m_pColumnsBtn
->
IsChecked
()
)
...
...
@@ -370,8 +352,6 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutSpinHdl, NumericField *, pEdt )
return
0
;
}
IMPL_LINK
(
SvxZoomDialog
,
ViewLayoutCheckHdl
,
CheckBox
*
,
pChk
)
{
if
(
pChk
==
m_pBookModeChk
&&
!
m_pColumnsBtn
->
IsChecked
())
...
...
@@ -382,8 +362,6 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutCheckHdl, CheckBox *, pChk )
return
0
;
}
IMPL_LINK
(
SvxZoomDialog
,
OKHdl
,
Button
*
,
pBtn
)
{
if
(
bModified
||
m_pOKBtn
!=
pBtn
)
...
...
@@ -425,7 +403,7 @@ IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn )
}
else
{
OSL_FAIL
(
"Wrong Button"
);
OSL_FAIL
(
"Wrong Button"
);
return
0
;
}
pOutSet
=
new
SfxItemSet
(
rSet
);
...
...
@@ -436,10 +414,10 @@ IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn )
pOutSet
->
Put
(
aViewLayoutItem
);
// memorize value from the UserEdit beyond the dialog
SfxObjectShell
*
pSh
=
SfxObjectShell
::
Current
();
SfxObjectShell
*
pSh
ell
=
SfxObjectShell
::
Current
();
if
(
pSh
)
pSh
->
PutItem
(
SfxUInt16Item
(
SID_ATTR_ZOOM_USER
,
if
(
pSh
ell
)
pSh
ell
->
PutItem
(
SfxUInt16Item
(
SID_ATTR_ZOOM_USER
,
(
sal_uInt16
)
m_pUserEdit
->
GetValue
()
)
);
EndDialog
(
RET_OK
);
}
...
...
@@ -448,5 +426,4 @@ IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn )
return
0
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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