update dev300-m57
[ooovba.git] / svtools / inc / propctrl.hxx
blob371f4a792d4d968ebbac285c9a84d85618820f46
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: propctrl.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include <tools/stream.hxx>
33 #include <vcl/sound.hxx>
34 #include "sbx.hxx"
35 #include "sbxbase.hxx"
36 #include "sbxres.hxx"
37 #include <svtools/brdcst.hxx>
41 #ifndef __PROPED_HXX__
42 #include <proped.hxx>
43 #endif
44 #ifndef _UNO_HXX
45 #include <usr/uno.hxx>
46 #endif
47 #ifndef _USR_SEQU_HXX
48 #include <usr/sequ.hxx>
49 #endif
50 #ifndef __TOOLSIDL_HXX__
51 #include <usr/toolsidl.hxx>
52 #endif
55 class XPropertyEditor
56 : public XInterface
58 public:
60 virtual void setObject(const UsrAny& aToInspectObj) = 0;
62 static Uik getSmartUik() { return(385); }
66 class PropertyEditorControler_Impl;
67 class SvPropertyBox;
68 class Window;
70 class SimplePropertyEditor_Impl :
71 public XPropertyEditor,
72 public XPropertyEditorNavigation,
73 public UsrObject
75 PropertyEditorControler_Impl* pActiveControler;
76 SvPropertyBox* mpPropBox;
77 UsrAny maStartUnoObj;
78 UsrAny maActiveUnoObj;
80 // History der Objekte speichern
81 AnySequence maHistorySeq;
82 WSStringSequence maHistoryNames;
83 UINT32 mnHistoryCount;
84 INT32 mnActualHistoryLevel;
86 // Einfache History via Dummy-Properties
87 BOOL bSimpleHistory;
89 // Methode zum Anlegen/Aktivieren der Controller
90 void showObject( const UsrAny& aToShowObj );
91 String getPath( void );
93 public:
94 // Provisorischer Ctor mit Parent-Window
95 SimplePropertyEditor_Impl( Window *pParent );
96 ~SimplePropertyEditor_Impl();
98 // HACK fuer History-Test
99 void enableSimpleHistory( BOOL bHistory_ ) { bSimpleHistory = bHistory_; }
101 SMART_UNO_DECLARATION(ImplIntrospection,UsrObject);
103 // Methoden von XInterface
104 XInterface * queryInterface( Uik aUik );
105 XIdlClassRef getIdlClass();
107 // Methoden von XPropertyEditor
108 virtual void setObject(const UsrAny& aToInspectObj, const XubString& aObjName);
110 // Methoden von PropertyEditorNavigation
111 virtual void forward(void);
112 virtual void back(void);