LibreOffice Module framework (master) 1
framelistanalyzer.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#ifndef INCLUDED_FRAMEWORK_FRAMELISTANALYZER_HXX
21#define INCLUDED_FRAMEWORK_FRAMELISTANALYZER_HXX
22
23#include <config_options.h>
24#include <framework/fwkdllapi.h>
26#include <com/sun/star/uno/Reference.hxx>
27
28#include <vector>
29
30namespace com::sun::star::frame { class XFrame; }
31namespace com::sun::star::frame { class XFramesSupplier; }
32
39{
40 Model = 1,
41 Help = 2,
43 Hidden = 8,
44 All = 15,
45 Zombie = 32768 // use it for special test scenarios only!!!
46};
47namespace o3tl {
48 template<> struct typed_flags<FrameAnalyzerFlags> : is_typed_flags<FrameAnalyzerFlags, 32768+15> {};
49}
50
51
52namespace framework{
53
61class UNLESS_MERGELIBS(FWK_DLLPUBLIC) FrameListAnalyzer final
62{
63
64 // types
65
66 public:
67
68 // member
69
70 public:
71
73 const css::uno::Reference< css::frame::XFramesSupplier >& m_xSupplier;
74
76 const css::uno::Reference< css::frame::XFrame >& m_xReferenceFrame;
77
80 FrameAnalyzerFlags m_eDetectMode;
81
85 std::vector< css::uno::Reference< css::frame::XFrame > > m_lModelFrames;
86
91 std::vector< css::uno::Reference< css::frame::XFrame > > m_lOtherVisibleFrames;
92
97 std::vector< css::uno::Reference< css::frame::XFrame > > m_lOtherHiddenFrames;
98
122 css::uno::Reference< css::frame::XFrame > m_xHelp;
123
148 css::uno::Reference< css::frame::XFrame > m_xBackingComponent;
149
152 bool m_bReferenceIsHidden;
153
157 bool m_bReferenceIsHelp;
158
162 bool m_bReferenceIsBacking;
163
164
165 // interface
166
167 public:
168
185 FrameListAnalyzer( const css::uno::Reference< css::frame::XFramesSupplier >& xSupplier ,
186 const css::uno::Reference< css::frame::XFrame >& xReferenceFrame ,
187 FrameAnalyzerFlags eDetectMode );
188 ~FrameListAnalyzer();
189
190
191 // helper
192
193 private:
194
195 void impl_analyze();
196
197
198}; // class FrameListAnalyzer
199
200} // namespace framework
201
202#endif // INCLUDED_FRAMEWORK_FRAMELISTANALYZER_HXX
203
204/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FrameAnalyzerFlags
These enums can be combined as flags to enable/disable special search algorithm during analyze phase.