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
8e12daed
Kaydet (Commit)
8e12daed
authored
Şub 19, 2013
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bZoomEnable was always true
This completes
dc9ce37f
. Change-Id: I0a840d01a40942016e32ec0547618bc44d94c48d
üst
a4a45710
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
pview.cxx
sw/source/ui/uiview/pview.cxx
+1
-18
No files found.
sw/source/ui/uiview/pview.cxx
Dosyayı görüntüle @
8e12daed
...
...
@@ -962,8 +962,6 @@ void SwPagePreView::GetState( SfxItemSet& rSet )
sal_uInt16
nWhich
=
aIter
.
FirstWhich
();
OSL_ENSURE
(
nWhich
,
"empty set"
);
SwPagePreviewLayout
*
pPagePrevwLay
=
GetViewShell
()
->
PagePreviewLayout
();
// zoom has to be disabled if Accessibility support is switched on
sal_Bool
bZoomEnabled
=
sal_True
;
// !Application::GetSettings().GetMiscSettings().GetEnableATToolSupport();
while
(
nWhich
)
{
...
...
@@ -1008,8 +1006,6 @@ void SwPagePreView::GetState( SfxItemSet& rSet )
case
SID_ATTR_ZOOM
:
case
FN_STAT_ZOOM
:
{
if
(
bZoomEnabled
)
{
const
SwViewOption
*
pVOpt
=
GetViewShell
()
->
GetViewOptions
();
SvxZoomItem
aZoom
((
SvxZoomType
)
pVOpt
->
GetZoomType
(),
pVOpt
->
GetZoom
());
...
...
@@ -1020,41 +1016,28 @@ void SwPagePreView::GetState( SfxItemSet& rSet )
SVX_ZOOM_ENABLE_150
|
SVX_ZOOM_ENABLE_200
);
rSet
.
Put
(
aZoom
);
}
else
rSet
.
DisableItem
(
nWhich
);
}
break
;
case
SID_ATTR_ZOOMSLIDER
:
{
if
(
bZoomEnabled
)
{
const
SwViewOption
*
pVOpt
=
GetViewShell
()
->
GetViewOptions
();
const
sal_uInt16
nCurrentZoom
=
pVOpt
->
GetZoom
();
SvxZoomSliderItem
aZoomSliderItem
(
nCurrentZoom
,
MINZOOM
,
MAXZOOM
);
aZoomSliderItem
.
AddSnappingPoint
(
100
);
rSet
.
Put
(
aZoomSliderItem
);
}
else
rSet
.
DisableItem
(
nWhich
);
}
break
;
case
FN_PREVIEW_ZOOM
:
{
if
(
bZoomEnabled
)
{
const
SwViewOption
*
pVOpt
=
GetViewShell
()
->
GetViewOptions
();
rSet
.
Put
(
SfxUInt16Item
(
nWhich
,
pVOpt
->
GetZoom
()));
}
else
rSet
.
DisableItem
(
nWhich
);
}
break
;
case
SID_ZOOM_IN
:
case
SID_ZOOM_OUT
:
{
const
SwViewOption
*
pVOpt
=
GetViewShell
()
->
GetViewOptions
();
if
(
!
bZoomEnabled
||
(
SID_ZOOM_OUT
==
nWhich
&&
pVOpt
->
GetZoom
()
>=
MAX_PREVIEW_ZOOM
)
||
if
((
SID_ZOOM_OUT
==
nWhich
&&
pVOpt
->
GetZoom
()
>=
MAX_PREVIEW_ZOOM
)
||
(
SID_ZOOM_IN
==
nWhich
&&
pVOpt
->
GetZoom
()
<=
MIN_PREVIEW_ZOOM
))
{
rSet
.
DisableItem
(
nWhich
);
...
...
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