/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include #include #include #include #include #include void SvMetaObject::WriteTab( SvStream & rOutStm, sal_uInt16 nTab ) { while( nTab-- ) rOutStm.WriteCharPtr( " " ); } void SvMetaObject::WriteStars( SvStream & rOutStm ) { rOutStm.WriteChar( '/' ); for( int i = 6; i > 0; i-- ) rOutStm.WriteCharPtr( "**********" ); rOutStm.WriteChar( '/' ) << endl; } void SvMetaObject::Back2Delimiter( SvStream & rOutStm ) { // write no empty brackets sal_uLong nPos = rOutStm.Tell(); rOutStm.SeekRel( -1 ); char c = 0; rOutStm.ReadChar( c ); while( rtl::isAsciiWhiteSpace( static_cast(c) ) && rOutStm.Tell() != 1 ) { rOutStm.SeekRel( -2 ); rOutStm.ReadChar( c ); } if( c == ';' || c == ',' ) rOutStm.SeekRel( -1 ); else rOutStm.Seek( nPos ); } SvMetaObject::SvMetaObject() { } void SvMetaObject::SetName( const OString& rName ) { aName = rName; } bool SvMetaObject::ReadNameSvIdl( SvTokenStream & rInStm ) { sal_uInt32 nTokPos = rInStm.Tell(); SvToken& rTok = rInStm.GetToken_Next(); // read module name if( rTok.IsIdentifier() ) { SetName( rTok.GetString() ); return true; } rInStm.Seek( nTokPos ); return false; } void SvMetaObject::ReadAttributesSvIdl( SvIdlDataBase & , SvTokenStream & ) { } void SvMetaObject::DoReadContextSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) { sal_uInt32 nBeginPos = 0; // can not happen with Tell while( nBeginPos != rInStm.Tell() ) { nBeginPos = rInStm.Tell(); ReadContextSvIdl( rBase, rInStm ); rInStm.ReadIfDelimiter(); } } void SvMetaObject::ReadContextSvIdl( SvIdlDataBase &, SvTokenStream & ) { } bool SvMetaObject::Test( SvTokenStream & ) { return true; } bool SvMetaObject::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) { sal_uInt32 nTokPos = rInStm.Tell(); bool bOk = true; if( rInStm.ReadIf( '[' ) ) { sal_uInt32 nBeginPos = 0; // can not happen with Tell while( nBeginPos != rInStm.Tell() ) { nBeginPos = rInStm.Tell(); ReadAttributesSvIdl( rBase, rInStm ); rInStm.ReadIfDelimiter(); } bOk = rInStm.ReadIf( ']' ); } if( bOk ) { if( rInStm.ReadIf( '{' ) ) { DoReadContextSvIdl( rBase, rInStm ); bOk = rInStm.ReadIf( '}' ); } } if( !bOk ) rInStm.Seek( nTokPos ); return bOk; } SvMetaReference::SvMetaReference() { } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 'distro/collabora/cp-4.4'>distro/collabora/cp-4.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-09-23do not require $(SRCDIR) in every gb_Library_set_precompiled_headerLuboš Luňák
2019-02-16MSForms: Introduce a new compatibility flag to enable MS compatible Forms menuTamás Zolnai
2017-08-01move resmgr to unotoolsCaolán McNamara
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2017-01-09New loplugin:externvar: unotoolsStephan Bergmann
2016-12-02Simplify FontManager a bitKhaled Hosny
2016-11-03Add helper for creating zip filesSamuel Mehrbrodt
2016-09-22Remove NumberFormatCodeWrapperMaarten Bosmans
2016-08-30tdf#99402: fix Metafile Font handlingMike Kaganski
2016-07-10ditch the application per-language IsAutoMnemonicEnabled settingCaolán McNamara
2016-05-19loplugin:unusedmethods in unotoolsNoel Grandin
2015-09-19add implementation for theServiceDocumenter singletonBjoern Michaelsen
2015-02-16another dependency still requiredCaolán McNamara
2015-02-16boost::noncopyable->'= delete'Caolán McNamara
2014-05-09update_pch: add a bunch of pch filesThomas Arnhold
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann
2013-08-10fdo#46037: 1 less occurrence comphelper/configurationhelper in unotoolsJulien Nabet
2013-04-24Don't point to inc directories that don't exist any longerTor Lillqvist
2013-04-24gbuild: drop uses of removed packagesDavid Tardon
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-05new module i18nlangtagEike Rathke
2013-04-05unotools: remove some unused itemsThomas Arnhold
2013-04-05Remove SvtInternalOptionsThomas Arnhold
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl
2012-11-30Remove SvtStartOptionsStephan Bergmann
2012-11-16correct include order and include languagetag.hxxEike Rathke
2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl
2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl
2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl