aknlayoutcompiler/inc/LayoutWriter.h
changeset 0 f58d6ec98e88
equal deleted inserted replaced
-1:000000000000 0:f58d6ec98e88
       
     1 /*
       
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef LAYOUTWRITER_H
       
    20 #define LAYOUTWRITER_H
       
    21 
       
    22 #include "WriterBase.h"
       
    23 
       
    24 /**
       
    25 *  TLayoutTableWriter
       
    26 *  Writes a layout table in .lay format
       
    27 */
       
    28 class TLayoutTableWriter
       
    29 	{
       
    30 public:
       
    31 	TLayoutTableWriter(TLayoutTable& aTable);
       
    32 	~TLayoutTableWriter();
       
    33 
       
    34 	void Write(ostream& out);
       
    35 	static void WriteCell(ostream& out, TValues& values);
       
    36 
       
    37 private:
       
    38 	bool IsWindowTable();
       
    39 	void WriteWindowTable(ostream& out);
       
    40 	void WriteWindowLine(ostream& out, TLayoutLine& line);
       
    41 	bool IsTextTable();
       
    42 	void WriteTextTable(ostream& out);
       
    43 	void WriteTextLine(ostream& out, TLayoutLine& line);
       
    44 
       
    45 private:
       
    46 	TLayoutTable& iTable;
       
    47 	};
       
    48 
       
    49 /**
       
    50 *  TLayoutWriter 
       
    51 *  Writes a layout in .lay format
       
    52 */
       
    53 class TLayoutWriter : public TLayWriterBase
       
    54 	{
       
    55 public:
       
    56 	TLayoutWriter(TLayout& aLayout, const std::string& aName);
       
    57 	void Write(const std::string& aLayName);
       
    58 	};
       
    59 
       
    60 #endif
       
    61 
       
    62 // End of File