1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef SC_SORTDLG_HXX 25 #define SC_SORTDLG_HXX 26 27 #include <sfx2/tabdlg.hxx> 28 29 #if TEST_LAYOUT 30 #define LAYOUT_SFX_TABDIALOG_BROKEN 0 31 #else /* !TEST_LAYOUT */ 32 #ifndef LAYOUT_SFX_TABDIALOG_BROKEN 33 #define LAYOUT_SFX_TABDIALOG_BROKEN 1 34 #endif /* !LAYOUT_SFX_TABDIALOG_BROKEN */ 35 #endif /* !TEST_LAYOUT */ 36 37 #if !LAYOUT_SFX_TABDIALOG_BROKEN 38 #include <sfx2/layout.hxx> 39 #include <layout/layout-pre.hxx> 40 #endif 41 42 class ScSortDlg : public SfxTabDialog 43 { 44 public: 45 ScSortDlg( Window* pParent, 46 const SfxItemSet* pArgSet ); 47 ~ScSortDlg(); 48 49 void SetHeaders( BOOL bHeaders ); 50 void SetByRows ( BOOL bByRows ); 51 BOOL GetHeaders() const; 52 BOOL GetByRows () const; 53 54 55 private: 56 BOOL bIsHeaders; 57 BOOL bIsByRows; 58 }; 59 SetHeaders(BOOL bHeaders)60inline void ScSortDlg::SetHeaders( BOOL bHeaders ) { bIsHeaders = bHeaders; } SetByRows(BOOL bByRows)61inline void ScSortDlg::SetByRows ( BOOL bByRows ) { bIsByRows = bByRows; } GetHeaders() const62inline BOOL ScSortDlg::GetHeaders() const { return bIsHeaders; } GetByRows() const63inline BOOL ScSortDlg::GetByRows () const { return bIsByRows; } 64 65 #if !LAYOUT_SFX_TABDIALOG_BROKEN 66 #include <layout/layout-post.hxx> 67 #endif 68 69 #endif // SC_SORTDLG_HXX 70