Advertisement
Guest User

Untitled

a guest
May 17th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.88 KB | None | 0 0
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /*
  3.  * This file is part of the LibreOffice project.
  4.  *
  5.  * This Source Code Form is subject to the terms of the Mozilla Public
  6.  * License, v. 2.0. If a copy of the MPL was not distributed with this
  7.  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  8.  *
  9.  * This file incorporates work covered by the following license notice:
  10.  *
  11.  *   Licensed to the Apache Software Foundation (ASF) under one or more
  12.  *   contributor license agreements. See the NOTICE file distributed
  13.  *   with this work for additional information regarding copyright
  14.  *   ownership. The ASF licenses this file to you under the Apache
  15.  *   License, Version 2.0 (the "License"); you may not use this file
  16.  *   except in compliance with the License. You may obtain a copy of
  17.  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  18.  */
  19. #include "address.hxx"
  20. #include "globalnames.hxx"
  21.  
  22. class ScDBDataLabel
  23. {
  24. private:
  25.     // Table index
  26.     SCTAB       nTable;      
  27.     // Header row/column full content  range
  28.     SCCOL       nStartHeaderCol;
  29.     SCROW       nStartHeaderRow;
  30.     SCCOL       nEndHeaderCol;
  31.     SCROW       nEndHeaderRow;
  32.     // Header row/column totals row set (exists)
  33.     bool        bHasTotal;
  34.     // Is it a Row header or a column header, if not set it is row header
  35.     bool        bIsColHeader;
  36.     //Header row/col name
  37.     //::rtl::OUString aName;
  38.     //::rtl::OUString aUpper;    
  39. public:
  40.     ScDBDataLabel( SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bColH, bool bHasT);
  41.     ~ScDBDataLabel();
  42.     void GetHeaderDataRange(ScRange& rRange) const;
  43.     const ::rtl::OUString& GetHeaderName() const;
  44.     const ::rtl::OUString& GetHeaderUpperName() const;
  45.     void GetHeaderTotalCell(ScAddress& rAddr) const;
  46.     void GetHeaderNameCell(ScAddress& rAddr) const;
  47. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement