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 _SBSTDOBJ1_HXX
21 #define _SBSTDOBJ1_HXX
23 #include <basic/sbxobj.hxx>
24 #include <vcl/graph.hxx>
25 #include <basic/sbxfac.hxx>
26 #include "basicdllapi.h"
28 //--------------------
30 //--------------------
31 class BASIC_DLLPUBLIC SbStdFactory
: public SbxFactory
36 virtual SbxObject
* CreateObject( const OUString
& rClassName
);
39 //--------------------
41 //--------------------
42 class BASIC_DLLPUBLIC SbStdPicture
: public SbxObject
48 virtual void SFX_NOTIFY( SfxBroadcaster
& rBC
, const TypeId
& rBCType
,
49 const SfxHint
& rHint
, const TypeId
& rHintType
);
51 void PropType( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
52 void PropWidth( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
53 void PropHeight( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
59 virtual SbxVariable
* Find( const OUString
&, SbxClassType
);
61 Graphic
GetGraphic() const { return aGraphic
; }
62 void SetGraphic( const Graphic
& rGrf
) { aGraphic
= rGrf
; }
68 class BASIC_DLLPUBLIC SbStdFont
: public SbxObject
73 sal_Bool bStrikeThrough
;
79 virtual void SFX_NOTIFY( SfxBroadcaster
& rBC
, const TypeId
& rBCType
,
80 const SfxHint
& rHint
, const TypeId
& rHintType
);
82 void PropBold( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
83 void PropItalic( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
84 void PropStrikeThrough( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
85 void PropUnderline( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
86 void PropSize( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
87 void PropName( SbxVariable
* pVar
, SbxArray
* pPar
, sal_Bool bWrite
);
93 virtual SbxVariable
* Find( const OUString
&, SbxClassType
);
95 void SetBold( sal_Bool bB
) { bBold
= bB
; }
96 sal_Bool
IsBold() const { return bBold
; }
97 void SetItalic( sal_Bool bI
) { bItalic
= bI
; }
98 sal_Bool
IsItalic() const { return bItalic
; }
99 void SetStrikeThrough( sal_Bool bS
) { bStrikeThrough
= bS
; }
100 sal_Bool
IsStrikeThrough() const { return bStrikeThrough
; }
101 void SetUnderline( sal_Bool bU
) { bUnderline
= bU
; }
102 sal_Bool
IsUnderline() const { return bUnderline
; }
103 void SetSize( sal_uInt16 nS
) { nSize
= nS
; }
104 sal_uInt16
GetSize() const { return nSize
; }
105 void SetFontName( const OUString
& rName
) { aName
= rName
; }
106 OUString
GetFontName() const { return aName
; }
109 //----------------------
110 // class SbStdClipboard
111 //----------------------
112 class BASIC_DLLPUBLIC SbStdClipboard
: public SbxObject
117 virtual void SFX_NOTIFY( SfxBroadcaster
& rBC
, const TypeId
& rBCType
,
118 const SfxHint
& rHint
, const TypeId
& rHintType
);
120 void MethClear( SbxVariable
* pVar
, SbxArray
* pPar_
, sal_Bool bWrite
);
121 void MethGetData( SbxVariable
* pVar
, SbxArray
* pPar_
, sal_Bool bWrite
);
122 void MethGetFormat( SbxVariable
* pVar
, SbxArray
* pPar_
, sal_Bool bWrite
);
123 void MethGetText( SbxVariable
* pVar
, SbxArray
* pPar_
, sal_Bool bWrite
);
124 void MethSetData( SbxVariable
* pVar
, SbxArray
* pPar_
, sal_Bool bWrite
);
125 void MethSetText( SbxVariable
* pVar
, SbxArray
* pPar_
, sal_Bool bWrite
);
131 virtual SbxVariable
* Find( const OUString
&, SbxClassType
);
136 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */