LibreOffice Module sd (master) 1
tpaction.hxx
Go to the documentation of this file.
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#pragma once
21
22#include <com/sun/star/presentation/ClickAction.hpp>
23#include <sfx2/tabdlg.hxx>
24#include <sfx2/basedlgs.hxx>
25#include <svx/xtable.hxx>
26#include <unotools/resmgr.hxx>
27#include "sdtreelb.hxx"
28
29#include <vector>
30
31namespace sd {
32 class View;
33}
34class SdDrawDocument;
35
40{
41public:
42 SdActionDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View const * pView);
43};
44
48class SdTPAction final : public SfxTabPage
49{
50private:
51 const ::sd::View* mpView;
54
56 std::vector<css::presentation::ClickAction> maCurrentActions;
57 OUString aLastFile;
58 ::std::vector< tools::Long > aVerbVector;
59
60 std::unique_ptr<weld::ComboBox> m_xLbAction;
61 std::unique_ptr<weld::Label> m_xFtTree; // jump destination controls
62 std::unique_ptr<SdPageObjsTLV> m_xLbTree;
63 std::unique_ptr<SdPageObjsTLV> m_xLbTreeDocument;
64 std::unique_ptr<weld::TreeView> m_xLbOLEAction;
65 std::unique_ptr<weld::Frame> m_xFrame;
66 std::unique_ptr<weld::Entry> m_xEdtSound;
67 std::unique_ptr<weld::Entry> m_xEdtBookmark;
68 std::unique_ptr<weld::Entry> m_xEdtDocument;
69 std::unique_ptr<weld::Entry> m_xEdtProgram;
70 std::unique_ptr<weld::Entry> m_xEdtMacro;
71 std::unique_ptr<weld::Button> m_xBtnSearch;
72 std::unique_ptr<weld::Button> m_xBtnSeek;
73
74 DECL_LINK( ClickSearchHdl, weld::Button&, void );
75 DECL_LINK( ClickActionHdl, weld::ComboBox&, void );
76 DECL_LINK( SelectTreeHdl, weld::TreeView&, void );
77 DECL_LINK( CheckFileHdl, weld::Widget&, void );
78
79 void UpdateTree();
80 void OpenFileDialog();
81 css::presentation::ClickAction GetActualClickAction();
82 void SetActualClickAction( css::presentation::ClickAction eCA );
83 void SetEditText( OUString const & rStr );
84 OUString GetEditText( bool bURL = false );
85public:
86 SD_DLLPUBLIC static TranslateId GetClickActionSdResId(css::presentation::ClickAction eCA);
87
88 SdTPAction(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
89 virtual ~SdTPAction() override;
90
91 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& );
92
93 virtual bool FillItemSet( SfxItemSet* ) override;
94 virtual void Reset( const SfxItemSet * ) override;
95
96 virtual void ActivatePage( const SfxItemSet& rSet ) override;
97 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
98
99 void Construct();
100
101 void SetView( const ::sd::View* pSdView );
102};
103
104/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Effect-SingleTab-Dialog.
Definition: tpaction.hxx:40
SdActionDlg(weld::Window *pParent, const SfxItemSet *pAttr, ::sd::View const *pView)
Constructor of the Tab dialog: appends the pages to the dialog.
Definition: tpaction.cxx:72
Interaction-Tab-Page.
Definition: tpaction.hxx:49
void OpenFileDialog()
Definition: tpaction.cxx:357
void SetView(const ::sd::View *pSdView)
Definition: tpaction.cxx:132
virtual ~SdTPAction() override
Definition: tpaction.cxx:128
std::unique_ptr< SdPageObjsTLV > m_xLbTree
Definition: tpaction.hxx:62
void UpdateTree()
Definition: tpaction.cxx:348
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpaction.cxx:331
css::presentation::ClickAction GetActualClickAction()
Definition: tpaction.cxx:660
std::unique_ptr< weld::Label > m_xFtTree
Definition: tpaction.hxx:61
std::unique_ptr< weld::Entry > m_xEdtMacro
Definition: tpaction.hxx:70
std::unique_ptr< weld::Button > m_xBtnSearch
Definition: tpaction.hxx:71
std::unique_ptr< weld::Frame > m_xFrame
Definition: tpaction.hxx:65
std::unique_ptr< weld::Entry > m_xEdtProgram
Definition: tpaction.hxx:69
::std::vector< tools::Long > aVerbVector
Definition: tpaction.hxx:58
DECL_LINK(SelectTreeHdl, weld::TreeView &, void)
void Construct()
Definition: tpaction.cxx:154
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &)
Definition: tpaction.cxx:343
std::unique_ptr< weld::ComboBox > m_xLbAction
Definition: tpaction.hxx:60
std::unique_ptr< SdPageObjsTLV > m_xLbTreeDocument
Definition: tpaction.hxx:63
XColorListRef pColList
Definition: tpaction.hxx:53
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpaction.cxx:335
std::unique_ptr< weld::Entry > m_xEdtBookmark
Definition: tpaction.hxx:67
OUString aLastFile
Definition: tpaction.hxx:57
SdTPAction(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Action-TabPage.
Definition: tpaction.cxx:88
DECL_LINK(ClickSearchHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xBtnSeek
Definition: tpaction.hxx:72
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpaction.cxx:241
virtual void Reset(const SfxItemSet *) override
Definition: tpaction.cxx:284
std::unique_ptr< weld::Entry > m_xEdtSound
Definition: tpaction.hxx:66
void SetActualClickAction(css::presentation::ClickAction eCA)
Definition: tpaction.cxx:669
OUString GetEditText(bool bURL=false)
Definition: tpaction.cxx:737
bool bTreeUpdated
Definition: tpaction.hxx:55
void SetEditText(OUString const &rStr)
Definition: tpaction.cxx:678
SdDrawDocument * mpDoc
Definition: tpaction.hxx:52
std::vector< css::presentation::ClickAction > maCurrentActions
Definition: tpaction.hxx:56
static SD_DLLPUBLIC TranslateId GetClickActionSdResId(css::presentation::ClickAction eCA)
Definition: unomodel.cxx:150
std::unique_ptr< weld::TreeView > m_xLbOLEAction
Definition: tpaction.hxx:64
std::unique_ptr< weld::Entry > m_xEdtDocument
Definition: tpaction.hxx:68
DECL_LINK(CheckFileHdl, weld::Widget &, void)
DECL_LINK(ClickActionHdl, weld::ComboBox &, void)
const ::sd::View * mpView
Definition: tpaction.hxx:51
#define SD_DLLPUBLIC
Definition: sddllapi.h:27
DeactivateRC