1*766ce4d0SZheng Fan /************************************************************** 2*766ce4d0SZheng Fan * 3*766ce4d0SZheng Fan * Licensed to the Apache Software Foundation (ASF) under one 4*766ce4d0SZheng Fan * or more contributor license agreements. See the NOTICE file 5*766ce4d0SZheng Fan * distributed with this work for additional information 6*766ce4d0SZheng Fan * regarding copyright ownership. The ASF licenses this file 7*766ce4d0SZheng Fan * to you under the Apache License, Version 2.0 (the 8*766ce4d0SZheng Fan * "License"); you may not use this file except in compliance 9*766ce4d0SZheng Fan * with the License. You may obtain a copy of the License at 10*766ce4d0SZheng Fan * 11*766ce4d0SZheng Fan * http://www.apache.org/licenses/LICENSE-2.0 12*766ce4d0SZheng Fan * 13*766ce4d0SZheng Fan * Unless required by applicable law or agreed to in writing, 14*766ce4d0SZheng Fan * software distributed under the License is distributed on an 15*766ce4d0SZheng Fan * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*766ce4d0SZheng Fan * KIND, either express or implied. See the License for the 17*766ce4d0SZheng Fan * specific language governing permissions and limitations 18*766ce4d0SZheng Fan * under the License. 19*766ce4d0SZheng Fan * 20*766ce4d0SZheng Fan *************************************************************/ 21*766ce4d0SZheng Fan 22*766ce4d0SZheng Fan #include "ParaBulletsPopup.hxx" 23*766ce4d0SZheng Fan #include "ParaBulletsControl.hxx" 24*766ce4d0SZheng Fan #include <boost/bind.hpp> 25*766ce4d0SZheng Fan #include <unotools/viewoptions.hxx> 26*766ce4d0SZheng Fan 27*766ce4d0SZheng Fan namespace svx { namespace sidebar { 28*766ce4d0SZheng Fan 29*766ce4d0SZheng Fan ParaBulletsPopup::ParaBulletsPopup ( 30*766ce4d0SZheng Fan Window* pParent, 31*766ce4d0SZheng Fan const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator) 32*766ce4d0SZheng Fan : Popup( 33*766ce4d0SZheng Fan pParent, 34*766ce4d0SZheng Fan rControlCreator, 35*766ce4d0SZheng Fan ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Paragraph Bullets"))) 36*766ce4d0SZheng Fan { 37*766ce4d0SZheng Fan } 38*766ce4d0SZheng Fan 39*766ce4d0SZheng Fan 40*766ce4d0SZheng Fan 41*766ce4d0SZheng Fan 42*766ce4d0SZheng Fan ParaBulletsPopup::~ParaBulletsPopup (void) 43*766ce4d0SZheng Fan { 44*766ce4d0SZheng Fan } 45*766ce4d0SZheng Fan 46*766ce4d0SZheng Fan 47*766ce4d0SZheng Fan 48*766ce4d0SZheng Fan 49*766ce4d0SZheng Fan void ParaBulletsPopup::UpdateValueSet () 50*766ce4d0SZheng Fan { 51*766ce4d0SZheng Fan ProvideContainerAndControl(); 52*766ce4d0SZheng Fan 53*766ce4d0SZheng Fan ParaBulletsControl* pControl = dynamic_cast<ParaBulletsControl*>(mpControl.get()); 54*766ce4d0SZheng Fan if (pControl != NULL) 55*766ce4d0SZheng Fan pControl->UpdateValueSet(); 56*766ce4d0SZheng Fan } 57*766ce4d0SZheng Fan 58*766ce4d0SZheng Fan 59*766ce4d0SZheng Fan 60*766ce4d0SZheng Fan } } // end of namespace svx::sidebar 61*766ce4d0SZheng Fan 62*766ce4d0SZheng Fan 63*766ce4d0SZheng Fan 64