1ca6f8f21SArmin Le Grand /************************************************************** 2ca6f8f21SArmin Le Grand * 3ca6f8f21SArmin Le Grand * Licensed to the Apache Software Foundation (ASF) under one 4ca6f8f21SArmin Le Grand * or more contributor license agreements. See the NOTICE file 5ca6f8f21SArmin Le Grand * distributed with this work for additional information 6ca6f8f21SArmin Le Grand * regarding copyright ownership. The ASF licenses this file 7ca6f8f21SArmin Le Grand * to you under the Apache License, Version 2.0 (the 8ca6f8f21SArmin Le Grand * "License"); you may not use this file except in compliance 9ca6f8f21SArmin Le Grand * with the License. You may obtain a copy of the License at 10ca6f8f21SArmin Le Grand * 11ca6f8f21SArmin Le Grand * http://www.apache.org/licenses/LICENSE-2.0 12ca6f8f21SArmin Le Grand * 13ca6f8f21SArmin Le Grand * Unless required by applicable law or agreed to in writing, 14ca6f8f21SArmin Le Grand * software distributed under the License is distributed on an 15ca6f8f21SArmin Le Grand * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16ca6f8f21SArmin Le Grand * KIND, either express or implied. See the License for the 17ca6f8f21SArmin Le Grand * specific language governing permissions and limitations 18ca6f8f21SArmin Le Grand * under the License. 19ca6f8f21SArmin Le Grand * 20ca6f8f21SArmin Le Grand *************************************************************/ 21ca6f8f21SArmin Le Grand 22ca6f8f21SArmin Le Grand #ifndef _SVX_COLORVALUESET_HXX 23ca6f8f21SArmin Le Grand #define _SVX_COLORVALUESET_HXX 24ca6f8f21SArmin Le Grand 25ca6f8f21SArmin Le Grand #include <svtools/valueset.hxx> 26ca6f8f21SArmin Le Grand #include "svx/svxdllapi.h" 27*c7be74b1SArmin Le Grand #include <boost/shared_ptr.hpp> 28ca6f8f21SArmin Le Grand 29ca6f8f21SArmin Le Grand ////////////////////////////////////////////////////////////////////////////// 30ca6f8f21SArmin Le Grand 31ca6f8f21SArmin Le Grand class XColorList; 32*c7be74b1SArmin Le Grand typedef ::boost::shared_ptr< XColorList > XColorListSharedPtr; 33ca6f8f21SArmin Le Grand 34ca6f8f21SArmin Le Grand class SVX_DLLPUBLIC SvxColorValueSet : public ValueSet 35ca6f8f21SArmin Le Grand { 36ca6f8f21SArmin Le Grand private: 37ca6f8f21SArmin Le Grand protected: 38ca6f8f21SArmin Le Grand public: 39ca6f8f21SArmin Le Grand SvxColorValueSet(Window* pParent, WinBits nWinStyle = WB_ITEMBORDER); 40ca6f8f21SArmin Le Grand SvxColorValueSet(Window* pParent, const ResId& rResId); 41ca6f8f21SArmin Le Grand 42ca6f8f21SArmin Le Grand sal_uInt32 getMaxRowCount() const; 43ca6f8f21SArmin Le Grand sal_uInt32 getEntryEdgeLength() const; 44ca6f8f21SArmin Le Grand sal_uInt32 getColumnCount() const; 45ca6f8f21SArmin Le Grand 46*c7be74b1SArmin Le Grand void addEntriesForXColorList(const XColorListSharedPtr aXColorList, sal_uInt32 nStartIndex = 1); 47ca6f8f21SArmin Le Grand Size layoutAllVisible(sal_uInt32 nEntryCount); 48ca6f8f21SArmin Le Grand Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount); 49ca6f8f21SArmin Le Grand }; 50ca6f8f21SArmin Le Grand 51ca6f8f21SArmin Le Grand ////////////////////////////////////////////////////////////////////////////// 52ca6f8f21SArmin Le Grand 53ca6f8f21SArmin Le Grand #endif // _SVX_COLORVALUESET_HXX 54ca6f8f21SArmin Le Grand 55ca6f8f21SArmin Le Grand // eof 56