1766ce4d0SZheng Fan /************************************************************** 2766ce4d0SZheng Fan * 3766ce4d0SZheng Fan * Licensed to the Apache Software Foundation (ASF) under one 4766ce4d0SZheng Fan * or more contributor license agreements. See the NOTICE file 5766ce4d0SZheng Fan * distributed with this work for additional information 6766ce4d0SZheng Fan * regarding copyright ownership. The ASF licenses this file 7766ce4d0SZheng Fan * to you under the Apache License, Version 2.0 (the 8766ce4d0SZheng Fan * "License"); you may not use this file except in compliance 9766ce4d0SZheng Fan * with the License. You may obtain a copy of the License at 10766ce4d0SZheng Fan * 11766ce4d0SZheng Fan * http://www.apache.org/licenses/LICENSE-2.0 12766ce4d0SZheng Fan * 13766ce4d0SZheng Fan * Unless required by applicable law or agreed to in writing, 14766ce4d0SZheng Fan * software distributed under the License is distributed on an 15766ce4d0SZheng Fan * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16766ce4d0SZheng Fan * KIND, either express or implied. See the License for the 17766ce4d0SZheng Fan * specific language governing permissions and limitations 18766ce4d0SZheng Fan * under the License. 19766ce4d0SZheng Fan * 20766ce4d0SZheng Fan *************************************************************/ 21766ce4d0SZheng Fan 22*37fee4fdSAndre Fischer #include "ParaNumberingPopup.hxx" 23*37fee4fdSAndre Fischer #include "ParaNumberingControl.hxx" 24766ce4d0SZheng Fan #include <boost/bind.hpp> 25*37fee4fdSAndre Fischer #include <unotools/viewoptions.hxx> 26766ce4d0SZheng Fan 27766ce4d0SZheng Fan namespace svx { namespace sidebar { 28766ce4d0SZheng Fan ParaNumberingPopup(Window * pParent,const::boost::function<PopupControl * (PopupContainer *)> & rControlCreator)29*37fee4fdSAndre FischerParaNumberingPopup::ParaNumberingPopup ( 30766ce4d0SZheng Fan Window* pParent, 31766ce4d0SZheng Fan const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator) 32766ce4d0SZheng Fan : Popup( 33766ce4d0SZheng Fan pParent, 34766ce4d0SZheng Fan rControlCreator, 35*37fee4fdSAndre Fischer ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Paragraph Numbering"))) 36*37fee4fdSAndre Fischer { 37766ce4d0SZheng Fan } 38766ce4d0SZheng Fan 39766ce4d0SZheng Fan 40766ce4d0SZheng Fan 41766ce4d0SZheng Fan ~ParaNumberingPopup(void)42*37fee4fdSAndre FischerParaNumberingPopup::~ParaNumberingPopup (void) 43766ce4d0SZheng Fan { 44766ce4d0SZheng Fan } 45766ce4d0SZheng Fan 46766ce4d0SZheng Fan 47766ce4d0SZheng Fan 48766ce4d0SZheng Fan UpdateValueSet()49*37fee4fdSAndre Fischervoid ParaNumberingPopup::UpdateValueSet () 50766ce4d0SZheng Fan { 51766ce4d0SZheng Fan ProvideContainerAndControl(); 52766ce4d0SZheng Fan 53*37fee4fdSAndre Fischer ParaNumberingControl* pControl = dynamic_cast<ParaNumberingControl*>(mpControl.get()); 54766ce4d0SZheng Fan if (pControl != NULL) 55*37fee4fdSAndre Fischer pControl->UpdateValueSet(); 56766ce4d0SZheng Fan } 57*37fee4fdSAndre Fischer 58766ce4d0SZheng Fan 59766ce4d0SZheng Fan 60766ce4d0SZheng Fan } } // end of namespace svx::sidebar 61766ce4d0SZheng Fan 62*37fee4fdSAndre Fischer 63*37fee4fdSAndre Fischer 64*37fee4fdSAndre Fischer 65