1*ec61c6edSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*ec61c6edSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ec61c6edSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ec61c6edSAndrew Rist * distributed with this work for additional information 6*ec61c6edSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ec61c6edSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ec61c6edSAndrew Rist * "License"); you may not use this file except in compliance 9*ec61c6edSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*ec61c6edSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*ec61c6edSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ec61c6edSAndrew Rist * software distributed under the License is distributed on an 15*ec61c6edSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ec61c6edSAndrew Rist * KIND, either express or implied. See the License for the 17*ec61c6edSAndrew Rist * specific language governing permissions and limitations 18*ec61c6edSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*ec61c6edSAndrew Rist *************************************************************/ 21*ec61c6edSAndrew Rist 22*ec61c6edSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _RESOURCEMANAGER_HXX 25cdf0e10cSrcweir #define _RESOURCEMANAGER_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <tools/resmgr.hxx> 28cdf0e10cSrcweir #include <tools/datetime.hxx> 29cdf0e10cSrcweir #include <com/sun/star/util/DateTime.hpp> 30cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx> 31cdf0e10cSrcweir 32cdf0e10cSrcweir #include <vector> 33cdf0e10cSrcweir 34cdf0e10cSrcweir class FixedImage; 35cdf0e10cSrcweir class FixedInfo; 36cdf0e10cSrcweir class Control; 37cdf0e10cSrcweir class LocaleDataWrapper; 38cdf0e10cSrcweir 39cdf0e10cSrcweir namespace XmlSec 40cdf0e10cSrcweir { 41cdf0e10cSrcweir ResMgr* GetResMgr( void ); 42cdf0e10cSrcweir 43cdf0e10cSrcweir const LocaleDataWrapper& GetLocaleData( void ); 44cdf0e10cSrcweir DateTime GetDateTime( const ::com::sun::star::util::DateTime& _rDT ); 45cdf0e10cSrcweir String GetDateTimeString( const ::com::sun::star::util::DateTime& _rDT ); 46cdf0e10cSrcweir String GetDateTimeString( const rtl::OUString& _rDate, const rtl::OUString& _rTime ); 47cdf0e10cSrcweir String GetDateString( const ::com::sun::star::util::DateTime& _rDT ); 48cdf0e10cSrcweir 49cdf0e10cSrcweir std::vector< std::pair< ::rtl::OUString, ::rtl::OUString> > 50cdf0e10cSrcweir parseDN(const ::rtl::OUString& rRawString); 51cdf0e10cSrcweir std::pair< ::rtl::OUString, ::rtl::OUString> GetDNForCertDetailsView( 52cdf0e10cSrcweir const ::rtl::OUString & rRawString); 53cdf0e10cSrcweir String GetContentPart( const String& _rRawString ); 54cdf0e10cSrcweir 55cdf0e10cSrcweir String GetHexString( const ::com::sun::star::uno::Sequence< sal_Int8 >& _rSeq, const char* _pSep = ":", sal_uInt16 _nLineBreak = 0xFFFF ); 56cdf0e10cSrcweir 57cdf0e10cSrcweir long ShrinkToFitWidth( Control& _rCtrl, long _nOffs = 0 ); // return = new width 58cdf0e10cSrcweir void AlignAfterImage( const FixedImage& _rImage, Control& _rCtrl, long _nXOffset = 0 ); 59cdf0e10cSrcweir void AlignAfterImage( const FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 ); 60cdf0e10cSrcweir void AlignAndFitImageAndControl( FixedImage& _rImage, FixedInfo& _rFI, long _nXOffset = 0 ); 61cdf0e10cSrcweir } 62cdf0e10cSrcweir 63cdf0e10cSrcweir #define XMLSEC_RES(id) ResId(id,*XmlSec::GetResMgr()) 64cdf0e10cSrcweir 65cdf0e10cSrcweir #endif 66