1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir #ifndef _LABIMP_HXX 24cdf0e10cSrcweir #define _LABIMP_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 28cdf0e10cSrcweir #include <vcl/lstbox.hxx> 29cdf0e10cSrcweir #include <vcl/fixed.hxx> 30cdf0e10cSrcweir #include <svtools/svmedit.hxx> 31cdf0e10cSrcweir #include <vcl/field.hxx> 32cdf0e10cSrcweir #include <svtools/stdctrl.hxx> 33cdf0e10cSrcweir #include <com/sun/star/frame/XController.hpp> 34cdf0e10cSrcweir #include <com/sun/star/text/XTextCursor.hpp> 35cdf0e10cSrcweir #include <com/sun/star/text/XWordCursor.hpp> 36cdf0e10cSrcweir #include <com/sun/star/text/XParagraphCursor.hpp> 37cdf0e10cSrcweir #include <com/sun/star/text/XPageCursor.hpp> 38cdf0e10cSrcweir #include <com/sun/star/text/XSentenceCursor.hpp> 39cdf0e10cSrcweir #include <com/sun/star/awt/XFileDialog.hpp> 40cdf0e10cSrcweir #include <com/sun/star/awt/XTextComponent.hpp> 41cdf0e10cSrcweir #include <com/sun/star/awt/XListBox.hpp> 42cdf0e10cSrcweir #include <com/sun/star/awt/XProgressMonitor.hpp> 43cdf0e10cSrcweir #include <com/sun/star/awt/TextAlign.hpp> 44cdf0e10cSrcweir #include <com/sun/star/awt/XScrollBar.hpp> 45cdf0e10cSrcweir #include <com/sun/star/awt/XVclContainerPeer.hpp> 46cdf0e10cSrcweir #include <com/sun/star/awt/XTabControllerModel.hpp> 47cdf0e10cSrcweir #include <com/sun/star/awt/XMessageBox.hpp> 48cdf0e10cSrcweir #include <com/sun/star/awt/XTextEditField.hpp> 49cdf0e10cSrcweir #include <com/sun/star/awt/Style.hpp> 50cdf0e10cSrcweir #include <com/sun/star/awt/XTimeField.hpp> 51cdf0e10cSrcweir #include <com/sun/star/awt/XVclWindowPeer.hpp> 52cdf0e10cSrcweir #include <com/sun/star/awt/XControlModel.hpp> 53cdf0e10cSrcweir #include <com/sun/star/awt/XSpinField.hpp> 54cdf0e10cSrcweir #include <com/sun/star/awt/XUnoControlContainer.hpp> 55cdf0e10cSrcweir #include <com/sun/star/awt/XTextLayoutConstrains.hpp> 56cdf0e10cSrcweir #include <com/sun/star/awt/XNumericField.hpp> 57cdf0e10cSrcweir #include <com/sun/star/awt/XButton.hpp> 58cdf0e10cSrcweir #include <com/sun/star/awt/XTextArea.hpp> 59cdf0e10cSrcweir #include <com/sun/star/awt/XImageButton.hpp> 60cdf0e10cSrcweir #include <com/sun/star/awt/XFixedText.hpp> 61cdf0e10cSrcweir #include <com/sun/star/awt/XControlContainer.hpp> 62cdf0e10cSrcweir #include <com/sun/star/awt/XDialog.hpp> 63cdf0e10cSrcweir #include <com/sun/star/awt/ScrollBarOrientation.hpp> 64cdf0e10cSrcweir #include <com/sun/star/awt/XRadioButton.hpp> 65cdf0e10cSrcweir #include <com/sun/star/awt/XCurrencyField.hpp> 66cdf0e10cSrcweir #include <com/sun/star/awt/XPatternField.hpp> 67cdf0e10cSrcweir #include <com/sun/star/awt/VclWindowPeerAttribute.hpp> 68cdf0e10cSrcweir #include <com/sun/star/awt/XTabController.hpp> 69cdf0e10cSrcweir #include <com/sun/star/awt/XVclContainer.hpp> 70cdf0e10cSrcweir #include <com/sun/star/awt/XDateField.hpp> 71cdf0e10cSrcweir #include <com/sun/star/awt/XComboBox.hpp> 72cdf0e10cSrcweir #include <com/sun/star/awt/XControl.hpp> 73cdf0e10cSrcweir #include <com/sun/star/awt/XCheckBox.hpp> 74cdf0e10cSrcweir #include <com/sun/star/awt/XLayoutConstrains.hpp> 75cdf0e10cSrcweir #include <com/sun/star/awt/XProgressBar.hpp> 76cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp> 77cdf0e10cSrcweir #include <svtools/svtreebx.hxx> 78cdf0e10cSrcweir #include <label.hxx> 79cdf0e10cSrcweir #include <labimg.hxx> 80cdf0e10cSrcweir 81cdf0e10cSrcweir #define GETFLDVAL(rField) (rField).Denormalize((rField).GetValue(FUNIT_TWIP)) 82cdf0e10cSrcweir #define SETFLDVAL(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP) 83cdf0e10cSrcweir 84cdf0e10cSrcweir class SwNewDBMgr; 85cdf0e10cSrcweir 86cdf0e10cSrcweir class SwLabRec 87cdf0e10cSrcweir { 88cdf0e10cSrcweir public: SwLabRec()89cdf0e10cSrcweir SwLabRec() {} 90cdf0e10cSrcweir 91cdf0e10cSrcweir void SetFromItem( const SwLabItem& rItem ); 92cdf0e10cSrcweir void FillItem( SwLabItem& rItem ) const; 93cdf0e10cSrcweir 94cdf0e10cSrcweir String aMake; 95cdf0e10cSrcweir String aType; 96cdf0e10cSrcweir long lHDist; 97cdf0e10cSrcweir long lVDist; 98cdf0e10cSrcweir long lWidth; 99cdf0e10cSrcweir long lHeight; 100cdf0e10cSrcweir long lLeft; 101cdf0e10cSrcweir long lUpper; 102cdf0e10cSrcweir sal_Int32 nCols; 103cdf0e10cSrcweir sal_Int32 nRows; 104cdf0e10cSrcweir sal_Bool bCont; 105cdf0e10cSrcweir }; 106cdf0e10cSrcweir 107cdf0e10cSrcweir /* -------------------------------------------------- 108cdf0e10cSrcweir 109cdf0e10cSrcweir --------------------------------------------------*/ 110cdf0e10cSrcweir SV_DECL_PTRARR_DEL( SwLabRecs, SwLabRec*, 110, 10 ) 111cdf0e10cSrcweir 112cdf0e10cSrcweir #endif 113cdf0e10cSrcweir 114