update dev300-m58
[ooovba.git] / xmlsecurity / source / dialogs / resourcemanager.hxx
blob7708d857c4b0c8a5df067dd2a8c390a0b501abf7
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: resourcemanager.hxx,v $
10 * $Revision: 1.8 $
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 ************************************************************************/
31 #ifndef _RESOURCEMANAGER_HXX
32 #define _RESOURCEMANAGER_HXX
34 #include <tools/resmgr.hxx>
35 #include <tools/datetime.hxx>
36 #include <com/sun/star/util/DateTime.hpp>
37 #include <com/sun/star/uno/Sequence.hxx>
39 class FixedImage;
40 class FixedInfo;
41 class Control;
42 class LocaleDataWrapper;
44 namespace XmlSec
46 ResMgr* GetResMgr( void );
48 const LocaleDataWrapper& GetLocaleData( void );
49 DateTime GetDateTime( const ::com::sun::star::util::DateTime& _rDT );
50 String GetDateTimeString( const ::com::sun::star::util::DateTime& _rDT );
51 String GetDateTimeString( const rtl::OUString& _rDate, const rtl::OUString& _rTime );
52 String GetDateString( const ::com::sun::star::util::DateTime& _rDT );
54 String GetPureContent( const String& _rRawString,
55 const char* _pCommaReplacement = ", ",
56 bool _bPreserveId = false ); // strips "CN=" and so from string
57 String GetContentPart( const String& _rRawString, const String& _rPartId );
58 String GetContentPart( const String& _rRawString );
60 String GetHexString( const ::com::sun::star::uno::Sequence< sal_Int8 >& _rSeq, const char* _pSep = ":", UINT16 _nLineBreak = 0xFFFF );
62 long ShrinkToFitWidth( Control& _rCtrl, long _nOffs = 0 ); // return = new width
63 void AlignAfterImage( const FixedImage& _rImage, Control& _rCtrl, long _nXOffset = 0 );
64 void AlignAfterImage( const FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 );
65 void AlignAndFitImageAndControl( FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 );
68 #define XMLSEC_RES(id) ResId(id,*XmlSec::GetResMgr())
70 #endif