fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / dlg / dlgchar.cxx
blob93821a3c9eb44b5fcf4445e83a934c506017940e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <svx/dialogs.hrc>
21 #include <editeng/flstitem.hxx>
22 #include <svx/flagsdef.hxx>
23 #include <sfx2/objsh.hxx>
25 #include "sdresid.hxx"
26 #include "dlg_char.hxx"
27 #include <svx/svxids.hrc>
28 #include <svl/intitem.hxx>
30 /**
31 * Constructor of tab dialog: append pages to dialog
33 SdCharDlg::SdCharDlg( Window* pParent, const SfxItemSet* pAttr,
34 const SfxObjectShell* pDocShell ) :
35 SfxTabDialog ( pParent, SdResId( TAB_CHAR ), pAttr ),
36 rDocShell ( *pDocShell )
38 FreeResource();
40 AddTabPage( RID_SVXPAGE_CHAR_NAME );
41 AddTabPage( RID_SVXPAGE_CHAR_EFFECTS );
42 AddTabPage( RID_SVXPAGE_CHAR_POSITION );
45 // -----------------------------------------------------------------------
47 void SdCharDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
49 SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
50 switch( nId )
52 case RID_SVXPAGE_CHAR_NAME:
54 SvxFontListItem aItem(*( (const SvxFontListItem*)
55 ( rDocShell.GetItem( SID_ATTR_CHAR_FONTLIST) ) ) );
57 aSet.Put (SvxFontListItem( aItem.GetFontList(), SID_ATTR_CHAR_FONTLIST));
58 rPage.PageCreated(aSet);
60 break;
62 case RID_SVXPAGE_CHAR_EFFECTS:
63 aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP));
64 rPage.PageCreated(aSet);
65 break;
67 default:
68 break;
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */