basicmanagerrepository.hxx (234bd5c5) basicmanagerrepository.hxx (7fef15a0)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 10 unchanged lines hidden (view full) ---

19 *
20 *************************************************************/
21
22
23
24#ifndef BASICMANAGERREPOSITORY_HXX
25#define BASICMANAGERREPOSITORY_HXX
26
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 10 unchanged lines hidden (view full) ---

19 *
20 *************************************************************/
21
22
23
24#ifndef BASICMANAGERREPOSITORY_HXX
25#define BASICMANAGERREPOSITORY_HXX
26
27#include "basic/basicdllapi.h"
28
27/** === begin UNO includes === **/
28#include <com/sun/star/frame/XModel.hpp>
29#include <com/sun/star/embed/XStorage.hpp>
30/** === end UNO includes === **/
31
32class BasicManager;
33
34//........................................................................
35namespace basic
36{
37//........................................................................
38
39 //====================================================================
40 //= BasicManagerRepository
41 //====================================================================
42 /** specifies a callback for instances which are interested in BasicManagers
43 created by the BasicManagerRepository.
44 */
29/** === begin UNO includes === **/
30#include <com/sun/star/frame/XModel.hpp>
31#include <com/sun/star/embed/XStorage.hpp>
32/** === end UNO includes === **/
33
34class BasicManager;
35
36//........................................................................
37namespace basic
38{
39//........................................................................
40
41 //====================================================================
42 //= BasicManagerRepository
43 //====================================================================
44 /** specifies a callback for instances which are interested in BasicManagers
45 created by the BasicManagerRepository.
46 */
45 class SAL_NO_VTABLE BasicManagerCreationListener
47 class BASIC_DLLPUBLIC SAL_NO_VTABLE BasicManagerCreationListener
46 {
47 public:
48 /** is called when a BasicManager has been created
49
50 @param _rxForDocument
51 denotes the document for which the BasicManager has been created. If this is <NULL/>,
52 then the BasicManager is the application-wide BasicManager.
53

--- 5 unchanged lines hidden (view full) ---

59 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxForDocument,
60 BasicManager& _rBasicManager
61 ) = 0;
62 };
63
64 //====================================================================
65 //= BasicManagerRepository
66 //====================================================================
48 {
49 public:
50 /** is called when a BasicManager has been created
51
52 @param _rxForDocument
53 denotes the document for which the BasicManager has been created. If this is <NULL/>,
54 then the BasicManager is the application-wide BasicManager.
55

--- 5 unchanged lines hidden (view full) ---

61 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxForDocument,
62 BasicManager& _rBasicManager
63 ) = 0;
64 };
65
66 //====================================================================
67 //= BasicManagerRepository
68 //====================================================================
67 class BasicManagerRepository
69 class BASIC_DLLPUBLIC BasicManagerRepository
68 {
69 public:
70 /** returns the BasicManager belonging to the given document
71
72 If the BasicManager does not yet exist, it is created. In this case, if the application's
73 BasicManager does not yet exist, it is also created. This is necessary since
74 the application's BasicManager acts as parent for all document's BasicManagers.
75

--- 67 unchanged lines hidden ---
70 {
71 public:
72 /** returns the BasicManager belonging to the given document
73
74 If the BasicManager does not yet exist, it is created. In this case, if the application's
75 BasicManager does not yet exist, it is also created. This is necessary since
76 the application's BasicManager acts as parent for all document's BasicManagers.
77

--- 67 unchanged lines hidden ---