1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: propctrl.hxx,v $
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>
35 #include "sbxbase.hxx"
37 #include <svtools/brdcst.hxx>
41 #ifndef __PROPED_HXX__
45 #include <usr/uno.hxx>
48 #include <usr/sequ.hxx>
50 #ifndef __TOOLSIDL_HXX__
51 #include <usr/toolsidl.hxx>
60 virtual void setObject(const UsrAny& aToInspectObj) = 0;
62 static Uik getSmartUik() { return(385); }
66 class PropertyEditorControler_Impl
;
70 class SimplePropertyEditor_Impl
:
71 public XPropertyEditor
,
72 public XPropertyEditorNavigation
,
75 PropertyEditorControler_Impl
* pActiveControler
;
76 SvPropertyBox
* mpPropBox
;
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
89 // Methode zum Anlegen/Aktivieren der Controller
90 void showObject( const UsrAny
& aToShowObj
);
91 String
getPath( void );
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);