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 #ifndef SCDPOUTPUTIMPL_HXX
24 #define SCDPOUTPUTIMPL_HXX
25 
26 #include "document.hxx"
27 
28 #define SC_DP_FRAME_INNER_BOLD		20
29 #define SC_DP_FRAME_OUTER_BOLD		40
30 
31 #define SC_DP_FRAME_COLOR			Color(0,0,0) //( 0x20, 0x40, 0x68 )
32 
33 class OutputImpl
34 {
35 	ScDocument*			mpDoc;
36 	sal_uInt16				mnTab;
37 	::std::vector< bool > mbNeedLineCols;
38 	::std::vector< SCCOL > mnCols;
39 
40 	::std::vector< bool > mbNeedLineRows;
41 	::std::vector< SCROW > mnRows;
42 
43 	SCCOL	mnTabStartCol;
44 	SCROW	mnTabStartRow;
45 	SCCOL	mnMemberStartCol;
46 	SCROW	mnMemberStartRow;
47 
48 	SCCOL	mnDataStartCol;
49 	SCROW	mnDataStartRow;
50 	SCCOL	mnTabEndCol;
51 	SCROW	mnTabEndRow;
52 
53 public:
54 	OutputImpl( ScDocument*	pDoc, sal_uInt16 nTab,
55 		SCCOL	nTabStartCol,
56 		SCROW	nTabStartRow,
57 		SCCOL	nMemberStartCol,
58 		SCROW	nMemberStartRow,
59 		SCCOL nDataStartCol,
60 		SCROW nDataStartRow,
61 		SCCOL nTabEndCol,
62 		SCROW nTabEndRow );
63 	sal_Bool AddRow( SCROW nRow );
64 	sal_Bool AddCol( SCCOL nCol );
65 
66 	void OutputDataArea();
67 	void OutputBlockFrame ( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_Bool bHori = sal_False );
68 
69 };
70 
71 #endif
72