/* -*- 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 void SvMetaObject::WriteTab( SvStream & rOutStm, sal_uInt16 nTab ) { while( nTab-- ) rOutStm.WriteOString( " " ); } void SvMetaObject::WriteStars( SvStream & rOutStm ) { rOutStm.WriteChar( '/' ); for( int i = 6; i > 0; i-- ) rOutStm.WriteOString( "**********" ); rOutStm.WriteChar( '/' ) << endl; } void SvMetaObject::Back2Delimiter( SvStream & rOutStm ) { // write no empty brackets sal_uInt64 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::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 && rInStm.ReadIf( '{' ) ) { DoReadContextSvIdl( rBase, rInStm ); bOk = rInStm.ReadIf( '}' ); } if( !bOk ) rInStm.Seek( nTokPos ); return bOk; } SvMetaReference::SvMetaReference() { } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ stro/collabora/cp-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2022-08-18loplugin:moveitNoel Grandin
2022-03-01use SfxItemSet::GetItemIfSet in sc/source/ui/Noel Grandin
2022-03-01make Calc jumbo sheets an explicit build featureLuboš Luňák
2020-11-01use officecfg for Experimental flagNoel Grandin
2019-11-27sc: rowcol: tdf#50916 add UI to turn jumbo sheets onNoel Grandin
2019-09-26now drop TabPageParent intermediateCaolán McNamara
2019-09-26disinherit OWizardPage and SfxTabPage from vcl TabPageCaolán McNamara
2019-07-28weld ScTpDefaultsOptionsCaolán McNamara
2019-03-11tdf#42949 Fix IWYU warnings in sc/source/ui/[f-o]*/*cxxGabor Kelemen
2018-04-22place an intermediate class as parent for SfxTabPagesCaolán McNamara
2018-04-16tdf#42949 Remove unnecessary localization headers from scGabor Kelemen
2017-10-23loplugin:includeform: scStephan Bergmann
2017-08-29loplugin:constparam in sc part9Noel Grandin
2017-04-05loplugin:constantparamNoel Grandin
2016-10-05Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann
2016-06-06Convert DeactivePage return code to scoped enumNoel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-16convert Link<> to typedNoel Grandin
2015-09-24convert Link<> to typedNoel Grandin
2015-06-06Apply new VclPtr clang plugin to catch potential problems.Noel Grandin
2015-04-28Merge remote-tracking branch 'origin/feature/vclptr'Michael Meeks
2015-04-28SfxTabPage::DeactivatePage wants to return SfxTabPage::sfxpgStephan Bergmann
2015-04-17Fix SfxTabPage creation to use VclPtr.Michael Meeks
2015-04-10vclwidget: only call dispose() onceNoel Grandin
2015-04-10vclwidget: change all vcl::window fields to be wrapped in VclPtrNoel Grandin
2014-10-28loplugin: cstylecastNoel Grandin
2014-09-23fdo#82577: Handle WindowNoel Grandin
2014-09-12Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann
2014-06-25remove whitespaceMarkus Mohrhard
2014-06-11Change SfxTabPage ctor SfxItemSet param from ref to pointerStephan Bergmann
2014-06-11Change SfxTabPage::Reset param from ref to pointerStephan Bergmann
2014-06-10Change SfxTabPage::FillItemSet param from ref to pointerStephan Bergmann
2014-05-08use new VCL IsValueChangedFromSaved methodNoel Grandin
2014-04-23sc: sal_Bool->boolNoel Grandin
2014-04-22remove missing sc.hrcThomas Arnhold
2014-04-22clean up hrc filesThomas Arnhold
2014-03-27sfx2: sal_Bool->boolNoel Grandin