Hi Niklas,
I encountered a question about SvxZoomSliderItem,
I have defined "const USHORT nCurrentZoom = ScPrintFunc( pDocShell, 
pDocShell->GetPrinter(), nTab ).GetZoom(),
MINZOOM_SLIDER = 10,MAXZOOM_SLIDER = 400,
SvxZoomSliderItem 
aZoomSliderItem(nCurrentZoom,MINZOOM_SLIDER,MAXZOOM_SLIDER,SID_PREVIEW_ZOOMSLIDER)
rSet.Put( aZoomSliderItem ) " in the GetState(...) method of prevwsh.cxx file. 
When the program debugs into the ScZoomSliderControl::StateChanged(USHORT 
nSID,SfxItemState eState,const SfxPoolItem* pState), 
I checked pState, the mnMinZoom is 20, the mnMaxZoom is 600, these variable's 
value is not the value that I set in prevwsh.cxx,
I think the reason is because of the default constructor 
SvxZoomSliderItem(...), whether my idea is right ?
If I remove these default values in zoomslideritem.hxx file, I need modify the 
sw module, do you have any good idea ? 
I'm looking forward to your reply, thanks! :)

Sincerely,

maoyg
2008.05.05

Reply via email to