122de8995SAndre Fischer /**************************************************************
222de8995SAndre Fischer  *
322de8995SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
422de8995SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
522de8995SAndre Fischer  * distributed with this work for additional information
622de8995SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
722de8995SAndre Fischer  * to you under the Apache License, Version 2.0 (the
822de8995SAndre Fischer  * "License"); you may not use this file except in compliance
922de8995SAndre Fischer  * with the License.  You may obtain a copy of the License at
1022de8995SAndre Fischer  *
1122de8995SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
1222de8995SAndre Fischer  *
1322de8995SAndre Fischer  * Unless required by applicable law or agreed to in writing,
1422de8995SAndre Fischer  * software distributed under the License is distributed on an
1522de8995SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1622de8995SAndre Fischer  * KIND, either express or implied.  See the License for the
1722de8995SAndre Fischer  * specific language governing permissions and limitations
1822de8995SAndre Fischer  * under the License.
1922de8995SAndre Fischer  *
2022de8995SAndre Fischer  *************************************************************/
2122de8995SAndre Fischer 
22*02c50d82SAndre Fischer #include "precompiled_svx.hxx"
2322de8995SAndre Fischer 
24*02c50d82SAndre Fischer #include "GallerySplitter.hxx"
2522de8995SAndre Fischer 
2622de8995SAndre Fischer 
DBG_NAME(GallerySplitter)27*02c50d82SAndre Fischer DBG_NAME(GallerySplitter)
2822de8995SAndre Fischer 
29*02c50d82SAndre Fischer GallerySplitter::GallerySplitter(
30*02c50d82SAndre Fischer     Window* pParent,
31*02c50d82SAndre Fischer     const ResId& rResId,
32*02c50d82SAndre Fischer     const ::boost::function<void(void)>& rDataChangeFunctor)
33*02c50d82SAndre Fischer     : Splitter( pParent, rResId ),
34*02c50d82SAndre Fischer       maDataChangeFunctor(rDataChangeFunctor)
35*02c50d82SAndre Fischer {
36*02c50d82SAndre Fischer     DBG_CTOR(GallerySplitter,NULL);
37*02c50d82SAndre Fischer }
3822de8995SAndre Fischer 
397a32b0c8SAndre Fischer 
407a32b0c8SAndre Fischer 
417a32b0c8SAndre Fischer 
~GallerySplitter()42*02c50d82SAndre Fischer GallerySplitter::~GallerySplitter()
4322de8995SAndre Fischer {
44*02c50d82SAndre Fischer     DBG_DTOR(GallerySplitter,NULL);
45*02c50d82SAndre Fischer }
46*02c50d82SAndre Fischer 
4722de8995SAndre Fischer 
4822de8995SAndre Fischer 
4922de8995SAndre Fischer 
DataChanged(const DataChangedEvent & rDCEvt)50*02c50d82SAndre Fischer void GallerySplitter::DataChanged( const DataChangedEvent& rDCEvt )
51*02c50d82SAndre Fischer {
52*02c50d82SAndre Fischer     Splitter::DataChanged( rDCEvt );
53*02c50d82SAndre Fischer     if (maDataChangeFunctor)
54*02c50d82SAndre Fischer         maDataChangeFunctor();
55*02c50d82SAndre Fischer }
56