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