Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / xmlsecurity / source / dialogs / resourcemanager.hxx
blobaa893fa4353cd6b8bb0752dcda98342672ffad5e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 _RESOURCEMANAGER_HXX
21 #define _RESOURCEMANAGER_HXX
23 #include <tools/resmgr.hxx>
24 #include <tools/datetime.hxx>
25 #include <com/sun/star/util/DateTime.hpp>
26 #include <com/sun/star/uno/Sequence.hxx>
28 #include <vector>
30 class FixedImage;
31 class FixedInfo;
32 class Control;
33 class LocaleDataWrapper;
35 namespace XmlSec
37 ResMgr* GetResMgr( void );
39 const LocaleDataWrapper& GetLocaleData( void );
40 DateTime GetDateTime( const ::com::sun::star::util::DateTime& _rDT );
41 OUString GetDateTimeString( const ::com::sun::star::util::DateTime& _rDT );
42 OUString GetDateString( const ::com::sun::star::util::DateTime& _rDT );
44 std::vector< std::pair< ::rtl::OUString, ::rtl::OUString> >
45 parseDN(const ::rtl::OUString& rRawString);
46 std::pair< ::rtl::OUString, ::rtl::OUString> GetDNForCertDetailsView(
47 const ::rtl::OUString & rRawString);
48 OUString GetContentPart( const OUString& _rRawString );
50 OUString GetHexString( const ::com::sun::star::uno::Sequence< sal_Int8 >& _rSeq, const char* _pSep = ":", sal_uInt16 _nLineBreak = 0xFFFF );
52 long ShrinkToFitWidth( Control& _rCtrl, long _nOffs = 0 ); // return = new width
53 void AlignAfterImage( const FixedImage& _rImage, Control& _rCtrl, long _nXOffset = 0 );
54 void AlignAfterImage( const FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 );
55 void AlignAndFitImageAndControl( FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 );
58 #define XMLSEC_RES(id) ResId(id,*XmlSec::GetResMgr())
60 #endif
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */