1*983d4c8aSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*983d4c8aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*983d4c8aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*983d4c8aSAndrew Rist * distributed with this work for additional information 6*983d4c8aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*983d4c8aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*983d4c8aSAndrew Rist * "License"); you may not use this file except in compliance 9*983d4c8aSAndrew Rist * with the License. You may obtain a copy of the License at 10*983d4c8aSAndrew Rist * 11*983d4c8aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*983d4c8aSAndrew Rist * 13*983d4c8aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*983d4c8aSAndrew Rist * software distributed under the License is distributed on an 15*983d4c8aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*983d4c8aSAndrew Rist * KIND, either express or implied. See the License for the 17*983d4c8aSAndrew Rist * specific language governing permissions and limitations 18*983d4c8aSAndrew Rist * under the License. 19*983d4c8aSAndrew Rist * 20*983d4c8aSAndrew Rist *************************************************************/ 21*983d4c8aSAndrew Rist 22*983d4c8aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef LAYOUTPARSE_HXX 25cdf0e10cSrcweir #define LAYOUTPARSE_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "xmlparse.hxx" 28cdf0e10cSrcweir 29cdf0e10cSrcweir class LayoutXMLFile : public XMLFile 30cdf0e10cSrcweir { 31cdf0e10cSrcweir bool mMergeMode; 32cdf0e10cSrcweir 33cdf0e10cSrcweir public: 34cdf0e10cSrcweir LayoutXMLFile( bool mergeMode ); 35cdf0e10cSrcweir 36cdf0e10cSrcweir void SearchL10NElements( XMLParentNode *pCur, int pos = 0 ); 37cdf0e10cSrcweir sal_Bool Write( ByteString &aFilename ); 38cdf0e10cSrcweir void HandleElement( XMLElement* element ); 39cdf0e10cSrcweir void InsertL10NElement( ByteString const& id, XMLElement* element ); 40cdf0e10cSrcweir 41cdf0e10cSrcweir using XMLFile::InsertL10NElement; 42cdf0e10cSrcweir using XMLFile::Write; 43cdf0e10cSrcweir }; 44cdf0e10cSrcweir 45cdf0e10cSrcweir std::vector<XMLAttribute*> interestingAttributes( XMLAttributeList* lst ); 46cdf0e10cSrcweir 47cdf0e10cSrcweir #endif /* LAYOUTPARSE_HXX */ 48