zoomctrl.cxx (efeef26f) zoomctrl.cxx (a22b373e)
1/**************************************************************
1/**************************************************************
2 *
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
19 *
20 *************************************************************/
21
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_sw.hxx"
26
22// MARKER(update_precomp.py): autogen include statement, do not remove
23#include "precompiled_sw.hxx"
24
27
28
29#include "hintids.hxx"
30
31#ifndef _STATUS_HXX //autogen
32#include <vcl/status.hxx>
33#endif
34#include <sfx2/app.hxx>
35#include <svl/stritem.hxx>
36#include <svx/zoomitem.hxx>
37
38#include "swtypes.hxx"
39#include "zoomctrl.hxx"
40
41
42SFX_IMPL_STATUSBAR_CONTROL( SwZoomControl, SvxZoomItem );
43
44
45SwZoomControl::SwZoomControl( sal_uInt16 _nSlotId,
25#include "hintids.hxx"
26
27#ifndef _STATUS_HXX //autogen
28#include <vcl/status.hxx>
29#endif
30#include <sfx2/app.hxx>
31#include <svl/stritem.hxx>
32#include <svx/zoomitem.hxx>
33
34#include "swtypes.hxx"
35#include "zoomctrl.hxx"
36
37
38SFX_IMPL_STATUSBAR_CONTROL( SwZoomControl, SvxZoomItem );
39
40
41SwZoomControl::SwZoomControl( sal_uInt16 _nSlotId,
46 sal_uInt16 _nId,
47 StatusBar& rStb ) :
48 SvxZoomStatusBarControl( _nSlotId, _nId, rStb )
42 sal_uInt16 _nId,
43 StatusBar& rStb ) :
44 SvxZoomStatusBarControl( _nSlotId, _nId, rStb )
49{
50}
51
52// -----------------------------------------------------------------------
53
54SwZoomControl::~SwZoomControl()
55{
56}

--- 28 unchanged lines hidden (view full) ---

85// -----------------------------------------------------------------------
86
87void SwZoomControl::Command( const CommandEvent& rCEvt )
88{
89 if(!sPreviewZoom.Len())
90 SvxZoomStatusBarControl::Command(rCEvt);
91}
92
45{
46}
47
48// -----------------------------------------------------------------------
49
50SwZoomControl::~SwZoomControl()
51{
52}

--- 28 unchanged lines hidden (view full) ---

81// -----------------------------------------------------------------------
82
83void SwZoomControl::Command( const CommandEvent& rCEvt )
84{
85 if(!sPreviewZoom.Len())
86 SvxZoomStatusBarControl::Command(rCEvt);
87}
88
93
94
95
89/* vim: set noet sw=4 ts=4: */