swad-core/swad_layout.h

88 lines
3.4 KiB
C
Raw Normal View History

2014-12-01 23:55:08 +01:00
// swad_layout.h: page layout
#ifndef _SWAD_LAY
#define _SWAD_LAY
/*
SWAD (Shared Workspace At a Distance in Spanish),
is a web platform developed at the University of Granada (Spain),
and used to support university teaching.
This file is part of SWAD core.
Copyright (C) 1999-2023 Antonio Ca<EFBFBD>as Vargas
2014-12-01 23:55:08 +01:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*****************************************************************************/
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_action.h"
#include "swad_icon.h"
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
2014-12-27 13:09:29 +01:00
#define Lay_HIDE_BOTH_COLUMNS 0 // 00
#define Lay_SHOW_RIGHT_COLUMN 1 // 01
#define Lay_SHOW_LEFT_COLUMN 2 // 10
#define Lay_SHOW_BOTH_COLUMNS (Lay_SHOW_LEFT_COLUMN | Lay_SHOW_RIGHT_COLUMN) // 11
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/****************************** Public prototypes ****************************/
/*****************************************************************************/
void Lay_WriteStartOfPage (void);
2017-10-04 12:20:58 +02:00
void Lay_WriteHTTPStatus204NoContent (void);
void Lay_WriteEndOfPage (void);
2019-01-12 03:00:59 +01:00
void Lay_PutContextualLinkOnlyIcon (Act_Action_t NextAction,const char *Anchor,
void (*FuncPars) (void *Args),void *Args,
const char *Icon,Ico_Color_t Color);
2019-01-12 03:00:59 +01:00
void Lay_PutContextualLinkIconText (Act_Action_t NextAction,const char *Anchor,
void (*FuncPars) (void *Args),void *Args,
const char *Icon,Ico_Color_t Color,
const char *Text,const char *OnSubmit);
2016-11-22 10:44:58 +01:00
void Lay_PutContextualCheckbox (Act_Action_t NextAction,
void (*FuncPars) (void),
2017-05-22 12:23:08 +02:00
const char *CheckboxName,
bool Checked,bool Disabled,
2016-11-22 10:44:58 +01:00
const char *Title,const char *Text);
2015-07-22 19:20:30 +02:00
void Lay_WriteAboutZone (void);
2016-01-09 15:00:14 +01:00
2014-12-01 23:55:08 +01:00
void Lay_RefreshNotifsAndConnected (void);
void Lay_RefreshLastClicks (void);
2016-03-18 22:17:35 +01:00
void Lay_WriteHeaderClassPhoto (bool PrintView,bool DrawingClassPhoto,
2014-12-01 23:55:08 +01:00
long InsCod,long DegCod,long CrsCod);
void Lay_AdvertisementMobile (void);
2014-12-29 13:26:39 +01:00
void Lay_IndentDependingOnLevel (unsigned Level,bool IsLastItemInLevel[]);
2015-04-11 02:04:23 +02:00
void Lay_HelpPlainEditor (void);
void Lay_HelpRichEditor (void);
void Lay_BeginHTMLFile (FILE *File,const char *Title);
2016-10-03 22:41:45 +02:00
void Lay_WriteIndex (unsigned Index,const char *Class);
//-------------------------------- Figures ------------------------------------
void Lay_GetAndShowNumUsrsPerSideColumns (void);
2014-12-01 23:55:08 +01:00
#endif