Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef INCLUDED_SW_SOURCE_UI_INC_SWTABLEREP_HXX
20 : #define INCLUDED_SW_SOURCE_UI_INC_SWTABLEREP_HXX
21 :
22 : #include <sfx2/tabdlg.hxx>
23 : #include "swdllapi.h"
24 : #include "swtypes.hxx"
25 :
26 : class SwTabCols;
27 : struct TColumn;
28 : class SW_DLLPUBLIC SwTableRep
29 : {
30 : TColumn* pTColumns;
31 :
32 : SwTwips nTblWidth;
33 : SwTwips nSpace;
34 : SwTwips nLeftSpace;
35 : SwTwips nRightSpace;
36 : sal_uInt16 nAlign;
37 : sal_uInt16 nColCount;
38 : sal_uInt16 nAllCols;
39 : sal_uInt16 nWidthPercent;
40 : sal_Bool bLineSelected : 1;
41 : sal_Bool bWidthChanged : 1;
42 : sal_Bool bColsChanged : 1;
43 :
44 : public:
45 : SwTableRep( const SwTabCols& rTabCol );
46 : ~SwTableRep();
47 :
48 : sal_Bool FillTabCols( SwTabCols& rTabCol ) const;
49 :
50 0 : SwTwips GetLeftSpace() const {return nLeftSpace;}
51 0 : void SetLeftSpace(SwTwips nSet) {nLeftSpace = nSet;}
52 :
53 0 : SwTwips GetRightSpace() const {return nRightSpace;}
54 0 : void SetRightSpace(SwTwips nSet) {nRightSpace = nSet;}
55 :
56 0 : SwTwips GetWidth() const {return nTblWidth;}
57 0 : void SetWidth(SwTwips nSet) {nTblWidth = nSet;}
58 :
59 0 : sal_uInt16 GetWidthPercent() const {return nWidthPercent;}
60 0 : void SetWidthPercent(sal_uInt16 nSet) {nWidthPercent = nSet;}
61 :
62 0 : sal_uInt16 GetAlign() const {return nAlign;}
63 0 : void SetAlign(sal_uInt16 nSet) {nAlign = nSet;}
64 :
65 0 : sal_uInt16 GetColCount() const {return nColCount;}
66 0 : sal_uInt16 GetAllColCount() const {return nAllCols;}
67 :
68 0 : sal_Bool HasColsChanged() const {return bColsChanged;}
69 0 : void SetColsChanged() {bColsChanged = sal_True;}
70 :
71 0 : sal_Bool HasWidthChanged() const {return bWidthChanged;}
72 0 : void SetWidthChanged() {bWidthChanged = sal_True;}
73 :
74 0 : sal_Bool IsLineSelected() const {return bLineSelected;}
75 0 : void SetLineSelected(sal_Bool bSet) {bLineSelected = bSet;}
76 :
77 0 : SwTwips GetSpace() const { return nSpace;}
78 0 : void SetSpace(SwTwips nSet) {nSpace = nSet;}
79 :
80 0 : TColumn* GetColumns() const {return pTColumns;}
81 : };
82 : #endif
83 :
84 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|