18dcb2a10SAndre Fischer /************************************************************** 2*62762835Smseidel * 38dcb2a10SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 48dcb2a10SAndre Fischer * or more contributor license agreements. See the NOTICE file 58dcb2a10SAndre Fischer * distributed with this work for additional information 68dcb2a10SAndre Fischer * regarding copyright ownership. The ASF licenses this file 78dcb2a10SAndre Fischer * to you under the Apache License, Version 2.0 (the 88dcb2a10SAndre Fischer * "License"); you may not use this file except in compliance 98dcb2a10SAndre Fischer * with the License. You may obtain a copy of the License at 10*62762835Smseidel * 118dcb2a10SAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 12*62762835Smseidel * 138dcb2a10SAndre Fischer * Unless required by applicable law or agreed to in writing, 148dcb2a10SAndre Fischer * software distributed under the License is distributed on an 158dcb2a10SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 168dcb2a10SAndre Fischer * KIND, either express or implied. See the License for the 178dcb2a10SAndre Fischer * specific language governing permissions and limitations 188dcb2a10SAndre Fischer * under the License. 19*62762835Smseidel * 208dcb2a10SAndre Fischer *************************************************************/ 218dcb2a10SAndre Fischer 22*62762835Smseidel 23*62762835Smseidel 248dcb2a10SAndre Fischer #include "AreaTransparencyGradientPopup.hxx" 258dcb2a10SAndre Fischer #include "AreaTransparencyGradientControl.hxx" 268dcb2a10SAndre Fischer 278dcb2a10SAndre Fischer 288dcb2a10SAndre Fischer namespace svx { namespace sidebar { 298dcb2a10SAndre Fischer AreaTransparencyGradientPopup(Window * pParent,const::boost::function<PopupControl * (PopupContainer *)> & rControlCreator)308dcb2a10SAndre FischerAreaTransparencyGradientPopup::AreaTransparencyGradientPopup ( 31*62762835Smseidel Window* pParent, 32*62762835Smseidel const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator) 33*62762835Smseidel : Popup( 34*62762835Smseidel pParent, 35*62762835Smseidel rControlCreator, 36*62762835Smseidel ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Transparency and Gradient"))) 378dcb2a10SAndre Fischer { 388dcb2a10SAndre Fischer } 398dcb2a10SAndre Fischer 408dcb2a10SAndre Fischer 418dcb2a10SAndre Fischer 428dcb2a10SAndre Fischer ~AreaTransparencyGradientPopup(void)438dcb2a10SAndre FischerAreaTransparencyGradientPopup::~AreaTransparencyGradientPopup (void) 448dcb2a10SAndre Fischer { 458dcb2a10SAndre Fischer } 468dcb2a10SAndre Fischer 478dcb2a10SAndre Fischer 488dcb2a10SAndre Fischer 498dcb2a10SAndre Fischer Rearrange(XFillFloatTransparenceItem * pItem)508dcb2a10SAndre Fischervoid AreaTransparencyGradientPopup::Rearrange (XFillFloatTransparenceItem* pItem) 518dcb2a10SAndre Fischer { 52*62762835Smseidel ProvideContainerAndControl(); 538dcb2a10SAndre Fischer 54*62762835Smseidel AreaTransparencyGradientControl* pControl = dynamic_cast<AreaTransparencyGradientControl*>(mpControl.get()); 55*62762835Smseidel if (pControl != NULL) 56*62762835Smseidel pControl->Rearrange(pItem); 578dcb2a10SAndre Fischer } 588dcb2a10SAndre Fischer 598dcb2a10SAndre Fischer 608dcb2a10SAndre Fischer } } // end of namespace svx::sidebar 614e8031e0SArmin Le Grand 624e8031e0SArmin Le Grand // eof 63