xref: /AOO41X/main/sfx2/source/sidebar/ControllerItem.cxx (revision 7a32b0c888def1bf84d1d657c48953bc10dc00c1)
1b9e67834SAndre Fischer /**************************************************************
2b9e67834SAndre Fischer  *
3b9e67834SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
4b9e67834SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
5b9e67834SAndre Fischer  * distributed with this work for additional information
6b9e67834SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
7b9e67834SAndre Fischer  * to you under the Apache License, Version 2.0 (the
8b9e67834SAndre Fischer  * "License"); you may not use this file except in compliance
9b9e67834SAndre Fischer  * with the License.  You may obtain a copy of the License at
10b9e67834SAndre Fischer  *
11b9e67834SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
12b9e67834SAndre Fischer  *
13b9e67834SAndre Fischer  * Unless required by applicable law or agreed to in writing,
14b9e67834SAndre Fischer  * software distributed under the License is distributed on an
15b9e67834SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16b9e67834SAndre Fischer  * KIND, either express or implied.  See the License for the
17b9e67834SAndre Fischer  * specific language governing permissions and limitations
18b9e67834SAndre Fischer  * under the License.
19b9e67834SAndre Fischer  *
20b9e67834SAndre Fischer  *************************************************************/
21b9e67834SAndre Fischer 
22b9e67834SAndre Fischer #include "precompiled_sfx2.hxx"
23b9e67834SAndre Fischer 
24b9e67834SAndre Fischer #include "sidebar/ControllerItem.hxx"
25b9e67834SAndre Fischer 
26b9e67834SAndre Fischer namespace sfx2 { namespace sidebar {
27b9e67834SAndre Fischer 
28b9e67834SAndre Fischer ControllerItem::ControllerItem (
29b9e67834SAndre Fischer     const sal_uInt16 nId,
30b9e67834SAndre Fischer     SfxBindings &rBindings,
31b9e67834SAndre Fischer     ItemUpdateReceiverInterface& rItemUpdateReceiver)
32b9e67834SAndre Fischer     : SfxControllerItem(nId, rBindings),
33b9e67834SAndre Fischer       mrItemUpdateReceiver(rItemUpdateReceiver)
34b9e67834SAndre Fischer {
35b9e67834SAndre Fischer }
36b9e67834SAndre Fischer 
37b9e67834SAndre Fischer 
38b9e67834SAndre Fischer 
39b9e67834SAndre Fischer 
40b9e67834SAndre Fischer ControllerItem::~ControllerItem (void)
41b9e67834SAndre Fischer {
42b9e67834SAndre Fischer }
43b9e67834SAndre Fischer 
44b9e67834SAndre Fischer 
45b9e67834SAndre Fischer 
46b9e67834SAndre Fischer 
47b9e67834SAndre Fischer void ControllerItem::StateChanged (
48b9e67834SAndre Fischer     sal_uInt16 nSID,
49b9e67834SAndre Fischer     SfxItemState eState,
50b9e67834SAndre Fischer     const SfxPoolItem* pState)
51b9e67834SAndre Fischer {
52b9e67834SAndre Fischer     mrItemUpdateReceiver.NotifyItemUpdate(nSID, eState, pState);
53b9e67834SAndre Fischer }
54b9e67834SAndre Fischer 
55*7a32b0c8SAndre Fischer 
56*7a32b0c8SAndre Fischer 
57*7a32b0c8SAndre Fischer 
58b9e67834SAndre Fischer } } // end of namespace sfx2::sidebar
59