1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _NUMPREVW_HXX 25 #define _NUMPREVW_HXX 26 27 28 #include <vcl/window.hxx> 29 30 class SwNumRule; 31 /*-----------------02.12.97 10:31------------------- 32 33 --------------------------------------------------*/ 34 35 class NumberingPreview : public Window 36 { 37 const SwNumRule* pActNum; 38 Font aStdFont; 39 long nPageWidth; 40 const String* pOutlineNames; 41 sal_Bool bPosition; 42 sal_uInt16 nActLevel; 43 44 protected: 45 virtual void Paint( const Rectangle& rRect ); 46 47 public: NumberingPreview(Window * pParent,const ResId & rResId)48 NumberingPreview(Window* pParent, const ResId& rResId ) : 49 Window(pParent, rResId), 50 pActNum(0),nPageWidth(0), pOutlineNames(0), bPosition(sal_False), nActLevel(USHRT_MAX) {} 51 ~NumberingPreview(); 52 SetNumRule(const SwNumRule * pNum)53 void SetNumRule(const SwNumRule* pNum) 54 {pActNum = pNum; Invalidate();}; SetPageWidth(long nPgWidth)55 void SetPageWidth(long nPgWidth) 56 {nPageWidth = nPgWidth;} SetOutlineNames(const String * pNames)57 void SetOutlineNames(const String* pNames) 58 {pOutlineNames = pNames;} SetPositionMode()59 void SetPositionMode() 60 { bPosition = sal_True;} SetLevel(sal_uInt16 nSet)61 void SetLevel(sal_uInt16 nSet) {nActLevel = nSet;} 62 63 }; 64 65 #endif 66 67 68