cid#1607171 Data race condition
[LibreOffice.git] / sd / source / ui / inc / prltempl.hxx
blobea1ef022b882b533862969fedcb23afb94a8f21d
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 #pragma once
22 #include <sfx2/tabdlg.hxx>
23 #include <svx/xtable.hxx>
25 #include <prlayout.hxx>
27 class SfxObjectShell;
28 class SfxStyleSheetBase;
29 class SfxStyleSheetBasePool;
31 /**
32 * Template-Tab-Dialog
34 class SdPresLayoutTemplateDlg final : public SfxTabDialogController
36 private:
37 const SfxObjectShell* mpDocShell;
39 XColorListRef pColorTab;
40 XGradientListRef pGradientList;
41 XHatchListRef pHatchingList;
42 XBitmapListRef pBitmapList;
43 XPatternListRef pPatternList;
44 XDashListRef pDashList;
45 XLineEndListRef pLineEndList;
47 PresentationObjects ePO;
49 virtual void PageCreated(const OUString& rId, SfxTabPage &rPage) override;
51 // for mapping with the new SvxNumBulletItem
52 SfxItemSet aInputSet;
53 std::unique_ptr<SfxItemSet> pOutSet;
55 sal_uInt16 GetOutlineLevel() const;
57 public:
58 SdPresLayoutTemplateDlg(SfxObjectShell const * pDocSh, weld::Window* pParent, bool bBackground, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool);
59 virtual ~SdPresLayoutTemplateDlg() override;
61 const SfxItemSet* GetOutputItemSet() const;
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */