summaryrefslogtreecommitdiff
path: root/idl/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-11 09:26:19 +0200
committerNoel Grandin <noel@peralex.com>2016-02-11 10:01:46 +0200
commit401b7468bdaae0626d1179bc1c98c2882cc38d1d (patch)
tree0875651631ff05a82b083c13d43f94bd61517348 /idl/inc
parent6b00d851672ecdde1833cf3ce3d90e34480af5e5 (diff)
create a new class SvIdlParser
and start the process of moving the parsing code to one central file Change-Id: If6d8def37ec8c8415c22d39f9d8b7a09ec423873
Diffstat (limited to 'idl/inc')
-rw-r--r--idl/inc/database.hxx3
-rw-r--r--idl/inc/parser.hxx37
2 files changed, 38 insertions, 2 deletions
diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx
index c435aaf85bda..3b7f15f02534 100644
--- a/idl/inc/database.hxx
+++ b/idl/inc/database.hxx
@@ -102,6 +102,7 @@ public:
{ aError = r; }
const OUString & GetPath() const { return aPath; }
+ void SetPath(const OUString &s) { aPath = s; }
SvRefMemberList<SvMetaObject *>& GetStack() { return aContextStack; }
void Write(const OString& rText);
@@ -135,8 +136,6 @@ class SvIdlWorkingBase : public SvIdlDataBase
public:
explicit SvIdlWorkingBase( const SvCommand& rCmd );
- bool ReadSvIdl( SvTokenStream &, bool bImported, const OUString & rPath );
-
bool WriteSfx( SvStream & );
};
diff --git a/idl/inc/parser.hxx b/idl/inc/parser.hxx
new file mode 100644
index 000000000000..c06287b7a9e4
--- /dev/null
+++ b/idl/inc/parser.hxx
@@ -0,0 +1,37 @@
+/* -*- 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;
+
+class SvIdlParser
+{
+public:
+ bool ReadSvIdl( SvIdlDataBase& rBase, SvTokenStream &, bool bImported, const OUString & rPath );
+
+};
+
+#endif // INCLUDED_IDL_INC_PARSER_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */