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 :
20 : #include <svl/cjkoptions.hxx>
21 : #include <svx/flagsdef.hxx>
22 : #include "cuires.hrc"
23 : #include "sdrcelldlg.hxx"
24 : #include "dialmgr.hxx"
25 : #include "cuitabarea.hxx"
26 : #include "svx/svdmodel.hxx"
27 : #include "border.hxx"
28 : #include <svx/dialogs.hrc> // RID_SVXPAGE_...
29 :
30 0 : SvxFormatCellsDialog::SvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel )
31 0 : : SfxTabDialog ( pParent, CUI_RES( RID_SVX_FORMAT_CELLS_DLG ), pAttr )
32 : , mrOutAttrs ( *pAttr )
33 : , mpColorTab ( pModel->GetColorList() )
34 : , mpGradientList ( pModel->GetGradientList() )
35 : , mpHatchingList ( pModel->GetHatchList() )
36 0 : , mpBitmapList ( pModel->GetBitmapList() )
37 :
38 : {
39 0 : FreeResource();
40 :
41 0 : AddTabPage( RID_SVXPAGE_CHAR_NAME );
42 0 : AddTabPage( RID_SVXPAGE_CHAR_EFFECTS );
43 0 : AddTabPage( RID_SVXPAGE_BORDER );
44 0 : AddTabPage( RID_SVXPAGE_AREA );
45 0 : }
46 :
47 0 : SvxFormatCellsDialog::~SvxFormatCellsDialog()
48 : {
49 0 : }
50 :
51 0 : void SvxFormatCellsDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
52 : {
53 0 : switch( nId )
54 : {
55 : case RID_SVXPAGE_AREA:
56 0 : ( (SvxAreaTabPage&) rPage ).SetColorList( mpColorTab );
57 0 : ( (SvxAreaTabPage&) rPage ).SetGradientList( mpGradientList );
58 0 : ( (SvxAreaTabPage&) rPage ).SetHatchingList( mpHatchingList );
59 0 : ( (SvxAreaTabPage&) rPage ).SetBitmapList( mpBitmapList );
60 0 : ( (SvxAreaTabPage&) rPage ).SetPageType( PT_AREA );
61 0 : ( (SvxAreaTabPage&) rPage ).SetDlgType( 1 );
62 0 : ( (SvxAreaTabPage&) rPage ).SetPos( 0 );
63 0 : ( (SvxAreaTabPage&) rPage ).Construct();
64 0 : ( (SvxAreaTabPage&) rPage ).ActivatePage( mrOutAttrs );
65 :
66 0 : break;
67 :
68 : default:
69 0 : SfxTabDialog::PageCreated( nId, rPage );
70 0 : break;
71 : }
72 0 : }
73 :
74 0 : void SvxFormatCellsDialog::Apply()
75 : {
76 3 : }
77 :
78 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|