2016-02-11 09:26:19 +02:00
|
|
|
/* -*- 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 .
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_IDL_INC_PARSER_HXX
|
|
|
|
#define INCLUDED_IDL_INC_PARSER_HXX
|
|
|
|
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
|
|
|
|
class SvTokenStream;
|
|
|
|
class SvIdlDataBase;
|
2016-02-11 15:41:48 +02:00
|
|
|
class SvMetaModule;
|
2016-02-12 08:58:26 +02:00
|
|
|
class SvMetaTypeEnum;
|
2016-02-11 09:26:19 +02:00
|
|
|
|
|
|
|
class SvIdlParser
|
|
|
|
{
|
2016-02-11 11:41:21 +02:00
|
|
|
SvIdlDataBase& rBase;
|
|
|
|
SvTokenStream & rInStm;
|
2016-02-11 09:26:19 +02:00
|
|
|
public:
|
2016-02-11 11:41:21 +02:00
|
|
|
SvIdlParser( SvIdlDataBase& rBase_, SvTokenStream & rInStrm_) : rBase(rBase_), rInStm(rInStrm_) {}
|
|
|
|
bool ReadSvIdl( bool bImported, const OUString & rPath );
|
2016-02-11 15:41:48 +02:00
|
|
|
bool ReadModuleHeader(SvMetaModule& rModule);
|
|
|
|
bool ReadModuleBody(SvMetaModule& rModule);
|
|
|
|
void ReadModuleElement( SvMetaModule& rModule );
|
2016-02-12 10:41:48 +02:00
|
|
|
void ReadInclude( SvMetaModule& rModule );
|
|
|
|
void ReadEnum();
|
2016-02-12 08:58:26 +02:00
|
|
|
void ReadEnumValue( SvMetaTypeEnum& rEnum );
|
|
|
|
void ReadChar(char cChar);
|
|
|
|
void ReadDelimiter();
|
|
|
|
OString ReadIdentifier();
|
2016-02-12 10:41:48 +02:00
|
|
|
OString ReadString();
|
2016-02-11 09:26:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDED_IDL_INC_PARSER_HXX
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|