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: event.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 ************************************************************************/
33 #ifndef _STRING_HXX //autogen
34 #include <tools/string.hxx>
36 #ifndef _SFXHINT_HXX //autogen
37 #include <bf_svtools/hint.hxx>
40 #include <com/sun/star/uno/Sequence.hxx>
41 #include <com/sun/star/beans/PropertyValue.hpp>
48 //-------------------------------------------------------------------
50 class SfxEventHint
: public SfxHint
53 SfxObjectShell
* pObjShell
;
60 SfxEventHint( USHORT nId
,
62 SfxObjectShell
*pObj
= 0 )
65 _bAddToHistory(FALSE
),
68 SfxEventHint( USHORT nId
, SfxObjectShell
*pObj
= 0 )
74 const String
& GetArgs() const { return _aArgs
;}
76 USHORT
GetEventId() const
79 SfxObjectShell
* GetObjShell() const
83 //-------------------------------------------------------------------
85 class SfxNamedHint
: public SfxHint
88 SfxObjectShell
* _pObjShell
;
96 SfxNamedHint( const String
& rName
,
98 SfxObjectShell
*pObj
= 0 )
99 : _aEventName( rName
),
101 _bAddToHistory( FALSE
),
105 SfxNamedHint( const String
& rName
,
106 SfxObjectShell
*pObj
= 0 )
107 : _aEventName( rName
),
109 _bAddToHistory( FALSE
)
112 const String
& GetArgs() const { return _aArgs
;}
113 const String
& GetName() const { return _aEventName
; }
114 SfxObjectShell
* GetObjShell() const { return _pObjShell
; }
117 class SfxPrintingHint
: public SfxHint
119 PrintDialog
* pDialog
;
122 ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> aOpts
;
125 SfxPrintingHint( sal_Int32 nEvent
, PrintDialog
* pDlg
, Printer
* pPrt
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& rOpts
)
132 SfxPrintingHint( sal_Int32 nEvent
, PrintDialog
* pDlg
, Printer
* pPrt
)
138 Printer
* GetPrinter() const { return pPrinter
; }
139 PrintDialog
* GetPrintDialog() const { return pDialog
; }
140 sal_Int32
GetWhich() const { return nWhich
; }
141 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& GetAdditionalOptions() { return aOpts
; }
144 }//end of namespace binfilter