xref: /AOO41X/main/dbaccess/source/ui/inc/queryview.hxx (revision 2e2212a7c22e96cf6f6fab0dd042c34a45a64bd6)
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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef DBAUI_QUERYVIEW_HXX
24 #define DBAUI_QUERYVIEW_HXX
25 
26 #ifndef DBAUI_JOINDESIGNVIEW_HXX
27 #include "JoinDesignView.hxx"
28 #endif
29 
30 namespace dbaui
31 {
32     class OQueryController;
33     class OQueryView : public OJoinDesignView
34     {
35     public:
36         OQueryView(Window* pParent, OQueryController& _rController,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
37         virtual ~OQueryView();
38 
39         virtual sal_Bool isCutAllowed()     = 0;
40         virtual sal_Bool isPasteAllowed()   = 0;
41         virtual sal_Bool isCopyAllowed()    = 0;
42         virtual void copy()     = 0;
43         virtual void cut()      = 0;
44         virtual void paste()    = 0;
45         // clears the whole query
46         virtual void clear() = 0;
47         // set the view readonly or not
48         virtual void setReadOnly(sal_Bool _bReadOnly) = 0;
49         // set the statement for representation
50         virtual void setStatement(const ::rtl::OUString& _rsStatement) = 0;
51         // returns the current sql statement
52         virtual ::rtl::OUString getStatement() = 0;
53     };
54 }
55 #endif // DBAUI_QUERYVIEW_HXX
56