1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_BASIC_INC_SBSTDOBJ_HXX
21 #define INCLUDED_BASIC_INC_SBSTDOBJ_HXX
23 #include <basic/sbxobj.hxx>
24 #include <vcl/graph.hxx>
25 #include <basic/sbxfac.hxx>
26 #include <basic/basicdllapi.h>
29 class BASIC_DLLPUBLIC SbStdFactory
: public SbxFactory
34 virtual SbxObject
* CreateObject( const OUString
& rClassName
) SAL_OVERRIDE
;
38 class BASIC_DLLPUBLIC SbStdPicture
: public SbxObject
43 virtual ~SbStdPicture();
44 virtual void SFX_NOTIFY( SfxBroadcaster
& rBC
, const TypeId
& rBCType
,
45 const SfxHint
& rHint
, const TypeId
& rHintType
) SAL_OVERRIDE
;
47 void PropType( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
48 void PropWidth( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
49 void PropHeight( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
55 virtual SbxVariable
* Find( const OUString
&, SbxClassType
) SAL_OVERRIDE
;
57 Graphic
GetGraphic() const { return aGraphic
; }
58 void SetGraphic( const Graphic
& rGrf
) { aGraphic
= rGrf
; }
62 class BASIC_DLLPUBLIC SbStdFont
: public SbxObject
73 virtual void SFX_NOTIFY( SfxBroadcaster
& rBC
, const TypeId
& rBCType
,
74 const SfxHint
& rHint
, const TypeId
& rHintType
) SAL_OVERRIDE
;
76 void PropBold( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
77 void PropItalic( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
78 void PropStrikeThrough( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
79 void PropUnderline( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
80 void PropSize( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
81 void PropName( SbxVariable
* pVar
, SbxArray
* pPar
, bool bWrite
);
87 virtual SbxVariable
* Find( const OUString
&, SbxClassType
) SAL_OVERRIDE
;
89 void SetBold( bool bB
) { bBold
= bB
; }
90 bool IsBold() const { return bBold
; }
91 void SetItalic( bool bI
) { bItalic
= bI
; }
92 bool IsItalic() const { return bItalic
; }
93 void SetStrikeThrough( bool bS
) { bStrikeThrough
= bS
; }
94 bool IsStrikeThrough() const { return bStrikeThrough
; }
95 void SetUnderline( bool bU
) { bUnderline
= bU
; }
96 bool IsUnderline() const { return bUnderline
; }
97 void SetSize( sal_uInt16 nS
) { nSize
= nS
; }
98 sal_uInt16
GetSize() const { return nSize
; }
99 void SetFontName( const OUString
& rName
) { aName
= rName
; }
100 OUString
GetFontName() const { return aName
; }
103 // class SbStdClipboard
104 class BASIC_DLLPUBLIC SbStdClipboard
: public SbxObject
108 virtual ~SbStdClipboard();
109 virtual void SFX_NOTIFY( SfxBroadcaster
& rBC
, const TypeId
& rBCType
,
110 const SfxHint
& rHint
, const TypeId
& rHintType
) SAL_OVERRIDE
;
112 static void MethClear( SbxVariable
* pVar
, SbxArray
* pPar_
, bool bWrite
);
113 static void MethGetData( SbxVariable
* pVar
, SbxArray
* pPar_
, bool bWrite
);
114 static void MethGetFormat( SbxVariable
* pVar
, SbxArray
* pPar_
, bool bWrite
);
115 static void MethGetText( SbxVariable
* pVar
, SbxArray
* pPar_
, bool bWrite
);
116 static void MethSetData( SbxVariable
* pVar
, SbxArray
* pPar_
, bool bWrite
);
117 static void MethSetText( SbxVariable
* pVar
, SbxArray
* pPar_
, bool bWrite
);
123 virtual SbxVariable
* Find( const OUString
&, SbxClassType
) SAL_OVERRIDE
;
126 #endif // INCLUDED_BASIC_INC_SBSTDOBJ_HXX
128 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */